/* ═══════════════════════════════════════════════════════
   Токены и система — скопированы с x.ai (SpaceXAI_files)
   light theme :root
   ═══════════════════════════════════════════════════════ */

:root {
  /* palette */
  --color-jet: 0 0% 4%;
  --color-charcoal: 0 0% 10%;
  --color-umbra: 221 12% 14%;
  --color-ink: 213 11% 16%;
  --color-ash: 216 5% 19%;
  --color-steel: 216 4% 22%;
  --color-fog: 216 4% 51%;
  --color-pewter: 213 12% 70%;
  --color-dove: 222 19% 86%;
  --color-nimbus: 228 21.74% 95.49%;
  --color-ivory: 40 18% 97%;
  --color-white: 0 0% 100%;
  --color-midnight: 214 58.3% 9.4%;
  --color-evenfall: 214 16.1% 28%;
  --color-breeze: 214 48.9% 73.9%;
  --color-dawn: 37 100% 76%;
  --color-sunset: 22 100% 51.6%;
  --color-dusk: 263 70% 50.4%;
  --color-twilight: 255 92% 76%;
  --color-codeblock: 0 0% 7%;

  --terminal-traffic-red: #111111;
  --terminal-traffic-yellow: #9b9b9b;
  --terminal-traffic-green: #55c63a;
  --brand-green: #55c63a;

  /* semantic — light (как :root x.ai) */
  --primary: var(--color-jet);
  --primary-hover: var(--color-umbra);
  --secondary: var(--color-fog);
  --secondary-hover: var(--color-pewter);
  --accent: var(--color-sunset);
  --accent-hover: var(--color-dawn);
  --background: var(--color-white);
  --background-hover: var(--color-dove);
  --foreground: var(--color-jet);
  --foreground-hover: var(--color-umbra);
  --card: var(--color-ivory);
  --border: var(--color-dove);
  --input: var(--color-white);
  --success: 109 56% 50%;
  --warning: 45 93% 47%;
  --error: 0 84% 60%;
  --info: var(--color-breeze);

  --radius: 0.5rem;
  --radius-2xl: 1rem;
  --site-header-h: 4rem;
  --site-header-bg: hsl(var(--background) / 0.85);
  --site-header-blur: 12px;
  --home-hero-pt-gap: 2.25rem;
  --max: 80rem; /* max-w-7xl */

  --font-sans: "Geist Sans", "universalSans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist Sans", "universalSansDisplay", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

}

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--primary));
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
code, pre { font-family: var(--font-mono); }
strong { font-weight: 600; }

.bg-background { background-color: hsl(var(--background)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.font-sans { font-family: var(--font-sans); }
.font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.antialiased { -webkit-font-smoothing: antialiased; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .container { width: min(var(--max), calc(100% - 3rem)); }
}

/* ── Nav — site-header x.ai ─────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--site-header-h);
  background: var(--site-header-bg);
  backdrop-filter: blur(var(--site-header-blur)) saturate(1.4);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  border-bottom-color: hsl(var(--border));
}
.nav__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: hsl(var(--primary));
}
.logo img {
  display: block;
  width: 8rem;
  height: auto;
}
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.55);
  transition: color 0.15s;
}
.nav__links a:hover { color: hsl(var(--primary)); }
.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-invest {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--background));
}
.nav-invest__main, .nav-invest__toggle {
  color: inherit;
  transition: background .15s ease;
}
.nav-invest__main {
  padding: .55rem .9rem .55rem 1.05rem;
  font-size: .875rem;
  font-weight: 500;
}
.nav-invest__toggle {
  display: grid;
  width: 2.45rem;
  place-items: center;
  border-left: 1px solid hsl(var(--background) / .18);
}
.nav-invest__toggle svg { width: 1rem; height: 1rem; }
.nav-invest__main:hover, .nav-invest__toggle:hover { background: hsl(var(--background) / .1); }
.nav-invest-mobile { display: none; }
.burger {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid hsl(var(--primary) / .14);
  border-radius: 50%;
  transition: background .15s ease, border-color .15s ease;
}
.burger:hover {
  border-color: hsl(var(--primary) / .25);
  background: hsl(var(--primary) / .04);
}
.burger__hit { position: absolute; top: 50%; left: 50%; width: max(100%, 2.75rem); height: max(100%, 2.75rem); transform: translate(-50%, -50%); }
.burger svg { width: 1rem; height: 1rem; }

/* Мобильное меню — отдельный экран, а не выпадающий список под шапкой. */
.mobile-menu { display: none; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid hsl(var(--info));
  outline-offset: 2px;
}

/* primary = jet on white */
.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--background));
  border-color: hsl(var(--primary));
}
.btn--primary:hover {
  background: hsl(var(--primary-hover));
  border-color: hsl(var(--primary-hover));
}

/* secondary outline */
.btn--secondary {
  background: transparent;
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.15);
}
.btn--secondary:hover {
  background: hsl(var(--primary) / 0.05);
  border-color: hsl(var(--primary) / 0.25);
}

.btn--ghost {
  color: hsl(var(--primary) / 0.55);
  background: transparent;
}
.btn--ghost:hover {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.04);
}

/* ── Hero — max-w-2xl text center + cards grid ──────── */
.hero {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 4rem 0 3rem;
}
@media (min-width: 640px) {
  .hero { padding: 5rem 0 4rem; }
}
@media (min-width: 1024px) {
  .hero { width: min(var(--max), calc(100% - 3rem)); }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 62rem;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (min-width: 640px) {
  .hero__inner { margin-bottom: 4rem; }
}

.hero__title {
  width: 100%;
  font-family: var(--font-display);
  font-size: 2.25rem; /* text-4xl */
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: hsl(var(--primary));
  perspective: 1200px;
}
@media (min-width: 640px) {
  .hero__title { font-size: 3rem; letter-spacing: -0.028em; }
}
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem; /* text-6xl = 60px */
    letter-spacing: -1.5px;
  }
}

.hero__w { display: inline-block; position: relative; }
.hero__mobile-break { display: none; }
@media (max-width: 639px) {
  .hero__mobile-break { display: block; }
}

/* Меняющееся слово — один неразрывный блок вместе с точкой. */
.hero__swap-wrap {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  margin-left: .15em;
  white-space: nowrap;
  transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__swap {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.hero__swap .ch {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.hero__shimmer {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 3px;
  border-radius: 9999px;
  pointer-events: none;
  background-image: linear-gradient(90deg, hsl(var(--primary) / 0.2) 0%, hsl(var(--primary) / 0.2) 35%, var(--brand-green) 46%, var(--brand-green) 56%, hsl(var(--primary) / 0.2) 68%, hsl(var(--primary) / 0.2) 100%);
  background-size: 300% 100%;
  opacity: 0.9;
  animation: hero-shimmer 1800ms linear infinite;
}
@keyframes hero-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.hero__sub {
  position: relative;
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--primary) / 0.45);
}
@media (min-width: 1024px) {
  .hero__sub {
    width: 140%;
    max-width: none;
    transform: translateX(-14.2857%);
    white-space: nowrap;
  }
}
.hero__sub strong {
  color: hsl(var(--primary));
  font-weight: 600;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem; /* mt-9 */
}

.btn--lg {
  padding: 0.75rem 1.25rem; /* px-5 py-3 */
  font-size: 0.9375rem;
  gap: 0.25rem;
}
.btn__ico {
  display: inline-flex;
  width: 1em;
  height: 1em;
  margin-left: 0.15rem;
}
.btn__ico svg { width: 100%; height: 100%; }

/* ── Cards — x.ai: две крупные карточки в ряд ───────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem; /* gap-3 */
}
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  position: relative;
  display: flex;
  height: 220px;
  overflow: hidden;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid hsl(var(--primary) / 0.06);
  background: hsl(var(--card));
  transition: border-color 0.5s, box-shadow 0.5s;
}
@media (min-width: 640px) {
  .card { height: 280px; }
}
.card:hover {
  border-color: hsl(var(--primary) / 0.2);
  box-shadow:
    0 10px 15px -3px hsl(var(--primary) / 0.03),
    0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.card__scale {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease);
  overflow: hidden;
}
.card:hover .card__scale { transform: scale(1.02); }
.card__scale img,
.card__scale video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* shine sweep on hover */
.card__shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
}
.card__shine::after {
  content: "";
  position: absolute;
  inset: -50%;
  transform: translateX(-100%);
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 60%,
    transparent 100%
  );
}
.card:hover .card__shine::after {
  transform: translateX(100%);
  transition: transform 0.7s var(--ease);
}

/* progressive blur — 4 layers like x.ai */
.card__pblur {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  height: 4rem;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
}
.card__pblur-l {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--b));
  -webkit-backdrop-filter: blur(var(--b));
  mask-image: linear-gradient(
    rgba(0, 0, 0, 0) var(--m),
    rgb(0, 0, 0) calc(var(--m) + 40%),
    rgb(0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    rgba(0, 0, 0, 0) var(--m),
    rgb(0, 0, 0) calc(var(--m) + 40%),
    rgb(0, 0, 0) 100%
  );
}
.card__pblur--photo {
  height: 5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}
.card__pblur--dark {
  background: linear-gradient(to top, rgba(12, 12, 14, 0.85), transparent 80%);
}

.card__label {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  padding-top: 1.5rem;
}
.card__label span:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.7);
  transition: color 0.3s;
}
.card__label span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.5);
  transition: color 0.3s, opacity 0.3s;
}
.card__label span:only-child {
  color: hsl(var(--primary) / 0.7);
}
.card:hover .card__label span:first-child { color: hsl(var(--primary)); }
.card:hover .card__label span:last-child { color: hsl(var(--primary) / 0.8); }

.card__label--light span:first-child { color: rgba(255, 255, 255, 0.8); }
.card__label--light span:last-child { color: rgba(255, 255, 255, 0.55); }
.card__label--light span:only-child { color: rgba(255, 255, 255, 0.8); }
.card:hover .card__label--light span:first-child { color: #fff; }
.card:hover .card__label--light span:last-child { color: rgba(255, 255, 255, 0.9); }

.card__live {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  background: hsl(var(--background) / 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.card__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--success));
}

/* chat bubbles — Process card */
.card__bubbles {
  height: 100%;
  position: relative;
  padding: 0.75rem 1.25rem 3.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, hsl(var(--color-ivory)), hsl(var(--color-nimbus)));
}
.chat__stream {
  position: absolute;
  inset: 0.75rem 1.25rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.625rem;
  overflow: hidden;
}
.chat__item {
  display: flex;
  flex-shrink: 0;
  will-change: transform, opacity, filter;
}
.chat__item--out { justify-content: flex-end; }
.chat__item--in { justify-content: flex-start; }
.chat__item.is-leaving {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-14px) scale(0.98);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}
.bubble {
  max-width: 82%;
  padding: 0.5rem 0.875rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--primary) / 0.07);
  font-size: 10.5px;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}
.bubble--out {
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
  background: #fff;
  color: hsl(var(--primary) / 0.85);
}
.bubble--in {
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
  background: #fff;
  color: hsl(var(--primary) / 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .chat__item { transition: none !important; }
}

/* terminal — Products card */
.card--dark { background: hsl(var(--color-codeblock)); }
.cabinet {
  height: 100%;
  overflow: hidden;
  color: #e4e4e7;
  background: #0c0c0e;
  font-size: 11px;
}
.cabinet__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
}
.cabinet__online {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
}
.cabinet__online i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-green);
}
.cabinet__body { padding: 0.85rem 1rem 3rem; }
.cabinet__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.cabinet__tabs span {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.42);
}
.cabinet__tabs .is-on {
  color: #f2ede5;
  background: rgba(255, 255, 255, 0.1);
}
.cabinet__order {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
}
.cabinet__order div { display: grid; gap: 0.25rem; }
.cabinet__order span, .cabinet__row span { color: rgba(255, 255, 255, 0.45); }
.cabinet__order strong { font-size: 0.75rem; font-weight: 500; color: #f2ede5; }
.cabinet__order b, .cabinet__row b { color: var(--brand-green); font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
.cabinet__row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #e4e4e7;
  background: #0c0c0e;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term__dots { display: flex; gap: 0.35rem; flex-shrink: 0; }
.term__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.term__dots i:nth-child(1) { background: var(--terminal-traffic-red); }
.term__dots i:nth-child(2) { background: var(--terminal-traffic-yellow); }
.term__dots i:nth-child(3) { background: var(--terminal-traffic-green); }
.term__path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}
.term__pct {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.term__pct em {
  display: inline-block;
  width: 2.5em;
  height: 0.45em;
  vertical-align: middle;
  margin: 0 0.2em;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green)) left / 100% 100% no-repeat;
  background-color: rgba(255, 255, 255, 0.1);
  font-style: normal;
}
.term__body {
  flex: 1;
  overflow: hidden;
  padding: 0.35rem 0 2.5rem;
}
.term__line {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 1px 1.1rem;
  font-size: 11px;
}
.term__line--done { justify-content: space-between; }
.term__cmd { color: var(--brand-green); flex-shrink: 0; }
.term__arg { color: rgba(255, 255, 255, 0.45); min-width: 0; }
.term__ok { color: var(--brand-green); flex-shrink: 0; margin-left: auto; }
.term__pipe { color: var(--brand-green); }

.card--media .card__scale {
  background: #000;
}
.card--process { background: hsl(var(--background)); }
.product-flow {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.45rem 4.75rem;
  color: hsl(var(--primary));
  background: linear-gradient(180deg, hsl(var(--color-ivory)), hsl(var(--color-nimbus)));
}
.product-flow__main { width: 100%; display: grid; grid-template-columns: 0.9fr 28px 1.65fr 28px 1.25fr; align-items: center; gap: 0.65rem; }
.flow-box { min-height: 4.85rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.85rem; border: 1px solid hsl(var(--primary) / 0.15); border-radius: 0.9rem; background: hsl(var(--background)); box-shadow: 0 1px 1px hsl(var(--primary) / 0.02); text-align: center; }
.flow-box strong { font-size: 0.87rem; letter-spacing: -0.02em; }
.flow-box--source, .flow-box--core { border-color: hsl(var(--primary) / 0.15); background: hsl(var(--background)); box-shadow: 0 1px 1px hsl(var(--primary) / 0.02); }
.flow-arrow { position: relative; height: 2px; background: hsl(var(--primary) / 0.35); }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid hsl(var(--primary) / 0.52); border-right: 2px solid hsl(var(--primary) / 0.52); transform: translateY(-50%) rotate(45deg); }
.flow-products { display: grid; gap: 0.38rem; }
.flow-products b { padding: 0.48rem 0.6rem; border-radius: 0.7rem; background: hsl(var(--background)); border: 1px solid hsl(var(--primary) / 0.15); color: hsl(var(--primary) / 0.8); font-size: 0.69rem; font-weight: 600; text-align: center; box-shadow: 0 1px 1px hsl(var(--primary) / 0.02); }
@media (max-width: 639px) {
  .product-flow { padding: 1rem 1rem 3.85rem; }
  .product-flow__main {
    min-width: 0;
    grid-template-columns: minmax(0, .72fr) 14px minmax(0, 1.2fr) 14px minmax(0, .9fr);
    gap: .3rem;
  }
  .flow-box, .flow-products { min-width: 0; }
  .flow-box { min-height: 4rem; padding: .45rem .25rem; border-radius: .7rem; }
  .flow-box strong { font-size: .68rem; overflow-wrap: anywhere; }
  .flow-products { gap: .25rem; }
  .flow-products b { padding: .32rem .18rem; border-radius: .5rem; font-size: .52rem; line-height: 1.15; overflow-wrap: anywhere; }
  .flow-arrow::after { width: 6px; height: 6px; }
}
@media (max-width: 760px) and (min-width: 640px) {
  .product-flow { padding-inline: 0.75rem; }
  .product-flow__main { grid-template-columns: 0.9fr 12px 1.35fr 12px 1.05fr; gap: 0.18rem; }
  .flow-box { padding: 0.42rem; min-height: 4.05rem; }
  .flow-box strong { font-size: 0.65rem; }
  .flow-products b { font-size: 0.52rem; }
}
.card__pblur--process { height: 5rem; background: linear-gradient(to top, rgba(255, 255, 255, 0.98), transparent); }
.card--cabinet-preview .card__scale {
  background: hsl(var(--background));
}
.card--cabinet-preview .card__scale img {
  object-position: center top;
}

/* ── Sections ───────────────────────────────────────── */
.section { padding-bottom: 5rem; }
.section__head { margin-bottom: 2.5rem; }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.kicker {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.4);
  margin-bottom: 0.5rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: hsl(var(--primary));
}
@media (min-width: 640px) {
  .section__title { font-size: 2rem; }
}
.section__lead {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: hsl(var(--primary) / 0.5);
}
.section__lead strong { color: hsl(var(--primary)); font-weight: 600; }

/* ── Investment thesis ──────────────────────────────── */
.investor-band {
  padding: 0 0 5rem;
}
.investor-band__head {
  max-width: 44rem;
  margin-bottom: 2rem;
}
.thesis-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .thesis-grid { grid-template-columns: 1fr 1fr; }
}
.thesis-grid article {
  min-height: 13rem;
  padding: 1.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background:
    linear-gradient(145deg, hsl(var(--card) / 0.72), hsl(var(--background)));
}
.thesis-grid__n {
  display: block;
  margin-bottom: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: hsl(var(--primary) / 0.35);
}
.thesis-grid h3 {
  max-width: 16rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: hsl(var(--primary));
}
.thesis-grid p {
  margin-top: 0.55rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: hsl(var(--primary) / 0.54);
}
.market-note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 0.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid hsl(var(--primary) / 0.12);
  border-radius: 0.875rem;
  background: hsl(var(--primary));
  color: hsl(var(--background));
}
.market-note .kicker {
  color: hsl(var(--background) / 0.58);
}
.market-note p:not(.kicker) {
  max-width: 47rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: hsl(var(--background) / 0.82);
}
.market-note__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.market-note__links a {
  padding: 0.45rem 0.7rem;
  border: 1px solid hsl(var(--background) / 0.26);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--background));
  transition: background 0.15s, color 0.15s;
}
.market-note__links a:hover {
  background: hsl(var(--background));
  color: hsl(var(--primary));
}

/* ── Steps ──────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  border-top: 1px solid hsl(var(--border));
}
.steps__item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.steps__n {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary) / 0.35);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
  letter-spacing: 0.04em;
}
.steps__item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: hsl(var(--primary));
}
.steps__item p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--primary) / 0.55);
  max-width: 42rem;
}
.steps__item strong { color: hsl(var(--primary)); font-weight: 600; }

/* ── API split ──────────────────────────────────────── */
.api {
  display: grid;
  gap: 3rem;
  padding: 4rem 0 0;
  align-items: center;
}
@media (min-width: 1024px) {
  .api {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 3.5rem;
    padding: 5rem 0 0;
  }
}
.api__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: hsl(var(--primary));
}
@media (min-width: 640px) {
  .api__title { font-size: 3rem; }
}
.api__body {
  margin-top: 1rem;
  max-width: 28rem;
  line-height: 1.65;
  color: hsl(var(--secondary));
}
.api__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.api__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.75rem;
}
.api__stat-n {
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary) / 0.7);
}
.api__stat-l {
  margin-top: 0.125rem;
  color: hsl(var(--primary) / 0.3);
}

/* ── Investment metrics ─────────────────────────────── */
.project-metrics {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 6rem 0;
}
.project-metrics__grid-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .72;
  background-image:
    linear-gradient(hsl(var(--border) / .42) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / .42) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(82% 80% at 50% 50%, #000 22%, transparent 100%);
}
.project-metrics__scan {
  position: absolute;
  z-index: -1;
  right: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
  opacity: .75;
}
.project-metrics__scan i {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(85,198,58,.18) 25%, var(--brand-green) 50%, rgba(85,198,58,.18) 75%, transparent);
  filter: drop-shadow(0 0 4px rgba(85,198,58,.65));
  animation: metrics-scan 4.2s linear infinite;
}
.project-metrics__scan--one { top: 23%; }
.project-metrics__scan--two { top: 76%; opacity: .45; }
.project-metrics__scan--two i { width: 25%; animation-delay: -2.1s; }
.project-metrics__inner { position: relative; }
.project-metrics__grid {
  display: grid;
  gap: 3.2rem;
  text-align: center;
}
.project-metrics__grid {
  display: grid;
  gap: 2.8rem;
  text-align: center;
}
.project-metrics__number {
  color: hsl(var(--primary));
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.project-metrics__number [data-metric-value] { display: inline-block; letter-spacing: -0.045em; }
.project-metrics__number [data-metric-value].is-visible { animation: metric-value-in 560ms cubic-bezier(.22,1,.36,1) both; }
.project-metrics__suffix { margin-left: .05em; letter-spacing: -0.04em; }
@keyframes metric-value-in {
  from { opacity: 0; transform: translateY(-.18em); }
  to { opacity: 1; transform: translateY(0); }
}
.project-metrics__label {
  margin-top: 1.65rem;
  color: hsl(var(--primary) / 0.4);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}
.project-metrics__note {
  max-width: 43rem;
  margin: 3rem auto 0;
  color: hsl(var(--primary) / 0.3);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: center;
}
@media (min-width: 640px) {
  .project-metrics { margin: 0; padding: 9rem 0; }
  .project-metrics__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-metrics__label { font-size: 0.875rem; }
}
@keyframes metrics-scan {
  from { transform: translateX(-40vw); }
  to { transform: translateX(140vw); }
}

/* ── Latest news ────────────────────────────────────── */
.news-section {
  padding: 0;
}
.news-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.news-section__head h2 {
  color: hsl(var(--primary));
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.news-section__head a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  color: hsl(var(--primary) / 0.48);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color .2s ease;
}
.news-section__head a:hover { color: hsl(var(--primary)); }
.news-grid {
  display: grid;
  gap: 1.25rem;
}
.news-card { display: block; }
.news-card__visual {
  position: relative;
  display: flex;
  aspect-ratio: 1200 / 630;
  min-height: 0;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.55rem;
  transition: border-color .35s ease, box-shadow .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.news-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.news-card__visual--price img { object-position: center 22%; }
.news-card__visual--fuel img { object-position: center 20%; }
.news-card__source {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: hsl(var(--primary) / 0.48);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news-card__visual strong {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: .9;
}
.news-card__visual strong small {
  font-family: var(--font-sans);
  font-size: .36em;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.news-card__caption {
  margin-top: .55rem;
  color: hsl(var(--primary) / 0.5);
  font-size: .69rem;
  font-weight: 500;
  line-height: 1.35;
}
.news-card__copy { margin-top: .85rem; }
.news-card__copy time {
  display: block;
  color: hsl(var(--primary) / 0.38);
  font-size: .69rem;
  font-weight: 500;
}
.news-card__copy h3 {
  margin-top: .4rem;
  color: hsl(var(--primary) / .76);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color .25s ease;
}
.news-card:hover .news-card__visual {
  border-color: hsl(var(--primary) / .18);
  box-shadow: 0 14px 28px -24px rgba(15, 23, 42, .35);
  transform: translateY(-2px);
}
.news-card:hover .news-card__visual img { transform: scale(1.025); }
.news-card:hover .news-card__copy h3 { color: hsl(var(--primary)); }
@media (min-width: 640px) {
  .news-section { padding: 0; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Market sources page ────────────────────────────── */
.market-page { padding: 8rem 0 6rem; }
.market-page__hero { padding-bottom: 4.5rem; }
.market-page__hero h1 {
  margin-top: .65rem;
  color: hsl(var(--primary));
  font-size: clamp(3rem, 7vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .95;
}
.market-page__hero h1 span { color: hsl(var(--secondary)); }
.market-page__date { margin-top: 1.5rem; color: hsl(var(--primary) / .42); font-size: .875rem; }
.market-page__grid { display: grid; border-top: 1px solid hsl(var(--border)); }
.market-item { padding: 2rem 0; border-bottom: 1px solid hsl(var(--border)); }
.market-item__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: hsl(var(--primary) / .42); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .035em; }
.market-item__meta span { color: var(--brand-green); }
.market-item h2 { max-width: 48rem; margin-top: .8rem; color: hsl(var(--primary)); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.market-item p { max-width: 45rem; margin-top: .65rem; color: hsl(var(--secondary)); font-size: .875rem; line-height: 1.55; }
.market-item > a { display: inline-flex; margin-top: 1rem; color: hsl(var(--primary) / .6); font-size: .8125rem; font-weight: 500; transition: color .2s ease; }
.market-item > a:hover { color: hsl(var(--primary)); }
@media (min-width: 768px) {
  .market-page { padding-top: 10rem; }
  .market-item { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 2rem; padding: 2.4rem 0; }
  .market-item__meta { display: grid; align-content: start; justify-content: start; gap: .45rem; }
  .market-item h2 { grid-column: 2; margin-top: 0; }
  .market-item p { grid-column: 2; }
  .market-item > a { grid-column: 2; }
}

/* ── Investment ending ──────────────────────────────── */
.investment-showcase { padding-top: 4rem; padding-bottom: 6.5rem; }
.investment-showcase__head { max-width: 48rem; margin: 0 auto; text-align: center; }
.investment-showcase__head h2 {
  margin-top: .55rem;
  color: hsl(var(--primary));
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.03;
}
.investment-showcase__head h2 span { color: hsl(var(--secondary)); }
.investment-showcase__head > p:last-child { max-width: 38rem; margin: 1.2rem auto 0; color: hsl(var(--secondary)); font-size: .9375rem; line-height: 1.65; }
.investment-showcase__image { max-width: 72rem; margin: 3rem auto 0; overflow: hidden; border-radius: .75rem; box-shadow: 0 24px 50px -30px rgba(15,23,42,.35); }
.investment-showcase__image img, .investment-showcase__image video { display: block; width: 100%; height: auto; }
.investment-showcase__action { display: flex; justify-content: center; margin-top: 2rem; }
@media (min-width: 768px) {
  .investment-showcase { padding-top: 6rem; padding-bottom: 8rem; }
  .investment-showcase__image { margin-top: 3.5rem; }
}

/* Инвест-блок повторяет двухколоночную композицию личного кабинета. */
.investment-section { padding-top: 0; }
.investment-section__action { display: flex; margin-top: 2rem; }
.investment-section__image { margin: 0; }

/* ── Personal cabinet ───────────────────────────────── */
.cabinet-section {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 0;
}
.cabinet-section__copy h2 {
  margin-top: .55rem;
  color: hsl(var(--primary));
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.05;
}
.cabinet-section__copy h2 span { color: hsl(var(--secondary)); }
.cabinet-section__lead {
  max-width: 34rem;
  margin-top: 1.3rem;
  color: hsl(var(--secondary));
  font-size: .95rem;
  line-height: 1.7;
}
.cabinet-section__list { margin-top: 2.15rem; border-top: 1px solid hsl(var(--border)); }
.cabinet-section__list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .7rem;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.cabinet-section__list li > span { padding-top: .1rem; color: var(--brand-green); font-family: var(--font-mono); font-size: .65rem; }
.cabinet-section__list p { display: grid; gap: .2rem; color: hsl(var(--primary) / .5); font-size: .77rem; line-height: 1.45; }
.cabinet-section__list strong { color: hsl(var(--primary)); font-size: .875rem; font-weight: 500; }
.cabinet-section__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.cabinet-section__actions > span { color: hsl(var(--primary) / .4); font-size: .75rem; font-weight: 500; }

.cabinet-demo {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background:
    radial-gradient(circle at 72% 20%, rgba(85,198,58,.19), transparent 34%),
    linear-gradient(145deg, #edf5eb, #dfeade);
}
.cabinet-demo::after { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: radial-gradient(rgba(0,0,0,.6) .45px, transparent .65px); background-size: 4px 4px; }
.cabinet-demo__window { position: relative; z-index: 1; overflow: hidden; border: 1px solid hsl(var(--primary) / .12); border-radius: .8rem; background: #fff; box-shadow: 0 24px 50px -28px rgba(15,23,42,.35); }
.cabinet-demo__bar { display: flex; align-items: center; gap: .55rem; height: 2.5rem; padding: 0 .8rem; border-bottom: 1px solid hsl(var(--primary) / .08); color: hsl(var(--primary) / .44); font-family: var(--font-mono); font-size: .58rem; }
.cabinet-demo__dots { display: flex; gap: .27rem; }
.cabinet-demo__dots i { width: .45rem; height: .45rem; border-radius: 50%; background: hsl(var(--primary) / .18); }
.cabinet-demo__dots i:last-child, .cabinet-demo__online i { background: var(--brand-green); }
.cabinet-demo__online { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; }
.cabinet-demo__online i { width: .32rem; height: .32rem; border-radius: 50%; }
.cabinet-demo__body { display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); min-height: 18.5rem; }
.cabinet-demo__side { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .45rem; border-right: 1px solid hsl(var(--primary) / .08); background: hsl(var(--primary) / .018); color: hsl(var(--primary) / .42); font-size: .52rem; }
.cabinet-demo__mark { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; margin: 0 0 .55rem .2rem; border-radius: .35rem; background: hsl(var(--primary)); color: #fff; font-size: .66rem; }
.cabinet-demo__side span { padding: .4rem .35rem; border-radius: .28rem; }
.cabinet-demo__side span.is-active { background: rgba(85,198,58,.13); color: hsl(var(--primary)); font-weight: 600; }
.cabinet-demo__content { min-width: 0; padding: .85rem; }
.cabinet-demo__topline { display: flex; align-items: end; justify-content: space-between; gap: .75rem; }
.cabinet-demo__topline div { display: grid; gap: .2rem; }
.cabinet-demo__topline small, .cabinet-demo__tiles small { color: hsl(var(--primary) / .4); font-size: .55rem; }
.cabinet-demo__topline strong { color: hsl(var(--primary)); font-size: .75rem; font-weight: 600; }
.cabinet-demo button { padding: .35rem .55rem; border-radius: .28rem; background: hsl(var(--primary)); color: #fff; font-size: .55rem; font-weight: 600; }
.cabinet-demo__tiles { display: grid; gap: .55rem; margin-top: .85rem; }
.cabinet-demo__balance, .cabinet-demo__delivery { min-width: 0; padding: .7rem; border: 1px solid hsl(var(--primary) / .1); border-radius: .45rem; background: hsl(var(--primary) / .018); }
.cabinet-demo__balance { display: grid; gap: .35rem; }
.cabinet-demo__balance strong { color: hsl(var(--primary)); font-size: 1rem; font-weight: 600; letter-spacing: -.04em; }
.cabinet-demo__balance span, .cabinet-demo__delivery > span { color: hsl(var(--primary) / .4); font-size: .52rem; }
.cabinet-demo__balance button { width: max-content; margin-top: .2rem; background: rgba(85,198,58,.15); color: #27781c; }
.cabinet-demo__delivery { display: grid; gap: .4rem; }
.cabinet-demo__delivery > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.cabinet-demo__delivery b { color: #27781c; font-size: .52rem; font-weight: 600; }
.cabinet-demo__delivery > strong { color: hsl(var(--primary)); font-size: .64rem; font-weight: 600; }
.cabinet-demo__route { display: flex; align-items: center; gap: .25rem; margin-top: .2rem; }
.cabinet-demo__route i { width: .32rem; height: .32rem; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 3px rgba(85,198,58,.13); }
.cabinet-demo__route em { position: relative; flex: 1; height: 1px; border-top: 1px dashed hsl(var(--primary) / .25); }
.cabinet-demo__route em::after { content: ""; position: absolute; top: -2px; right: 18%; width: 4px; height: 4px; border-radius: 50%; background: hsl(var(--primary)); }
.cabinet-demo__rows { display: grid; gap: .1rem; margin-top: .75rem; }
.cabinet-demo__rows div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .15rem; border-bottom: 1px solid hsl(var(--primary) / .07); color: hsl(var(--primary) / .55); font-size: .55rem; }
.cabinet-demo__rows span { display: inline-flex; align-items: center; gap: .35rem; }
.cabinet-demo__rows i { width: .36rem; height: .36rem; border-radius: .1rem; background: hsl(var(--primary) / .14); }
.cabinet-demo__rows b { color: #27781c; font-size: .52rem; font-weight: 600; white-space: nowrap; }
.cabinet-demo__footer { display: flex; justify-content: space-between; gap: .5rem; margin-top: .7rem; color: hsl(var(--primary) / .35); font-size: .5rem; }
.cabinet-demo__target { position: absolute; z-index: 3; width: 1.9rem; height: 1.9rem; border: 1px solid rgba(85,198,58,.75); border-radius: 50%; opacity: 0; animation: cabinet-target 4.6s ease-in-out infinite; }
.cabinet-demo__cursor { position: absolute; z-index: 4; width: 0; height: 0; border-top: .95rem solid hsl(var(--primary)); border-right: .38rem solid transparent; filter: drop-shadow(0 2px 1px rgba(255,255,255,.9)); transform: rotate(-33deg); animation: cabinet-cursor 4.6s cubic-bezier(.55,0,.2,1) infinite; }
@keyframes cabinet-cursor { 0%, 10% { top: 76%; left: 82%; opacity: 0; } 18%, 32% { top: 42%; left: 77%; opacity: 1; } 42% { top: 42%; left: 77%; opacity: 1; } 54% { top: 69%; left: 63%; opacity: 1; } 70% { top: 69%; left: 63%; opacity: 1; } 86%, 100% { top: 32%; left: 34%; opacity: 0; } }
@keyframes cabinet-target { 0%, 17% { top: 38%; left: 74%; opacity: 0; transform: scale(.55); } 20%, 39% { top: 38%; left: 74%; opacity: 1; transform: scale(1); } 43% { top: 38%; left: 74%; opacity: 0; transform: scale(1.35); } 52%, 67% { top: 65%; left: 60%; opacity: 1; transform: scale(1); } 71% { top: 65%; left: 60%; opacity: 0; transform: scale(1.35); } 100% { opacity: 0; } }
@media (min-width: 640px) {
  .cabinet-demo { padding: 1.8rem; }
  .cabinet-demo__body { grid-template-columns: 5.5rem minmax(0, 1fr); min-height: 22rem; }
  .cabinet-demo__side { padding: 1rem .7rem; font-size: .62rem; }
  .cabinet-demo__content { padding: 1.15rem; }
  .cabinet-demo__tiles { grid-template-columns: .88fr 1.12fr; }
  .cabinet-demo__topline strong { font-size: .88rem; }
  .cabinet-demo__balance strong { font-size: 1.2rem; }
}
@media (min-width: 1024px) {
  .cabinet-section { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 5rem; padding: 6rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cabinet-demo__target, .cabinet-demo__cursor { display: none; }
}
/* Статичный скрин интерфейса вместо имитации и анимации. */
.cabinet-demo { padding: 0; background: transparent; }
.cabinet-demo::after { display: none; }
.cabinet-demo > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid hsl(var(--border));
  border-radius: .75rem;
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .26);
}
@media (min-width: 640px) {
  .cabinet-section { padding: 9rem 0 0; }
  .cabinet-section.investment-section { padding-bottom: 9rem; }
}
@media (min-width: 640px) {
  .cabinet-demo { padding: 0; }
}

.portfolio__stage {
  overflow: hidden;
}
.portfolio { width: 100%; }
.portfolio__window {
  min-height: 0;
}
.portfolio__media { aspect-ratio: 16 / 9; overflow: hidden; background: #121212; }
.portfolio__pane { position: relative; display: none; width: 100%; height: 100%; overflow: hidden; place-items: center; }
.portfolio__pane.is-on { display: grid; }
.portfolio__video { width: 100%; height: 100%; object-fit: cover; }
.portfolio__tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 1rem; }
.portfolio__tabs button { padding: 0.45rem 0.8rem; border-radius: 999px; color: hsl(var(--primary) / 0.45); font-size: 0.8125rem; font-weight: 500; transition: color .15s, background .15s; }
.portfolio__tabs button.is-on { background: hsl(var(--primary) / 0.06); color: hsl(var(--primary)); }
@media (max-width: 640px) {
  .portfolio__media { aspect-ratio: 16 / 10; }
}

.code {
  border-radius: var(--radius-2xl);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--color-codeblock));
  color: hsl(var(--color-dove));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}
.code__tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.code__tabs button {
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s, background 0.15s;
}
.code__tabs button:hover { color: rgba(255, 255, 255, 0.8); }
.code__tabs button.is-on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.code__pane {
  display: none;
  padding: 1.35rem 1.25rem 1.6rem;
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.code__pane.is-on { display: block; }
.code__pane--prose {
  white-space: normal;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}
.code__pane--prose h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.85rem;
}
.code__pane--prose p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.code__pane--prose p:last-child { margin-bottom: 0; }
.code__pane--prose strong { color: #fff; font-weight: 600; }
.tok-k { color: hsl(var(--color-twilight)); }
.tok-s { color: var(--brand-green); }
.tok-c { color: rgba(255, 255, 255, 0.3); }

/* ── Grid products ──────────────────────────────────── */
.grid3 {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid3 { grid-template-columns: repeat(3, 1fr); }
}
.grid3 article {
  padding: 1.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background: hsl(var(--background));
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.grid3 article:hover {
  background: hsl(var(--card));
  border-color: hsl(var(--primary) / 0.15);
}
.grid3 h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: hsl(var(--primary));
}
.grid3 p {
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.5);
  line-height: 1.55;
}

/* ── Plant ──────────────────────────────────────────── */
.showcase__frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--color-jet));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}
.showcase__frame img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s var(--ease);
}
.showcase__frame:hover img { transform: scale(1.02); }
.showcase__cap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
.showcase__cap h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: hsl(var(--primary));
}
.showcase__cap p:not(.kicker) {
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.45);
  max-width: 40rem;
}
.text-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.5);
  white-space: nowrap;
  transition: color 0.15s;
}
.text-link:hover { color: hsl(var(--primary)); }

.blocks {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .blocks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .blocks { grid-template-columns: repeat(4, 1fr); }
}
.block {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background: hsl(var(--background));
  transition: background 0.15s, border-color 0.15s;
}
.block:hover {
  background: hsl(var(--card));
  border-color: hsl(var(--primary) / 0.15);
}
.block__n {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: hsl(var(--primary) / 0.4);
  margin-bottom: 0.6rem;
}
.block h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: hsl(var(--primary));
}
.block p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: hsl(var(--primary) / 0.5);
}

.mega {
  display: grid;
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
  border-block: 1px solid hsl(var(--border));
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .mega { grid-template-columns: repeat(3, 1fr); }
}
.mega__n {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: hsl(var(--primary));
}
.mega__l {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.45);
}

/* ── News ───────────────────────────────────────────── */
.news {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .news { grid-template-columns: 1.4fr 1fr; }
}
.news__feature {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: hsl(var(--background));
}
.news__video { background: #000; }
.news__video video {
  width: 100%;
  max-height: 26rem;
  object-fit: contain;
  background: #000;
}
.news__body { padding: 1.25rem; }
.news__body time,
.news__list time {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.4);
  margin-bottom: 0.4rem;
}
.news__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: hsl(var(--primary));
}
.news__body p {
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.5);
}
.news__list { display: grid; gap: 0.75rem; }
.news__list article {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background: hsl(var(--card));
  transition: background 0.15s, border-color 0.15s;
}
.news__list article:hover {
  background: hsl(var(--background));
  border-color: hsl(var(--primary) / 0.15);
}
.news__list h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: hsl(var(--primary));
}
.news__list p {
  font-size: 0.84rem;
  color: hsl(var(--primary) / 0.5);
}

/* ── Plans ──────────────────────────────────────────── */
.plans {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  background: hsl(var(--background));
}
.plan--soft { background: hsl(var(--card)); }
.plan h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--primary));
}
.plan__lead {
  font-size: 0.9375rem;
  color: hsl(var(--primary) / 0.5);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.plan ul {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.7);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(var(--primary));
}
.plan .btn { align-self: flex-start; }

/* ── Contact ────────────────────────────────────────── */
.contact {
  display: grid;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 768px) {
  .contact { grid-template-columns: 1fr 1fr; }
}
.contact__links { display: grid; gap: 0.75rem; }
.contact__links a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}
.contact__links a:hover {
  border-color: hsl(var(--primary) / 0.2);
  background: hsl(var(--card));
}
.contact__links span {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary) / 0.4);
}
.contact__links strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--primary));
}
.legal {
  font-size: 0.75rem;
  color: hsl(var(--primary) / 0.35);
  margin-top: 0.25rem;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1.75rem 0 2.5rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer p {
  font-size: 0.8125rem;
  color: hsl(var(--primary) / 0.4);
}

/* ── Investment form ───────────────────────────────── */
.investment-modal {
  width: min(100% - 2rem, 31rem);
  margin: auto;
  padding: 0;
  border: 1px solid hsl(var(--primary) / 0.1);
  border-radius: 1.25rem;
  background: hsl(var(--background));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}
.investment-modal::backdrop {
  background: hsl(var(--primary) / 0.38);
  backdrop-filter: blur(7px);
}
.investment-modal__card {
  position: relative;
  padding: 2rem;
}
.investment-modal__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 1.25rem 0 0 1.25rem;
  background: var(--brand-green);
}
.investment-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid hsl(var(--primary) / 0.12);
  border-radius: 50%;
  color: hsl(var(--primary) / 0.55);
  font-size: 1.35rem;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.investment-modal__close:hover { color: hsl(var(--primary)); background: hsl(var(--primary) / .05); }
.investment-modal h2 {
  margin-top: .4rem;
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  line-height: .98;
}
.investment-modal h2 span { color: hsl(var(--primary) / .48); }
.investment-modal__lead {
  max-width: 25rem;
  margin: 1rem 0 1.5rem;
  color: hsl(var(--primary) / .58);
  line-height: 1.55;
}
.investment-modal__field {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  color: hsl(var(--primary) / .62);
  font-size: .78rem;
  font-weight: 500;
}
.investment-modal__field input {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem .9rem;
  border: 1px solid hsl(var(--primary) / .14);
  border-radius: .75rem;
  background: hsl(var(--background));
  color: var(--brand-green);
  caret-color: var(--brand-green);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.investment-modal__field input::placeholder { color: hsl(var(--primary) / .32); }
.investment-modal__field input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 16%, transparent);
}
.investment-modal__error {
  min-height: 1.15rem;
  margin-top: .5rem;
  color: hsl(var(--error));
  font-size: .75rem;
}
.investment-modal__submit { width: 100%; margin-top: .25rem; }
.investment-modal__note {
  margin-top: .9rem;
  color: hsl(var(--primary) / .38);
  font-size: .72rem;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .investment-modal__card { padding: 1.5rem; }
}

/* ── Responsive ─────────────────────────────────────── */
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }
.hide-lg { display: inline; }
@media (min-width: 1024px) { .hide-lg { display: none; } }

@media (max-width: 768px) {
  body.is-menu-open { overflow: hidden; }
  .logo img { width: 6.5rem; }
  .mobile-menu {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    background: hsl(var(--background));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.5rem);
    transition: opacity .18s ease, transform .18s ease;
  }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
  .mobile-menu__logo img { display: block; width: 6.5rem; height: auto; }
  .mobile-menu__close {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid hsl(var(--primary) / .14);
    border-radius: 50%;
    color: hsl(var(--primary));
  }
  .mobile-menu__close svg { width: 1rem; height: 1rem; }
  .mobile-menu__links {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 2rem;
    border-top: 1px solid hsl(var(--border));
  }
  .mobile-menu__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.8rem;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--primary));
    font-size: 1.05rem;
    font-weight: 500;
  }
  .mobile-menu__links i { color: hsl(var(--primary) / .35); font-size: 1.45rem; font-style: normal; font-weight: 400; }
  .mobile-menu__bottom { padding-top: 1rem; }
  .mobile-menu__invest {
    width: 100%;
    padding: .92rem 1.25rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--background));
    font-size: .9rem;
    font-weight: 500;
  }
  .nav__links {
    display: none;
    position: fixed;
    top: var(--site-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: hsl(var(--background) / 0.98);
    border-bottom: 1px solid hsl(var(--border));
    padding: 0.5rem 0 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
  }
  .nav__right .btn, .nav-invest { display: none; }
  .nav-invest-mobile {
    display: none;
    padding: .62rem .95rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--background));
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .nav.is-solid .nav-invest-mobile { display: inline-flex; }
  .burger { display: grid; }
  .hero__cta { flex-wrap: nowrap; gap: .5rem; width: 100%; }
  .hero__cta .btn { flex: 0 1 auto; padding-inline: .72rem; font-size: .78rem; }
  .showcase__cap { flex-direction: column; align-items: flex-start; }
  .steps__item { grid-template-columns: 3rem 1fr; gap: 0.75rem; }
}
