/* ==========================================================================
   itnovikov — стили
   Цвета и шрифты меняются в :root ниже.
   ========================================================================== */
:root {
  --ink: #0A0A0B;
  --ink-2: #121214;
  --ink-3: #1B1B1E;
  --ivory: #F7F2E9;
  --ivory-2: #EFE7D9;
  --paper: #FFFDF9;
  --gold: #C9A96E;
  --gold-2: #D4B483;
  --gold-deep: #9A7942;
  --gold-grad: linear-gradient(135deg, #F3E4C1 0%, #D4B483 32%, #C9A96E 58%, #9A7942 100%);
  --gold-soft: rgba(201, 169, 110, .14);
  --text-dark: #141414;
  --mute-dark: #6E6A63;
  --text-light: #F5F1EA;
  --mute-light: #9C978E;
  --line-dark: rgba(255, 255, 255, .09);
  --line-light: rgba(20, 20, 20, .08);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-soft: 0 1px 2px rgba(20, 16, 8, .04), 0 12px 32px -12px rgba(20, 16, 8, .14), 0 40px 80px -40px rgba(20, 16, 8, .18);
  --shadow-dark: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--ink); color: var(--text-light);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.dark { background: var(--ink); color: var(--text-light); }
.light { background: var(--ivory); color: var(--text-dark); }
.section { padding: clamp(96px, 13vw, 168px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.light .eyebrow { color: var(--gold-deep); }
.h2 {
  margin: 0; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
}
.lead { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 640px; }
.dark .lead { color: var(--mute-light); }
.light .lead { color: var(--mute-dark); }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease), color .4s;
  white-space: nowrap;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold {
  background: var(--gold-grad); color: #1A1408;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px -10px rgba(201, 169, 110, .65);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px -12px rgba(201, 169, 110, .8); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--text-light); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.btn--dark:hover { transform: translateY(-2px); background: #000; }
.btn--ghost-dark { border: 1px solid var(--line-light); }
.btn--ghost-dark:hover { background: rgba(0, 0, 0, .04); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px)); height: 60px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; background: rgba(14, 14, 16, .55); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px);
  color: var(--text-light); transition: background .6s var(--ease), border-color .6s var(--ease), color .6s;
}
.nav.on-light { background: rgba(255, 253, 249, .72); border-color: rgba(0, 0, 0, .06); color: var(--text-dark); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: url("../img/favicon.svg") center/cover; box-shadow: 0 0 0 1px rgba(201, 169, 110, .35); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; opacity: .72; transition: opacity .3s, background .3s; }
.nav__links a:hover { opacity: 1; background: rgba(127, 127, 127, .12); }

/* ---------- Reveal: blur → резкость, плавный ease-out ---------- */
.reveal { opacity: 0; filter: blur(14px); transform: translateY(28px); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; filter: blur(0); transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 120px; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 38%, rgba(201, 169, 110, .26), transparent 70%),
    radial-gradient(35% 40% at 18% 80%, rgba(212, 180, 131, .10), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { margin: 0; font-size: clamp(48px, 6.2vw, 92px); line-height: 1; letter-spacing: -.048em; font-weight: 700; }
@media (min-width: 901px) { .hero__title span { white-space: nowrap; } }
.hero__title span { display: block; }
.hero__title .gold-text { padding-bottom: .08em; }
.hero__lead { max-width: 560px; margin: 32px 0 0; font-size: clamp(17px, 1.7vw, 21px); color: var(--mute-light); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__orbit { position: absolute; z-index: 1; right: max(2vw, calc((100vw - 1280px) / 2)); top: 50%; width: min(440px, 33vw); height: 520px; transform: translateY(-50%); pointer-events: none; }
.orb-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-dark); font-size: 15px; font-weight: 600; white-space: nowrap;
  opacity: 0; filter: blur(12px); transform: translateY(20px);
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 1.4s var(--ease);
  animation: drift 9s ease-in-out infinite alternate;
}
.orb-card.in { opacity: 1; filter: none; transform: none; }
.orb-card .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }
.orb-card .ico svg { width: 18px; height: 18px; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -14px; } }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 32px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 2.4s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- ИКОНКИ ---------- */
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- МАНИФЕСТ ---------- */
.manifest__strike { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; color: var(--mute-dark); }
.manifest__strike s { text-decoration: none; position: relative; }
.manifest__strike s::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 3px; border-radius: 2px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .5s;
}
.manifest__strike.in s::after { transform: scaleX(1); }
#manifest .h2 { max-width: 21ch; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 88px); }
.feat {
  position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-soft);
  border: 1px solid rgba(201, 169, 110, .14); overflow: hidden;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 16, 8, .04), 0 24px 50px -20px rgba(120, 90, 40, .3); }
.feat::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 169, 110, .6), transparent); opacity: 0; transition: opacity .6s; }
.feat:hover::before { opacity: 1; }
.feat__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); margin-bottom: 22px; }
.feat h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.feat p { margin: 0; color: var(--mute-dark); font-size: 15px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.pillar {
  padding: 34px 30px; border-radius: var(--r-lg); background: var(--ink); color: var(--text-light);
  position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.pillar::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 169, 110, .28), transparent 70%); }
.pillar .ico { color: var(--gold-2); margin-bottom: 26px; }
.pillar .ico svg { width: 30px; height: 30px; }
.pillar h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; }
.pillar h3 { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar p { margin: 6px 0 0; color: var(--mute-light); }

/* ---------- ДЕМО ---------- */
#demos::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 50% 0%, rgba(201, 169, 110, .12), transparent 70%); }
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; position: relative; }
.demo__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 100px; }
.demo-tab {
  display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 18px;
  border: 1px solid transparent; transition: background .5s var(--ease), border-color .5s var(--ease);
}
.demo-tab .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--mute-light); transition: all .5s var(--ease); }
.demo-tab b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.demo-tab small { display: block; font-size: 13px; color: var(--mute-light); margin-top: 2px; line-height: 1.35; }
.demo-tab:hover { background: rgba(255, 255, 255, .04); }
.demo-tab.is-on { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border-color: rgba(201, 169, 110, .3); }
.demo-tab.is-on .ico { background: var(--gold-grad); color: #1A1408; }
.demo__stage {
  border-radius: 28px; padding: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 120px -40px rgba(201, 169, 110, .25), var(--shadow-dark); min-width: 0;
}
.demo__bar { display: flex; align-items: center; gap: 14px; padding: 8px 10px 14px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.demo__url { flex: 1; text-align: center; font-size: 13px; color: var(--mute-light); background: rgba(255, 255, 255, .05); border-radius: 9px; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.seg button { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--mute-light); transition: all .4s var(--ease); }
.seg button.is-on { background: rgba(255, 255, 255, .14); color: var(--text-light); }

/* --- Мини-приложение: две темы --- */
.app {
  --bg: #FBF8F2; --panel: #FFFFFF; --panel-2: #F4EEE3; --line: rgba(30, 24, 12, .08); --tx: #17140F; --mu: #857E71; --acc: #B08F55; --acc-ink: #1A1408;
  border-radius: 20px; background: var(--bg); color: var(--tx); height: 600px; overflow: hidden; position: relative;
  transition: background .6s var(--ease), color .6s var(--ease);
}
.app.theme-noir { --bg: #111113; --panel: #18181B; --panel-2: #202024; --line: rgba(255, 255, 255, .07); --tx: #F2EEE6; --mu: #8E8a82; --acc: #D4B483; }
.app__view { position: absolute; inset: 0; display: flex; animation: viewIn .9s var(--ease); }
@keyframes viewIn { from { opacity: 0; filter: blur(10px); transform: scale(.985); } to { opacity: 1; filter: none; transform: none; } }
.a-side { width: 200px; flex: none; padding: 20px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; background: var(--panel); }
.a-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; padding: 0 10px 18px; }
.a-brand i { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-grad); }
.a-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: var(--mu); text-align: left; transition: all .35s var(--ease); }
.a-nav svg { width: 17px; height: 17px; }
.a-nav:hover { background: var(--panel-2); color: var(--tx); }
.a-nav.is-on { background: var(--panel-2); color: var(--tx); font-weight: 600; }
.a-nav .badge { margin-left: auto; }
.a-main { flex: 1; min-width: 0; padding: 24px 22px; overflow: auto; }
.a-h { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.a-sub { margin: 0 0 22px; color: var(--mu); font-size: 13.5px; }
.a-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.a-row { display: flex; align-items: center; gap: 12px; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; font-size: 13.5px; font-weight: 600; background: var(--tx); color: var(--bg); transition: transform .3s var(--ease), opacity .3s; }
.a-btn:hover { transform: translateY(-1px); }
.a-btn:active { transform: scale(.97); }
.a-btn--gold { background: var(--gold-grad); color: #1A1408; }
.a-btn--line { background: transparent; color: var(--tx); border: 1px solid var(--line); }
.a-btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel-2); color: var(--mu); white-space: nowrap; }
.badge--gold { background: rgba(201, 169, 110, .18); color: var(--acc); }
.badge--ok { background: rgba(84, 160, 110, .14); color: #3F8F5D; }
.theme-noir .badge--ok { color: #7CC796; }
.badge--blue { background: rgba(90, 130, 200, .14); color: #4E74B8; }
.theme-noir .badge--blue { color: #8EAEE8; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--gold-grad); color: #1A1408; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.a-input { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--tx); outline: none; transition: border-color .3s; font-size: 14px; }
.a-input:focus { border-color: var(--acc); }
.a-label { display: block; font-size: 12px; color: var(--mu); margin: 0 0 6px; }
.a-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel-2); margin-bottom: 20px; }
.a-tabs button { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--mu); transition: all .35s var(--ease); }
.a-tabs button.is-on { background: var(--panel); color: var(--tx); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.toggle { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--line); transition: background .35s var(--ease); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.toggle.is-on { background: var(--acc); }
.toggle.is-on::after { transform: translateX(16px); }
.theme-ivory .toggle:not(.is-on) { background: #E3DCCF; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list-row:first-child { border-top: 0; }
.muted { color: var(--mu); }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }

/* Кабинет */
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cab-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.cab-head .avatar { width: 56px; height: 56px; font-size: 19px; }
.order-steps { display: flex; gap: 6px; margin-top: 10px; }
.order-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.order-steps i.on { background: var(--gold-grad); }

/* Магазин */
.shop { display: grid; grid-template-columns: 1fr 300px; width: 100%; }
.shop__list { padding: 24px 26px; overflow: auto; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod-grid.is-list { grid-template-columns: 1fr; }
.prod { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.prod:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .25); }
.prod__img { aspect-ratio: 4/3; border-radius: 11px; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.prod__img svg { width: 34px; height: 34px; }
.is-list .prod { flex-direction: row; align-items: center; }
.is-list .prod__img { width: 64px; aspect-ratio: 1; flex: none; }
.is-list .prod__img svg { width: 24px; height: 24px; }
.prod b { font-size: 14px; display: block; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.is-list .prod__foot { margin: 0 0 0 auto; }
.cart { border-left: 1px solid var(--line); background: var(--panel); padding: 22px 20px; display: flex; flex-direction: column; min-height: 0; }
.cart__items { flex: 1; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.cart__item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; animation: viewIn .6s var(--ease); }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; }
.qty button { width: 26px; height: 26px; font-size: 15px; color: var(--mu); }
.qty button:hover { color: var(--tx); }
.qty span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 600; }
.cart__total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.cart__total .a-row { justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.cart__total .big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.empty { text-align: center; color: var(--mu); font-size: 13.5px; padding: 40px 10px; }
.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Админка и чат */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat small { color: var(--mu); font-size: 12px; }
.stat b { display: block; white-space: nowrap; font-size: 21px; letter-spacing: -.02em; margin-top: 4px; }
.spark { height: 34px; margin-top: 10px; width: 100%; }
.chat { width: 290px; flex: none; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--panel); }
.chat__head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__head b { font-size: 14px; display: block; }
.chat__body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; display: flex; gap: 8px; align-items: flex-end; animation: msgIn .6s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.msg__bubble { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--panel-2); font-size: 13.5px; line-height: 1.4; }
.msg__bubble small { display: block; font-size: 11px; color: var(--mu); margin-bottom: 2px; font-weight: 600; }
.msg.me { align-self: flex-end; }
.msg.me .msg__bubble { background: var(--gold-grad); color: #1A1408; border-radius: 14px 14px 4px 14px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mu); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form .a-btn { width: 40px; padding: 0; height: 40px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 4px; }
.quick button { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--mu); transition: all .3s; }
.quick button:hover { color: var(--tx); border-color: var(--acc); }

/* CRM */
.crm { padding: 24px 26px; width: 100%; display: flex; flex-direction: column; min-width: 0; }
.board { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; min-height: 0; }
.col { background: var(--panel-2); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; transition: background .3s, box-shadow .3s; }
.col.is-over { box-shadow: inset 0 0 0 2px var(--acc); }
.col__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 6px; font-size: 13px; font-weight: 600; }
.col__head .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.col__sum { font-size: 11.5px; color: var(--mu); padding: 0 4px 4px; }
.deal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; cursor: grab; user-select: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .3s; animation: viewIn .6s var(--ease); }
.deal:hover { box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .35); }
.deal.dragging { opacity: .4; }
.deal b { display: block; margin-bottom: 4px; font-size: 13.5px; }
.deal__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.deal__move { display: flex; gap: 4px; }
.deal__move button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); color: var(--mu); display: grid; place-items: center; transition: all .3s; }
.deal__move button:hover:not(:disabled) { color: var(--tx); border-color: var(--acc); }
.deal__move button:disabled { opacity: .3; cursor: default; }
.deal__move svg { width: 13px; height: 13px; }

/* Email */
.mail { display: grid; grid-template-columns: 300px 1fr; width: 100%; }
.mail__form { padding: 22px 20px; border-right: 1px solid var(--line); background: var(--panel); overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.mail__prev { padding: 26px; overflow: auto; display: flex; justify-content: center; background: var(--panel-2); }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tpl-pick button { padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--mu); transition: all .35s var(--ease); }
.tpl-pick button.is-on { border-color: var(--acc); color: var(--tx); background: rgba(201, 169, 110, .1); }
.seg-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-pick button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--mu); transition: all .3s; }
.seg-pick button.is-on { background: var(--tx); color: var(--bg); border-color: transparent; }
.letter { width: 100%; max-width: 420px; background: #fff; color: #1a1a1a; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); align-self: flex-start; transition: all .6s var(--ease); }
.letter__meta { padding: 12px 16px; font-size: 12px; color: #777; border-bottom: 1px solid #eee; background: #fafafa; }
.letter__meta b { color: #222; }
.letter__hero { padding: 34px 26px; transition: background .6s var(--ease), color .6s; }
.letter__hero h4 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.letter__hero p { margin: 0; font-size: 14px; opacity: .8; }
.letter__btn { display: inline-block; margin-top: 18px; padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: all .6s var(--ease); }
.letter__body { padding: 20px 26px 26px; font-size: 13px; color: #555; }
.letter__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.letter__cards i { aspect-ratio: 4/3; border-radius: 10px; display: block; }
.tpl-lux .letter__hero { background: #0E0E10; color: #F3EBDD; }
.tpl-lux .letter__btn { background: var(--gold-grad); color: #1A1408; }
.tpl-lux .letter__cards i { background: linear-gradient(135deg, #EFE5D2, #D9C59C); }
.tpl-clean .letter__hero { background: #F7F2E9; color: #17140F; }
.tpl-clean .letter__btn { background: #17140F; color: #fff; }
.tpl-clean .letter__cards i { background: linear-gradient(135deg, #F1ECE3, #E3D9C7); }
.tpl-promo .letter__hero { background: linear-gradient(135deg, #C9A96E, #8E6E3C); color: #fff; }
.tpl-promo .letter__btn { background: #fff; color: #5D4720; }
.tpl-promo .letter__cards i { background: linear-gradient(135deg, #2A2420, #4A3D2E); }

/* Роли */
.roles { padding: 24px 26px; width: 100%; overflow: auto; display: grid; grid-template-columns: 1fr 230px; gap: 18px; align-items: start; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.perm-table th { text-align: center; font-size: 12px; font-weight: 600; color: var(--mu); padding: 0 6px 10px; }
.perm-table th:first-child { text-align: left; }
.perm-table td { padding: 10px 6px; border-top: 1px solid var(--line); text-align: center; }
.perm-table td:first-child { text-align: left; }
.perm-table .toggle { display: inline-block; vertical-align: middle; }
.perm-table tr.is-sel td { background: rgba(201, 169, 110, .07); }
.perm-table tr { cursor: pointer; }
.role-prev { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: sticky; top: 0; }
.role-prev .a-nav { cursor: default; animation: viewIn .5s var(--ease); }
.role-prev .a-nav.off { opacity: .3; text-decoration: line-through; }

/* Автоматизация */
.auto { padding: 24px 26px; width: 100%; overflow: auto; }
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 520px; margin: 0 auto; }
.node { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: all .5s var(--ease); }
.node .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--acc); }
.node .ico svg { width: 19px; height: 19px; }
.node b { font-size: 14px; display: block; }
.node small { color: var(--mu); font-size: 12.5px; }
.node.off { opacity: .45; }
.node.run { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(201, 169, 110, .15); }
.node.done .ico { background: var(--gold-grad); color: #1A1408; }
.link { width: 2px; height: 22px; background: var(--line); position: relative; overflow: hidden; }
.link.run::after { content: ""; position: absolute; inset: 0; background: var(--gold-grad); animation: flowDown .5s var(--ease) forwards; transform: translateY(-100%); }
@keyframes flowDown { to { transform: none; } }
.trigger-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.log { margin-top: 18px; font-size: 12.5px; color: var(--mu); text-align: center; min-height: 20px; }

/* ---------- ПОРТФОЛИО ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-soft); border: 1px solid rgba(201, 169, 110, .12); transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.work:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(20, 16, 8, .04), 0 40px 80px -36px rgba(120, 90, 40, .35); }
.work--laptop { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 40px; padding: 48px; background: var(--ink); color: var(--text-light); border-color: rgba(201, 169, 110, .2); }
.work--laptop .work__text p { color: var(--mute-light); }
.work--phone { align-items: center; justify-content: center; background: linear-gradient(180deg, var(--paper), var(--ivory-2)); }
.work--phone .work__text { text-align: center; }
.work__tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; background: var(--gold-soft); color: var(--gold-2); }
.work__text h3 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.025em; }
.work--laptop .work__text h3 { font-size: clamp(30px, 3.6vw, 48px); }
.work__text p { margin: 0; color: var(--mute-dark); font-size: 15px; }
.work__url { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.work--laptop .work__url { color: var(--gold-2); }
.work__url svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.work:hover .work__url svg { transform: translate(2px, -2px); }
.shot { overflow: hidden; background: #ddd; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.6s var(--ease); }
.work:hover .shot img { transform: scale(1.03); }

/* Браузер */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 50px -24px rgba(40, 30, 10, .35); }
.browser__bar { height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #F3EFE8; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.browser__bar .dots i { width: 9px; height: 9px; background: #D9D2C5; }
.browser__bar span:not(.dots) { flex: 1; margin-right: 40px; height: 20px; border-radius: 6px; background: #fff; font-size: 11px; color: #8a8478; display: grid; place-items: center; }
.browser .shot { aspect-ratio: 1440 / 840; }

/* Ноутбук */
.laptop { position: relative; padding-bottom: 4%; }
.laptop__lid { position: relative; margin: 0 7%; padding: 2.2% 2.2% 2.6%; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #2A2A2E, #121214); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -30px rgba(201, 169, 110, .35); }
.laptop__lid::before { content: ""; position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #333; }
.laptop .shot { aspect-ratio: 1440 / 860; border-radius: 6px; }
.laptop__base { position: relative; height: 18px; border-radius: 0 0 24px 24px / 0 0 18px 18px; background: linear-gradient(180deg, #D8D4CC, #9E998F 60%, #6E6A63); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .7); }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; margin-left: -8%; border-radius: 0 0 10px 10px; background: #8A857C; }

/* Телефон */
.phone { width: 196px; max-width: 70%; aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 44px; background: linear-gradient(145deg, #2C2C30, #0D0D0F); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 0 2px #C9A96E33, 0 40px 70px -30px rgba(40, 30, 10, .6); position: relative; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 20px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 999px; background: #000; }
.phone .shot { width: 100%; height: 100%; border-radius: 34px; }
.phone .shot img { object-position: 40% top; }

/* ---------- ПРОЦЕСС ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { position: relative; padding: 32px 28px 34px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line-dark); counter-increment: s; }
.step::before { content: "0" counter(s); position: absolute; right: 26px; top: 26px; font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, rgba(201, 169, 110, .45), rgba(201, 169, 110, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-grad); color: #1A1408; margin-bottom: 40px; }
.step h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--mute-light); font-size: 15.5px; }
.price { margin-top: 16px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: var(--r-xl); background: radial-gradient(80% 140% at 0% 0%, rgba(201, 169, 110, .22), transparent 60%), var(--ink-2); border: 1px solid rgba(201, 169, 110, .22); }
.price__title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.025em; }
.price__text { margin: 0; color: var(--mute-light); font-size: 17px; max-width: 520px; }
.price__badges { display: flex; flex-direction: column; gap: 10px; }
.price__badges span { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); font-weight: 600; font-size: 15px; }
.price__badges svg { color: var(--gold-2); width: 18px; height: 18px; flex: none; }

/* ---------- ФОРМА ---------- */
.lead-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.lead-copy { position: sticky; top: 120px; }
.next { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.next li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-light); font-weight: 600; }
.next li:first-child { border-top: 0; }
.next span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--ink); color: var(--gold-2); }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.contacts a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-soft); font-size: 14px; font-weight: 600; }
.form-card { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-xl); background: rgba(255, 253, 249, .8); border: 1px solid rgba(201, 169, 110, .2); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: relative; }
.field { position: relative; display: block; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 1px solid var(--line-light); background: #fff;
  font-size: 16px; color: var(--text-dark); outline: none; resize: vertical; transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.field textarea { min-height: 108px; }
.field span { position: absolute; left: 19px; top: 18px; font-size: 16px; color: var(--mute-dark); pointer-events: none; transition: all .35s var(--ease); transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 110, .16); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 9px; font-size: 12px; color: var(--gold-deep); }
.field.is-error input { border-color: #C0574A; box-shadow: 0 0 0 4px rgba(192, 87, 74, .12); }
.chips__label { margin: 22px 0 12px; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-light); background: #fff; font-size: 14px; font-weight: 500; transition: all .45s var(--ease); }
.chip { gap: 0; } .chip svg { width: 0; height: 14px; opacity: 0; margin-right: 0; transition: all .45s var(--ease); stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { border-color: var(--gold); }
.chip.is-on { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.chip.is-on svg { width: 14px; opacity: 1; margin-right: 6px; }
.form-note { margin: 14px 0 0; font-size: 12.5px; color: var(--mute-dark); text-align: center; }
.success { text-align: center; padding: 40px 10px; animation: viewIn 1s var(--ease); }
.success__icon { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); box-shadow: 0 20px 40px -16px rgba(201, 169, 110, .8); }
.success__icon svg { width: 34px; height: 34px; fill: none; stroke: #1A1408; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .9s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.025em; }
.success p { margin: 0 auto; max-width: 380px; color: var(--mute-dark); }
.success__picked { margin-top: 16px !important; font-size: 14px; }
.success .btn { margin-top: 28px; }

/* ---------- ФУТЕР ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--mute-light); }
.footer__inner p { margin: 0; }
.footer .nav__logo { color: var(--text-light); }

/* ---------- TOAST ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; filter: blur(8px); padding: 14px 22px; border-radius: 999px; background: rgba(16, 16, 18, .88); color: var(--text-light); font-size: 14px; font-weight: 500; border: 1px solid rgba(201, 169, 110, .3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: all .7s var(--ease); pointer-events: none; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; filter: none; transform: translate(-50%, 0); }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__orbit { opacity: .55; }
  .demo { grid-template-columns: 1fr; }
  .demo__tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 4px; }
  .demo__tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex: none; padding: 10px 14px 10px 10px; }
  .demo-tab small { display: none; }
  .demo-tab .ico { width: 34px; height: 34px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__orbit { display: none; }
  .feat-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; padding: 28px; }
  .lead-wrap { grid-template-columns: 1fr; }
  .lead-copy { position: static; }
  .work, .work--phone { grid-column: 1 / -1; grid-row: auto; }
  .work--laptop { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .work--phone { flex-direction: row; text-align: left; }
  .work--phone .work__text { text-align: left; }
  .phone { width: 180px; flex: none; }

  /* Демо на планшете/телефоне: колонки складываются, окно растёт по контенту */
  .app { height: auto; min-height: 520px; }
  .app__view { position: relative; inset: auto; flex-direction: column; }
  .a-side { width: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; scrollbar-width: none; }
  .a-side::-webkit-scrollbar { display: none; }
  .a-brand { display: none; }
  .a-nav { flex: none; }
  .a-main { padding: 20px 18px; overflow: visible; }
  .chat { width: 100%; border-left: 0; border-top: 1px solid var(--line); height: 420px; }
  .shop, .mail, .roles { grid-template-columns: 1fr; }
  .cart { border-left: 0; border-top: 1px solid var(--line); }
  .cart__items { max-height: 260px; }
  .mail__form { border-right: 0; border-bottom: 1px solid var(--line); }
  .crm, .auto, .roles, .shop__list { padding: 20px 16px; }
  .board { grid-template-columns: repeat(4, 210px); padding-bottom: 6px; }
  .col { max-height: none; }
  .role-prev { position: static; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .nav { top: 10px; height: 54px; padding-left: 18px; }
  .hero { padding: 120px 0 100px; }
  .hero__title { font-size: clamp(44px, 13vw, 64px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .feat-grid, .pillars { grid-template-columns: 1fr; }
  .feat { padding: 22px; display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
  .feat__ico { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .demo__bar { flex-wrap: wrap; }
  .demo__url { order: 3; flex-basis: 100%; }
  .seg { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .cab-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .work { padding: 18px; border-radius: 26px; }
  .work--phone { flex-direction: column; }
  .work--phone .work__text { text-align: center; }
  .laptop__lid { margin: 0 4%; border-radius: 14px 14px 0 0; }
  .laptop__base { height: 12px; }
  .price__badges span { font-size: 14px; }
  .perm-table th { font-size: 10.5px; padding: 0 2px 8px; }
  .perm-table td { padding: 9px 2px; }
  .perm-table .toggle { width: 34px; height: 20px; }
  .perm-table .toggle::after { width: 14px; height: 14px; }
  .perm-table .toggle.is-on::after { transform: translateX(14px); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   v2: пояснение к демо + новые демо (дашборды, Telegram-бот, рефералы)
   ========================================================================== */
.demo-note {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  margin: -24px 0 40px; padding: 24px 28px; border-radius: 24px;
  background: linear-gradient(120deg, rgba(201, 169, 110, .16), rgba(201, 169, 110, .04) 60%), rgba(255, 255, 255, .02);
  border: 1px solid rgba(201, 169, 110, .32);
}
.demo-note__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad); }
.demo-note__ico svg { width: 24px; height: 24px; fill: none; stroke: #1A1408; stroke-width: 2; stroke-linecap: round; }
.demo-note h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.demo-note p { margin: 0; color: var(--mute-light); font-size: 15.5px; max-width: 640px; }
.demo-note__badges { display: flex; flex-direction: column; gap: 8px; }
.demo-note__badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.demo-note__badges svg { width: 14px; height: 14px; color: var(--gold-2); }

/* Дашборд */
.dash { padding: 22px 24px; width: 100%; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: left; transition: all .45s var(--ease); }
.kpi small { color: var(--mu); font-size: 12px; display: block; }
.kpi b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #3F8F5D; }
.theme-noir .kpi em { color: #7CC796; }
.kpi.is-on { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(201, 169, 110, .14); }
.dash-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.chart-card { position: relative; display: flex; flex-direction: column; min-height: 0; }
.chart-wrap { position: relative; flex: 1; min-height: 190px; }
.chart-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-line { fill: none; stroke: url(#dGold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.4s var(--ease) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.chart-area { opacity: 0; animation: fadeArea 1.2s var(--ease) .3s forwards; }
@keyframes fadeArea { to { opacity: 1; } }
.chart-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: growBar .9s var(--ease) forwards; }
@keyframes growBar { to { transform: scaleY(1); } }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu); margin-top: 8px; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -120%); padding: 6px 10px; border-radius: 9px; background: var(--tx); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.chart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--panel); border: 3px solid var(--acc); opacity: 0; transition: opacity .25s; pointer-events: none; }
.chart-wrap:hover .chart-tip, .chart-wrap:hover .chart-dot { opacity: 1; }
.donut { display: flex; align-items: center; gap: 16px; }
.donut svg { width: 120px; height: 120px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray 1s var(--ease), stroke-dashoffset 1s var(--ease); }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; flex: 1; min-width: 0; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-weight: 600; }
.hbar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-top: 9px; }
.hbar span:first-child { width: 58px; color: var(--mu); }
.hbar__track { flex: 1; height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.hbar__fill { height: 100%; border-radius: 4px; background: var(--gold-grad); transform-origin: left; animation: growX 1s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* Telegram-бот */
.tg { display: grid; grid-template-columns: 230px 1fr 250px; width: 100%; min-height: 0; }
.tg__list { border-right: 1px solid var(--line); background: var(--panel); overflow: auto; padding: 14px 10px; }
.tg__item { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; text-align: left; transition: background .3s; }
.tg__item:hover, .tg__item.is-on { background: var(--panel-2); }
.tg__item b { font-size: 13px; display: block; }
.tg__item small { display: block; font-size: 12px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg__unread { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #2AABEE; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tg__chat { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.tg__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.tg-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(42, 171, 238, .14); color: #1F8FCB; font-size: 11.5px; font-weight: 600; }
.theme-noir .tg-badge { color: #6CC6F5; }
.tg-badge svg { width: 12px; height: 12px; }
.tg__phone-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-left: 1px solid var(--line); background: var(--panel-2); }
.tg__phone-wrap > small { font-size: 11.5px; color: var(--mu); text-align: center; }
.mini-phone { width: 196px; height: 380px; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #2C2C30, #0D0D0F); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55); }
.mini-phone__screen { height: 100%; border-radius: 27px; overflow: hidden; display: flex; flex-direction: column; background: #DCE7EF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.2' fill='%23b9cbd8'/%3E%3C/svg%3E"); color: #111; }
.mini-phone__top { background: #fff; padding: 22px 12px 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; border-bottom: 1px solid #e5e5e5; }
.mini-phone__top i { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); flex: none; }
.mini-phone__top b { display: block; font-size: 12px; }
.mini-phone__top small { color: #2AABEE; font-size: 10.5px; }
.mini-phone__body { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.tgm { max-width: 82%; padding: 6px 9px; border-radius: 12px; font-size: 11.5px; line-height: 1.35; background: #fff; align-self: flex-start; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: msgIn .5s var(--ease); }
.tgm.out { align-self: flex-end; background: #E1FEC6; }
.tgm.bot { background: #fff; }
.tgm-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.tgm-btns button { flex: 1; font-size: 10.5px; padding: 6px 4px; border-radius: 8px; background: rgba(255, 255, 255, .85); color: #2A8BC8; font-weight: 600; }
.mini-phone__input { display: flex; gap: 4px; padding: 6px; background: #fff; }
.mini-phone__input input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 11.5px; padding: 6px 8px; border-radius: 999px; background: #F1F1F1; color: #111; }
.mini-phone__input button { width: 28px; height: 28px; border-radius: 50%; background: #2AABEE; color: #fff; display: grid; place-items: center; }
.mini-phone__input svg { width: 14px; height: 14px; }
.msg__meta { display: block; font-size: 10.5px; color: var(--mu); margin-top: 3px; text-align: right; }
.msg.me .msg__meta { color: rgba(26, 20, 8, .6); }

/* Рефералы */
.ref { padding: 22px 24px; width: 100%; overflow: auto; }
.ref-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.ref-link { display: flex; gap: 8px; margin-top: 10px; }
.ref-link .a-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ref-stats div { padding: 12px; border-radius: 12px; background: var(--panel-2); }
.ref-stats small { font-size: 11.5px; color: var(--mu); display: block; }
.ref-stats b { font-size: 20px; letter-spacing: -.02em; }
.levels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mu); margin-top: 8px; }
.levels span.on { color: var(--acc); font-weight: 700; }
.progress { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--gold-grad); transition: width .9s var(--ease); }
.tree { margin-top: 4px; }
.tree .list-row { padding: 9px 0; }
.tree .sub { padding-left: 26px; position: relative; }
.tree .sub::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 50%; width: 10px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 6px; }

@media (max-width: 900px) {
  .demo-note { grid-template-columns: auto 1fr; margin-top: -16px; }
  .demo-note__badges { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-row, .ref-grid { grid-template-columns: 1fr; }
  .dash, .ref { padding: 18px 16px; }
  .tg { grid-template-columns: 1fr; }
  .tg__list { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .tg__item { width: auto; flex: none; }
  .tg__item small { max-width: 110px; }
  .tg__chat { min-height: 380px; }
  .tg__phone-wrap { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .demo-note { padding: 20px; gap: 14px; }
  .demo-note__ico { width: 40px; height: 40px; }
}
@media (min-width: 1101px) {
  .demo__tabs { gap: 2px; }
  .demo-tab { padding: 9px 14px; }
  .demo-tab .ico { width: 36px; height: 36px; }
  .demo-tab small { font-size: 12.5px; }
  .app { height: 640px; }
}
@media (max-width: 900px) { .demo-note__ico { align-self: start; } }

/* ==========================================================================
   v3: Кто за этим стоит + галерея + просмотр фото
   ========================================================================== */
.about { overflow: hidden; }
.about::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 50% at 85% 30%, rgba(201, 169, 110, .16), transparent 70%); }
.about + #process { border-top: 1px solid rgba(201, 169, 110, .18); background: var(--ink-2); }
.about__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__role { margin: 14px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--text-light); opacity: .85; }
.about__text { margin: 18px 0 0; color: var(--mute-light); font-size: 16.5px; line-height: 1.6; max-width: 560px; }
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 36px; }
.fact { padding: 20px 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line-dark); }
.fact b { display: block; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.05; font-weight: 700; }
.fact span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute-light); line-height: 1.4; }
.about__hero { position: relative; }
.g-item { position: relative; display: block; width: 100%; padding: 0; border-radius: 28px; overflow: hidden; cursor: zoom-in; background: #1a1a1c; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.g-item img { width: 100%; aspect-ratio: 1080 / 1256; object-fit: cover; transition: transform 1.6s var(--ease), filter 1s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 16px; text-align: left; font-size: 14px; font-weight: 600; color: #fff; background: rgba(14, 14, 16, .5); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transform: translateY(10px); transition: all .7s var(--ease); }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-item--hero { border-radius: 32px; box-shadow: 0 60px 120px -50px rgba(201, 169, 110, .45), 0 0 0 1px rgba(201, 169, 110, .25); }
.about__badge { position: absolute; left: -28px; bottom: 48px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(16, 16, 18, .72); border: 1px solid rgba(201, 169, 110, .3); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-dark); animation: drift 9s ease-in-out infinite alternate; }
.about__badge .logo-mark { width: 38px; height: 38px; border-radius: 11px; }
.about__badge b { display: block; font-size: 15px; }
.about__badge small { color: var(--gold-2); font-size: 12.5px; }
.gallery { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.gallery .g-item { border-radius: 24px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(6, 6, 7, .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; transition: opacity .45s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(620px, 100%); transform: scale(.96); filter: blur(8px); transition: transform .6s var(--ease), filter .6s var(--ease); }
.lightbox.open figure { transform: none; filter: none; }
.lightbox img { width: 100%; max-height: calc(100svh - 110px); object-fit: contain; border-radius: 22px; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--mute-light); font-size: 14px; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .08); }
.lightbox__nav { flex: none; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(201, 169, 110, .3); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__hero { order: -1; max-width: 460px; }
  .about__badge { left: 14px; bottom: 14px; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > div { flex: 0 0 72%; scroll-snap-align: center; }
  .g-cap { opacity: 1; transform: none; font-size: 13px; }
}
@media (max-width: 600px) {
  .about__facts { grid-template-columns: 1fr; gap: 8px; }
  .fact { display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; }
  .fact b { font-size: 30px; flex: none; }
  .fact span { margin: 0; }
  .about .btn { width: 100%; }
  .lightbox { padding: 12px; gap: 6px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100svh - 170px); }
}
.g-item--hero .g-cap { display: none; }

/* ==========================================================================
   v4: поп-ап «Заявка» и выбор мессенджера
   ========================================================================== */
.msgr { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.msgr__opt { flex: 1; min-width: 92px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-light); background: #fff; color: var(--text-dark); font-size: 14.5px; font-weight: 600; transition: all .45s var(--ease); }
.msgr__opt i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.msgr__opt:hover { border-color: var(--gold); }
.msgr__opt.is-on { background: var(--ink); color: var(--gold-2); border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 9, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .45s var(--ease); }
.modal.open { opacity: 1; }
.modal__card { position: relative; width: min(440px, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: 36px 30px 30px; border-radius: 30px; background: var(--ivory); color: var(--text-dark); border: 1px solid rgba(201, 169, 110, .3); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .7); transform: translateY(24px) scale(.97); filter: blur(8px); transition: transform .6s var(--ease), filter .6s var(--ease); }
.modal.open .modal__card { transform: none; filter: none; }
.modal__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 30px 30px 0 0; background: var(--gold-grad); }
.modal__title { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.modal__text { margin: 0 0 22px; color: var(--mute-dark); font-size: 15px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--mute-dark); background: rgba(0, 0, 0, .05); transition: background .3s; }
.modal__close:hover { background: rgba(0, 0, 0, .1); }
.modal .chips__label { margin-top: 6px; }
.modal .success { padding: 16px 0 0; }
.btn:disabled { opacity: .6; pointer-events: none; }

/* Скрытые окна не должны перекрывать страницу */
[hidden] { display: none !important; }

/* Фикс: страница не должна сдвигаться вбок на телефоне */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 600px) {
  .demo__tabs { margin: 0 -20px; padding: 0 20px 4px; }
}
