/* Rosetiq — публичная страница.
   Палитра и рецепты стекла — из продукта (frontend/src/index.css, docs/design.md §2, §6):
   тёмные зоны (hero, CTA, подвал) — dark-glass рецепт §6.5, светлые секции — white-glass §6.1,
   фон секций — тональный градиент light-темы §2.1. Копия, а не импорт: страница собирается
   без сборочного шага и не делает ни одного внешнего запроса. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-opsz.woff2") format("woff2-variations");
}

:root {
  --teal: #1a6b8a;
  --teal-2: #2e8eb0;
  --teal-3: #4aa8cc;
  --teal-deep: #0e3a50;
  --teal-rgb: 46, 142, 176;

  --navy-0: #0a0f1a;
  --navy-1: #0d1422;
  --navy-2: #0b1120;

  --ink: #0b0f1a;
  --ink-2: #1e293b;
  --ink-3: #475569;

  --on-dark: #e8ecef;
  --on-dark-2: #b5bdcc;
  --on-dark-3: #8a93a6;

  --light-a: #e6ebf2;
  --light-b: #d7e1eb;
  --light-c: #cfdbe7;

  --radius: 18px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-0);
  color: var(--ink-2);
  font-family: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.04rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 3px;
  border-radius: 4px;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

strong {
  font-weight: 600;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 40;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 32;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 50;
}

.skip:focus {
  left: 0;
}

/* ---------- атмосфера тёмных зон (§2.3 волны и блобы) ---------- */

.dark {
  position: relative;
  color: var(--on-dark);
  background: linear-gradient(180deg, var(--navy-0) 0%, var(--navy-1) 48%, var(--navy-2) 100%);
  isolation: isolate;
  overflow: hidden;
}

.dark h1,
.dark h2,
.dark h3 {
  color: #fff;
}

.dark p {
  color: var(--on-dark-2);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  will-change: transform;
}

.blob-1 {
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  left: -14vw;
  top: -22vw;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.38) 0%, rgba(var(--teal-rgb), 0) 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-2 {
  width: 44vw;
  height: 44vw;
  max-width: 640px;
  max-height: 640px;
  right: -12vw;
  top: 10%;
  background: radial-gradient(circle, rgba(26, 107, 138, 0.32) 0%, rgba(26, 107, 138, 0) 62%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  left: 42%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}

.waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vw, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-5vw, 6vw, 0) scale(0.95); }
}

/* ---------- шапка: плавающая стеклянная капсула ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 0;
}

.top-in {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.55rem 0.7rem 0.55rem 0.95rem;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 60% 50% at 98% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%) padding-box,
    linear-gradient(135deg, rgba(10, 15, 26, 0.72), rgba(10, 15, 26, 0.55)) padding-box,
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.22) 100%) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.brand:hover {
  color: #fff;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.nav a {
  color: var(--on-dark-2);
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.nav .cta {
  margin-left: 0.4rem;
  background: #fff;
  color: var(--navy-0);
  font-weight: 600;
  padding: 0.48rem 0.95rem;
}

.nav .cta:hover {
  background: #e6f2f7;
  color: var(--navy-0);
}

/* Узкие экраны: бренд и «Sign in» в первой строке, ссылки — второй строкой.
   Без JavaScript и без гамбургера: все пункты остаются доступны. */
@media (max-width: 52rem) {
  .top-in {
    flex-wrap: wrap;
    position: relative;
    padding: 0.55rem 0.7rem 0.5rem 0.95rem;
    border-radius: 22px;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    margin: 0.2rem 0 0;
    gap: 0 0.1rem;
    font-size: 0.84rem;
    justify-content: flex-start;
  }

  .nav a {
    padding: 0.3rem 0.4rem;
  }

  .nav a:first-child {
    margin-left: -0.4rem;
  }

  .nav .cta {
    position: absolute;
    right: 0.7rem;
    top: 0.55rem;
    margin: 0;
  }
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-3), var(--teal-2) 55%, var(--teal));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(var(--teal-rgb), 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 14px 34px rgba(var(--teal-rgb), 0.45),
    0 3px 8px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-solid {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--teal-rgb), 0.28);
}

.btn-solid:hover {
  color: #fff;
  background: var(--teal-2);
}

.btn-line {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(11, 15, 26, 0.12);
}

.btn-line:hover {
  border-color: rgba(11, 15, 26, 0.3);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(1rem, 2vw, 1.75rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.02fr 1fr;
    gap: 3.5rem;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem 0.38rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.25rem;
}

.pill .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--teal-rgb), 0.25);
  position: relative;
}

.pill .dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--teal-3);
  box-shadow: 0 0 12px var(--teal-3);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.65; }
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
}

.grad {
  background: linear-gradient(92deg, #fff 0%, var(--teal-3) 45%, #9fd6ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  max-width: 50ch;
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 20;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-note {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--on-dark-2);
  max-width: 46ch;
}

.hero-note svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--teal-3);
}

.hero-note strong {
  color: #fff;
}

/* ---------- мок дашборда (dark glass §6.5) ---------- */

.mock {
  position: relative;
  perspective: 1600px;
}

.glass-d {
  background:
    radial-gradient(ellipse 60% 50% at 98% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%) padding-box,
    radial-gradient(ellipse 50% 45% at 2% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 55%) padding-box,
    linear-gradient(135deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.16)) padding-box,
    linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.2) 100%) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mock-win {
  padding: 1.1rem 1.15rem 1.2rem;
  transform: rotateY(-6deg) rotateX(3deg);
  transform-origin: 60% 50%;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.9s var(--ease);
}

.mock:hover .mock-win {
  transform: rotateY(-2deg) rotateX(1deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--on-dark-3);
  margin-bottom: 0.9rem;
}

.mock-bar .win-dots {
  display: flex;
  gap: 5px;
  margin-right: 0.3rem;
}

.mock-bar .win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.mock-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--on-dark-2);
}

.mock-bar .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.kpi {
  padding: 0.75rem 0.85rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.kpi .l {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.kpi .v {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi .v.glow {
  color: #9fe0f5;
  text-shadow: 0 0 18px rgba(var(--teal-rgb), 0.55);
}

.kpi .d {
  font-size: 0.72rem;
  margin-top: 0.3rem;
  color: #6ee7a8;
}

.kpi .d.neg {
  color: #fca5a5;
}

.mock-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.6rem;
}

.chart {
  padding: 0.8rem 0.9rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.chart .t,
.rows .t {
  font-size: 0.68rem;
  color: var(--on-dark-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  white-space: nowrap;
}

.chart .t span:last-child,
.rows .t span:last-child {
  color: var(--teal-3);
  text-transform: none;
  letter-spacing: 0;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 92px;
}

.bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--teal-3), var(--teal) 90%);
  height: calc(var(--h) * 1%);
  opacity: 0.9;
  transform-origin: bottom;
  animation: grow 1.2s var(--ease) both;
  animation-delay: calc(var(--n) * 55ms + 0.4s);
}

.bars i.p {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
}

@keyframes grow {
  from { transform: scaleY(0.08); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 0.9; }
}

.rows {
  padding: 0.8rem 0.9rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

.rows .r {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.38rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--on-dark-2);
  white-space: nowrap;
  overflow: hidden;
}

.rows .r:first-of-type {
  border-top: 0;
}

.rows .r b {
  color: #fff;
  font-weight: 600;
}

.rows .r .cov {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--on-dark-2);
}

.rows .r .cov i {
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.rows .r .cov i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--w) * 1%);
  border-radius: 3px;
  background: var(--teal-3);
}

.rows .r .cov i.warn::after {
  background: #fbbf24;
}

.float {
  position: absolute;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.8rem;
  color: var(--on-dark);
  z-index: 2;
  animation: hover-float 6s ease-in-out infinite;
}

.float b {
  display: block;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.float-1 {
  right: -1.4rem;
  top: -3.6rem;
}

.float-2 {
  left: -1.8rem;
  bottom: 0.2rem;
  animation-delay: -3s;
}

@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 40rem) {
  .float { display: none; }
  .mock-win { transform: none; }
  .mock-body { grid-template-columns: 1fr; }
}

.mock-cap {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--on-dark-3);
  text-align: right;
}

/* ---------- светлые секции (§2.1, §6.1) ---------- */

.light {
  position: relative;
  color: var(--ink-2);
  background: linear-gradient(180deg, var(--light-a) 0%, var(--light-b) 48%, var(--light-c) 100%);
  border-radius: 28px 28px 0 0;
  margin-top: -2.2rem;
  z-index: 2;
}

/* Световые пятна за стеклом (§2.2 + блобы §2.3): без них blur нечего размывать. */
.light::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 40% 26% at 72% 8%, rgba(150, 190, 235, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 34% 22% at 12% 42%, rgba(46, 142, 176, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 38% 24% at 86% 66%, rgba(124, 92, 191, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 36% 22% at 30% 92%, rgba(150, 190, 235, 0.4) 0%, transparent 70%);
}

/* Тонкий световой кант по верхней кромке светлой зоны — стекло, а не лист бумаги. */
.light::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

.light.tail {
  border-radius: 0;
  margin-top: 0;
}

[id] {
  scroll-margin-top: 5rem;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Первая секция после стыка зон: стык уже даёт воздух, лишний верх не нужен. */
.light > .section:first-child,
.deck > .section:first-child {
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section + .section {
  padding-top: 0;
}

/* Метка раздела: тихая, без декоративной черты. */
.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.7rem;
}

.dark .eyebrow {
  color: var(--teal-3);
}

.section-head {
  max-width: 56rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-3);
  max-width: 58ch;
}

/* Стекло светлых секций — рецепт левой панели приложения (`.app-sidebar` в
   frontend/src/index.css): белый тинт 0.32→0.2, голубой подсвет снизу-слева,
   blur 24px + saturate 1.4, тонкая граница, одна мягкая тень. Reveal у стекла —
   только opacity (без transform): Safari при transform+backdrop-filter
   перерисовывает текст белым. */
.glass {
  background:
    radial-gradient(ellipse 70% 30% at 0% 100%, rgba(170, 200, 240, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.55),
    0 12px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}

.js [data-reveal].glass:not(.in) {
  transform: none;
}

.glass:hover {
  transform: translateY(-3px);
  background:
    radial-gradient(ellipse 70% 30% at 0% 100%, rgba(170, 200, 240, 0.32) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.26));
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.75),
    0 18px 50px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Три столпа — большие карточки с мини-визуалами. */

.pillars {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 60rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(var(--teal-rgb), 0.16), rgba(var(--teal-rgb), 0.05));
  border: 1px solid rgba(var(--teal-rgb), 0.22);
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.pillar h3 {
  font-size: 1.3rem;
}

.pillar p {
  color: var(--ink-3);
  font-size: 0.98rem;
  margin: 0;
  max-width: none;
}

.pillar .viz {
  margin-top: auto;
  padding-top: 1.2rem;
}

/* мини-визуалы */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}

.spark i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  height: calc(var(--h) * 1%);
  opacity: 0.85;
}

.spark i.hi {
  background: linear-gradient(180deg, #4ade80, #16a34a);
}

.gauge {
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.gauge .g {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.gauge .g i {
  height: 8px;
  border-radius: 4px;
  background: rgba(11, 15, 26, 0.08);
  overflow: hidden;
  position: relative;
}

.gauge .g i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--w) * 1%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-2), var(--teal-3));
}

.gauge .g i.warn::after {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.gauge .g b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ring-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(var(--teal-2) calc(var(--p) * 1%), rgba(11, 15, 26, 0.08) 0);
  display: grid;
  place-items: center;
  flex: none;
}

.ring::after {
  content: attr(data-v);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f2f6fa;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Мини-визуалы оживают при появлении карточки; без JS стоят готовыми. */
.js [data-reveal]:not(.in) .spark i {
  transform: scaleY(0.06);
}

.spark i {
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--n, 0) * 60ms + 0.2s);
}

.spark i:nth-child(2) { --n: 1; }
.spark i:nth-child(3) { --n: 2; }
.spark i:nth-child(4) { --n: 3; }
.spark i:nth-child(5) { --n: 4; }
.spark i:nth-child(6) { --n: 5; }
.spark i:nth-child(7) { --n: 6; }
.spark i:nth-child(8) { --n: 7; }
.spark i:nth-child(9) { --n: 8; }
.spark i:nth-child(10) { --n: 9; }

.js [data-reveal]:not(.in) .gauge .g i::after {
  width: 0;
}

.gauge .g i::after {
  transition: width 1.1s var(--ease) 0.3s;
}

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.ring {
  --p: var(--pv, 0);
  transition: --p 1.3s var(--ease) 0.3s;
}

.js [data-reveal]:not(.in) .ring {
  --p: 0;
}

/* Модули по группам продукта */

.group-h {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.2rem 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.group-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(11, 15, 26, 0.1);
}

.caps {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 44rem) {
  .caps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .caps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cap {
  padding: 1.25rem 1.3rem 1.3rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.cap h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cap p {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin: 0;
  max-width: none;
}

.cap .src {
  display: block;
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.76rem;
  color: var(--teal);
  font-weight: 500;
}

.plan li b {
  color: var(--ink);
  font-weight: 650;
}

.mods {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-3);
}

.mods li {
  padding-left: 0.9rem;
  position: relative;
}

.mods li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-2);
}

.mods b {
  color: var(--ink);
  font-weight: 600;
}

/* Как это работает — три шага с линией */

.steps {
  display: grid;
  gap: 1rem;
  position: relative;
  counter-reset: step;
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 2.35rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--teal-rgb), 0.45), transparent);
  }
}

.step {
  counter-increment: step;
  padding: 1.4rem 1.4rem 1.5rem;
  position: relative;
}

.step .n {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-3), var(--teal));
  box-shadow: 0 6px 18px rgba(var(--teal-rgb), 0.35);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.step .n::before {
  content: counter(step);
}

.step p {
  color: var(--ink-3);
  font-size: 0.97rem;
  margin: 0;
  max-width: none;
}

/* Тарифы */

.plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 60rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan.hi {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    0 0 0 2px var(--teal-2),
    0 18px 50px rgba(var(--teal-rgb), 0.18);
}

.plan .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(var(--teal-rgb), 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.4rem;
}

.plan h3 {
  font-size: 1.45rem;
}

.plan .band {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 500;
}

.plan p {
  color: var(--ink-3);
  font-size: 0.94rem;
  margin: 0;
  max-width: none;
}

.plan ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-2);
  display: grid;
  gap: 0.4rem;
}

.plan li {
  position: relative;
  padding-left: 1.5rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(var(--teal-rgb), 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231a6b8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.plan .price {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* CTA */

.cta {
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
}

.cta h2 {
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.cta p {
  margin: 0 auto 1.8rem;
  max-width: 52ch;
}

.cta .actions {
  justify-content: center;
}

/* ---------- Smart Card: тёмная лента с бенто-сеткой карточек ----------
   Раскладка как в референсе владельца: одна высокая карта слева, широкая справа
   сверху, две малые справа снизу; нумерация 01/–04/ по углам. Карты — dark glass §6.5. */

/* .deck, не .band — .band занят строкой выручки в карточке тарифа. */
.deck {
  padding-bottom: 2.2rem;
  border-radius: 28px 28px 0 0;
  margin-top: -2.2rem;
  z-index: 3;
}

.deck .section-head .lede em {
  font-style: normal;
  color: #fff;
  font-weight: 500;
}

.bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 60rem) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
  }

  .b-tall {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
  }

  .b-wide {
    grid-column: 6 / span 7;
  }

  .b-small {
    grid-column: span 3;
  }

  .b-small + .b-small {
    grid-column: span 4;
  }
}

.bcard {
  padding: 1.15rem 1.25rem 1.2rem;
  color: var(--on-dark-2);
  font-size: 0.86rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.bcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Бегущий блик по стеклу — как sweep на логотипе в приложении. */
.bcard::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: sweep 9s linear infinite;
  animation-delay: calc(var(--i, 0) * 1.4s);
  pointer-events: none;
}

@keyframes sweep {
  0%, 55% { transform: translateX(-60%); }
  85%, 100% { transform: translateX(60%); }
}

.b-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.b-n {
  font-size: 0.78rem;
  color: var(--on-dark-3);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.b-t {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.b-sub {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin: 1rem 0 0.4rem;
}

.b-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  color: var(--on-dark-3);
}

.b-foot b {
  color: #fff;
  font-weight: 600;
}

.b-foot .warn {
  color: #fbbf24;
}

.b-foot .live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.b-foot .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.b-note {
  margin: 1.4rem 0 0;
  max-width: 62ch;
  font-size: 0.92rem;
}

.b-note strong {
  color: #fff;
}

/* 01 — composable card */
.plabel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--on-dark-2);
  margin-bottom: 1rem;
}

.plabel b {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

.plabel small {
  font-size: 0.76rem;
  color: var(--on-dark-3);
}

.pthumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(160deg, #6d4b8c, #1a6b8a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.k {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.kl {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  font-weight: 600;
}

/* .kval, не .kv — .kv занят списком определений на внутренних страницах. */
.kval {
  font-size: 1.25rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kval.glow {
  color: #9fe0f5;
  text-shadow: 0 0 16px rgba(var(--teal-rgb), 0.55);
}

.kd {
  font-size: 0.72rem;
  color: var(--on-dark-3);
}

.kd.up {
  color: #6ee7a8;
}

.kd.dn {
  color: #fca5a5;
}

.spk {
  width: 100%;
  height: 70px;
  display: block;
}

/* 02 — metrics over time */
.legend {
  display: flex;
  gap: 1.1rem;
  font-size: 0.76rem;
  color: var(--on-dark-2);
  margin-bottom: 0.5rem;
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.legend .l1 { background: var(--teal-3); }
.legend .l2 { background: rgba(255, 255, 255, 0.55); }

.mchart {
  width: 100%;
  height: clamp(150px, 22vw, 210px);
  display: block;
}

.gridy line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--on-dark-3);
  margin-top: 0.4rem;
}

/* Линии рисуются при появлении; без JS — нарисованы сразу. */
.draw {
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s var(--ease) 0.3s;
}

.js [data-reveal]:not(.in) .draw {
  stroke-dashoffset: 1600;
}

.js [data-reveal]:not(.in) .m-area,
.js [data-reveal]:not(.in) .spk-a {
  opacity: 0;
}

.m-area,
.spk-a {
  transition: opacity 1.2s ease 1.6s;
}

/* Точка бежит по линии — «живой» график. */
.m-dot {
  fill: #fff;
  stroke: var(--teal-3);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(74, 168, 204, 0.9));
  offset-path: path("M0 150 C 40 140, 60 120, 100 118 S 160 128, 200 110 S 260 70, 300 78 S 360 96, 400 70 S 460 40, 500 48 S 560 30, 600 24");
  animation: travel 7s linear infinite;
  animation-delay: 2.4s;
  opacity: 0;
}

@keyframes travel {
  0% { offset-distance: 0%; opacity: 0; }
  4% { opacity: 1; }
  96% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* 03 — stock projection */
.proj {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 96px;
  padding-top: 1.2rem;
}

.proj i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--teal-3), var(--teal));
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--n, 0) * 50ms + 0.2s);
}

.proj i.f {
  background: rgba(255, 255, 255, 0.16);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-bottom: 0;
}

.proj i.f.w {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.55);
}

.js [data-reveal]:not(.in) .proj i {
  transform: scaleY(0.05);
}

.proj i:nth-child(2) { --n: 1; }
.proj i:nth-child(3) { --n: 2; }
.proj i:nth-child(4) { --n: 3; }
.proj i:nth-child(5) { --n: 4; }
.proj i:nth-child(6) { --n: 5; }
.proj i:nth-child(7) { --n: 6; }
.proj i:nth-child(8) { --n: 7; }
.proj i:nth-child(9) { --n: 8; }
.proj i:nth-child(10) { --n: 9; }
.proj i:nth-child(11) { --n: 10; }
.proj i:nth-child(12) { --n: 11; }

.proj .mark {
  position: absolute;
  left: var(--x);
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.4);
  padding-left: 0.4rem;
  font-size: 0.68rem;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

/* 04 — fees waterfall */
.wf {
  display: grid;
  gap: 0.45rem;
  font-size: 0.76rem;
}

.wr {
  display: grid;
  grid-template-columns: 5.6rem 1fr 2.6rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark-2);
}

.wr b {
  text-align: right;
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wr i {
  position: relative;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.wr i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--l) * 1%);
  width: calc(var(--w) * 1%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-2), var(--teal-3));
  transition: width 1s var(--ease);
  transition-delay: calc(var(--n, 0) * 90ms + 0.2s);
}

.wr i.neg::after {
  background: rgba(252, 165, 165, 0.7);
}

.wr i.pos::after {
  background: linear-gradient(90deg, #22c55e, #6ee7a8);
}

.js [data-reveal]:not(.in) .wr i::after {
  width: 0;
}

.wr:nth-child(2) i { --n: 1; }
.wr:nth-child(3) i { --n: 2; }
.wr:nth-child(4) i { --n: 3; }
.wr:nth-child(5) i { --n: 4; }
.wr:nth-child(6) i { --n: 5; }

/* Перетаскивание карт: 03 и 04 меняются местами и возвращаются — цикл 14 с. */
@media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  .bento > article:nth-child(3) {
    animation: swap-a 14s var(--ease) infinite;
    animation-delay: 3s;
  }

  .bento > article:nth-child(4) {
    animation: swap-b 14s var(--ease) infinite;
    animation-delay: 3s;
  }

  .drag-hint {
    animation: hint 14s var(--ease) infinite;
    animation-delay: 3s;
  }
}

@keyframes swap-a {
  0%, 8% { transform: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); z-index: 1; }
  12% { transform: scale(1.03) rotate(-1deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); z-index: 5; }
  30% { transform: translateX(calc(133.4% + 1rem)) scale(1.03) rotate(1deg); z-index: 5; }
  34%, 58% { transform: translateX(calc(133.4% + 1rem)); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); z-index: 1; }
  62% { transform: translateX(calc(133.4% + 1rem)) scale(1.03) rotate(1deg); z-index: 5; }
  80% { transform: scale(1.03) rotate(-1deg); z-index: 5; }
  84%, 100% { transform: none; z-index: 1; }
}

@keyframes swap-b {
  0%, 12% { transform: none; }
  30%, 62% { transform: translateX(calc(-75% - 1rem)); }
  80%, 100% { transform: none; }
}

.drag-hint {
  position: absolute;
  right: 0.9rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-0);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

@keyframes hint {
  0%, 6% { opacity: 0; transform: translateY(6px); }
  10%, 32% { opacity: 1; transform: none; }
  38%, 100% { opacity: 0; transform: translateY(6px); }
}

/* ---------- Restock: проекция и рельсы ---------- */

.rs {
  padding-top: 0;
}

.rs-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 60rem) {
  .rs-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .rs-chart {
    grid-column: 1 / span 8;
  }

  .rs-side {
    grid-column: 9 / span 4;
  }

  .rs-rails {
    grid-column: 1 / -1;
  }
}

.rs-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.rs-chart {
  position: relative;
}

.rsvg {
  width: 100%;
  height: clamp(170px, 24vw, 240px);
  display: block;
}

.rs-today {
  fill: rgba(255, 255, 255, 0.35);
}

.rs-th {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.rs-arrive {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease) 2.4s;
}

.js [data-reveal]:not(.in) .rs-arrive {
  stroke-dashoffset: 120;
}

.js [data-reveal]:not(.in) .rs-area {
  opacity: 0;
}

.rs-area {
  transition: opacity 1.2s ease 1.8s;
}

.rs-order {
  fill: #fbbf24;
  stroke: var(--navy-0);
  stroke-width: 2;
}

.rs-order-ring {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.rs-labels {
  position: absolute;
  inset: 3.2rem 1.25rem 2.6rem;
  pointer-events: none;
}

.rs-l {
  position: absolute;
  font-size: 0.7rem;
  color: var(--on-dark-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateY(-110%);
}

.rs-l b {
  color: #fff;
}

.rs-lt {
  color: var(--on-dark-2);
}

.rs-lo {
  color: #fbbf24;
}

.rs-la {
  color: #6ee7a8;
}

.lt {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.lt-r {
  display: grid;
  grid-template-columns: 5.4rem 1fr 2.6rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--on-dark-2);
}

.lt-r b {
  text-align: right;
  color: #fff;
  font-weight: 600;
}

.lt-r i {
  position: relative;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lt-r i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--w) * 1%);
  border-radius: 3px;
  background: linear-gradient(90deg, #7c5cbf, #9f7fe0);
  transition: width 1s var(--ease) 0.3s;
}

.lt-r i.t::after {
  background: linear-gradient(90deg, var(--teal-2), var(--teal-3));
}

.lt-r i.r::after {
  background: linear-gradient(90deg, #22c55e, #6ee7a8);
}

.js [data-reveal]:not(.in) .lt-r i::after {
  width: 0;
}

.lt-note {
  font-size: 0.8rem;
  color: var(--on-dark-3);
  margin: 0.9rem 0 0;
}

.rail-row {
  display: grid;
  grid-template-columns: 11rem 1fr 9rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.rail-row:first-of-type {
  border-top: 0;
}

@media (max-width: 40rem) {
  .rail-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.rail-name {
  color: #fff;
  font-weight: 600;
}

.rail {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--l) * 1%);
  width: calc(var(--w) * 1%);
  border-radius: 6px;
  transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--l) * 12ms + 0.3s);
}

.js [data-reveal]:not(.in) .seg {
  transform: scaleX(0);
}

.seg.f { background: #7c5cbf; }
.seg.t { background: var(--teal-2); }
.seg.r { background: #22c55e; }
.seg.d { background: transparent; border: 1px dashed rgba(251, 191, 36, 0.7); }

.rail-today {
  position: absolute;
  left: var(--x);
  top: -4px;
  bottom: -4px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.rail-st {
  color: var(--on-dark-3);
  text-align: right;
}

.rail-st.ok { color: #6ee7a8; }
.rail-st.warn { color: #fbbf24; }

/* ---------- модули: компактные раскрывающиеся списки ---------- */

.modgrid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .modgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modpanel {
  padding: 1.1rem 1.2rem 0.6rem;
}

.modpanel-h {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.4rem;
}

.mod {
  border-top: 1px solid rgba(11, 15, 26, 0.07);
}

.mod:first-of-type {
  border-top: 0;
}

.mod summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  padding: 0.7rem 0;
  position: relative;
}

.mod summary::-webkit-details-marker {
  display: none;
}

.mod summary b {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.mod summary span {
  grid-column: 1;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.mod summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  margin-right: 0.2rem;
}

.mod[open] summary::after {
  transform: rotate(-135deg);
}

.mod summary:hover b {
  color: var(--teal-deep);
}

.mod p {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0 0 0.5rem;
  max-width: none;
  animation: rise 0.35s var(--ease) both;
}

.mod .src {
  display: block;
  font-size: 0.76rem;
  color: var(--teal);
  font-weight: 500;
  padding-bottom: 0.8rem;
}

/* ---------- модули: две ленты карточек навстречу друг другу ----------
   Бесконечная лента: набор карточек продублирован (второй — aria-hidden), трек
   уезжает ровно на ширину одного набора. Наведение — пауза. При reduced-motion
   ленты стоят и переносятся строками, дубли скрыты. */

.mods-sec {
  overflow: hidden;
}

.mods-sec .section-head {
  margin-bottom: 1.6rem;
}

.mq {
  display: grid;
  gap: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.mq-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: mq 70s linear infinite;
}

.mq-rev {
  animation-direction: reverse;
}

.mq:hover .mq-track {
  animation-play-state: paused;
}

.mq-set {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mcard {
  width: 21rem;
  flex: none;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mcard h3 {
  font-size: 1.05rem;
  margin: 0.1rem 0 0.15rem;
}

.mcard p {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin: 0;
  max-width: none;
}

.mcard .src {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.74rem;
  color: var(--teal);
  font-weight: 500;
}

.chip {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.c-fin { color: var(--teal-deep); background: rgba(var(--teal-rgb), 0.14); }
.c-prod { color: #4c2d8a; background: rgba(124, 92, 191, 0.16); }
.c-mkt { color: #14532d; background: rgba(34, 197, 94, 0.16); }

@media (prefers-reduced-motion: reduce) {
  .mq {
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 var(--gutter);
  }

  .mq-track {
    width: auto;
    flex-wrap: wrap;
  }

  .mq-set[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- контакты ---------- */

.steps3 {
  display: grid;
  gap: 1rem;
  counter-reset: cstep;
}

@media (min-width: 60rem) {
  .steps3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cstep {
  counter-increment: cstep;
  padding: 1.2rem 1.3rem 1.3rem;
}

.cstep::before {
  content: "0" counter(cstep);
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.cstep h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.cstep p {
  font-size: 0.92rem;
  color: var(--ink-3);
  margin: 0;
  max-width: none;
}

.cgrid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .cgrid {
    grid-template-columns: 7fr 5fr;
  }
}

.cform {
  padding: 1.5rem 1.6rem 1.6rem;
}

.cform h3 {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.clist {
  padding: 1.4rem 1.5rem 0.6rem;
}

.clist h3 {
  margin-bottom: 0.6rem;
}

.crow {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(11, 15, 26, 0.07);
  font-size: 0.94rem;
}

.crow:first-of-type {
  border-top: 0;
}

.crow dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.2rem;
}

.crow dd {
  margin: 0;
  color: var(--ink-2);
}

.crow dd a {
  font-weight: 500;
}

.crow .sub {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

/* ---------- подвал ---------- */

.foot {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  font-size: 0.93rem;
}

.foot-grid {
  display: grid;
  gap: 2rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 48rem) {
  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.foot h4 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.foot a {
  color: var(--on-dark-2);
}

.foot a:hover {
  color: #fff;
}

.foot p {
  color: var(--on-dark-2);
}

.entity {
  padding-top: 1.6rem;
  color: var(--on-dark-3);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: none;
}

.entity strong {
  color: var(--on-dark);
}

/* ---------- внутренние страницы ---------- */

/* Шапка внутренней страницы: заголовок документа, не плакат. */
.page-head {
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 clamp(3.5rem, 6vw, 4.5rem);
}

.page-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 28;
  max-width: 28ch;
  margin-bottom: 0.6rem;
}

.page-head .lede {
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 64ch;
  margin-bottom: 0;
}

.page-head .actions {
  margin-top: 1.4rem;
}

.updated {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--on-dark-3);
}

.prose {
  max-width: var(--measure);
}

.prose h2,
.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.6rem;
}

.prose h2:first-child,
.legal .eyebrow + h2 {
  margin-top: 0;
}

.prose h3,
.legal h3 {
  margin-top: 1.6rem;
}

.prose ul,
.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li,
.legal li {
  margin-bottom: 0.4rem;
}

.prose li::marker,
.legal li::marker {
  color: var(--teal);
}

.legal .section + .section {
  padding-top: 0;
}

.page-head .center-narrow h1 {
  max-width: none;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 15, 26, 0.08);
  border-radius: 4px;
  padding: 0.08em 0.35em;
  color: var(--ink);
}

.note {
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.3rem;
  border-left: 3px solid var(--teal-2);
  max-width: var(--measure);
}

.note > :last-child {
  margin-bottom: 0;
}

.panel {
  padding: 1.5rem 1.6rem;
}

.panel > :last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid p {
  max-width: none;
}

.card {
  padding: 1.35rem 1.4rem 1.45rem;
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-3);
  font-size: 0.96rem;
}

.kv {
  display: grid;
  gap: 0.9rem 1.6rem;
  margin: 0 0 1.4rem;
  max-width: var(--measure);
}

@media (min-width: 34rem) {
  .kv {
    grid-template-columns: 11rem 1fr;
  }
}

.kv dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.2rem;
}

.kv dd {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  padding: 0.3rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(11, 15, 26, 0.1);
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(11, 15, 26, 0.06);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th[scope="row"],
td.rowhead {
  color: var(--ink);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* форма */

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 15, 26, 0.12);
  border-radius: 10px;
  padding: 0.66rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--teal-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.2);
}

.hint {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.center-narrow {
  max-width: 46rem;
}

/* ---------- движение ---------- */

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) both;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.5s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Reveal при скролле: без JS ничего не прячется. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rise,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .mock-win {
    transform: none;
  }
}

/* Таблица субпроцессоров в privacy: короткие ячейки, вторичная строка — страна. */
.subs td.rowhead { white-space: normal; }
.subs td.rowhead small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
.subs td { font-size: 0.92rem; }

/* secondary line under a published price */
.price .pnote {
  display: block;
  margin-top: 0.2rem;
}

.pnote {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.86em;
  color: var(--ink-3);
}
