/* ============ Fonts ============ */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-ext.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-cyrillic.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Tokens ============
   Тема одна (тёмная), как у бренда. У каждого направления свой акцент,
   на странице используется только акцент её направления. */

:root {
  --bg: #09090b;
  --bg-2: #0d0d11;
  --surface: #121217;
  --surface-2: #19191f;
  --line: #24242c;
  --line-2: #363641;
  --text: #f2f2f4;
  --dim: #a9a9b4;
  --faint: #7c7c88;

  --c-ecom: #00ff88;
  --c-ads: #ffd60a;
  --c-mkt: #ff4fa0;
  --c-social: #2fe0ff;
  --c-auto: #a98bff;
  --c-eco: #ff8a2a;

  --accent: var(--c-ecom);
  --accent-ink: #04110a;
  --accent-glow: color-mix(in srgb, var(--accent) 38%, transparent);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  /* форма: карточки 14px, кнопки 12px, чипы и переключатели круглые */
  --r-card: 14px;
  --r-btn: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

body[data-dir="ads"] { --accent: var(--c-ads); --accent-ink: #171300; }
body[data-dir="mkt"] { --accent: var(--c-mkt); --accent-ink: #1c0410; }
body[data-dir="social"] { --accent: var(--c-social); --accent-ink: #021417; }
body[data-dir="auto"] { --accent: var(--c-auto); --accent-ink: #0f0826; }
body[data-dir="eco"] { --accent: var(--c-eco); --accent-ink: #1a0b00; }

/* ============ Base ============ */

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  /* пересчитывается от акцента страницы, а не от корня */
  --accent-glow: color-mix(in srgb, var(--accent) 38%, transparent);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* фоновая сетка бренда, только декоративный слой */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font: 700 16px/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px var(--accent-glow); transform: translateY(-2px); }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgb(255 255 255 / 0.02); }
.btn-ghost:hover { border-color: var(--accent); }

.btn i { font-size: 20px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============ Header ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { font: 800 24px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; flex: none; }
.logo b { color: var(--accent); font-weight: inherit; }

.tabs { display: flex; gap: 4px; margin: 0 auto; }

.tab {
  --tab: var(--c-ecom);
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  font: 600 15px/1 var(--font-body);
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.tab[data-dir="ads"] { --tab: var(--c-ads); }
.tab[data-dir="mkt"] { --tab: var(--c-mkt); }
.tab[data-dir="social"] { --tab: var(--c-social); }
.tab[data-dir="auto"] { --tab: var(--c-auto); }
.tab[data-dir="eco"] { --tab: var(--c-eco); }

.tab:hover { color: var(--tab); background: color-mix(in srgb, var(--tab) 8%, transparent); }
.tab[aria-current="page"] { color: var(--tab); }

.tabs .tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -17px;
  height: 2px;
  border-radius: 2px;
  background: var(--tab);
  box-shadow: 0 0 14px var(--tab);
}

.header .btn { height: 42px; padding: 0 18px; font-size: 15px; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 49;
  background: var(--bg);
  padding: 28px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.is-open { display: flex; }
.mobile-menu .tab { font: 800 30px/1.2 var(--font-display); padding: 12px 0; color: var(--tab); }
.mobile-menu .btn { margin-top: 24px; }

/* ============ Hero ============ */

.hero { position: relative; padding: 64px 0 56px; overflow: hidden; isolation: isolate; }

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 64px;
  align-items: start;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.5; }

.hero h1 {
  grid-column: 1 / -1;
  font: 800 clamp(2.3rem, 6.3vw, 6rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 .accent { text-shadow: 0 0 48px var(--accent-glow); }

.hero-sub { max-width: 40ch; font-size: 20px; line-height: 1.55; color: var(--dim); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual { position: relative; min-width: 0; }

.constellation { width: 100%; aspect-ratio: 1 / 1; }

/* ============ Marquee ============ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track { display: flex; gap: 48px; width: max-content; font: 600 22px/1 var(--font-display); color: var(--faint); white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "+"; color: var(--accent); font-weight: 400; }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Stats ============ */

.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { padding: 44px 28px 44px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }

.stat-num { font: 800 clamp(1.9rem, 2.9vw, 3.2rem)/1 var(--font-display); white-space: nowrap; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.5em; color: var(--accent); margin-left: 4px; }
.stat p { margin-top: 12px; color: var(--dim); font-size: 15px; line-height: 1.45; max-width: 24ch; }

/* ============ Sections ============ */

.section { padding: 128px 0; position: relative; }
.section-tight { padding-top: 0; }

.kicker { display: inline-block; margin-bottom: 20px; font: 500 14px/1 var(--font-mono); color: var(--accent); }

.title { font: 800 clamp(2.1rem, 4.8vw, 4.3rem)/1.04 var(--font-display); letter-spacing: -0.035em; max-width: 18ch; text-wrap: balance; }

.lead { margin-top: 24px; max-width: 60ch; font-size: 19px; color: var(--dim); }

/* ============ Tiles / bento ============ */

.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }

.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 4;
  padding: 30px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}

.tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.tile.span-3 { grid-column: span 3; }
.tile.span-5 { grid-column: span 5; }
.tile.span-6 { grid-column: span 6; }
.tile.span-7 { grid-column: span 7; }
.tile.span-8 { grid-column: span 8; }
.tile.span-12 { grid-column: span 12; }
.tile.row-2 { grid-row: span 2; }

.tile-hot {
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / 0.2), transparent 45%),
    var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.tile.tile-hot > p, .tile.tile-hot .tile-list li { color: color-mix(in srgb, var(--accent-ink) 82%, var(--accent)); font-weight: 500; }
.tile-hot .tile-list li::before, .tile-hot .ico { color: var(--accent-ink); }

.ico { font-size: 34px; color: var(--accent); line-height: 1; }

.tile h3 { margin-top: 18px; font: 700 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.tile > p { margin-top: 12px; color: var(--dim); font-size: 16px; }

.tile-list { margin-top: 18px; display: grid; gap: 9px; }
.tile-list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--dim); }
.tile-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.tile-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

/* ============ Demos ============ */

.demo {
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}

.demo-search .q { display: flex; align-items: center; gap: 10px; color: var(--text); min-height: 22px; }
.demo-search .q i { color: var(--accent); font-size: 18px; }
.demo-search .caret { display: inline-block; width: 8px; height: 18px; background: var(--accent); vertical-align: -3px; margin-left: 2px; }
.demo-search .fix { margin-top: 12px; color: var(--dim); min-height: 22px; }
.demo-search .fix b { color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .demo-search .caret { animation: blink 1s steps(2) infinite; }
}

@keyframes blink { 50% { opacity: 0; } }

.fall { display: grid; gap: 10px; }
.fall-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.fall-row span { color: var(--dim); font-size: 13px; }
.fall-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fall-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--accent); transform-origin: left; width: var(--w); }
.fall-total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: baseline; }
.fall-total b { color: var(--accent); font-size: 20px; font-family: var(--font-display); }

html.js .fall-bar { transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 220ms); }
html.js .is-in .fall-bar { transform: scaleX(1); }

.log { display: grid; gap: 6px; align-content: start; min-height: 9.5em; }
.log-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; color: var(--dim); animation: log-in 0.5s var(--ease) both; }
.log-line .t { color: var(--faint); }
.log-line .s { font-weight: 700; }
.log-line .s.ok { color: var(--accent); }
.log-line .s.warn { color: var(--c-ads); }
.log-line .s.block { color: #ff5a6a; }

@keyframes log-in { from { opacity: 0; transform: translateY(6px); } }

.ticket { border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 22px; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; font: 500 13px/1.4 var(--font-mono); color: var(--faint); }
.ticket h4 { margin-top: 12px; font: 700 18px/1.35 var(--font-body); }
.ticket p { margin-top: 6px; color: var(--dim); font-size: 15px; }
.ticket-shot { margin-top: 14px; height: 76px; border-radius: 8px; border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font: 500 13px var(--font-mono); }
.ticket-shot i { font-size: 20px; }

.steps-track { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps-track span { padding: 10px 6px; border-radius: 999px; border: 1px solid var(--line-2); text-align: center; font: 600 12.5px/1 var(--font-mono); color: var(--faint); transition: all 0.4s var(--ease); }
.steps-track span.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 24px -4px var(--accent-glow); }

.ticket-reply { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--text); font-size: 15px; opacity: 0; transform: translateY(6px); transition: all 0.5s var(--ease); }
.ticket-reply.is-on { opacity: 1; transform: none; }
.ticket-reply small { display: block; margin-bottom: 4px; font: 500 12px var(--font-mono); color: var(--accent); }

/* мини-витрина в конструкторе дизайна */
.studio { border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--bg-2); padding: 22px; }
.studio-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 18px; }
.studio-controls .label { font: 500 12px/1 var(--font-mono); color: var(--faint); margin-right: 10px; }
.swatches, .seg { display: inline-flex; gap: 8px; align-items: center; }

.swatch { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--bg-2); outline: 2px solid transparent; background: var(--sw); cursor: pointer; transition: transform 0.2s var(--ease), outline-color 0.2s; }
.swatch[aria-pressed="true"] { outline-color: var(--text); transform: scale(1.08); }
.swatch { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); }

.seg button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); font: 600 13px var(--font-body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.shop { --shop-brand: #00a862; --shop-radius: 12px; --shop-font: var(--font-body); border-radius: 12px; background: #f5f5f1; color: #16161a; padding: 16px; font-family: var(--shop-font); }
.shop-bar { display: flex; align-items: center; gap: 12px; }
.shop-logo { font: 800 18px/1 var(--shop-font); letter-spacing: -0.02em; }
.shop-logo b { color: var(--shop-brand); transition: color 0.35s; }
.shop-search { flex: 1; height: 34px; border-radius: var(--shop-radius); background: #fff; border: 1px solid #e1e1dc; font-size: 13px; color: #8a8a90; display: flex; align-items: center; padding: 0 12px; transition: border-radius 0.35s; }
.shop-cards { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shop-card { border-radius: var(--shop-radius); background: #fff; border: 1px solid #e9e9e4; padding: 10px; transition: border-radius 0.35s; }
.shop-img { height: 72px; border-radius: calc(var(--shop-radius) * 0.7); background: #ecece6; display: grid; place-items: center; font-size: 30px; color: #b0b0a6; transition: border-radius 0.35s; }
.shop-name { margin-top: 8px; font-size: 12px; line-height: 1.3; color: #3a3a40; }
.shop-price { margin-top: 4px; font-weight: 800; font-size: 14px; }
.shop-buy { margin-top: 8px; height: 30px; border-radius: var(--shop-radius); background: var(--shop-brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; transition: background-color 0.35s, border-radius 0.35s; }

/* ============ Split sections ============ */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .title { font-size: clamp(2rem, 3.6vw, 3.3rem); }

.feature-list { margin-top: 36px; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.feature-list i { font-size: 28px; color: var(--accent); }
.feature-list b { display: block; font: 700 18px/1.3 var(--font-body); }
.feature-list span { display: block; margin-top: 4px; color: var(--dim); font-size: 16px; }
.feature-list code, .tile code { font: 500 0.9em var(--font-mono); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 1px 6px; border-radius: 6px; }

/* ============ Terminal ============ */

.term { border-radius: var(--r-card); border: 1px solid var(--line-2); background: #07070a; box-shadow: 0 40px 120px -40px var(--accent-glow); overflow: hidden; }
.term-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 13px/1 var(--font-mono); color: var(--faint); }
.term-head b { color: var(--accent); font-weight: 600; }
.term-body { padding: 20px 18px 24px; font: 400 14px/1.7 var(--font-mono); }
.term-body .log { min-height: 13.6em; }

/* ============ Modules ============ */

.filters { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }

.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); font: 600 14px var(--font-body); cursor: pointer; transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip sup { font: 500 11px var(--font-mono); margin-left: 4px; opacity: 0.75; }

.modules { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.module {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 9%, transparent), transparent 50%),
    var(--surface);
  transition: border-color 0.3s;
}

.module:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.module.is-hidden { display: none; }
.module .ico { font-size: 30px; }
.module h3 { margin-top: 16px; font: 700 17px/1.25 var(--font-display); letter-spacing: -0.01em; }
.module p { margin-top: 8px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.module .tag { display: block; margin-top: 14px; font: 500 12px/1.4 var(--font-mono); color: var(--faint); }

.module-wide { grid-column: span 2; }
.module-cta { display: block; text-decoration: none; background: radial-gradient(500px 240px at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--surface); border-style: dashed; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.module-cta .tag { color: var(--accent); }
.module-ads { border-color: color-mix(in srgb, var(--c-ads) 45%, var(--line)); }
.module-ads .ico { color: var(--c-ads); }

/* ============ Color block другого направления ============ */

.band {
  --accent: var(--band);
  --accent-glow: color-mix(in srgb, var(--band) 38%, transparent);
  position: relative;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--band) 35%, var(--line));
  background:
    radial-gradient(900px 500px at 85% 0%, color-mix(in srgb, var(--band) 14%, transparent), transparent 60%),
    var(--surface);
  padding: 72px;
  overflow: hidden;
}

.band[data-dir="ads"] { --band: var(--c-ads); --accent-ink: #171300; }

/* ============ Pipeline ============ */

.pipe { width: 100%; height: auto; overflow: visible; }
.pipe .node rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.pipe .node text { fill: var(--text); font: 700 15px var(--font-body); }
.pipe .node .sub { fill: var(--faint); font: 500 12px var(--font-mono); }
.pipe .wire { stroke: var(--line-2); stroke-width: 2; fill: none; stroke-dasharray: 4 6; }
.pipe .pulse { fill: var(--accent); }
.pipe .node.hot rect { fill: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); stroke: var(--accent); }
.pipe .node.hot text { fill: var(--accent); }

/* ============ Steps ============ */

.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 44px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.step h3 { margin-top: 22px; font: 700 20px/1.2 var(--font-display); }
.step p { margin-top: 10px; color: var(--dim); font-size: 16px; }

/* ============ Directions ============ */

.dirs { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.dir {
  --d: var(--c-ecom);
  position: relative;
  display: block;
  padding: 24px;
  min-height: 220px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--d) 10%, transparent), transparent 70%), var(--surface);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.dir[data-dir="ads"] { --d: var(--c-ads); }
.dir[data-dir="mkt"] { --d: var(--c-mkt); }
.dir[data-dir="social"] { --d: var(--c-social); }
.dir[data-dir="auto"] { --d: var(--c-auto); }
.dir[data-dir="eco"] { --d: var(--c-eco); }

.dir:hover { border-color: var(--d); transform: translateY(-4px); }
.dir i { font-size: 34px; color: var(--d); }
.dir h3 { margin-top: 36px; font: 800 18px/1.1 var(--font-display); color: var(--d); letter-spacing: -0.02em; }
.dir p { margin-top: 10px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.dir::after { content: "→"; position: absolute; top: 24px; right: 26px; font: 400 24px/1 var(--font-body); color: var(--d); transition: transform 0.3s var(--ease); }
.dir:hover::after { transform: translateX(4px); }

/* ============ Contacts ============ */

.cta { position: relative; padding: 120px 0 72px; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.cta-title { font: 800 clamp(2.6rem, 7vw, 6.4rem)/0.98 var(--font-display); letter-spacing: -0.04em; max-width: 13ch; }
.cta-title .accent { text-shadow: 0 0 60px var(--accent-glow); }
.cta-grid { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.cta-grid .lead { margin-top: 0; }

.contact-list { display: grid; gap: 26px; margin-top: 36px; }
.contact-list dt { font: 500 13px/1 var(--font-mono); color: var(--faint); }
.contact-list dd { margin-top: 8px; font: 700 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--font-display); letter-spacing: -0.02em; }

.requisites { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); color: var(--dim); font-size: 15px; line-height: 1.8; }
.requisites h3 { font: 700 16px/1.3 var(--font-display); color: var(--text); margin-bottom: 12px; }

.todo { background: #ffe066; color: #3d2f00; border-radius: 4px; padding: 2px 8px; font-family: var(--font-body); font-size: 0.78em; font-weight: 700; letter-spacing: 0; }

.footer { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ============ Ads page parts ============ */

.pipe-scroll { margin-top: 56px; overflow-x: auto; padding-bottom: 8px; }
.pipe-scroll .pipe { min-width: 900px; }

.feed-demo { margin-top: 28px; display: grid; gap: 10px; }
.feed-card, .feed-ad { border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 16px 18px; }
.feed-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.feed-card dt { font: 500 12px/1 var(--font-mono); color: var(--faint); }
.feed-card dd { margin-top: 6px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.feed-arrow { justify-self: center; color: var(--accent); font-size: 22px; line-height: 1; }
.feed-ad { background: #f6f6f3; border-color: transparent; color: #16161a; }
.feed-ad-title { color: #1f4fd1; font-size: 17px; font-weight: 700; line-height: 1.35; }
.feed-ad-url { margin-top: 2px; font-size: 13px; color: #0a7a3e; }
.feed-ad-text { margin-top: 6px; font-size: 15px; line-height: 1.45; color: #2b2b30; }

.report { border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--bg-2); padding: 26px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.report-head b { font: 700 18px/1.2 var(--font-display); }
.report-head span { font: 500 12px var(--font-mono); color: var(--faint); }
.report-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.report-row > span:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--dim); }
.report-cap { border-top: 0; padding-top: 0; font: 500 12px var(--font-mono); color: var(--faint); }
.report-cap > span:nth-child(2) { color: var(--faint); }
.bar { position: relative; display: flex; align-items: center; gap: 10px; font: 600 14px var(--font-mono); font-variant-numeric: tabular-nums; }
.bar i { display: block; height: 8px; width: calc(var(--v) * 100%); max-width: 70%; border-radius: 999px; background: var(--accent); transform-origin: left; }
.bar.is-bad i { background: #ff5a6a; }
.bar.is-bad { color: #ff7b88; }
html.js .report .bar i { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.3s; }
html.js .report.is-in .bar i { transform: scaleX(1); }
.report-note { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, #ff5a6a 10%, transparent); color: var(--text); font-size: 14.5px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  html.js .report .bar i { transform: none; transition: none; }
}

@media (max-width: 767px) {
  .feed-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feed-card > div:first-child { grid-column: 1 / -1; }
  .report { padding: 18px; }
  .report-row { font-size: 13.5px; gap: 8px; }
}

/* ============ Social page parts ============ */

.post { border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; max-width: 480px; margin-left: auto; box-shadow: 0 40px 120px -40px var(--accent-glow); }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.post-head div { flex: 1; min-width: 0; }
.post-head b { display: block; font-size: 15px; line-height: 1.2; }
.post-head span { font-size: 13px; color: var(--faint); }
.post-head i { font-size: 22px; color: var(--faint); }
.post-ava { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 16px var(--font-display); }
.post img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.post-body { padding: 14px 16px 4px; font-size: 15px; line-height: 1.5; color: var(--dim); }
.post-body b { color: var(--text); }
.post-link { margin-top: 6px; color: var(--accent); font-weight: 700; }
.post-foot { display: flex; gap: 20px; padding: 12px 16px 16px; color: var(--dim); font: 600 14px var(--font-mono); }
.post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.post-foot i { font-size: 20px; color: var(--accent); }

.gallery { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.g-1 { grid-column: span 5; grid-row: span 2; }
.g-2 { grid-column: span 4; }
.g-3 { grid-column: span 3; grid-row: span 2; }
.g-4 { grid-column: span 4; }
.g-5 { grid-column: span 7; grid-row: span 2; }
.g-6 { grid-column: span 5; grid-row: span 2; }

.mb-demo { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; }
.mb-bg { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.8); }
.mb { position: absolute; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.mb-list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mb-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgb(12 12 16 / 0.86); backdrop-filter: blur(8px); color: #fff; font: 700 14px var(--font-body); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6); transition: opacity 0.3s var(--ease), transform 0.35s var(--ease); transition-delay: calc(var(--k, 0) * 40ms); }
.mb-item i { font-size: 22px; color: var(--c); }
.mb-item:nth-child(1) { --k: 3; } .mb-item:nth-child(2) { --k: 2; } .mb-item:nth-child(3) { --k: 1; }
.mb.is-closed .mb-item { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; }
.mb-btn { width: 60px; height: 60px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 30px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 36px -8px var(--accent-glow); transition: transform 0.3s var(--ease); }
.mb-btn:hover { transform: scale(1.06); }
.mb-btn:active { transform: scale(0.96); }

@media (max-width: 1024px) {
  .post { margin: 0 auto; }
}

@media (max-width: 767px) {
  .gallery { grid-auto-rows: 120px; gap: 10px; margin-top: 40px; }
  .g-1, .g-5 { grid-column: span 12; grid-row: span 2; }
  .g-2, .g-3, .g-4, .g-6 { grid-column: span 6; grid-row: span 1; }
  .mb-item { font-size: 12.5px; padding: 8px 12px 8px 10px; }
}

/* ============ Home parts ============ */

.hero-home .hero-visual { margin-top: -40px; }
.hero-home .constellation { max-width: 620px; margin-left: auto; }
.hero-note { margin-top: 40px; font-size: 13px; color: var(--faint); max-width: 36ch; }
.hero-note::before { content: "→ "; color: var(--accent); }
@media (hover: none) { .hero-note { display: none; } }
.studio-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

.tile-list b { color: var(--text); font-weight: 700; }

.sec-grid { margin-top: 56px; display: grid; gap: 16px; }
.sec-grid .term-body .log { min-height: 13.6em; }
.sec-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sec-list li { padding: 22px 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
.sec-list i { grid-row: span 2; font-size: 28px; color: var(--accent); }
.sec-list b { font: 700 17px/1.3 var(--font-display); }
.sec-list span { margin-top: 4px; color: var(--dim); font-size: 15px; line-height: 1.5; }

.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.band .title { max-width: 12ch; }
.band-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.band-list li { padding: 24px; border-radius: var(--r-card); background: rgb(0 0 0 / 0.35); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.band-list b { display: block; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-display); color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.band-list span { display: block; margin-top: 10px; color: var(--dim); font-size: 15px; line-height: 1.45; }

@media (max-width: 1024px) {
  .hero-home .hero-visual { margin-top: 0; }
  .hero-home .constellation { margin: 0 auto; }
  .sec-grid, .band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .band-list li { padding: 18px; }
  .sec-list { grid-template-columns: minmax(0, 1fr); }
  .module-wide { grid-column: auto; }
  .hero-note { margin-top: 24px; }
}

/* ============ Marketing page parts ============ */

.band-mkt { --band: var(--c-mkt); --accent-ink: #1c0410; }

.promo-stack { display: grid; gap: 14px; max-width: 560px; margin-left: auto; }
.promo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; line-height: 1.35; box-shadow: 0 30px 90px -30px var(--accent-glow); }
.promo-bar b { font-size: 18px; font-variant-numeric: tabular-nums; }
.promo-code { padding: 6px 10px; border-radius: 8px; border: 2px dashed currentColor; font: 800 14px/1 var(--font-mono); }
.promo-card { padding: 22px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--surface); }
.promo-card-top { display: flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); color: var(--faint); }
.promo-card-top i { font-size: 20px; color: var(--accent); }
.promo-card h4 { margin-top: 12px; font: 700 18px/1.35 var(--font-body); }
.promo-rules { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.promo-rules li { padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.promo-rules span { display: block; font: 500 12px var(--font-mono); color: var(--faint); }
.promo-rules b { display: block; margin-top: 4px; font-size: 15px; }

.wheel-demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--surface); }
.wheel-wrap { position: relative; width: 300px; aspect-ratio: 1; }
.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0 45deg, #1d1d25 45deg 90deg,
    color-mix(in srgb, var(--accent) 55%, #fff) 90deg 135deg, #1d1d25 135deg 180deg,
    var(--accent) 180deg 225deg, #1d1d25 225deg 270deg,
    color-mix(in srgb, var(--accent) 55%, #fff) 270deg 315deg, #1d1d25 315deg 360deg);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 0 7px var(--line-2), 0 30px 90px -30px var(--accent-glow);
  transform: rotate(var(--rot, 0deg));
  transition: transform 4.2s cubic-bezier(0.12, 0.8, 0.1, 1);
}
.wheel::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: var(--bg-2); box-shadow: 0 0 0 3px var(--line-2); }
.wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  margin: -10px 0 0 -45px;
  text-align: center;
  font: 800 13px/20px var(--font-display);
  color: var(--text);
  transform: rotate(calc(var(--k) * 45deg + 22.5deg)) translateY(-104px);
}
.wheel span:nth-child(odd) { color: var(--accent-ink); }
.wheel-pointer { position: absolute; z-index: 2; left: 50%; top: -12px; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; border-top: 22px solid var(--text); filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.5)); }
.wheel-side h4 { font: 800 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.wheel-side p { margin-top: 10px; color: var(--dim); font-size: 15.5px; }
.wheel-side .btn { margin-top: 22px; }
.wheel-result { min-height: 1.6em; font-weight: 700; color: var(--accent) !important; }

.seo-tpl { margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font: 500 13.5px/1.5 var(--font-mono); }
.log-line.no-t { grid-template-columns: 64px minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
  .wheel { transition: none; }
}

@media (max-width: 1024px) {
  .promo-stack { margin: 0 auto; }
}

@media (max-width: 767px) {
  .wheel-demo { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 24px 18px; text-align: center; }
  .wheel-wrap { width: 260px; }
  .wheel span { transform: rotate(calc(var(--k) * 45deg + 22.5deg)) translateY(-90px); font-size: 12px; }
  .promo-rules { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .log-line.no-t { grid-template-columns: 56px minmax(0, 1fr); }
  .log-line.no-t .s { display: inline; }
}

/* ============ Core deep-dive parts ============ */

.inline-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.inline-link:hover { border-bottom-color: var(--accent); }

.core-map { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.core-map a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font: 600 15px/1.2 var(--font-body); color: var(--text); transition: border-color 0.2s, transform 0.2s var(--ease); }
.core-map a:hover { border-color: var(--accent); transform: translateY(-2px); }
.core-map i { font-size: 22px; color: var(--accent); flex: none; }

/* демо режимов фильтра */
.fdemo { border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--bg-2); padding: 22px; }
.fdemo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.fdemo-top .label { font-size: 12px; color: var(--faint); }
.fdemo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 16px; }
.fdemo-panel { position: relative; padding: 18px; border-radius: 12px; background: #f5f5f1; color: #16161a; color-scheme: light; }
.fdemo-choice { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; color: #6a6a72; }
.fdemo-choice[hidden] { display: none; }
.seg-mini button { height: 26px; padding: 0 10px; font-size: 12px; border-color: #d8d8d2; color: #55555c; }
.seg-mini button[aria-pressed="true"] { background: #16161a; color: #fff; border-color: #16161a; }
.fdemo-h { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.fdemo-panel label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; cursor: pointer; }
.fdemo-panel input { width: 16px; height: 16px; accent-color: #00a862; cursor: pointer; }
.fdemo-panel em { font-style: normal; font-size: 12.5px; color: #8a8a90; font-variant-numeric: tabular-nums; }
.fdemo-bubble { position: absolute; right: -10px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: #16161a; color: #fff; font-size: 13px; box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.5); transform: translateX(100%); white-space: nowrap; }
.fdemo-bubble[hidden] { display: none; }
.fdemo-bubble button { height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: #00d27a; color: #04110a; font: 700 12.5px var(--font-body); cursor: pointer; }
.fdemo-result { display: flex; flex-direction: column; justify-content: center; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.fdemo-result .mono { font-size: 12px; color: var(--faint); }
.fdemo-result b { margin-top: 6px; font: 800 clamp(2rem, 3.4vw, 3rem)/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; transition: transform 0.25s var(--ease); }
.fdemo-result b.bump { transform: scale(1.08); }
.fdemo-note { margin-top: 14px; color: var(--dim); font-size: 14px; line-height: 1.5; }

/* чип превращается в страницу */
.seodemo { margin-top: 24px; display: grid; gap: 12px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 14px var(--font-body); color: var(--dim); transition: all 0.35s var(--ease); }
.qchip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seo-card { padding: 18px 20px; border-radius: 12px; background: #f6f6f3; color: #16161a; }
.seo-url { font-size: 12.5px; color: #0a7a3e; }
.seo-h1 { margin-top: 8px; font: 800 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.seo-title { margin-top: 6px; color: #1f4fd1; font-size: 15px; font-weight: 600; }
.seo-checks { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 12.5px; color: #3a3a40; }
.seo-checks li::before { content: "✓ "; color: #00a862; font-weight: 800; }
[data-sd] { transition: opacity 0.25s; }
.seodemo.is-swap [data-sd] { opacity: 0; }

/* поиск: факты */
.search-side { display: grid; gap: 14px; align-self: start; }
.search-side .demo { margin-top: 0; }
.search-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.search-facts li { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.search-facts b { display: block; font: 800 28px/1 var(--font-display); color: var(--accent); }
.search-facts span { display: block; margin-top: 8px; color: var(--dim); font-size: 14px; line-height: 1.45; }

/* пятишаговый процесс */
.flow5 { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.flow5 li { position: relative; padding: 24px 22px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.flow5 li:not(:last-child)::after { content: "→"; position: absolute; top: 26px; right: -13px; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.flow-n { font: 500 12px var(--font-mono); color: var(--faint); }
.flow5 i { display: block; margin-top: 14px; font-size: 32px; color: var(--accent); }
.flow5 b { display: block; margin-top: 14px; font: 700 17px/1.25 var(--font-display); letter-spacing: -0.01em; }
.flow5 li > span:last-child { display: block; margin-top: 8px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.flow5 + .bento { margin-top: 16px; }

.big-num { font: 800 clamp(1.6rem, 2.3vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .big-num + p { margin-top: 12px; }

.places { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.places span { padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text); font: 500 12.5px var(--font-mono); }

/* проблема и решение */
.problems { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.problem { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.problem .was { position: relative; padding-left: 18px; color: var(--faint); font-size: 15.5px; line-height: 1.55; }
.problem .was::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: #ff5a6a; }
.problem .now { position: relative; padding-left: 18px; color: var(--text); font-size: 16px; line-height: 1.55; }
.problem .now::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--accent); }

/* скорость */
.speed-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.speed { padding: 30px; border-radius: var(--r-card); border: 1px solid var(--line); background: radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--surface); }
.speed b { display: block; font: 800 clamp(2rem, 3.6vw, 3.3rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--accent); white-space: nowrap; }
.speed span { display: block; margin-top: 14px; color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.tile-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 12px; }
.speed-list { margin-top: 36px; }

/* экосистема: мини-карточки на главной */
.eco-mini { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.eco-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.25s, transform 0.25s var(--ease); }
.eco-card:hover { border-color: var(--c-eco); transform: translateY(-3px); }
.eco-card i { font-size: 30px; color: var(--c-eco); }
.eco-card b { margin-top: 6px; font: 700 16px/1.2 var(--font-display); }
.eco-card span { color: var(--dim); font-size: 14px; line-height: 1.45; }

/* экосистема: карточки продуктов */
.products { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product { padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); background: radial-gradient(600px 240px at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--surface); }
.product header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product .ico { font-size: 38px; }
.status { padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); font: 500 12.5px var(--font-mono); color: var(--accent); }
.product h3 { margin-top: 22px; font: 800 28px/1.1 var(--font-display); letter-spacing: -0.025em; }
.product-lead { margin-top: 12px; font-size: 17px; color: var(--text); line-height: 1.5; }
.product-pain { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.product-pain b { color: var(--text); }
.product-hot { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

@media (max-width: 1180px) {
  .core-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .eco-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow5 li:nth-child(3)::after { display: none; }
}

@media (max-width: 1024px) {
  .fdemo-body { grid-template-columns: minmax(0, 1fr); }
  .fdemo-bubble { right: 12px; transform: none; }
  .problems { grid-template-columns: minmax(0, 1fr); }
  .speed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-list.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .core-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .core-map a { padding: 12px; font-size: 14px; }
  .flow5 { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .flow5 li::after { display: none !important; }
  .speed-grid { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .speed { padding: 22px; }
  .tile-list.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .eco-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seo-checks { grid-template-columns: minmax(0, 1fr); }
  .product { padding: 22px; }
  .product h3 { font-size: 23px; }
  .problems { margin-top: 36px; }
}

/* ============ Social page: plan and page mock ============ */

.plan { max-width: 560px; margin-left: auto; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 40px 120px -40px var(--accent-glow); overflow: hidden; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.plan-head b { font: 700 16px var(--font-display); }
.plan-head span { font-size: 12px; color: var(--faint); }
.plan-days { margin: 0; padding: 8px 0; list-style: none; }
.plan-days li { display: grid; grid-template-columns: 34px 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 20px; }
.plan-days li + li { border-top: 1px solid var(--line); }
.plan-day { font-size: 13px; color: var(--faint); text-transform: lowercase; }
.plan-days i { font-size: 24px; color: var(--accent); }
.plan-days b { display: block; font-size: 15px; line-height: 1.3; }
.plan-days span:not(.plan-day) { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }

.mb-page { position: absolute; inset: 0; background: #f5f5f1; padding: 18px; }
.mb-page-bar { padding-bottom: 14px; border-bottom: 1px solid #e3e3de; }
.mb-page .shop-logo { font-size: 18px; color: #16161a; }
.mb-page .shop-logo b { color: #00a862; }
.mb-page-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mb-page-grid div { aspect-ratio: 4 / 3; border-radius: 12px; background: #ebebe5; display: grid; place-items: center; font-size: 44px; color: #b4b4aa; }

@media (max-width: 1024px) {
  .plan { margin: 0 auto; }
}

.flow-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-six li:nth-child(3)::after, .flow-six li:nth-child(6)::after { display: none; }

/* ============ Reveal ============ */

html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .fall-bar { transform: none; transition: none; }
  .log-line { animation: none; }
  .btn, .dir, .tile, .module, .steps-track span, .ticket-reply { transition: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1180px) {
  .tabs, .header .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-visual { max-width: 560px; width: 100%; justify-self: center; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tile, .tile.span-3, .tile.span-5, .tile.span-7 { grid-column: span 6; }
  .tile.span-8, .tile.span-12 { grid-column: span 12; }
  .tile.row-2 { grid-row: auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split.flip > :first-child { order: 0; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dirs .dir:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
  .band { padding: 48px 36px; }
  .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header .wrap { height: 64px; }
  .mobile-menu { inset: 64px 0 0; padding: 24px 16px; }
  .hero { padding: 36px 0 40px; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .marquee-track { font-size: 17px; gap: 32px; }
  .marquee-track span { gap: 32px; }
  .stats .wrap { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .section-tight { padding-top: 0; }
  .lead { font-size: 17px; }
  .bento { margin-top: 40px; gap: 12px; }
  .tile, .tile.span-3, .tile.span-5, .tile.span-6, .tile.span-7, .tile.span-8 { grid-column: span 12; padding: 22px; }
  .tile-list.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .modules, .steps, .dirs { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 36px 20px; border-radius: 18px; }
  .shop-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-cards .shop-card:nth-child(3) { display: none; }
  .cta { padding: 80px 0 56px; }
  .term-body { font-size: 12.5px; }
  .log-line { grid-template-columns: auto minmax(0, 1fr); }
  .log-line .t { display: none; }
}
