:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e7ecf3;
  --muted: #8b98a8;
  --accent: #5b8def;
  --orange: #ff8a3d;
  --border: #2a3544;
  --surface: #141c27;
  --surface-2: #1b2431;
  --surface-3: #222d3c;
  --nav-bg: rgba(15, 22, 34, 0.96);
  --panel: rgba(26, 35, 50, 0.85);
  --panel-soft: rgba(26, 35, 50, 0.6);
  --link-warm: #ffb26b;
  --step-fg: #c9dbff;
  --nav-page: #c9dbff;
  --hover: rgba(255, 255, 255, 0.06);
  --shadow-nav: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --shadow-sticky: 0 10px 28px -12px rgba(0, 0, 0, 0.8);
  --cosmos: url("/img/max-cosmos-dark.png?v=4");
  --cosmos-size: 720px;
  --cosmos-fallback: #141414;
  --theme-meta: #0f1419;
  --post-bg: #2a2d3a;
  --chat-head-bg: rgba(32, 35, 48, 0.78);
  --kb-bg: rgba(72, 76, 140, 0.72);
  --kb-bg-hover: rgba(88, 92, 160, 0.85);
  --kb-fg: #fff;
  --post-link: #7eb6ff;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #e8f1fa;
  --card: #ffffff;
  --text: #1a2332;
  --muted: #5a6b7d;
  --accent: #3d6fd8;
  --orange: #e87420;
  --border: #c9d6e5;
  --surface: #f3f7fc;
  --surface-2: #ffffff;
  --surface-3: #e4ecf5;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.72);
  --link-warm: #c45f12;
  --step-fg: #2a4f9a;
  --nav-page: #2a4f9a;
  --hover: rgba(20, 40, 70, 0.06);
  --shadow-nav: 0 18px 40px -18px rgba(40, 70, 110, 0.28);
  --shadow-sticky: 0 10px 28px -12px rgba(40, 70, 110, 0.28);
  --cosmos: url("/img/max-cosmos-light.png?v=6");
  --cosmos-size: 720px;
  --cosmos-fallback: #cde3f7;
  --theme-meta: #7eb8f5;
  --post-bg: #ffffff;
  --chat-head-bg: rgba(255, 255, 255, 0.78);
  --kb-bg: rgba(90, 140, 210, 0.72);
  --kb-bg-hover: rgba(70, 120, 200, 0.88);
  --kb-fg: #fff;
  --post-link: #2a6fd6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(5.1rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.9rem max(1rem, calc(50vw - 520px));
  background: var(--bg);
  z-index: 20;
}
.top .brand { color: var(--text); text-decoration: none; }
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}
.menu-btn {
  display: inline-grid;
  gap: 5px;
  flex: none;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sticky);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.top-nav {
  position: absolute;
  top: calc(100% - 0.15rem);
  right: 0;
  left: auto;
  display: grid;
  gap: 0.15rem;
  min-width: min(16rem, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-nav);
}
.top-nav[hidden] { display: none; }
.top-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.top-nav a:hover { background: var(--hover); color: var(--link-warm); }
.top-nav a.is-active {
  background: rgba(255, 138, 61, 0.16);
  color: var(--link-warm);
}
.top-nav a.nav-page {
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  color: var(--nav-page);
}
.top-nav a.nav-page:hover,
.top-nav a.nav-page.is-active {
  background: rgba(91, 141, 239, 0.16);
  color: var(--text);
}

.founder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  margin-left: auto;
  padding: 0.25rem 0.8rem 0.25rem 0.25rem;
  border: 1px solid rgba(255, 138, 61, 0.55);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.12);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.top-nav + .founder-pill { margin-left: 0; }
.founder-pill:hover { background: rgba(255, 138, 61, 0.22); border-color: var(--orange); transform: translateY(-1px); }
.founder-ava { position: relative; flex: none; width: 36px; height: 36px; }
.founder-ava img { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px var(--orange); }
.founder-ava::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #3ecf6e;
}
.founder-text { display: grid; line-height: 1.1; }
.founder-text b { font-size: 0.9rem; white-space: nowrap; }
.founder-text small { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.founder-arrow { color: var(--orange); font-weight: 700; animation: founder-nudge 1.6s ease-in-out infinite; }
.founder-float {
  position: fixed;
  top: calc(0.6rem + env(safe-area-inset-top));
  right: max(1rem, (100vw - 1040px) / 2);
  z-index: 11;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.8);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s;
}
.founder-float:hover { background: rgba(26, 35, 50, 0.96); transform: none; }
.founder-float[hidden] { display: inline-flex; opacity: 0; transform: translateY(-140%); pointer-events: none; }
@media (max-width: 400px) {
  .top { gap: 0.5rem; }
  .top .brand { gap: 0.35rem; font-size: 0.9rem; }
  .top .brand img { width: 28px; height: 28px; }
  .founder-pill { gap: 0.4rem; padding-right: 0.6rem; }
  .founder-ava { width: 32px; height: 32px; }
  .founder-text b { font-size: 0.82rem; }
  .founder-text small { display: none; }
}
@media (max-width: 350px) {
  .top .brand span { display: none; }
}
@keyframes founder-nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
#author { scroll-margin-top: 1rem; }
#author:target .author { animation: author-glow 2.4s ease-out; }
@keyframes author-glow {
  0%, 30% { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.35), 0 0 40px rgba(255, 138, 61, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .founder-arrow, #author:target .author { animation: none; }
}

.page { width: min(560px, 100% - 1.25rem); margin: 0 auto; padding: 0.1rem 0 6rem; }

.offer {
  margin-top: 1.25rem;
  padding: 0.65rem 0.1rem 0.35rem;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.offer-h {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.offer-price {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}
.offer-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.offer-cta {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}
.offer-cta a {
  color: var(--link-warm);
  font-weight: 600;
  text-decoration: none;
}
.offer-cta a:hover { text-decoration: underline; }
.offer-btn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--link-warm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.offer-btn:hover { text-decoration: underline; filter: none; }
.offer-btn-soft {
  border: 0;
  padding: 0;
  background: none;
  color: var(--link-warm);
  box-shadow: none;
}
.offer-btn-soft:hover { background: none; text-decoration: underline; }
.offer-call {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  text-align: left;
}
.offer-call-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.7rem;
  align-items: start;
}
.offer-face {
  width: 56px;
  height: 72px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  background: var(--surface-3);
}
.offer-call-lead {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.offer-call-body .offer-btn { margin-top: 0.15rem; }
.offer-call-body .offer-note { margin-top: 0.3rem; }

#guide.section {
  max-width: none;
  width: 100vw;
  margin: 2.5rem calc(50% - 50vw) 0;
  padding: 2rem max(1rem, calc(50vw - 360px)) 2.5rem;
  border-radius: 0;
  box-sizing: border-box;
  background: var(--bg);
}
#guide .seo-home { max-width: 720px; margin-inline: auto; }
.seo-home { margin-top: 0.5rem; color: var(--text); }
.seo-home > h2:first-child { margin-top: 0; text-align: left; font-size: clamp(1.35rem, 5vw, 1.75rem); }
.seo-fold { margin: 0.75rem 0 0; }
.seo-fold > summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.seo-fold > summary::-webkit-details-marker { display: none; }
.seo-fold > summary::after { content: " ▾"; text-decoration: none; }
.seo-fold[open] > summary::after { content: " ▴"; }
.seo-fold[open] > summary { margin-bottom: 0.75rem; }
.seo-fold-body > *:first-child { margin-top: 0; }
.seo-more { margin-top: 1.5rem; }
.seo-more a { color: var(--link-warm); font-weight: 700; text-decoration: none; }
.seo-more a:hover { text-decoration: underline; }

.hero {
  position: relative;
  z-index: 8; /* текст героя всегда поверх дуги */
  text-align: center;
  margin: 0 calc(50% - 50vw);
  padding: 0.25rem max(1rem, calc(50vw - 280px)) 0.85rem;
  background: transparent;
}
.hero h1,
.hero-sub {
  position: relative;
  z-index: 1;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--muted); }
.brand img { border-radius: 10px; }
.badge {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 138, 61, 0.45);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.12);
  color: var(--link-warm);
  font-size: 0.8rem;
  font-weight: 600;
}
h1 { font-size: clamp(1.5rem, 6.5vw, 2.6rem); line-height: 1.08; margin: 0.25rem 0 0.2rem; letter-spacing: -0.02em; }
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--link-warm), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1rem; margin: 0 auto 1.1rem; max-width: 24rem; line-height: 1.4; }
.hero-sub {
  margin: 0 auto 0.85rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 500;
}
.note { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.82rem; }

.step { scroll-margin-top: 0.75rem; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto 0.45rem;
  border: 1.5px solid rgba(91, 141, 239, 0.45);
  border-radius: 50%;
  background: rgba(91, 141, 239, 0.12);
  color: var(--step-fg);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: none;
}
.step-1 .step-num,
.showcase .step-2 .step-num { display: none; }
.step-label { display: none; }
.step-3 > .step-num { display: flex; margin-top: 0.25rem; }
.step-3 h2 { text-align: center; margin-top: 0; }
.showcase {
  position: relative;
  z-index: auto;
  display: grid;
  gap: 0;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  padding: 1.15rem 0 1.35rem;
  box-sizing: border-box;
  background: var(--cosmos) center / var(--cosmos-size) auto repeat, var(--cosmos-fallback);
  overflow: visible;
}
.showcase-hint,
.showcase-peek,
.showcase-rail,
.showcase-rail-swipe { display: none !important; }
.showcase-tab {
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.35);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
html[data-theme="light"] .showcase-tab { background: rgba(255, 255, 255, 0.7); }
.showcase-tab.is-on {
  border-color: var(--orange);
  background: rgba(255, 138, 61, 0.2);
  color: var(--link-warm);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.12);
}
.showcase-track {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding: 0 max(1rem, calc(50vw - 520px));
  box-sizing: border-box;
}
.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: linear-gradient(180deg, #ff9d52, #ff7a28);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 28px -10px rgba(255, 138, 61, 0.65);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-wide { display: block; text-align: center; }

.demo { margin: 0 auto; max-width: 420px; width: 100%; }
.step-2 { max-width: 420px; width: 100%; margin: 0 auto; text-align: center; }
.step-2 .section-lead { margin-bottom: 0.35rem; }
.step-2 .section-lead a { color: var(--link-warm); font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
.step-2 .section-lead a:hover { color: #ffd0a0; }
.chat {
  padding: 0 0.55rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 10px 24px -16px rgba(20, 40, 70, 0.28);
  overflow: hidden;
}
html[data-theme="light"] .chat {
  box-shadow: 0 8px 20px -14px rgba(40, 70, 110, 0.18);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 -0.55rem 0.55rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--chat-head-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.chat-head b { display: block; font-size: 0.95rem; }
.chat-head span { color: var(--muted); font-size: 0.78rem; }
.chat-ava { width: 2.3rem; height: 2.3rem; border-radius: 50%; }
.pinned { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.post {
  border-radius: 14px;
  background: var(--post-bg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.post-photo { display: block; width: 100%; height: auto; }
.post-body { padding: 0.65rem 0.8rem 0.55rem; font-size: 0.93rem; line-height: 1.4; }
.post-body h2 { margin: 0 0 0.35rem; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.post-body p { margin: 0 0 0.45rem; color: var(--text); }
.post-body a, .sheet-body a { color: var(--post-link); text-decoration: none; cursor: pointer; }
.post-body a:hover, .sheet-body a:hover { text-decoration: underline; }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.kb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.kb .kb-wide,
.kb .kb-main { grid-column: 1 / -1; }
.kb button {
  position: relative;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 12px;
  background: var(--kb-bg);
  color: var(--kb-fg);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.15s, transform 0.1s;
}
.kb button:hover { background: var(--kb-bg-hover); }
.kb button:active { transform: scale(0.985); }
.kb .kb-main {
  background: var(--kb-bg);
  color: var(--kb-fg);
}

.sheet {
  width: min(460px, 100%);
  max-height: min(86vh, 760px);
  margin: auto auto 0;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up 0.22s ease-out; }
.sheet::backdrop { background: rgba(5, 8, 12, 0.7); backdrop-filter: blur(3px); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); text-align: center; }
.sheet-head b { grid-column: 2; font-size: 1rem; }
.sheet-head button { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.sheet-head button:hover { background: var(--surface-3); color: var(--text); }
.sheet-back { grid-column: 1; font-size: 1.6rem !important; line-height: 1; }
.sheet-close { grid-column: 3; }
.sheet-body { padding: 0.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom)); overflow-y: auto; font-size: 0.95rem; }
.sheet.is-embed {
  max-height: min(94vh, 900px);
  height: min(94vh, 900px);
}
.sheet.is-embed .sheet-body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
}
.admin-phone {
  width: min(390px, 100%);
  margin: 0.75rem auto 0;
  height: min(720px, 78vh);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 10px 24px -14px rgba(20, 40, 70, 0.28);
}
html[data-theme="light"] .admin-phone {
  box-shadow: 0 8px 20px -14px rgba(40, 70, 110, 0.18);
}
@media (max-width: 560px) {
  .admin-phone {
    width: 100%;
    height: min(680px, 72vh);
    border-radius: 20px;
  }
  .section-lead { font-size: 0.95rem; }
}
.admin-phone .admin-embed,
.admin-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg);
}
.sheet.is-embed .admin-embed { flex: 1; }
.sheet-body img { display: block; width: calc(100% + 2.2rem); height: auto; margin: 0 -1.1rem 0.75rem; }
.sheet-body img:first-child { margin-top: -0.25rem; }
.sheet-body h3 { margin: 1.1rem 0 0.35rem; font-size: 1.05rem; }
.sheet-body p { margin: 0.6rem 0; }
.sheet-body blockquote { margin: 1rem 0 0; padding: 0.6rem 0.8rem; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; background: rgba(255, 138, 61, 0.08); color: var(--muted); font-size: 0.88rem; }
.sheet-btn {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.85rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff9d52, #ff7a28);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.sheet-body a.sheet-btn, .sheet-body a.btn, .sheet-body a.sheet-btn:hover, .sheet-body a.btn:hover { color: #fff; text-decoration: none; }
.sheet-btn[hidden] { display: none; }
.sheet-btn + .sheet-btn { margin-top: 0.5rem; }
.sheet-btn-ghost { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.sheet-cta { margin-top: 1.5rem; }
.sheet-lead { color: var(--muted); }
.sheet-body img.img-tall { max-height: 46vh; object-fit: cover; object-position: center 30%; }

.rubric { display: grid; gap: 0.4rem; }
.sheet-body .rubric a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.sheet-body .rubric a:hover { border-color: rgba(255, 138, 61, 0.6); text-decoration: none; }
.rubric span { grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(255, 138, 61, 0.14); font-size: 1.2rem; }
.rubric b { font-size: 0.95rem; }
.rubric small { color: var(--muted); font-size: 0.8rem; }

.poll { margin-top: 1rem; padding: 0.9rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.poll-q { margin: 0 0 0.6rem !important; font-weight: 700; }
.poll-options { display: grid; gap: 0.4rem; }
.poll-options button {
  position: relative;
  overflow: hidden;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.poll-options button.on { border-color: var(--orange); background: rgba(255, 138, 61, 0.16); }
.poll-options button.res { cursor: default; }
.poll-options button.res::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share); background: rgba(91, 141, 239, 0.18); transition: width 0.6s ease-out; }
.poll-options button.res.win::before { background: rgba(255, 138, 61, 0.28); }
.poll-options button.res::after { content: attr(data-share); position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-weight: 700; }
.poll-options button.mine { border-color: var(--orange); }
.poll-hint { margin: 0.6rem 0 0 !important; color: var(--muted); font-size: 0.8rem; }
.poll .sheet-btn { margin-top: 0.8rem; }

.reviews-sum { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem !important; }
.reviews-sum b { font-size: 1.6rem; }
.reviews-sum span:last-child { color: var(--muted); font-size: 0.85rem; }
.stars { color: #ffb84d; letter-spacing: 0.05em; }
.reviews { display: grid; gap: 0.5rem; }
.review { display: flex; gap: 0.7rem; padding: 0.75rem; border-radius: 14px; background: var(--surface-2); }
.sheet-body .review img { flex: none; width: 2.6rem; height: 2.6rem; margin: 0; border-radius: 50%; }
.review p { margin: 0.25rem 0 0; font-size: 0.9rem; }
.rate { display: flex; gap: 0.25rem; }
.rate button { padding: 0 0.1rem; border: 0; background: none; color: #3a4658; font-size: 2.1rem; line-height: 1; cursor: pointer; }
.rate button.on { color: #ffb84d; }
.field { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.92rem; resize: vertical; }
.field:focus { outline: none; border-color: var(--orange); }

.kb-sample span { display: block; padding: 0.7rem 0.5rem; border-radius: 12px; background: var(--surface-3); text-align: center; font-size: 0.9rem; font-weight: 600; }
.kb-sample .kb-main { animation: none; background: linear-gradient(180deg, #ff9d52, #ff7a28); color: #fff; }

.flow-label { margin: 1rem 0 0.5rem !important; color: var(--muted); font-size: 0.85rem; }
.choice { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice button {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.choice button[aria-pressed="true"] { border-color: var(--orange); background: rgba(255, 138, 61, 0.16); }
.choice button:disabled { opacity: 0.4; cursor: default; }
.choice-dates button { display: grid; text-align: left; border-radius: 12px; }
.choice-dates small { color: var(--muted); font-size: 0.78rem; }

.shop-filters { position: sticky; top: -0.25rem; z-index: 2; margin: 0 -1.1rem; padding: 0.35rem 1.1rem 0.45rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.chips { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.2rem 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips[hidden] { display: none; }
.chip { flex: 0 0 auto; padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 0.85rem; white-space: nowrap; cursor: pointer; }
.chip.on { border-color: var(--orange); background: var(--orange); color: #fff; }
.chips-sub .chip { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.chips-tags .chip { padding: 0.3rem 0.7rem; font-size: 0.8rem; color: var(--muted); }
.chips-tags .chip.on { background: rgba(255, 138, 61, 0.16); color: var(--link-warm); }
.shop-tools { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.shop-tools input, .shop-tools select { min-width: 0; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.88rem; }
.shop-tools input { flex: 1; }
.shop-tools input:focus, .shop-tools select:focus { outline: none; border-color: var(--orange); }
.shop-found { display: flex; justify-content: space-between; align-items: center; margin: 0.35rem 0 0 !important; color: var(--muted); font-size: 0.82rem; }
.shop-found[hidden] { display: none; }
.shop-found button { border: 0; background: none; color: var(--orange); font: inherit; cursor: pointer; }
.cart-group { margin: 1rem 0 0.1rem; font-size: 1rem; }
.cart-sub { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.cart-empty { padding: 1.5rem 0.5rem; color: var(--muted); text-align: center; }
.cart-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-row.is-picked { margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 12px; background: rgba(255, 138, 61, 0.12); }
.cart-photo { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.sheet-body .cart-photo img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
.cart-info { display: grid; flex: 1; min-width: 0; }
.cart-info b { font-size: 0.93rem; }
.cart-row small { color: var(--muted); font-size: 0.8rem; }
.cart-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.15rem; }
.cart-tag { padding: 0.05rem 0.4rem; border-radius: 6px; background: rgba(255, 138, 61, 0.12); color: var(--link-warm); font-size: 0.7rem; font-style: normal; }
.sheet-btn-sticky { position: sticky; bottom: 0; box-shadow: 0 -10px 20px 6px var(--surface); }
.sheet-btn:disabled { opacity: 0.5; cursor: default; }
.viewer { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem; background: rgba(5, 8, 12, 0.92); text-align: center; cursor: zoom-out; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 70%; border-radius: 16px; }
.viewer p { margin: 0; white-space: pre-line; font-weight: 600; }
.cart-ctl { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 999px; background: rgba(255, 138, 61, 0.12); }
.cart-ctl.on { background: var(--orange); color: #fff; }
.cart-ctl button { min-width: 2.1rem; padding: 0.4rem 0.6rem; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.cart-ctl .cart-add { padding: 0.4rem 0.9rem; color: var(--orange); font-size: 0.88rem; }
.cart-ctl b { min-width: 1.2rem; text-align: center; }

.done { padding-top: 1rem; text-align: center; }
.done-ico { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: rgba(76, 175, 80, 0.18); color: #6fd27a; font-size: 1.6rem; font-weight: 700; }
.done-title { margin: 0.6rem 0 0 !important; font-size: 1.1rem; font-weight: 700; }
.notify { margin: 0 auto; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: left; }
.notify-from { color: var(--muted); font-size: 0.78rem; }
.notify p { margin: 0.3rem 0 0.6rem !important; white-space: pre-line; }
.notify-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.notify-btn { display: inline-block; padding: 0.4rem 0.75rem; border-radius: 10px; background: var(--surface-3); font-size: 0.85rem; font-weight: 600; }
.done-note { color: var(--muted); font-size: 0.88rem; }
.done .btn { margin-top: 1rem; color: #fff; text-decoration: none; }

.section {
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
  padding: 1.35rem 1.1rem 1.5rem;
  border-radius: 18px;
  background: var(--bg);
}
.section h2 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
.section-lead { margin: 0 0 1.25rem; color: var(--muted); font-size: 1.02rem; }
.group-title { margin: 1.75rem 0 0.75rem; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.tools { display: grid; gap: 0.75rem; }
.tool {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.85rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}
.tool-hot {
  border-color: rgba(255, 138, 61, 0.55);
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.14), var(--panel) 70%);
}
.tool-ico { grid-row: span 3; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: rgba(255, 138, 61, 0.14); font-size: 1.35rem; }
.tool h3 { margin: 0.1rem 0 0.35rem; font-size: 1.05rem; line-height: 1.25; }
.tool p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tool-try {
  justify-self: start;
  margin-top: 0.7rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 138, 61, 0.5);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.1);
  color: var(--link-warm);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.tool-try:hover { background: rgba(255, 138, 61, 0.2); }

.biz { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.biz li { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); }
.biz b { font-size: 0.98rem; }
.biz span { color: var(--muted); font-size: 0.88rem; }

.arch { display: grid; }
.arch-card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}
.arch-card p, .arch-card h3, .arch-card ul { margin: 0; }
.arch-tag { color: var(--link-warm); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.arch-card h3 { font-size: 1.15rem; line-height: 1.2; }
.arch-sub { color: var(--muted); font-size: 0.85rem; }
.arch-card ul { display: grid; gap: 0.3rem; margin-top: 0.5rem; padding: 0; list-style: none; font-size: 0.9rem; }
.arch-card li { position: relative; padding-left: 1.1rem; }
.arch-card li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--orange); }
.arch-bubble {
  justify-self: start;
  margin-top: 0.55rem !important;
  padding: 0.55rem 0.75rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-3);
  font-size: 0.82rem;
  line-height: 1.35;
}
.arch-bubble-hot { border: 1px solid rgba(255, 138, 61, 0.5); background: rgba(255, 138, 61, 0.14); }
.arch-main {
  border-color: rgba(255, 138, 61, 0.6);
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.12), var(--panel) 55%);
  box-shadow: 0 18px 40px -22px rgba(255, 138, 61, 0.55);
}
.arch-main h3 { font-size: 1.3rem; }
.arch-post { display: grid; gap: 0.2rem; margin-top: 0.55rem; padding: 0.7rem; border-radius: 14px; background: var(--surface); }
.arch-post b { font-size: 0.92rem; }
.arch-post span { color: var(--muted); font-size: 0.8rem; }
.arch-post p { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin: 0.35rem 0 0; }
.arch-post em { padding: 0.4rem 0.3rem; border-radius: 9px; background: var(--surface-3); font-style: normal; font-size: 0.78rem; font-weight: 600; text-align: center; white-space: nowrap; }
.arch-post em:first-child { background: linear-gradient(180deg, #ff9d52, #ff7a28); color: #fff; }
.arch-note { margin-top: 0.5rem !important; font-size: 0.9rem; }
.arch-link { position: relative; display: grid; place-items: center; margin: 0; padding: 0.5rem 0; }
.arch-link i { position: absolute; inset: 0 auto 0 50%; width: 2px; background: linear-gradient(180deg, transparent, var(--orange), transparent); }
.arch-link i::before, .arch-link i::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }
.arch-link i::before { top: 20%; }
.arch-link i::after { bottom: 20%; }
.arch-link span { position: relative; padding: 0.2rem 0.65rem; border: 1px solid rgba(255, 138, 61, 0.45); border-radius: 999px; background: var(--bg); color: var(--link-warm); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.arch-start { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 900px) {
  #how.section { max-width: none; }
  #how > h2, #how > .section-lead, #how > .arch-start, #how > .aside { max-width: 860px; margin-left: auto; margin-right: auto; }
  #how > .section-lead { margin-bottom: 1.25rem; }
  .arch { grid-template-columns: 1fr 2.6rem 1.15fr 2.6rem 1fr; align-items: stretch; }
  .arch-link { padding: 0; }
  .arch-link i { inset: 50% 0 auto 0; width: auto; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
  .arch-link i::before, .arch-link i::after { top: 50%; bottom: auto; transform: translateY(-50%); }
  .arch-link i::before { left: 15%; }
  .arch-link i::after { left: auto; right: 15%; }
  .arch-link span { position: absolute; top: calc(50% + 0.6rem); left: 50%; transform: translateX(-50%); padding: 0; border: 0; background: none; white-space: normal; width: 5.5rem; text-align: center; font-size: 0.7rem; line-height: 1.2; }
}
.arch-start a, .aside a, .faq a { color: var(--link-warm); }
.aside { margin: 1rem 0 0; padding: 0.9rem 1rem; border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; background: rgba(255, 138, 61, 0.08); font-size: 0.95rem; }

.rows { padding: 0.25rem 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-soft); }


.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 0.9rem;
  margin: 0 -1rem;
  padding: 0.25rem 1rem 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 640;
  object-fit: cover;
  object-position: top;
  border: 6px solid #232d3b;
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.shot figcaption { display: grid; gap: 0.2rem; margin-top: 0.6rem; }
.shot figcaption b { font-size: 0.98rem; }
.shot figcaption span { color: var(--muted); font-size: 0.88rem; }
.sheet-body img.shot-in {
  width: 100%;
  margin: 0.4rem 0 0.75rem;
  aspect-ratio: 390 / 600;
  object-fit: cover;
  object-position: top;
  border: 5px solid #232d3b;
  border-radius: 22px;
}
.shot-cap { margin: 0.75rem 0 0 !important; color: var(--muted); font-size: 0.85rem; }

#author .author {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
}
#author .author-name {
  margin: 0 0 0.1rem;
  font-size: 0.86rem;
  font-weight: 700;
}
#author .author-role {
  margin: 0 0 0.25rem !important;
  font-size: 0.72rem;
  color: var(--muted);
}
#author .author-about {
  margin: 0 !important;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}
#author .author-contact { display: none; }
#author .author-photo { display: none; }
#author .author-with-photo { display: block; }
.btn-channel { margin-top: 0.25rem; }

.faq { display: grid; gap: 0.5rem; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); }
.faq summary { padding: 0.9rem 2.5rem 0.9rem 1rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.row:last-child { border-bottom: 0; }
.row b { font-weight: 600; font-size: 0.97rem; }
.row > span { color: var(--muted); font-size: 0.86rem; }
a.row:hover b { color: var(--link-warm); }
.row-more b { color: var(--accent); }
.row-more b::after { content: " →"; }
.footer {
  margin-top: 2rem;
  padding: 1.1rem 1rem calc(5.4rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer a { color: inherit; }

.sticky-bar {
  position: fixed;
  top: calc(0.55rem + env(safe-area-inset-top));
  right: max(0.75rem, (100vw - 1040px) / 2 + 0.75rem);
  left: auto;
  bottom: auto;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: none;
  transition: transform 0.25s, opacity 0.25s;
}
.sticky-bar .top-nav {
  top: calc(100% + 0.4rem);
  right: 0;
}
.sticky-bar[hidden] { display: flex; transform: translateY(-140%); opacity: 0; pointer-events: none; }
.sticky-menu-btn {
  background: var(--nav-bg);
  box-shadow: var(--shadow-sticky);
}
body.is-scrolled .top .top-actions { visibility: hidden; }

/* Нижняя полоса — тело = SVG, верхняя граница = мягкая кривая */
.max-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: calc(4.35rem + env(safe-area-inset-bottom));
  padding: 1.35rem 0.95rem calc(0.55rem + env(safe-area-inset-bottom));
  text-decoration: none;
  color: #fff;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  filter: drop-shadow(0 -14px 32px rgba(60, 10, 90, 0.5));
}
.max-dock:focus-visible {
  outline: 2px solid #c9a0ff;
  outline-offset: -3px;
}
.max-dock-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.max-dock-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* не светим выше среднего гребня волны */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
}
.max-dock-rim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.7rem;
  background:
    radial-gradient(ellipse 28% 120% at 12% 10%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 36% 140% at 48% 8%, rgba(233, 213, 255, 0.28), transparent 72%),
    radial-gradient(ellipse 30% 120% at 86% 12%, rgba(168, 85, 255, 0.3), transparent 70%);
  animation: max-dock-rim 2.6s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.8;
}
.max-dock-void {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 210, 120, 0.07), transparent 35%),
    radial-gradient(circle at 30% 80%, rgba(160, 60, 255, 0.2), transparent 40%);
  animation: max-dock-void 5s ease-in-out infinite alternate;
}
.max-dock-plasma {
  position: absolute;
  left: -25%;
  width: 42%;
  top: 0.35rem;
  height: 3px;
  pointer-events: none;
  z-index: 6;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(216, 180, 254, 0.25),
    #fff 48%,
    #d8b4fe 62%,
    transparent
  );
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.75),
    0 0 28px rgba(168, 85, 255, 0.85);
  animation: max-dock-plasma-run 2.6s ease-in-out infinite;
}
.max-dock-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.max-dock-bokeh i {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  animation: max-dock-bokeh 4.5s ease-in-out infinite;
}
.max-dock-bokeh i:nth-child(1) {
  width: 0.7rem; height: 0.7rem; left: 12%; top: 28%;
  background: radial-gradient(circle, #ffe9a8 0%, transparent 70%);
}
.max-dock-bokeh i:nth-child(2) {
  width: 1.1rem; height: 1.1rem; left: 58%; top: 22%;
  background: radial-gradient(circle, rgba(200, 120, 255, 0.9) 0%, transparent 70%);
  animation-delay: 0.6s;
}
.max-dock-bokeh i:nth-child(3) {
  width: 0.55rem; height: 0.55rem; left: 78%; top: 55%;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  animation-delay: 1.2s;
}
.max-dock-bokeh i:nth-child(4) {
  width: 0.85rem; height: 0.85rem; left: 36%; top: 62%;
  background: radial-gradient(circle, rgba(255, 160, 80, 0.75) 0%, transparent 70%);
  animation-delay: 0.3s;
}
.max-dock-bokeh i:nth-child(5) {
  width: 0.45rem; height: 0.45rem; left: 88%; top: 28%;
  background: radial-gradient(circle, #e9c4ff 0%, transparent 70%);
  animation-delay: 1.8s;
}
.max-dock-bokeh i:nth-child(6) {
  width: 0.95rem; height: 0.95rem; left: 22%; top: 14%;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.55) 0%, transparent 70%);
  animation-delay: 0.9s;
}
.max-dock-energy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.max-dock-energy i {
  position: absolute;
  width: 2px;
  height: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #d4a0ff 40%, #fff 55%, #a855ff 75%, transparent);
  box-shadow: 0 0 8px rgba(180, 80, 255, 0.95);
  opacity: 0;
  transform-origin: center bottom;
  animation: max-dock-bolt 2.2s ease-out infinite;
}
.max-dock-energy i:nth-child(1) { left: 6%; bottom: 22%; height: 0.85rem; transform: rotate(-18deg); }
.max-dock-energy i:nth-child(2) { left: 14%; bottom: 30%; height: 0.55rem; width: 1.5px; transform: rotate(12deg); animation-delay: 0.35s; }
.max-dock-energy i:nth-child(3) { left: 22%; bottom: 18%; height: 0.65rem; transform: rotate(28deg); animation-delay: 0.7s; }
.max-dock-energy i:nth-child(4) { left: 32%; bottom: 28%; height: 0.75rem; transform: rotate(-8deg); animation-delay: 1.1s; }
.max-dock-energy i:nth-child(5) { left: 40%; bottom: 20%; height: 0.5rem; width: 1.5px; transform: rotate(22deg); animation-delay: 0.5s; }
.max-dock-energy i:nth-child(6) { left: 48%; bottom: 34%; height: 0.45rem; transform: rotate(-25deg); animation-delay: 1.5s; }
.max-dock-energy i:nth-child(7) { left: 28%; bottom: 40%; height: 0.6rem; transform: rotate(15deg); animation-delay: 0.2s; }
.max-dock-energy i:nth-child(8) { left: 10%; bottom: 42%; height: 0.4rem; width: 1.5px; transform: rotate(-32deg); animation-delay: 1.8s; }
/* поток магии слева → текст и лого справа */
.max-dock-stream {
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 8%;
  width: min(58%, 22rem);
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
}
.max-dock-stream-svg {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 100%;
  display: block;
  animation: max-dock-stream-drift 6.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(180, 80, 255, 0.55));
}
.max-dock-flow {
  stroke-linecap: round;
  stroke-dasharray: 28 18 10 22;
  animation: max-dock-flow-dash 2.4s linear infinite;
}
.max-dock-flow--a { animation-duration: 2.1s; }
.max-dock-flow--b { animation-duration: 2.8s; animation-direction: reverse; }
.max-dock-flow--c { animation-duration: 1.7s; stroke-dasharray: 12 16 6 20; }
.max-dock-flow--d { animation-duration: 3.2s; animation-direction: reverse; }
.max-dock-bubbles {
  position: absolute;
  inset: 0;
}
.max-dock-bubbles i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e9d5ff 40%, rgba(168, 85, 255, 0.15) 70%, transparent 75%);
  box-shadow: 0 0 10px rgba(200, 140, 255, 0.7);
  animation: max-dock-bubble 3.4s ease-in-out infinite;
  opacity: 0;
}
.max-dock-bubbles i:nth-child(1)  { width: 0.55rem; height: 0.55rem; left: 8%;  top: 42%; animation-delay: 0s; }
.max-dock-bubbles i:nth-child(2)  { width: 0.35rem; height: 0.35rem; left: 18%; top: 28%; animation-delay: 0.35s; }
.max-dock-bubbles i:nth-child(3)  { width: 0.7rem;  height: 0.7rem;  left: 28%; top: 55%; animation-delay: 0.7s; }
.max-dock-bubbles i:nth-child(4)  { width: 0.4rem;  height: 0.4rem;  left: 38%; top: 22%; animation-delay: 0.15s; }
.max-dock-bubbles i:nth-child(5)  { width: 0.5rem;  height: 0.5rem;  left: 46%; top: 48%; animation-delay: 1s; }
.max-dock-bubbles i:nth-child(6)  { width: 0.3rem;  height: 0.3rem;  left: 55%; top: 35%; animation-delay: 0.5s; }
.max-dock-bubbles i:nth-child(7)  { width: 0.62rem; height: 0.62rem; left: 62%; top: 58%; animation-delay: 1.3s; }
.max-dock-bubbles i:nth-child(8)  { width: 0.38rem; height: 0.38rem; left: 70%; top: 30%; animation-delay: 0.85s; }
.max-dock-bubbles i:nth-child(9)  { width: 0.48rem; height: 0.48rem; left: 78%; top: 50%; animation-delay: 0.25s; }
.max-dock-bubbles i:nth-child(10) { width: 0.28rem; height: 0.28rem; left: 22%; top: 62%; animation-delay: 1.6s; }
.max-dock-bubbles i:nth-child(11) { width: 0.42rem; height: 0.42rem; left: 52%; top: 18%; animation-delay: 1.1s; }
.max-dock-bubbles i:nth-child(12) { width: 0.58rem; height: 0.58rem; left: 34%; top: 40%; animation-delay: 1.85s; }
.max-dock-inner {
  position: relative;
  z-index: 6;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  text-align: right;
}
.max-dock-badge {
  position: relative;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  order: 1;
}
.max-dock-aura {
  position: absolute;
  inset: -0.65rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 80, 255, 0.55) 0%, rgba(120, 40, 220, 0.25) 42%, transparent 70%);
  animation: max-dock-aura 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}
.max-dock-max {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  display: block;
  box-shadow:
    0 0 0 1px rgba(220, 180, 255, 0.35),
    0 0 22px rgba(160, 60, 255, 0.75),
    0 0 40px rgba(120, 40, 255, 0.35);
}
.max-dock-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  flex: 0 1 auto;
  order: 2;
  justify-items: start;
  text-align: left;
}
.max-dock-kicker {
  color: rgba(230, 210, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(160, 80, 255, 0.45);
}
.max-dock-title {
  font-size: clamp(1.12rem, 4.6vw, 1.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(180, 100, 255, 0.55),
    0 0 8px rgba(255, 200, 120, 0.25);
}
@keyframes max-dock-stream-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes max-dock-flow-dash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -120; }
}
@keyframes max-dock-bubble {
  0% { opacity: 0; transform: translate(0, 0.35rem) scale(0.55); }
  25% { opacity: 0.95; }
  70% { opacity: 0.7; transform: translate(1.1rem, -0.55rem) scale(1); }
  100% { opacity: 0; transform: translate(1.8rem, -0.9rem) scale(0.4); }
}
@keyframes max-dock-rim {
  0% { opacity: 0.55; transform: translateX(-2%); }
  100% { opacity: 1; transform: translateX(2%); }
}
@keyframes max-dock-void {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}
@keyframes max-dock-plasma-run {
  0% { left: -25%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 90%; opacity: 0; }
}
@keyframes max-dock-bokeh {
  0%, 100% { opacity: 0.25; transform: scale(0.85) translateY(0); }
  50% { opacity: 0.75; transform: scale(1.15) translateY(-0.2rem); }
}
@keyframes max-dock-bolt {
  0%, 100% { opacity: 0; transform: scaleY(0.3); }
  18% { opacity: 1; }
  42% { opacity: 0.85; transform: scaleY(1); }
  70% { opacity: 0; transform: scaleY(0.4); }
}
@keyframes max-dock-aura {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .max-dock-rim,
  .max-dock-void,
  .max-dock-plasma,
  .max-dock-bokeh i,
  .max-dock-energy i,
  .max-dock-aura,
  .max-dock-stream-svg,
  .max-dock-flow,
  .max-dock-bubbles i { animation: none !important; }
  .max-dock-body animate { display: none; }
}
@media (max-width: 380px) {
  .max-dock-kicker { font-size: 0.6rem; }
  .max-dock-title { font-size: 1.05rem; }
  .max-dock-badge,
  .max-dock-max { width: 2.25rem; height: 2.25rem; }
}

@media (min-width: 640px) {
  .tools, .biz { grid-template-columns: 1fr 1fr; }
  .shots { grid-auto-columns: 40%; }
}

@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; row-gap: 1.75rem; }
}

@media (max-width: 799px) {
  .showcase-rail { display: none !important; }
  .showcase-hint { display: none !important; }
  .showcase-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 380px);
    gap: 2.4rem;
    align-items: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding: 0.75rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .showcase-track::-webkit-scrollbar { display: none; }
  .showcase-track > .step {
    scroll-snap-align: start;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .step-1,
  .step-2 { position: relative; }
  .showcase-peek { display: none !important; }
  .step-2 .section-lead { font-size: 0.88rem; }
}

@media (min-width: 800px) {
  .showcase-track {
    display: grid;
    grid-template-columns: minmax(0, 390px) minmax(0, 390px);
    justify-content: center;
    gap: 2.75rem;
    align-items: start;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }
  .step-2 .section-lead {
    display: block;
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: center;
  }
}

@media (min-width: 900px) {
  .page { width: min(1040px, 100% - 4rem); padding-top: 1.5rem; }
  .hero {
    text-align: center;
    max-width: none;
  }
  #guide.section { max-width: none; }
  .showcase {
    gap: 0;
    margin-top: 0;
    padding: 1.35rem max(1rem, calc(50vw - 520px)) 1.75rem;
    overflow: visible;
  }
  #guide { padding-top: 2.5rem; padding-bottom: 3rem; }
  .demo,
  .step-2 { max-width: none; }
  .step-3 h2 { text-align: center; }
  .section { max-width: 860px; margin-left: auto; margin-right: auto; }
  .sheet { margin: auto; border-bottom: 1px solid var(--border); border-radius: 20px; }
}

.theme-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sticky);
  color: var(--text);
  cursor: pointer;
}
.theme-btn:hover { border-color: var(--orange); color: var(--link-warm); }
.theme-btn svg { width: 1.15rem; height: 1.15rem; display: block; }
.theme-btn .icon-sun,
.theme-btn .icon-moon { display: none; }
.theme-btn[data-show="light"] .icon-sun { display: block; }
.theme-btn[data-show="dark"] .icon-moon { display: block; }
