:root {
  /* --- brand accent (v75 refresh: brighter, more alive) --- */
  --accent: #8b81ec;
  --accent-2: #b4acf6;
  --accent-dark: #4b40b2;
  --accent-ink: #ffffff;                 /* text/icon on an accent fill */
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 42%, transparent);

  /* --- dark surfaces (v75: real depth between bg / section / card) --- */
  --bg: #101019;
  --bg-2: #15141f;                       /* banded / alt sections */
  --surface: #1b1a28;
  --surface-2: #23222f;
  --surface-3: #2c2a3c;                  /* hover / active */
  --text: #f3f2f9;
  --text-muted: #9c99ad;
  --text-dim: #706d82;
  --border: #2e2c40;
  --border-strong: #3b3852;
  --hairline: rgba(255,255,255,.06);

  /* --- glass (nav, overlays, floating controls) --- */
  --glass: rgba(19,18,28,.72);
  --glass-brd: rgba(255,255,255,.10);
  --ghost-bg: rgba(255,255,255,.07);
  --ghost-bg-hover: rgba(255,255,255,.13);
  --ghost-brd: rgba(255,255,255,.15);
  --on-media: #ffffff;                   /* text sitting on hero video/gradient */
  --on-media-dim: rgba(255,255,255,.82);

  --neon-glow: 0 0 0 rgba(0,0,0,0);
  --glow-accent: 0 0 0 1px var(--accent-line), 0 14px 42px -14px color-mix(in srgb, var(--accent) 48%, transparent);
  --grad-hero: radial-gradient(125% 130% at 88% -12%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 56%);
  --grad-panel: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 62%);
}

/* ============ v75 — LIGHT THEME (opt-in via settings toggle) ============ */
:root[data-scheme="light"] {
  --accent: #6a5ce0;
  --accent-2: #7c6ee8;
  --accent-dark: #d9d4f7;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 32%, transparent);

  --bg: #f5f4fb;
  --bg-2: #efedf8;
  --surface: #ffffff;
  --surface-2: #f3f1fb;
  --surface-3: #e9e6f7;
  --text: #1e1b29;
  --text-muted: #63607a;
  --text-dim: #8b889d;
  --border: #e4e1f2;
  --border-strong: #d5d1e8;
  --hairline: rgba(20,18,40,.07);

  --glass: rgba(255,255,255,.78);
  --glass-brd: rgba(20,18,40,.10);
  --ghost-bg: rgba(20,18,40,.05);
  --ghost-bg-hover: rgba(20,18,40,.09);
  --ghost-brd: rgba(20,18,40,.14);

  --neon-glow: 0 0 0 rgba(0,0,0,0);
  --glow-accent: 0 0 0 1px var(--accent-line), 0 14px 40px -16px color-mix(in srgb, var(--accent) 40%, transparent);
  --grad-hero: radial-gradient(125% 130% at 88% -12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%);
  --grad-panel: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 60%);
}
:root[data-scheme="light"] .card,
:root[data-scheme="light"] .product-card,
:root[data-scheme="light"] .about-card,
:root[data-scheme="light"] .legal-doc,
:root[data-scheme="light"] .testimonial,
:root[data-scheme="light"] .tier-card,
:root[data-scheme="light"] .support-info,
:root[data-scheme="light"] .mini-note { box-shadow: 0 1px 2px rgba(20,18,40,.05), 0 12px 30px -16px rgba(20,18,40,.16); }
[data-theme="teal"]   { --accent: #1fb583; --accent-2: #5ce0b0; --accent-dark: #0c6d51; }
[data-theme="coral"]  { --accent: #e05f34; --accent-2: #f2967a; --accent-dark: #97371a; }
[data-theme="pink"]   { --accent: #d4507e; --accent-2: #f090b3; --accent-dark: #8a2d51; }
[data-theme="gold"]   { --accent: #d9a441; --accent-2: #f0c977; --accent-dark: #8a6a1f; }
[data-theme="cyan"]   { --accent: #2fb8d6; --accent-2: #7de0f2; --accent-dark: #14708a; }
[data-neon="on"] { --neon-glow: 0 0 18px var(--accent), 0 0 4px var(--accent); }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 40px;
  overflow-x: clip;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  min-height: 240px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--accent-dark), var(--bg) 70%);
  padding: 24px 20px 30px;
  transition: min-height 0.3s ease;
}
.hero.no-video { min-height: 140px; padding: 20px; }
.hero video, .hero .video-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: 27px; font-weight: 800; margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5);
}
.hero p {
  font-size: 14px; color: rgba(255,255,255,.82); max-width: 320px; line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

.icon-btn {
  position: absolute; top: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; backdrop-filter: blur(4px);
}
#muteBtn { right: 62px; }
#settingsBtn { right: 16px; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 14px 4px; }
.tab {
  flex: 0 1 auto; padding: 9px 15px; border-radius: 22px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s ease;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--neon-glow); }

.section { padding: 20px; display: none; }
.section.active { display: block; }
.section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; opacity: 0; transform: translateY(24px);
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), opacity 0.35s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:active { transform: scale(0.98); }
.card:hover { border-color: var(--accent); box-shadow: var(--neon-glow); }
.card-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.card-body { padding: 15px 17px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-open { font-size: 12.5px; font-weight: 700; color: var(--accent-2); }
.card-site {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px;
  text-decoration: none; white-space: nowrap; transition: color .15s ease, border-color .15s ease;
}
.card-site:hover { color: var(--text); border-color: var(--accent); }
.card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; color: var(--accent-2); font-weight: 700; }

/* "проект в работе" tile */
.card-wip {
  align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 28px 18px; background: none;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
}
.card-wip:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.wip-plus {
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-2); font-size: 26px; font-weight: 300; line-height: 44px;
}
.wip-title { font-size: 15px; font-weight: 700; color: var(--text); }
.wip-sub { font-size: 12px; color: var(--text-muted); line-height: 1.45; max-width: 22ch; }

.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; line-height: 1.7; font-size: 14px; color: var(--text-muted);
}
.about-card b { color: var(--text); }

.legal-list { display: flex; flex-direction: column; gap: 10px; }
.legal-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 15px 18px; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s ease;
}
.legal-item:active { border-color: var(--accent); }

.cta-btn {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 15px; border-radius: 16px; margin-top: 10px; font-size: 15px;
  box-shadow: var(--neon-glow);
}
.cta-btn.cta-btn-ghost {
  background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid rgba(255,255,255,.16); box-shadow: none;
}
.cta-btn.cta-btn-ghost:hover { background: rgba(255,255,255,.15); }

.loading { text-align: center; color: var(--text-muted); padding: 40px 0; }

.settings-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: flex-end; z-index: 100;
}
.settings-overlay.open { display: flex; }
.settings-sheet {
  background: var(--surface); width: 100%; border-radius: 24px 24px 0 0;
  padding: 22px 20px 30px; max-height: 80vh; overflow-y: auto;
}
.settings-sheet h2 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 14px; font-weight: 600; }
.settings-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.toggle {
  width: 46px; height: 26px; border-radius: 14px; background: var(--border);
  position: relative; cursor: pointer; transition: background 0.2s ease; flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 0.2s ease;
}
.toggle.on::after { transform: translateX(20px); }

.palette-grid { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 10px; }
.palette-dot { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.palette-dot.active { border-color: #fff; transform: scale(1.1); }
.palette-dot[data-c="purple"] { background: #7f77dd; }
.palette-dot[data-c="teal"] { background: #1fb583; }
.palette-dot[data-c="coral"] { background: #e05f34; }
.palette-dot[data-c="pink"] { background: #d4507e; }
.palette-dot[data-c="gold"] { background: #d9a441; }
.palette-dot[data-c="cyan"] { background: #2fb8d6; }

.close-sheet {
  display: block; text-align: center; margin-top: 20px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}

.demo-banner {
  background: rgba(127,119,221,0.15); border: 1px solid var(--accent);
  border-radius: 12px; padding: 12px 16px; font-size: 12px; color: var(--accent-2);
  margin-bottom: 18px; line-height: 1.5;
}
.slot-machine { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; text-align: center; }
.slot-reels { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.reel {
  width: 80px; height: 90px; background: var(--bg); border: 2px solid var(--border);
  border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 40px; box-shadow: var(--neon-glow);
}
.reel.spinning .reel-inner { animation: spin 0.15s linear infinite; }
@keyframes spin { 0% { transform: translateY(0); } 100% { transform: translateY(-90px); } }
.slot-result { font-size: 15px; font-weight: 700; margin-bottom: 6px; min-height: 22px; }
.slot-balance { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.ai-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.ai-chat { display: flex; flex-direction: column; gap: 10px; min-height: 200px; max-height: 400px; overflow-y: auto; padding: 4px 0; margin-bottom: 12px; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.ai-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-input-row { display: flex; gap: 8px; }
.ai-input-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; color: var(--text); font-size: 14px;
}
.ai-input-row button {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent);
  color: #fff; border: none; font-size: 16px; box-shadow: var(--neon-glow);
}

#heroVideo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3; z-index: 1;
}
.hero.no-video #heroVideo { display: none; }
.hero-features {
  margin-top: 14px; display: flex; flex-direction: column; gap: 6px;
}
.hero-feature {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.4;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,18,0.55) 0%, rgba(10,10,18,0.5) 45%, rgba(10,10,18,0.8) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,18,0.35), transparent 60%);
  z-index: 1;
}
.hero-content { z-index: 2; }

.project-detail-overlay {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 200; display: none; overflow-y: auto;
}
.project-detail-overlay.open { display: block; }
.detail-header {
  position: sticky; top: 0; background: var(--bg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border); z-index: 2;
}
.detail-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; cursor: pointer;
}
.detail-header h2 { font-size: 18px; font-weight: 700; }
.detail-gallery .no-shots { color: var(--text-muted); font-size: 13px; padding: 20px 0; }

.gallery-slider { overflow: hidden; border-radius: 14px; width: 100%; background: #050508; }
.gallery-track { display: flex; transition: transform 0.3s ease; touch-action: pan-y; }
.gallery-slide {
  flex: 0 0 100%; min-width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gallery-slide img {
  width: auto; max-width: 100%; max-height: 70vh;
  display: block; border-radius: 14px; object-fit: contain;
}
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); opacity: 0.4; cursor: pointer; transition: all 0.2s; }
.gallery-dot.active { opacity: 1; width: 16px; border-radius: 3px; background: var(--accent, #5b8cff); }
.detail-body { padding: 0 20px 30px; }
.detail-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

.stats-bar {
  display: flex; justify-content: space-around;
  padding: 16px 20px 4px; margin-top: -12px; position: relative; z-index: 3;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

/* card-shaped loading placeholder — image block + two text lines, shimmer sweep */
.skeleton-card {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.skeleton-card::before,
.skeleton-card::after {
  content: ""; display: block;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 45%, var(--surface) 90%);
  background-size: 300% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-card::before { height: 150px; }
.skeleton-card::after {
  height: 14px; margin: 16px 17px; border-radius: 6px; width: 62%;
  animation-delay: .2s;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-card::before, .skeleton-card::after { animation: none; opacity: .6; }
}

.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; margin-bottom: 16px; display: flex;
}
.product-card img { width: 110px; height: 110px; object-fit: cover; flex-shrink: 0; }
.product-card-body { padding: 12px 14px; flex: 1; }
.product-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.product-card p { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.product-price { font-size: 16px; font-weight: 800; color: var(--accent-2); }
.product-rating { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--accent); color: #fff; padding: 14px 20px;
  display: none; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 14px; z-index: 90;
}
.cart-bar.visible { display: flex; }

.review-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; font-size: 13px;
}
.review-stars { color: #f5c518; margin-bottom: 4px; }

.news-meta { font-size: 12px; color: var(--text-muted); }
.news-body {
  font-size: 14px; line-height: 1.7; color: var(--text);
}
.news-body p { margin-bottom: 14px; text-wrap: pretty; }
.news-body h2, .news-body h3 { margin: 22px 0 10px; text-wrap: balance; }
.news-body ul, .news-body ol { margin: 0 0 14px 20px; }
.news-body img { border-radius: 12px; margin: 14px 0; }
.news-body a { color: var(--accent-2); }

.lang-btn {
  padding: 8px 18px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer;
}
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

[data-a11y="on"] {
  font-size: 118%;
}
[data-a11y="on"] body { line-height: 1.7; }
[data-a11y="on"] .card, [data-a11y="on"] .product-card, [data-a11y="on"] .tab,
[data-a11y="on"] .cta-btn, [data-a11y="on"] .legal-item {
  border-width: 2px !important;
}
[data-a11y="on"] * { animation: none !important; transition: none !important; }
[data-a11y="on"] .hero::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 60%, var(--bg) 100%) !important;
}
[data-a11y="on"] .text-muted, [data-a11y="on"] p, [data-a11y="on"] .stat-label,
[data-a11y="on"] .ai-hint, [data-a11y="on"] .settings-sub {
  color: #d8d8e0 !important;
}

.review-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-form-stars { font-size: 26px; margin-bottom: 12px; cursor: pointer; }
.review-form-stars span { color: var(--border); margin-right: 4px; transition: color 0.15s ease; }
.review-form-stars span.active { color: #f5c518; }
.review-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 13px;
  margin-bottom: 10px; font-family: inherit;
}

.buy-efox-block { border-top: 1px solid var(--border); padding-top: 14px; }
.buy-efox-grid { display: flex; gap: 8px; }
.buy-efox-btn {
  flex: 1; padding: 10px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 13px;
}
.buy-efox-btn:active { background: var(--accent); border-color: var(--accent); }
.buy-result { font-size: 12px; color: var(--accent-2); margin-top: 8px; min-height: 16px; text-align: center; }

.games-launcher-grid { display: flex; gap: 12px; }
.game-launch-card {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color 0.2s ease;
}
.game-launch-card:active { border-color: var(--accent); }
.game-launch-icon { font-size: 34px; margin-bottom: 10px; }
.game-launch-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.game-launch-sub { font-size: 11px; color: var(--text-muted); }

.game-fullscreen {
  position: fixed; inset: 0; background: var(--bg); z-index: 300;
  display: none; flex-direction: column;
}
.game-fullscreen.open { display: flex; }
.game-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.coin-widget {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px 6px 6px; cursor: pointer;
}
.coin-icon { width: 28px; height: 28px; border-radius: 50%; }
.coin-widget span { font-weight: 800; font-size: 15px; }
.game-content { padding: 20px; flex: 1; overflow-y: auto; }

.coin-shop-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: flex-end; z-index: 310;
}
.coin-shop-overlay.open { display: flex; }
.coin-shop-sheet {
  background: var(--surface); width: 100%; border-radius: 24px 24px 0 0;
  padding: 24px 20px 30px;
}
.coin-shop-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.coin-icon-large { width: 48px; height: 48px; border-radius: 50%; }
.coin-shop-header h2 { font-size: 18px; font-weight: 700; }

.coin-icon {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

.coin-icon-large {
    width: 84px !important;
    height: 84px !important;
    object-fit: contain;
    margin: 0 auto 16px auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

.info-btn {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-weight: 700; cursor: pointer;
}
.payouts-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: none; align-items: flex-end; z-index: 320;
}
.payouts-overlay.open { display: flex; }
.payouts-sheet {
    background: var(--surface); width: 100%; border-radius: 24px 24px 0 0;
    padding: 24px 20px 30px;
}
.payout-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.payout-row:last-child { border-bottom: none; }
.payout-mult { font-weight: 800; color: var(--accent-2); }

.bet-control-panel {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 16px 0;
}
.bet-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer;
}
.bet-amount { text-align: center; min-width: 80px; }
.bet-label { font-size: 10px; color: var(--text-muted); display: block; }
.bet-btn-max {
    padding: 0 14px; height: 40px; border-radius: 12px;
    background: var(--accent); border: none; color: #fff; font-weight: 800; font-size: 12px;
}

.buy-efox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.buy-efox-btn {
    flex: 1 1 calc(33% - 12px);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.buy-efox-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.about-hero {
  text-align: center; padding: 24px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.about-avatar {
  font-size: 56px; margin-bottom: 10px;
  filter: drop-shadow(0 0 12px var(--accent));
}
.about-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.about-tagline { font-size: 13px; color: var(--text-muted); }

.about-section { margin-bottom: 22px; }
.about-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600;
}

.about-list { display: flex; flex-direction: column; gap: 14px; }
.about-list-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px;
}
.about-icon { font-size: 24px; flex-shrink: 0; }
.about-list-item div { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.about-list-item b { color: var(--text); font-size: 14px; }

.process-steps { display: flex; flex-direction: column; gap: 10px; }
.process-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-muted);
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.roulette-wheel-wrap {
  position: relative; display: flex; justify-content: center;
  margin: 24px 0;
}
.roulette-wheel {
  width: 180px; height: 180px; border-radius: 50%;
  background: conic-gradient(
    #d94848 0deg 40deg, #1a1a24 40deg 80deg,
    #d94848 80deg 120deg, #1a1a24 120deg 160deg,
    #2fb85a 160deg 186deg,
    #d94848 186deg 226deg, #1a1a24 226deg 266deg,
    #d94848 266deg 306deg, #1a1a24 306deg 346deg,
    #2fb85a 346deg 360deg
  );
  border: 4px solid var(--border);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transition: transform 3s cubic-bezier(.17,.67,.16,1.01);
}
.roulette-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: 20px; color: var(--accent-2);
  filter: drop-shadow(0 0 4px var(--accent));
}
.roulette-bet-options {
  display: flex; flex-direction: column; gap: 8px; margin: 16px 0;
}
.roulette-choice {
  padding: 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px;
}
.roulette-choice.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.bj-table { text-align: center; margin: 16px 0; }
.bj-hand-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.bj-hand { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 90px; }
.bj-card {
  width: 56px; height: 80px; border-radius: 10px;
  background: #fff; color: #111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.bj-card.red { color: #d94848; }
.bj-card.hidden { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: transparent; }
.bj-score { font-size: 14px; font-weight: 700; margin-top: 8px; color: var(--accent-2); }
.bj-actions { display: flex; gap: 10px; margin-top: 14px; }
.bj-actions .bet-btn-max { flex: 1; }

.detail-features {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; margin: 16px 0;
  font-size: 13px; line-height: 1.9; color: var(--text-muted);
  white-space: pre-line;
}

.premium-bet-panel {
    background: rgba(20, 20, 31, 0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; margin: 16px 0;
}
.bet-input-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bet-input-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.bet-input-box {
    display: flex; align-items: center; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border); border-radius: 10px; padding: 4px 12px;
}
.bet-input-box input {
    background: transparent; border: none; color: var(--text); font-size: 16px; font-weight: 800;
    width: 80px; text-align: right; margin-right: 6px; outline: none;
}
.bet-currency { font-size: 12px; color: var(--accent-2); font-weight: 700; }
.bet-chips { display: flex; gap: 8px; }
.bet-chip {
    flex: 1; padding: 10px 0; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-weight: 700; font-size: 14px;
    transition: transform 0.1s, background 0.2s;
}
.bet-chip:active { transform: scale(0.92); background: var(--accent); }
.chip-max { background: linear-gradient(135deg, #d9a441, #8a6a1f); border: none; color: #000; }

.roulette-pro-wrap {
    width: 100%; position: relative; margin: 20px 0;
    background: #050508; border-radius: 12px; border: 1px solid var(--border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8); overflow: hidden;
}
.roulette-pointer-line {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: #fff; z-index: 10; transform: translateX(-50%); box-shadow: 0 0 10px #fff;
}
.roulette-pointer-down {
    position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    color: #fff; z-index: 11; font-size: 18px; text-shadow: 0 0 5px #fff;
}
.roulette-track { display: flex; height: 80px; transition: transform 4s cubic-bezier(0.1, 1, 0.2, 1); }
.r-item {
    width: 65px; height: 100%; flex-shrink: 0; display: flex;
    justify-content: center; align-items: center; font-size: 24px;
    border-right: 1px solid rgba(0,0,0,0.3); color: white; font-weight: 900;
}
.r-red { background: linear-gradient(135deg, #e05f34, #97371a); }
.r-black { background: linear-gradient(135deg, #2b2b36, #14141f); }
.r-green { background: linear-gradient(135deg, #1fb583, #0c6d51); }
.r-history { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.rh-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 5px rgba(0,0,0,0.5); }

.wallet-tabs { display: flex; margin-bottom: 16px; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 4px; }
.w-tab { flex: 1; text-align: center; padding: 10px; font-weight: 700; font-size: 14px; border-radius: 10px; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.w-tab.active { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.history-list { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.h-item { display: flex; justify-content: space-between; background: var(--surface); padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 13px; }
.h-win { color: #5ce0b0; font-weight: 800; }
.h-lose { color: #ff4d4d; font-weight: 800; }

.game-fullscreen { background: #07070a; }

.slot-machine {
    background: rgba(20, 20, 31, 0.7);
    border: 1px solid rgba(127, 119, 221, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 0 30px rgba(127, 119, 221, 0.05);
}
.slot-reels { gap: 14px; }
.reel {
    width: 85px; height: 100px;
    background: linear-gradient(180deg, #050508 0%, #1c1c2b 50%, #050508 100%);
    border: 2px solid #26263a;
    border-radius: 16px;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.9), 0 0 15px rgba(127, 119, 221, 0.2);
    font-size: 46px;
}
.reel.spinning .reel-inner { filter: blur(2px); }

.bj-table {
    background: radial-gradient(circle at center, #0f4226 0%, #051a0e 100%);
    border: 2px solid #1c613c;
    border-radius: 24px; padding: 24px 16px;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.9), 0 10px 30px rgba(0,0,0,0.5);
    min-height: 280px; position: relative;
}
.bj-hand-label { color: rgba(255,255,255,0.6); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.bj-card {
    width: 65px; height: 95px; border-radius: 8px;
    background: #ffffff;
    box-shadow: -4px 4px 12px rgba(0,0,0,0.6);
    border: 1px solid #d1d1d1;
    font-family: "Courier New", monospace;
    position: relative; z-index: 2;
}
.bj-card.hidden {
    background: repeating-linear-gradient(45deg, #1f1f2e, #1f1f2e 5px, #2b2b36 5px, #2b2b36 10px);
    border: 2px solid #4a4a5e;
}
.bj-score {
    display: inline-block; background: rgba(0,0,0,0.6);
    padding: 4px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 16px; margin-top: -10px; position: relative; z-index: 3;
}

.roulette-pro-wrap { border: 2px solid #1f1f2e; box-shadow: 0 5px 20px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.9); }
.roulette-choice {
    opacity: 0.65; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.roulette-choice.selected {
    opacity: 1 !important; transform: translateY(-3px);
    border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.coin-shop-launcher {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(217,164,65,0.15), rgba(138,106,31,0.1));
  border: 1px solid rgba(217,164,65,0.3);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 16px;
}
.coin-shop-launcher-title { font-weight: 700; font-size: 14px; }
.coin-shop-launcher-sub { font-size: 12px; color: var(--text-muted); }

.settings-overlay.open { opacity: 1; pointer-events: auto; }
.settings-overlay {
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.settings-sheet {
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
.settings-overlay.open .settings-sheet { transform: translateY(0); }

.sheet-drag-handle {
  width: 40px; height: 5px; background: var(--border);
  border-radius: 3px; margin: 0 auto 16px auto;
}

.ios-toggle {
  width: 50px; height: 28px; border-radius: 14px;
  background: var(--surface-2); border: 2px solid var(--border);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ios-toggle.on { background: var(--accent); border-color: var(--accent); }
.ios-toggle-knob {
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  position: absolute; top: 2px; left: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ios-toggle.on .ios-toggle-knob { transform: translateX(22px); }

.lang-segment-control {
  display: flex; background: var(--surface-2); border-radius: 12px;
  padding: 4px; gap: 4px; margin-top: 8px; border: 1px solid var(--border);
}
.lang-seg-btn {
  flex: 1; text-align: center; padding: 8px 0; font-size: 13px; font-weight: 700;
  color: var(--text-muted); border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.lang-seg-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.detail-header-bar {
  position: sticky; top: 0; background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  padding: 14px 0; z-index: 10;
}
.detail-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.detail-project-badge {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.detail-main-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 40px 24px 60px; max-width: 1200px; margin: 0 auto;
  align-items: start;
}
.detail-left-col { position: sticky; top: 80px; }
.detail-right-col { display: flex; flex-direction: column; gap: 20px; }
.detail-title-new {
  font-size: 32px; font-weight: 800; line-height: 1.2;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.detail-desc-new {
  font-size: 15px; color: var(--text-muted); line-height: 1.8;
}
.detail-section-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-top: 10px; border-left: 3px solid var(--accent); padding-left: 10px;
}
.detail-features-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.feature-badge-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600;
}
.detail-web-info { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.detail-web-shot {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-2, 0 12px 30px -14px rgba(0,0,0,.5)); display: block;
}
.detail-web-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin: 0; }
.detail-sticky-cta { margin-top: 10px; }
@media (max-width: 900px) {
  .detail-main-grid { grid-template-columns: 1fr; padding: 20px 16px 40px; gap: 24px; }
  .detail-left-col { position: static; }
  .detail-title-new { font-size: 24px; }
  .detail-container { padding: 0 16px; }
}

.gallery-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px 0;
}

.detail-header-bar .detail-close {
  width: auto;
  height: auto;
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.review-form .cta-btn,
#submitReviewBtn,
#detailSubmitReviewBtn {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border: none;
  overflow: visible;
  z-index: 0;
}

.review-form .cta-btn::before,
#submitReviewBtn::before,
#detailSubmitReviewBtn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), transparent 30%, var(--accent) 60%, transparent 90%, var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: btnBorderSpin 3s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes btnBorderSpin {
  to { --angle: 360deg; }
}

/* ===================== Order builder (конструктор заказа) ===================== */
#orderBuilderScreen { flex-direction: column; }
#orderBuilderScreen .game-topbar { flex-shrink: 0; }
#orderBuilderScreen .game-content {
  flex: 1 1 0; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 24px;
}

.ob-step-title { font-size: 17px; font-weight: 800; margin: 4px 0 12px; }

/* progress rail */
.ob-rail { display: flex; align-items: center; gap: 6px; margin: 2px 0 16px; }
.ob-rail-step {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: var(--text-muted); white-space: nowrap;
}
.ob-rail-step.active { color: var(--text); }
.ob-rail-step.done { color: var(--accent-2); }
.ob-rail-dot {
  width: 20px; height: 20px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.ob-rail-step.active .ob-rail-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.ob-rail-step.done .ob-rail-dot { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.ob-rail-sep { flex: 1; height: 1px; background: var(--border); }

/* presets */
.ob-preset-h { font-size: 12px; font-weight: 700; color: var(--accent-2); margin-bottom: 8px; }
.ob-preset-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -4px 6px;
  padding-left: 4px; padding-right: 4px; scrollbar-width: none;
}
.ob-preset-row::-webkit-scrollbar { display: none; }
.ob-preset {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.ob-preset:active { transform: scale(.96); border-color: var(--accent); }
.ob-preset-ico { font-size: 16px; }
.ob-or {
  text-align: center; font-size: 11px; color: var(--text-muted); margin: 10px 0 4px;
  position: relative;
}
.ob-hot {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 1px 5px; border-radius: 5px; margin-left: 6px; vertical-align: middle;
}
.ob-quick-cta {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(135deg, var(--accent-dark), var(--surface));
  border: 1px solid var(--accent); border-radius: 16px; padding: 14px 16px;
  color: var(--text); cursor: pointer; margin-bottom: 14px;
}
.ob-quick-cta:active { transform: scale(.98); }
.ob-quick-ico { font-size: 22px; flex-shrink: 0; }
.ob-quick-sub { font-size: 11px; color: var(--text-muted); }
.ob-quick-arr { margin-left: auto; font-size: 18px; color: var(--accent-2); }
.ob-personal-note {
  background: rgba(127,119,221,0.1); border: 1px solid rgba(127,119,221,0.25);
  border-radius: 12px; padding: 11px 14px; font-size: 12px; color: var(--accent-2);
  line-height: 1.45; margin: 12px 0;
}
.ob-hint { font-size: 12px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
.ob-back {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-2);
  margin-bottom: 12px; cursor: pointer;
}

.ob-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-type-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 12px; text-align: center; cursor: pointer; transition: border-color .15s, transform .1s;
}
.ob-type-card:active { transform: scale(.97); }
.ob-type-card.selected { border-color: var(--accent); box-shadow: var(--neon-glow), inset 0 0 0 1px var(--accent); }
.ob-type-icon { font-size: 30px; margin-bottom: 8px; }
.ob-type-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ob-type-sub { font-size: 11px; color: var(--text-muted); line-height: 1.35; }

.ob-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 10px; overflow: hidden;
}
.ob-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.ob-sec-right { display: flex; align-items: center; gap: 8px; }
.ob-count {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}
.ob-chevron { color: var(--text-muted); font-size: 12px; transition: transform .2s; display: inline-block; }
.ob-section.open > .ob-section-head .ob-chevron { transform: rotate(180deg); }
.ob-section-body { display: none; padding: 4px 16px 12px; }
.ob-section.open > .ob-section-body { display: block; }

.ob-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.ob-group-head {
  font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer;
  padding: 6px 0; display: flex; align-items: center; gap: 6px;
}
.ob-group.open .ob-group-head .ob-chevron { transform: rotate(180deg); }
.ob-group-body { display: none; padding-left: 6px; }
.ob-group.open .ob-group-body { display: block; }

.ob-check {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer;
  font-size: 13px;
}
.ob-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ob-check-box {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border);
  flex-shrink: 0; position: relative; transition: .15s;
}
.ob-check input:checked + .ob-check-box {
  background: var(--accent); border-color: var(--accent);
}
.ob-check input:checked + .ob-check-box::after {
  content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 13px; font-weight: 900;
}
.ob-check-label { flex: 1; line-height: 1.35; }
.ob-check-price { font-size: 11px; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }

.ob-sum-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
}
.ob-sum-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 6px; }
.ob-sum-value { font-size: 15px; font-weight: 700; }
.ob-sum-sec { font-size: 13px; line-height: 1.5; margin-top: 4px; }

.ob-server-opts { display: flex; flex-direction: column; gap: 8px; }
.ob-server-opt {
  text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-weight: 600;
}
.ob-server-opt.selected { border-color: var(--accent); background: rgba(127,119,221,0.12); }

.ob-budget-tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 4px; }
.ob-bm {
  flex: 1; padding: 8px 6px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
}
.ob-bm.selected { background: var(--surface-2); color: var(--text); }

.ob-textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px;
  font-family: inherit; resize: vertical;
}
.ob-textarea:focus { outline: none; border-color: var(--accent); }

.ob-pricebar {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
}
.ob-price-info { width: 100%; }
.ob-price-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted);
}
.ob-price-value { font-size: 16px; font-weight: 800; line-height: 1.25; }
.ob-price-sub { font-size: 11px; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }
.ob-pricebar .cta-btn {
  width: 100%; max-width: none; margin: 0; padding: 13px; white-space: nowrap;
}
.ob-pricebar .cta-btn::before { display: none; }
.ob-pricebar .cta-btn:disabled { opacity: .45; }

.ob-success { text-align: center; padding: 50px 20px; }
.ob-success-icon { font-size: 54px; margin-bottom: 16px; }
.ob-success h3 { font-size: 18px; margin-bottom: 10px; }
.ob-success p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===================== Premium shop ===================== */
.shop-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; scrollbar-width: none; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cat {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.shop-cat.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pc-img-wrap { position: relative; flex-shrink: 0; }
.pc-img-wrap img { width: 110px; height: 110px; object-fit: cover; display: block; }
.pc-badge {
  position: absolute; top: 6px; left: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 6px;
}
.pc-badge-sale { background: #e0574f; left: auto; right: 6px; }
.pc-price-row, .pd-price-row { display: flex; align-items: baseline; gap: 8px; }
.pd-old-price { text-decoration: line-through; color: var(--text-muted); font-size: 13px; }
.muted-sm { color: var(--text-muted); font-size: 11px; }

.pd-gallery { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-gallery img {
  flex: 0 0 auto; max-height: 62vh; width: auto; max-width: 88%; border-radius: 16px;
  border: 1px solid var(--border); scroll-snap-align: center;
}
.pd-badge-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.pd-badge-row .pc-badge { position: static; }
.pd-specs { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.pd-specs td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pd-specs td:first-child { color: var(--text-muted); width: 45%; }
.review-item .verified {
  font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--accent); border-radius: 5px; padding: 1px 5px; margin-left: 6px;
}

.cart-bar { justify-content: space-between; align-items: center; cursor: pointer; }
.cart-bar-cta { font-weight: 800; }

#cartScreen .detail-body { padding-bottom: 40px; }
.cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.cart-row-mid { flex: 1; min-width: 0; }
.cart-row-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); font-size: 16px; font-weight: 700;
}
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; font-size: 16px; }
#cartCheckout .review-input { margin-top: 10px; }

/* ===================== Portfolio search + changelog ===================== */
.pf-search {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); padding: 11px 14px; font-size: 14px;
  margin-bottom: 14px; font-family: inherit;
}
.pf-search:focus { outline: none; border-color: var(--accent); }
.cl-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.cl-item:last-child { border-bottom: none; }
.cl-date { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.cl-title { font-size: 14px; font-weight: 700; margin: 3px 0; }
.cl-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===================== Client cabinet ===================== */
.cab-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.cab-name { font-size: 18px; font-weight: 800; }
.cab-tier { font-size: 13px; color: var(--accent-2); font-weight: 700; margin: 4px 0 10px; }
.cab-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.cab-section { margin-bottom: 18px; }
.cab-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cab-row { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: 13px; }
.cab-link:active { border-color: var(--accent); }
.cab-sub { color: var(--text-muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.cab-note { color: var(--accent-2); font-size: 12px; margin-top: 6px; }
.cab-empty { color: var(--text-muted); font-size: 12px; padding: 8px 2px; }

/* ===================== About/order tab restructure ===================== */
.about-lead { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.about-divider { height: 1px; background: var(--border); margin: 26px 0 18px; }
.about-block-h { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.legal-accordion { display: flex; flex-direction: column; gap: 8px; }
.legal-doc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.legal-doc-head {
  padding: 14px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.legal-doc-head .chev { color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.legal-doc.open .legal-doc-head .chev { transform: rotate(90deg); }
.legal-doc-body {
  display: none; padding: 0 16px 16px; font-size: 12.5px; line-height: 1.7;
  color: var(--text-muted); white-space: pre-line;
}
.legal-doc.open .legal-doc-body { display: block; }

.testimonials { display: flex; flex-direction: column; gap: 10px; }
.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.testimonial-text { font-size: 13.5px; line-height: 1.6; }
.testimonial-author {
  margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted);
}

/* ============================================================
   DESKTOP / RESPONSIVE SHELL   (added Phase K)
   Mobile-first stays untouched below ~760px. Above that the app
   becomes a centred, max-width site: fluid type, real card grids,
   aspect-ratio images (no more stretch), reading-measure text.
   ============================================================ */

:root { --shell: 1200px; --measure: 66ch; }

/* -- neutral improvements (also help mobile, no visual regression) -- */
h1, h2, h3, .hero h1, .section h2, .about-block-h { text-wrap: balance; }
p, .card p, .about-list-item div, .about-lead,
.testimonial-text, .detail-desc-new { text-wrap: pretty; }

/* images keep their ratio instead of being squashed to a fixed height */
.card img { height: auto; aspect-ratio: 16 / 10; }

/* portfolio + shop become fluid grids: 1 col on phones, more when there's room */
#projects-list,
#shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 18px;
  align-items: start;
}
#projects-list .card,
#shop-list .product-card { margin-bottom: 0; }
#projects-list .loading,
#projects-list .skeleton-card ~ .loading,
#shop-list .loading { grid-column: 1 / -1; }
#projects-list .pf-group-h {
  grid-column: 1 / -1;
  margin: 6px 0 -4px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
#projects-list .pf-group-h:first-child { margin-top: 0; }

/* -- tablet / desktop shell -- */
@media (min-width: 760px) {
  body { padding-bottom: 60px; }

  .hero {
    max-width: var(--shell);
    margin: 22px auto 0;
    border-radius: 28px;
    min-height: 300px;
    padding: 52px 56px 60px;
  }
  .hero h1 { font-size: clamp(1.9rem, 1.4vw + 1.2rem, 2.9rem); }
  .hero p { font-size: 15px; max-width: 540px; }
  .hero-features { max-width: 560px; }
  .hero-feature { font-size: 13.5px; }

  .stats-bar { max-width: var(--shell); margin-inline: auto; }

  .tabs {
    max-width: var(--shell);
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding: 18px 20px 14px;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(var(--bg) 70%, transparent);
    backdrop-filter: blur(6px);
  }
  .tab { font-size: 14px; padding: 10px 22px; }

  .section {
    max-width: var(--shell);
    margin-inline: auto;
    padding: 36px 40px 52px;
  }
  .section h2 { font-size: clamp(1.4rem, 0.8vw + 1.1rem, 2rem); margin-bottom: 24px; }
  .section > h3, .about-block-h { font-size: clamp(1.05rem, 0.4vw + 0.9rem, 1.3rem); }

  /* prose-heavy tabs: keep a comfortable reading width, don't span the page */
  #tab-about .about-card,
  .about-list-item div,
  .cl-text { max-width: var(--measure); }
  #tab-ai-launcher,
  #tab-support-launcher { max-width: 940px; }

  .games-launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    max-width: 680px;
  }

  .testimonials { max-width: 780px; }
  .legal-accordion { max-width: 860px; }
  #pfSearch, .pf-search { max-width: 420px; }

  footer { max-width: var(--shell); margin-inline: auto; }

  /* fullscreen overlays (constructor, cabinet, product/project detail) */
  .game-fullscreen .game-content,
  .project-detail-overlay .detail-body,
  #cartScreen .cart-body { max-width: 860px; margin-inline: auto; }

  /* card hover is a real affordance on desktop (no :active there) */
  .product-card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
  .product-card:hover { border-color: var(--accent); box-shadow: var(--neon-glow); transform: translateY(-2px); }
  .game-launch-card:hover,
  .legal-doc:hover { border-color: var(--accent); }
}

/* -- wide desktop: roomier gaps -- */
@media (min-width: 1180px) {
  #projects-list { gap: 22px; }
}

/* respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PHASE L — desktop premium redesign
   Navbar, 2-col hero with project bento, 2-col "Заказать",
   featured-card portfolio, shop tiles, elevation polish.
   All gated ≥860px (or 760 for grids) — Mini App view untouched.
   ============================================================ */
:root {
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.32), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-2: 0 2px 8px rgba(0,0,0,.36), 0 24px 54px -20px rgba(0,0,0,.66);
  --nav-h: 62px;
}
:root[data-scheme="light"] {
  --shadow-1: 0 1px 2px rgba(20,18,40,.05), 0 10px 26px -14px rgba(20,18,40,.14);
  --shadow-2: 0 2px 10px rgba(20,18,40,.08), 0 26px 56px -22px rgba(20,18,40,.2);
}

/* ---- site navbar (desktop only) ---- */
.site-nav { display: none; }
.hero-visual { display: none; }
.order-top-side { margin-top: 22px; }

.hero-inner { position: relative; z-index: 2; }
.hero-cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--neon-glow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(255,255,255,.16); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

.tier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.tier-card-h { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }
.tier-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.tier-row b { color: var(--accent-2); }
.tier-sub { font-size: 12px; color: var(--text-muted); margin: 3px 0 13px; }
.tier-note {
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted); line-height: 1.55;
}

@media (min-width: 860px) {
  .site-nav {
    display: flex; align-items: center; gap: 22px;
    position: sticky; top: 0; z-index: 60;
    max-width: var(--shell); margin: 0 auto;
    padding: 12px clamp(16px, 3vw, 40px);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .site-nav-brand { font-weight: 800; font-size: 15px; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
  .site-nav-links {
    /* 2026-09-24: было flex-wrap:nowrap + overflow-x:auto со скрытым
       скроллбаром -- на обычных ноутбучных ширинах (не только ultra-wide)
       8 пунктов не помещались в строку, лишние (в первую очередь последний,
       "Проверка ссылок") уезжали за край КОНТЕЙНЕРА без вертикального
       переноса и БЕЗ единого намёка, что там вообще есть скролл (скроллбар
       спрятан нарочно) -- кнопка физически была на странице, но невидима и
       недостижима мышью без знания "нужно скроллить именно этот блок вбок".
       wrap решает и без явного UI под горизонтальный скролл: лишние пункты
       просто уходят на вторую строку шапки, всегда видимые и кликабельные. */
    display: flex; gap: 2px; margin-right: auto; flex-wrap: wrap;
    row-gap: 6px;
  }
  .navlink {
    padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--text-muted); cursor: pointer; transition: color .15s, background .15s;
    white-space: nowrap; flex-shrink: 0;
  }
  .navlink:hover { color: var(--text); background: var(--surface); }
  .navlink.active { color: var(--text); background: var(--surface); }
  .site-nav-cta {
    padding: 9px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
    background: var(--accent); color: #fff; white-space: nowrap;
    box-shadow: var(--neon-glow); transition: transform .15s, filter .15s;
  }
  .site-nav-cta:hover { filter: brightness(1.09); transform: translateY(-1px); }

  .tabs { display: none !important; }

  /* ---- hero 2-col with bento ---- */
  .hero {
    max-width: var(--shell); margin: 14px auto 0;
    border-radius: var(--radius-lg);
    padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 60px);
    min-height: 340px;
  }
  .hero h1 { font-size: clamp(2.2rem, 2vw + 1.3rem, 3.4rem); line-height: 1.1; }
  .hero p { font-size: 16px; max-width: 46rem; }
  .hero-feature { font-size: 13.5px; }
  .hv-tile {
    position: relative; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.12); background: var(--surface);
    aspect-ratio: 3 / 4;
  }
  .hv-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .hv-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hv-cap {
    position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
  }

  /* ---- "Заказать" tab ---- */
  #tab-about { max-width: var(--shell); }
  .order-top { margin-bottom: 56px; }
  .order-top-side { display: block; margin-top: 28px; }

  /* ---- shop tiles ---- */
  #shop-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  #shop-list .product-card { flex-direction: column; }
  #shop-list .product-card .pc-img-wrap,
  #shop-list .product-card > img { width: 100%; }
  #shop-list .product-card .pc-img-wrap img,
  #shop-list .product-card > img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  #shop-list .product-card-body { width: 100%; }

  /* ---- elevation + polish ---- */
  .card, .product-card, .about-list-item, .tier-card,
  .game-launch-card, .legal-doc, .testimonial { box-shadow: var(--shadow-1); }
  .card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); }
  .section h2 { position: relative; padding-bottom: 14px; }
  .section h2::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 44px; height: 3px; border-radius: 2px; background: var(--accent);
  }
  footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 36px; }
}

/* ---- portfolio: uniform tile grid (like the shop) ---- */
#projects-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  /* grid-auto-rows:1fr forced EVERY implicit row (incl. the full-width
     .pf-group-h heading rows) to the tallest card's height → ~340px of dead
     space under each section heading. auto + stretch keeps cards in a row
     equal-height without stretching the heading rows. */
  grid-auto-rows: auto;
  align-items: stretch;
}
#projects-list .card { height: 100%; margin: 0; }
#projects-list .pf-group-h { align-self: end; }
@media (min-width: 900px) {
  #projects-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ============================================================
   PHASE L-2 — "Заказать" page: proper landing rhythm
   ============================================================ */
.order-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; max-width: 460px; }
.order-cta-row .btn-primary,
.order-cta-row .btn-ghost { flex: 1 1 auto; justify-content: center; min-width: 150px; }

.trust-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.trust-line span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
}

.quick-links-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius, 16px); padding: 20px;
}
.value-ico { font-size: 24px; display: block; margin-bottom: 12px; }
.value-card b { display: block; font-size: 14.5px; margin-bottom: 5px; color: var(--text); }
.value-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* process → step cards */
.process-step {
  align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 16px; font-size: 13.5px; color: var(--text);
  line-height: 1.45;
}
.process-step .step-num { margin-top: 0; }

@media (min-width: 720px) {
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
  }
  .process-step { flex-direction: column; gap: 12px; }
}

/* ---- desktop vertical rhythm for the whole "Заказать" tab ---- */
@media (min-width: 860px) {
  /* one consistent gap between the big blocks */
  #tab-about > .about-section,
  #tab-about > .value-grid,
  #tab-about > .about-hero { margin-bottom: clamp(40px, 5vw, 64px); }
  #tab-about > .about-divider { margin: clamp(48px, 6vw, 72px) 0 clamp(28px, 3vw, 40px); }
  #tab-about > .about-block-h { margin-bottom: 20px; }

  /* section sub-headings readable on a wide screen (was shrinking to 15px) */
  #tab-about .about-section > h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
  #tab-about #aboutProcessSection > .about-block-h,
  #tab-about #faqSection > .about-block-h { font-size: clamp(1.25rem, 0.5vw + 1rem, 1.6rem); }

  /* prose column below the fold; pitch blocks stay full width */
  #tab-about > #aboutTechSection,
  #tab-about > #aboutDoingSection,
  #tab-about > #changelogSection,
  #tab-about > #faqSection,
  #tab-about > .about-hero,
  #tab-about > .about-block-h,
  #tab-about > .about-divider,
  #tab-about > .legal-accordion { max-width: 860px; }
  #tab-about > #aboutProcessSection,
  #tab-about > .value-grid { max-width: none; }
  #tab-about .about-lead { max-width: 42rem; }

  /* keep the pitch elements from stretching in a wide single column */
  .order-top-main .about-lead { max-width: 42rem; }
  .quick-links-row { max-width: 480px; }
  .order-top-side { max-width: 420px; }

  /* compact author strip instead of a big centred avatar mid-page */
  .about-hero {
    display: flex; align-items: center; gap: 20px; text-align: left;
    padding: 20px 24px;
    border: 1px solid var(--border); border-radius: var(--radius, 16px);
    background: var(--surface); box-shadow: var(--shadow-1);
  }
  .about-avatar { font-size: 42px; margin: 0; filter: drop-shadow(0 0 10px var(--accent)); }
  .about-name { font-size: 18px; margin-bottom: 3px; }
}

/* two-column layouts only when there's real room for them */
@media (min-width: 1040px) {
  .order-top {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px; align-items: start;
  }
  .order-top-side { margin-top: 0; position: sticky; top: calc(var(--nav-h) + 20px); }

  .hero-inner {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px; align-items: center;
  }
  .hero-inner:has(.hero-visual:empty) { grid-template-columns: 1fr; max-width: 720px; }
  .hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
  .hero-visual:empty { display: none; }
}

/* ============================================================
   PHASE M — desktop typographic scale & density
   The base UI is phone-sized (13px body). On real screens bump
   readable text, headings, buttons and padding to a desktop scale
   (body ~16px, headings 1.15–2.4rem). rem = root 16px, unaffected
   by element px rules, so these overrides land cleanly.
   ============================================================ */
.section-intro {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  margin: -4px 0 20px; max-width: 60ch;
}

.launch-panel { display: grid; gap: 16px; }
.launch-card-lg { padding: 32px 24px; }
.support-info, .mini-note {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius, 16px); padding: 20px;
}
.support-step {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 14px;
}
.support-step span {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.support-contacts { font-size: 13px; color: var(--text-muted); padding-top: 6px; border-top: 1px solid var(--border); }
.support-contacts a { color: var(--accent-2); font-weight: 700; }
.mini-note b { display: block; font-size: 14px; margin-bottom: 6px; }
.mini-note p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }

@media (min-width: 900px) {
  :root { --measure: 68ch; }

  /* --- section frame --- */
  .section { padding: 48px clamp(32px, 4vw, 56px) 72px; }
  .section h2 {
    font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.5rem);
    margin-bottom: 26px; padding-bottom: 16px;
  }
  .section h2::after { width: 52px; height: 3px; }
  .section h2 + .section-intro { margin-top: -14px; }
  .section-intro { font-size: 1.05rem; line-height: 1.6; margin: 0 0 36px; }

  /* --- headings --- */
  .about-block-h { font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem); margin-bottom: 24px; }
  .card h3 { font-size: 1.22rem; margin-bottom: 8px; }
  .product-card h3 { font-size: 1.08rem; }
  .about-section > h3,
  .cab-section h3,
  .cl-title,
  .value-card b { font-size: 1.12rem; }
  .legal-doc-head { font-size: 1.02rem; padding: 18px 22px; }

  /* --- body / reading text --- */
  .card p { font-size: 1rem; line-height: 1.58; }
  .product-card p { font-size: .95rem; line-height: 1.5; }
  .about-lead { font-size: 1.1rem; line-height: 1.65; }
  .about-list-item div { font-size: 1rem; line-height: 1.6; }
  .about-list-item b { font-size: 1.05rem; }
  .about-card { font-size: 1.02rem; line-height: 1.75; padding: 26px; }
  .detail-body p, .detail-desc-new { font-size: 1.05rem; line-height: 1.8; }
  .cl-text,
  .testimonial-text,
  .cab-row,
  .value-card p,
  .tier-note,
  .support-step,
  .support-contacts,
  .mini-note p,
  .section-intro { font-size: .98rem; }
  .legal-doc-body { font-size: .98rem; line-height: 1.8; padding: 0 22px 22px; }
  .tier-row { font-size: 1rem; }
  .tier-sub, .cab-sub, .cab-stats { font-size: .9rem; }
  .tech-tag { font-size: .85rem; padding: 7px 15px; }
  .trust-line span { font-size: .82rem; padding: 7px 14px; }

  /* --- interactive --- */
  .btn-primary, .btn-ghost { font-size: 1rem; padding: 15px 28px; border-radius: 14px; }
  .cta-btn { font-size: 1.05rem; padding: 17px 24px; }
  .navlink { font-size: .96rem; padding: 9px 16px; }
  .site-nav-brand { font-size: 1.02rem; }
  .site-nav-cta { font-size: .92rem; padding: 11px 20px; }
  .game-launch-title { font-size: 1.05rem; }
  .game-launch-sub { font-size: .85rem; }
  .game-launch-icon { font-size: 40px; }

  /* --- density / padding --- */
  .card-body { padding: 22px 26px; }
  .value-card { padding: 24px; }
  .tier-card { padding: 26px; }
  .about-list-item { padding: 18px 20px; gap: 16px; }
  .about-icon { font-size: 26px; }
  .process-step { padding: 18px 20px; }
  .testimonial { padding: 20px 22px; }
  .cab-row { padding: 16px 18px; }

  /* --- single-card launcher tabs (AI / Support) --- */
  .launch-panel {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 24px; align-items: start; max-width: 860px;
  }
  .launch-card-lg { padding: 40px 28px; }
  .support-info, .mini-note { padding: 24px; }
}

@media (min-width: 1280px) {
  .section h2 { font-size: clamp(2rem, 1.2vw + 1.5rem, 2.7rem); }
  .about-lead { font-size: 1.15rem; }
  .card p { font-size: 1.03rem; }
}

/* ============================================================
   PHASE N — project case-study page + full-size swipe gallery
   ============================================================ */
.detail-gallery { display: block; overflow: visible; padding: 0; }
.shot-carousel { position: relative; }
.shot-track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shot-track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0; min-width: 0;
  display: flex; justify-content: center; align-items: flex-start;
}
/* phone screenshots are tall (≈1080×2300) — cap by height and centre them so
   they read as a phone screen, not a full-width poster. Wide shots fill instead. */
.shot img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 66vh;
  border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.65);
}
@media (min-width: 900px) {
  .shot img { max-height: 540px; }
}
/* caption + navigation bar under the screenshot carousel */
.shot-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
}
.shot-bar.shot-bar-static { justify-content: center; }
.shot-bar button {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.shot-bar button:hover { border-color: var(--accent); background: var(--surface-2); }
.shot-bar-mid { flex: 1; min-width: 0; }
.shot-cap {
  font-size: 14px; font-weight: 600; color: var(--text); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 20px; line-height: 20px;
}
.shot-bar-static .shot-cap {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px; min-height: 0;
}
.shot-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.shot-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted);
  opacity: .4; transition: width .2s, opacity .2s, background .2s;
}
.shot-dots span.on { opacity: 1; width: 16px; border-radius: 3px; background: var(--accent); }

.detail-reviews { max-width: 1200px; margin: 0 auto; padding: 24px 24px 60px; }

@media (min-width: 900px) {
  .detail-main-grid {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 56px; padding: 52px clamp(24px, 4vw, 56px) 40px; align-items: start;
  }
  .detail-left-col { position: static; }
  .detail-right-col { position: sticky; top: 88px; align-self: start; gap: 24px; }
  .detail-title-new { font-size: clamp(2rem, 1.5vw + 1.5rem, 2.8rem); }
  .detail-desc-new { font-size: 1.05rem; line-height: 1.8; }
  .detail-section-title { font-size: 1.05rem; margin-top: 6px; }
  .feature-badge-row { font-size: .95rem; padding: 12px 16px; }
  .shot-cap { font-size: .98rem; }

  .detail-reviews {
    padding: 40px clamp(24px, 4vw, 56px) 90px;
    border-top: 1px solid var(--border); margin-top: 8px;
  }
  .review-form { max-width: 560px; }
  .detail-header-bar .detail-container { max-width: 1200px; }
}
@media (min-width: 1200px) {
  .detail-main-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
}

/* ---- lock the page behind any full-screen overlay ---- */
body:has(.project-detail-overlay.open),
body:has(.game-fullscreen.open),
body:has(.coin-shop-overlay.open),
body:has(.settings-overlay.open),
body:has(.payouts-overlay.open) { overflow: hidden; }

/* every section starts under the sticky nav, not hidden behind it */
.section { scroll-margin-top: 72px; }

/* ---- inline SVG icon system (replaces emoji for a cleaner desktop look) ---- */
.ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.17em;
}
.ico-lg { width: 30px; height: 30px; stroke-width: 1.7; color: var(--accent-2); }
.value-ico .ico, .value-ico.ico { width: 26px; height: 26px; stroke-width: 1.8; color: var(--accent-2); }
.trust-line .ico { color: var(--accent-2); }
.hero-feature .ico { color: var(--accent-2); margin-right: 4px; }
.about-section > h3 .ico { color: var(--accent-2); margin-right: 6px; }

/* svg icon as the big launcher-card icon (block, centred) */
svg.game-launch-icon { display: block; margin: 0 auto 12px; color: var(--accent-2); }
.launch-card-lg svg.game-launch-icon { width: 40px; height: 40px; }
/* nav ghost/primary buttons: keep icon + label aligned */
.btn-primary .ico, .btn-ghost .ico, .site-nav-cta .ico { width: 18px; height: 18px; }

/* ============================================================
   PHASE O — nav highlight, floating controls, uniform shop cards
   ============================================================ */
.floating-ctl { position: fixed; top: 12px; right: 12px; z-index: 55; display: flex; gap: 8px; }
.floating-ctl .icon-btn { position: static; }

/* nav: bigger, with a clear active state */
.navlink {
  position: relative; font-weight: 600; color: var(--text-muted);
  transition: color .15s, background .15s;
}
.navlink:hover { color: var(--text); background: var(--surface); }
.navlink.active {
  color: var(--accent-2);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.navlink.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
@media (min-width: 860px) {
  .floating-ctl { top: 76px; right: 22px; }
  .navlink { font-size: 15px; padding: 10px 16px; border-radius: 10px; }
  .site-nav-cta { font-size: 14px; padding: 11px 20px; }
  .site-nav { gap: 20px; }
}

/* ---- shop: every card the same size, branded header panel ---- */
#shop-list { grid-auto-rows: 1fr; }
#shop-list .product-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
#shop-list .pc-img-wrap {
  width: 100%; aspect-ratio: 16 / 9; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pc-c1, #34344f), var(--surface-2) 85%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
#shop-list .pc-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pc-ph { width: 44px; height: 44px; color: rgba(255,255,255,.5); stroke-width: 1.5; }
.pc-cat {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: #fff; background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 999px;
}
#shop-list .pc-badge { top: 10px; left: 10px; }
#shop-list .pc-badge-sale { left: auto; right: 10px; }

#shop-list .product-card-body {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 18px;
}
#shop-list .product-card-body h3 { margin: 0; }
.pc-desc {
  color: var(--text-muted); line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.pc-meta b { color: var(--text); font-weight: 600; }
.pc-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-more { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent-2); }

@media (min-width: 900px) {
  #shop-list { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
  .pc-desc { font-size: .95rem; }
  #shop-list .product-card-body { padding: 18px 20px 20px; gap: 9px; }
}

/* ============================================================
   PHASE Q — website support chat, contacts, footer
   ============================================================ */
.webchat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.5);
  transition: transform .15s, filter .15s;
}
.webchat-fab:hover { transform: translateY(-2px); filter: brightness(1.08); }
.webchat-fab .ico { width: 24px; height: 24px; stroke-width: 2; }
body.webchat-on .webchat-fab { display: none; }
.cart-bar.visible ~ .webchat-fab { bottom: 74px; }

.webchat-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 96;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 36px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.6);
}
.webchat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.webchat-x { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.webchat-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.webchat-login { padding: 22px 18px; }
.webchat-login p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.webchat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.wc-msg {
  max-width: 82%; padding: 9px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.wc-out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.wc-in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.webchat-input {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.webchat-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 14px;
}
.webchat-input button {
  width: 42px; height: 42px; border-radius: 12px; border: none;
  background: var(--accent); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.webchat-input button .ico { width: 18px; height: 18px; }

/* team */
.team-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; transition: border-color .15s, transform .15s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.team-name { font-weight: 800; color: var(--text); font-size: 15px; margin-bottom: 10px; }
.team-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.role-tag {
  font-size: 11px; color: var(--text-muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}

/* partners */
.partners-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.partner-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; transition: border-color .15s, transform .15s;
}
.partner-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-name { font-weight: 800; color: var(--text); font-size: 15px; margin-bottom: 10px; }
.partner-links { display: flex; flex-direction: column; gap: 6px; }
.partner-link {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text-muted); transition: color .15s;
}
.partner-link:hover { color: var(--accent); }
.partner-link .ico { width: 18px; height: 18px; flex-shrink: 0; }

/* contacts */
.contacts-grid,
.footer-contacts {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.contact-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 12px; row-gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card .ico { width: 22px; height: 22px; color: var(--accent-2); flex-shrink: 0; grid-row: 1 / 3; }
.contact-card .c-label { font-size: 11.5px; color: var(--text-muted); }
.contact-card .c-value {
  font-size: 14px; font-weight: 700; color: var(--text);
  word-break: break-all; line-height: 1.3;
}

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; color: var(--text-muted); }
.footer-inner {
  max-width: var(--shell, 1200px); margin: 0 auto;
  padding: 36px 20px 24px; display: grid; gap: 28px;
}
.footer-name { font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 42ch; }
.footer-bottom {
  border-top: 1px solid var(--border); text-align: center;
  padding: 16px 20px; font-size: 12px; opacity: .8;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; padding: 44px 32px 28px; }
}

/* ---- portfolio tiles: compact type on desktop (override Phase M) ---- */
@media (min-width: 900px) {
  #projects-list .card-body { padding: 15px 17px 16px; }
  #projects-list .card h3 { font-size: 1.05rem; }
  #projects-list .card p { font-size: .9rem; -webkit-line-clamp: 2; }
}

/* ---- constructor: login gate ---- */
.ob-login-gate {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid var(--accent); border-radius: 14px;
  padding: 16px; margin: 14px 0 6px;
}
.ob-login-h { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.ob-login-gate p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }
#obLoginWidget { min-height: 40px; }

/* "Войти через бота" (web-login.js) — заменяет встроенный Telegram-виджет. */
.wl-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: var(--radius, 10px); text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.wl-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wl-code {
  align-self: stretch; text-align: center; font: 700 20px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 3px; background: var(--surface-2, var(--surface)); border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 12px; color: var(--text);
}
.wl-hint { font-size: 12px !important; color: var(--text-muted); margin: 0 !important; }
.wl-hint code {
  background: var(--surface-2, var(--surface)); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 11.5px; color: var(--text);
}
.wl-status {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px !important;
  color: var(--text-muted); margin: 0 !important;
}
.wl-status.wl-ok { color: var(--ok, #1fb583); }
.wl-status.wl-err { color: var(--danger, #e0574f); }
.wl-spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: wl-spin .8s linear infinite; flex: none;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-retry {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.wl-retry:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .wl-spinner { animation-duration: 2s; } }

/* ============================================================
   Hero chat mockup — replaces the old #heroVisual project bento.
   Pure-CSS looped animation: two client/studio messages, then a
   typing indicator, on a ~12s loop. Shown on every viewport
   (the bento was desktop-only). Full static fallback for
   prefers-reduced-motion.
   ============================================================ */
.hero-visual { display: flex !important; justify-content: center; margin-top: 26px; }
.hero-visual:empty { display: none !important; }
@media (min-width: 1040px) {
  .hero-visual { margin-top: 0; align-items: center; }
}

.hero-chat {
  width: 100%; max-width: 340px;
  background: rgba(16, 16, 26, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.7);
}
.hc-top {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2, #5ce0b0); flex: none; }
.hc-body {
  padding: 14px; display: flex; flex-direction: column; gap: 9px;
  min-height: 232px;
}
.hc-msg {
  max-width: 86%; padding: 9px 12px; border-radius: 14px;
  font-size: 12.7px; line-height: 1.45; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .38s ease, transform .38s ease;
}
.hc-msg.is-show { opacity: 1; transform: translateY(0); }
.hc-in  { align-self: flex-start; background: rgba(255, 255, 255, 0.09); border-bottom-left-radius: 5px; }
.hc-out { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 5px; }
.hc-typing {
  align-self: flex-end; display: flex; gap: 4px;
  padding: 10px 12px; border-radius: 14px; border-bottom-right-radius: 5px;
  background: var(--accent); opacity: 0; transition: opacity .3s ease;
}
.hc-typing.is-show { opacity: 1; }
.hc-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.85);
  animation: hc-bounce 1.2s infinite ease-in-out;
}
.hc-typing span:nth-child(2) { animation-delay: 0.15s; }
.hc-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes hc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* conversation content is cycled by /js/hero-chat.js (is-show toggles the transitions above) */

@media (prefers-reduced-motion: reduce) {
  .hero-chat .hc-msg { animation: none; opacity: 1; transform: none; transition: none; }
  .hero-chat .hc-typing { display: none; }
  .hc-typing span { animation: none; }
}

/* ============================================================
   Account: header trigger + login/logout modal (see js/auth.js)
   ============================================================ */
.site-nav-right { display: flex; align-items: center; gap: 14px; }
.nav-acct {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font: 700 13.5px/1 inherit; padding: 9px 15px; border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.nav-acct:hover { border-color: var(--accent); }
.nav-acct-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
}
#accountBtn.on { background: var(--accent); border-color: transparent; color: #fff; }
#accountBtn.on .ico { color: #fff; }

.auth-modal {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(6, 6, 12, 0.66); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-modal[hidden] { display: none; }
.auth-card {
  position: relative; width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 26px 24px 24px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.auth-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.auth-x:hover { border-color: var(--accent); }
.auth-h { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.auth-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 16px; }
.auth-wl { margin-top: 4px; }
.auth-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.auth-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 19px; font-weight: 800;
}
.auth-name { font-size: 16px; font-weight: 700; }
.auth-sub { font-size: 12.5px; color: var(--text-muted); }
.auth-logout {
  width: 100%; margin-top: 6px; padding: 11px 0; border-radius: 12px;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.auth-logout:hover { border-color: var(--danger, #e0574f); color: var(--danger, #e0574f); }
body.auth-open { overflow: hidden; }

.wl-check {
  align-self: stretch; margin-top: 2px; padding: 9px 0; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.wl-check:hover { border-color: var(--accent); }

/* ============================================================
   Cabinet (js/cabinet.js) — profile / cart / orders / certs
   ============================================================ */
.cab-hero { display: flex; align-items: center; gap: 14px; }
.cab-hero-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 22px; font-weight: 800;
}
.cab-hero-txt { min-width: 0; }
.cab-stats { margin: 12px 0 18px; gap: 10px; }
.cab-stat {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 14px; min-width: 84px;
}
.cab-stat b { font-size: 16px; color: var(--text); font-weight: 800; }
.cab-stat span { font-size: 11px; color: var(--text-muted); }
.cab-admin-card {
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid var(--accent); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px; font-weight: 700; color: var(--text);
}
.cab-admin-card:hover { filter: brightness(1.06); }
.cab-admin-arr { color: var(--accent); }
.cab-cart-go, .cab-logout {
  width: 100%; margin-top: 8px; padding: 12px 0; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.cab-cart-go { background: var(--accent); color: #fff; border: 0; }
.cab-cart-go:hover { filter: brightness(1.08); }
.cab-logout {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  margin-top: 18px;
}
.cab-logout:hover { border-color: var(--danger, #e0574f); color: var(--danger, #e0574f); }
.cab-empty-state { text-align: center; padding: 40px 20px; }
.cab-empty-ic { font-size: 40px; margin-bottom: 12px; }
.cab-empty-state h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.cab-empty-state p { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 320px; margin: 0 auto 20px; }
.cab-login-btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 28px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cab-login-btn:hover { filter: brightness(1.08); }

.auth-actions { display: flex; flex-direction: column; gap: 8px; }
.auth-cab, .auth-adm, .auth-logout {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 11px 0; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.auth-cab { background: var(--accent); color: #fff; border: 0; }
.auth-cab:hover { filter: brightness(1.08); }
.auth-adm { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.auth-adm:hover { border-color: var(--accent); }

.ob-phone-note {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin: 12px auto 0; max-width: 340px;
}

/* ============================================================
   v71 — project case-study redesign (single-column flow +
   device-framed gallery that adapts to phone / site screenshots)
   ============================================================ */
.detail-flow { padding-bottom: 20px; }
.dv-sec { max-width: 1080px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.dv-hero { max-width: 820px; padding-top: clamp(26px, 5vw, 52px); padding-bottom: 6px; }
.dv-gallery-wrap { padding-top: clamp(20px, 3.5vw, 34px); }
.dv-info { max-width: 900px; padding-top: 28px; padding-bottom: 44px; }

/* hero */
.dv-hero .detail-title-new { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.6rem); }
.dv-hero .detail-desc-new { margin-top: 12px; max-width: 60ch; }
.detail-rating-line {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px;
}
.detail-rating-line[hidden] { display: none; }
.drl-stars { color: #f5b301; letter-spacing: 1px; }
.drl-num { font-weight: 700; color: var(--text); }
.drl-count { color: var(--text-muted); }
.detail-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail-hero-cta .cta-btn {
  width: auto; margin-top: 0; padding: 13px 22px; font-size: 14.5px; flex: 0 1 auto;
}
@media (max-width: 520px) {
  .detail-hero-cta { flex-direction: column; }
  .detail-hero-cta .cta-btn { width: 100%; }
}

/* ---- gallery: shared ---- */
.detail-gallery { display: block; padding: 0; }
.shot-carousel { position: relative; }
.shot-stage { position: relative; }
.shot-track {
  display: flex; gap: 18px; padding: 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shot-track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 100%; margin: 0; scroll-snap-align: center; min-width: 0;
  display: flex; justify-content: center; align-items: flex-start;
}
.shot-carousel:not(.is-ready) .shot { min-height: 320px; }

.shot-frame { position: relative; background: var(--surface-2); overflow: hidden; max-width: 100%; }
.frame-bar, .frame-notch { display: none; }
/* strip the legacy bare-image treatment inside the new frames */
.detail-gallery .shot img {
  display: block; width: 100%; height: auto;
  max-width: 100%; max-height: none;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
}

/* nav arrows over the stage */
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: var(--text);
  background: rgba(10, 10, 18, 0.66); backdrop-filter: blur(6px);
  border: 1px solid var(--border); transition: border-color .15s, background .15s;
}
.shot-nav:hover { border-color: var(--accent); background: rgba(10, 10, 18, 0.82); }
.shot-prev { left: 10px; }
.shot-next { right: 10px; }
@media (max-width: 560px) {
  .shot-nav { width: 36px; height: 36px; font-size: 19px; }
  .shot-prev { left: 4px; } .shot-next { right: 4px; }
}

/* caption + dots */
.shot-bar {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 16px; min-height: 20px;
}
.shot-cap { font-size: 14px; font-weight: 600; color: var(--text); text-align: center; text-wrap: balance; }
.shot-cap:empty { display: none; }
.shot-bar-static { margin-top: 14px; }
.shot-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.shot-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
  opacity: .4; cursor: pointer; transition: width .2s, opacity .2s, background .2s;
}
.shot-dots span.on { opacity: 1; width: 20px; border-radius: 3px; background: var(--accent); }

/* ---- WEB (landscape) mode: browser window ---- */
.shot-carousel.is-web .shot-frame {
  width: 100%; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.7);
}
.shot-carousel.is-web .frame-bar,
.shot-frame--web .frame-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.shot-carousel.is-web .frame-bar span,
.shot-frame--web .frame-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none;
}

/* ---- PHONE (portrait) mode: device on a lit stage ---- */
.shot-carousel.is-phone .shot-stage {
  max-width: 560px; margin: 0 auto;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 74%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 26px; padding: 30px 0 24px;
}
.shot-carousel.is-phone .shot-prev { left: max(6px, calc(50% - 296px)); }
.shot-carousel.is-phone .shot-next { right: max(6px, calc(50% - 296px)); }
.shot-carousel.is-phone .shot-frame {
  --ph: clamp(360px, 54vh, 496px);
  padding: 10px; border-radius: 34px;
  background: linear-gradient(155deg, #31313d, #15151c);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 42px 84px -36px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.shot-carousel.is-phone .shot-frame img { height: var(--ph); width: auto; border-radius: 24px; }
.shot-carousel.is-phone .frame-notch {
  display: block; position: absolute; z-index: 2; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 19px; background: #15151c; border-radius: 0 0 13px 13px;
}
.shot-carousel.is-phone .shot-nav { background: rgba(10, 10, 18, 0.72); }

/* ---- "Сайт проекта" block: same browser frame ---- */
.detail-web-info { margin-top: 24px; display: block; }
.detail-web-info .shot-frame--web {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.6); margin: 10px 0 12px;
}
.detail-web-info .shot-frame--web[hidden] { display: none; }
.detail-web-info .detail-web-shot {
  display: block; width: 100%; height: auto;
  border: 0; border-radius: 0; box-shadow: none;
}

/* features: two columns on wider screens */
.detail-features-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .detail-features-grid { grid-template-columns: 1fr 1fr; } }

/* reviews block sat inside .detail-container (flex row) — force normal flow */
.project-detail-overlay .detail-reviews { display: block; }

/* v73 — case-study polish */
.project-detail-overlay .feature-badge-row { align-items: flex-start; gap: 10px; }
.project-detail-overlay .fbr-check { flex: none; line-height: 1.55; }
.shot-carousel.is-web { max-width: 980px; margin: 0 auto; }

/* ============================================================
   v75 — DESIGN REFRESH (path A)
   depth + accent + motion + full light theme. Appended last so
   it wins on equal specificity; only touches look, not layout.
   ============================================================ */

/* ---- ground: never a flat black slab ---- */
body {
  background:
    radial-gradient(80% 50% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    radial-gradient(70% 40% at 0% 8%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* ---- section rhythm: alternate a hair of tint, animate in ---- */
.section { position: relative; }
.section.active { animation: sec-rise .46s cubic-bezier(.2,.7,.3,1) both; }
@keyframes sec-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .section.active { animation: none; } }

.section h2::after {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent)) !important;
}

/* ---- cards: legible elevation + real hover ---- */
.card, .product-card {
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), border-color .2s ease, box-shadow .25s ease;
}
.card:hover, .product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2), 0 0 0 1px var(--accent-line), 0 20px 50px -22px color-mix(in srgb, var(--accent) 40%, transparent);
}
.card-img { background: var(--surface-2); position: relative; }
.card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 55%, transparent));
  opacity: .5; transition: opacity .25s ease;
}
.card:hover .card-img::after { opacity: .15; }
.pf-group-h {
  color: var(--text-dim) !important;
  display: flex; align-items: center; gap: 12px;
}
.pf-group-h::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ---- buttons ---- */
.btn-primary, .cta-btn:not(.cta-btn-ghost) {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover, .cta-btn:not(.cta-btn-ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 85%, transparent);
  filter: none;
}
.btn-ghost, .cta-btn.cta-btn-ghost {
  background: var(--ghost-bg); color: var(--text); border: 1px solid var(--ghost-brd);
}
.btn-ghost:hover, .cta-btn.cta-btn-ghost:hover {
  background: var(--ghost-bg-hover); border-color: var(--accent-line);
}

/* ---- desktop nav: glass ---- */
@media (min-width: 860px) {
  .site-nav {
    background: var(--glass);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--glass-brd);
  }
  .navlink.active, .navlink:hover { background: var(--surface-2); }
  .navlink.active { color: var(--accent-2); }
  .site-nav-cta {
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  }
}

/* ---- floating controls + mobile tabs ---- */
.floating-ctl .icon-btn {
  background: var(--glass); border: 1px solid var(--glass-brd); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tab {
  background: var(--surface); border-color: var(--border); color: var(--text-muted);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tab.active {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 75%, transparent);
}

/* ---- hero ---- */
.hero {
  background:
    var(--grad-hero),
    radial-gradient(circle at 26% 18%, var(--accent-dark), var(--bg) 72%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.hero-feature { color: var(--on-media-dim); }
.hero-feature .ico { color: var(--accent-2); }

/* hero chat mock — glass card, cleaner bubbles */
.hero-chat {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
}
.hc-top { color: var(--on-media-dim); border-bottom-color: var(--glass-brd); }
.hc-in {
  background: color-mix(in srgb, var(--surface-3) 90%, transparent);
  color: var(--text);
}
.hc-out { background: var(--accent); color: var(--accent-ink); }
.hc-typing { background: color-mix(in srgb, var(--surface-3) 90%, transparent); }

/* ---- settings / overlays ---- */
.settings-panel, .settings-overlay .settings-panel { background: var(--surface); }
.ios-toggle { background: var(--border-strong); }
.ios-toggle.on { background: var(--accent); }

/* ============ LIGHT-MODE fixes for dark-assuming rules ============ */
:root[data-scheme="light"] {
  color-scheme: light;
}
:root[data-scheme="light"] .hero {
  background:
    radial-gradient(120% 120% at 90% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 58%),
    linear-gradient(165deg, #e7e3f8, #f1eff9 72%);
}
:root[data-scheme="light"] .hero h1 { color: var(--text); text-shadow: none; }
:root[data-scheme="light"] .hero p,
:root[data-scheme="light"] .hero-feature { color: var(--text-muted); text-shadow: none; }
:root[data-scheme="light"] .hero-feature .ico { color: var(--accent); }
:root[data-scheme="light"] .hero video,
:root[data-scheme="light"] .hero .video-placeholder { display: none; }
:root[data-scheme="light"] .hero-chat { background: #ffffff; }
:root[data-scheme="light"] .hc-in {
  background: #ece9f6; color: var(--text);
}
:root[data-scheme="light"] .hc-typing { background: #ece9f6; }
:root[data-scheme="light"] .hc-top { color: var(--text-muted); }
:root[data-scheme="light"] .icon-btn { color: var(--text); }
:root[data-scheme="light"] .btn-primary { color: #fff; }
:root[data-scheme="light"] .tab.active,
:root[data-scheme="light"] .navlink.active { color: #fff; }
:root[data-scheme="light"] .navlink.active { color: var(--accent); }
:root[data-scheme="light"] .detail-header-bar { background: rgba(255,255,255,.82); }
:root[data-scheme="light"] .shot-carousel.is-phone .shot-frame {
  background: linear-gradient(155deg, #d9d6ea, #b9b4d6);
}
:root[data-scheme="light"] .shot-nav { background: rgba(255,255,255,.8); color: var(--text); }
/* games stay dark-themed regardless — casino felt doesn't do light */
:root[data-scheme="light"] .game-fullscreen { color: #f3f2f9; }

/* ---- scrollbar accent (both schemes) ---- */
* { scrollbar-color: var(--border-strong) transparent; }

/* ============================================================
   v77 — hero "свежие работы" strip + de-emphasised Игры/AI
   ============================================================ */
.navlink-soft { opacity: .62; }
.navlink-soft:hover { opacity: 1; }
@media (min-width: 860px) {
  .site-nav-links .navlink-soft { margin-left: 6px; }
}
.tab-soft { opacity: .68; }
.tab-soft.active { opacity: 1; }

.hero-strip {
  position: relative; z-index: 2;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.hero-strip[hidden] { display: none; }
.hero-strip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-media-dim);
}
.hero-strip-head a {
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: .04em; color: var(--accent-2); white-space: nowrap;
}
.hero-strip-head a .ico { width: 14px; height: 14px; }

.hs-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.hs-track {
  display: flex; gap: 14px; width: max-content;
  animation: hs-scroll var(--hs-dur, 36s) linear infinite;
}
.hs-viewport:hover .hs-track { animation-play-state: paused; }
@keyframes hs-scroll { to { transform: translateX(-50%); } }

.hs-item {
  position: relative; flex: 0 0 auto;
  width: 210px; aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: var(--surface-2);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.6);
  transition: transform .2s ease, border-color .2s ease;
}
.hs-item:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.hs-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.hs-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 10px 7px; font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .hs-item { width: 168px; }
  .hero-strip { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-track { animation: none; }
  .hs-viewport { overflow-x: auto; scrollbar-width: none; }
  .hs-viewport::-webkit-scrollbar { display: none; }
}
/* on desktop the hero only shows for the landing tab — strip rides along with it */

/* ============================================================
   v78 — landing (path B): studio rhythm, proof strip, stepper
   ============================================================ */
.about-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 10px;
}
@media (min-width: 900px) { .about-eyebrow { font-size: 12.5px; } }

.order-top-main h2 { line-height: 1.12; }
@media (min-width: 900px) {
  .order-top-main h2 { font-size: clamp(1.9rem, 1rem + 2.4vw, 2.9rem); letter-spacing: -.02em; }
}

/* proof strip */
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 4px 0 22px; padding: 14px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.proof-strip:empty { display: none; }
.proof-item { display: flex; flex-direction: column; gap: 1px; }
.proof-num {
  font-size: 20px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.proof-label { font-size: 11.5px; color: var(--text-muted); }
@media (min-width: 900px) {
  .proof-num { font-size: 26px; }
  .proof-label { font-size: 12.5px; }
  .proof-strip { gap: 12px 40px; }
}

/* process → numbered stepper (portfolio.js already writes the digit) */
.process-steps { position: relative; gap: 0; }
.process-step {
  position: relative; align-items: flex-start;
  padding: 14px 0 14px 0; border: 0; background: transparent;
  font-size: 14px; color: var(--text);
}
.process-step + .process-step { border-top: 1px solid var(--hairline); }
.process-step .step-num {
  width: 30px; height: 30px; font-size: 13px;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--accent-line);
}
@media (min-width: 900px) {
  .process-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .process-step {
    flex-direction: row; align-items: flex-start; gap: 14px;
    padding: 20px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); box-shadow: var(--shadow-1);
  }
  .process-step + .process-step { border-top: 1px solid var(--border); }
  .process-step .step-num { width: 34px; height: 34px; font-size: 14px; }
}

/* value cards: accent icon chip + hover */
.value-card {
  transition: transform .2s cubic-bezier(.2,.7,.3,1), border-color .2s, box-shadow .25s;
}
.value-card:hover {
  transform: translateY(-3px); border-color: var(--accent-line);
  box-shadow: var(--shadow-2);
}
.value-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.value-ico .ico, .value-ico.ico { margin: 0; }

/* tier card: premium */
.tier-card {
  background: var(--grad-panel);
  box-shadow: var(--shadow-1);
}
.tier-card-h {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .12em;
}
.tier-row { padding: 3px 0; }
.tier-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.tier-note {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
}

/* block headings — accent tick */
#tab-about .about-block-h { position: relative; }

/* ============================================================
   v80 — audit polish: modernise hero, CTA row, value grid
   ============================================================ */

/* hero feature list → compact pill row */
.hero-features {
  flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.hero-feature {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; line-height: 1;
  padding: 8px 13px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  color: var(--on-media-dim);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-feature .ico { width: 14px; height: 14px; margin: 0; flex: none; }
@media (min-width: 900px) {
  .hero-features { max-width: 640px; }
  .hero-feature { font-size: 12.5px; padding: 9px 15px; }
}
:root[data-scheme="light"] .hero-feature { background: rgba(255,255,255,.7); color: var(--text-muted); }

/* landing CTA row — inline auto-width on desktop (was full-bleed) */
@media (min-width: 720px) {
  .order-cta-row { flex-wrap: wrap; }
  .order-cta-row .btn-primary,
  .order-cta-row .btn-ghost {
    flex: 0 0 auto; width: auto; min-width: 0; padding: 14px 26px;
  }
}

/* value grid: 2 across until there's real room for 4 (text was a narrow column) */
@media (min-width: 620px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1360px) {
  .value-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-card p { text-wrap: pretty; }

/* hero-strip head — was near-invisible on the light hero */
:root[data-scheme="light"] .hero-strip-head { color: var(--text-muted); }
:root[data-scheme="light"] .hero-strip-head a { color: var(--accent); }
:root[data-scheme="light"] .hero-strip { border-top-color: rgba(20,18,40,.12); }

/* support: keep the two cards to a readable centred column, kill the right void */
#tab-support-launcher .launch-panel,
#tab-support-launcher > .launch-card-lg,
#tab-support-launcher .support-info {
  max-width: 820px; margin-inline: auto;
}
@media (min-width: 900px) {
  #tab-support-launcher .support-cols,
  #tab-support-launcher .launch-panel { margin-inline: auto; }
}

/* feature check — swap the emoji look for a tidy accent tick */
.feature-badge-row > span:first-child,
.feature-badge-row .fbr-check {
  font-size: 0; flex: none; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  position: relative;
}
.feature-badge-row > span:first-child::after,
.feature-badge-row .fbr-check::after {
  content: ""; position: absolute; left: 5px; top: 3px;
  width: 5px; height: 9px; border: solid var(--accent-2);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}

/* ============================================================
   v82 — landing section rhythm + author strip
   ============================================================ */
/* break the flat dark ribbon: process & FAQ become distinct zones */
#tab-about #aboutProcessSection,
#tab-about #faqSection {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(22px, 3.5vw, 38px);
  margin-block: clamp(30px, 4vw, 48px);
}
@media (min-width: 900px) {
  #tab-about #aboutProcessSection,
  #tab-about #faqSection { padding: clamp(30px, 3.5vw, 44px) clamp(28px, 3.5vw, 44px); }
  #tab-about #aboutProcessSection > .about-block-h,
  #tab-about #faqSection > .about-block-h { margin-top: 0; }
}
#tab-about #aboutProcessSection .about-eyebrow,
#tab-about #faqSection .about-eyebrow { margin-top: 0; }

/* author strip: not a full-width empty bar */
@media (min-width: 900px) {
  .about-hero {
    max-width: 560px;
    background: var(--grad-panel);
    border-color: var(--accent-line);
  }
  .about-avatar { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 60%, transparent)); }
}

/* hero feature pills — allow two per row on desktop, cap width */
@media (min-width: 900px) {
  .hero-features { max-width: 560px; }
  .hero-feature { max-width: 100%; font-size: 12px; }
}

/* value cards — give the icon chip the section accent, tighten copy */
.value-card { padding: clamp(20px, 2.5vw, 26px); }
.value-card b { margin-bottom: 6px; }

/* ============================================================
   v86 — шапка в одну строку (было flex-wrap → 2 ряда на любой
   ширине), компактный режим для 860–1199px, разделитель перед
   второстепенными пунктами (Игры / EFSec)
   ============================================================ */
.site-nav-brand .brand-short, .site-nav-cta .cta-short { display: none; }
@media (min-width: 860px) {
  .site-nav { flex-wrap: nowrap; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav-links { flex-wrap: nowrap; gap: 2px; min-width: 0; margin-right: auto; align-items: center; }
  .navlink { padding: 8px 13px; font-size: 14.5px; line-height: 1.2; }
  .navlink.active::after { left: 13px; right: 13px; }
  .site-nav-links .navlink-soft { margin-left: 0; }
  .site-nav-links .navlink:not(.navlink-soft) + .navlink-soft {
    margin-left: 10px; position: relative;
  }
  .site-nav-links .navlink:not(.navlink-soft) + .navlink-soft::before {
    content: ''; position: absolute; left: -6px; top: 25%; bottom: 25%;
    width: 1px; background: var(--border-strong, var(--border));
  }
  .site-nav-right { gap: 10px; flex-shrink: 0; }
}
@media (min-width: 860px) and (max-width: 1199px) {
  .site-nav { gap: 10px; }
  .navlink { padding: 7px 9px; font-size: 13.5px; }
  .navlink.active::after { left: 9px; right: 9px; }
  .site-nav-brand .brand-long, .site-nav-cta .cta-long { display: none; }
  .site-nav-brand .brand-short { display: inline; }
  .site-nav-cta { padding: 9px 14px; }
}
.navlink-soft.active { opacity: 1; }

/* v87 — иконки (тема/звук/настройки) на десктопе живут в шапке, а не висят
   поверх hero; на телефоне hero получает отступ, чтобы иконки не резали заголовок */
.floating-ctl.in-nav { position: static; gap: 2px; z-index: auto; }
.floating-ctl.in-nav .icon-btn {
  width: 34px; height: 34px; font-size: 15px;
  background: transparent; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.floating-ctl.in-nav .icon-btn:hover { background: var(--surface-2); }
.floating-ctl.in-nav #accountBtn { display: none; }
@media (max-width: 859px) {
  .hero-inner { padding-top: 46px; }
}
/* «Новости» без статей: лента изменений вместо пустого экрана */
.news-fallback { max-width: 720px; }
.news-fallback-note { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.news-fallback-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-fallback-item:last-child { border-bottom: 0; }
.news-fallback-item small { color: var(--text-muted); font-size: 12px; }
.news-fallback-item h3 { margin: 4px 0 6px; font-size: 17px; }
.news-fallback-item p { margin: 0; color: var(--text-muted); line-height: 1.55; }
/* места в шапке на 3 иконки нет: в шапке только тема и настройки
   (звук — только для видео hero, которое и так без звука) */
.floating-ctl.in-nav #muteBtn { display: none; }
@media (min-width: 860px) {
  .site-nav-links { min-width: auto; }
  .site-nav-cta .cta-long { display: none; }
}
@media (min-width: 860px) and (max-width: 999px) {
  .site-nav-brand .brand-short { display: none; }
}
@media (min-width: 860px) and (max-width: 999px) {
  .site-nav { gap: 8px; }
  .navlink { padding: 7px 8px; font-size: 13px; }
  .navlink.active::after { left: 8px; right: 8px; }
}

/* v88 — главная: «Что нового» и «Частые вопросы» в две колонки на всю
   ширину (было 860px слева + пустая правая половина); игры — 3 карточки
   на всю ширину */
@media (min-width: 1000px) {
  .about-duo {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px; align-items: start;
  }
  .about-duo > .about-section { max-width: none; margin-bottom: 0; }
  .about-duo .legal-accordion, #legalAccordion { max-width: none; }
  #faqSection { margin-top: 0; }
}
@media (min-width: 860px) {
  .games-launcher-grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 16px; }
  .games-launcher-grid .game-launch-card { padding: 30px 20px; }
  .games-launcher-grid .game-launch-icon { font-size: 48px; }
}
@media (min-width: 1000px) {
  #tab-about > .about-divider,
  #tab-about > .about-block-h,
  #tab-about > .legal-accordion { max-width: none; }
  #tab-about .about-duo > #faqSection,
  #tab-about .about-duo > #changelogSection {
    margin-block: clamp(30px, 4vw, 48px) 0;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 22px;
    padding: clamp(30px, 3.5vw, 44px) clamp(28px, 3.5vw, 44px);
  }
  #tab-about .about-duo > #changelogSection > h3 {
    font-size: clamp(1.25rem, 0.5vw + 1rem, 1.6rem); font-weight: 800; margin-bottom: 14px;
  }
  #tab-about .about-duo > #changelogSection > h3 .ico { display: none; }
}

/* v89 — баннер «Сравнение платформ» в портфолио */
.cmp-banner{display:flex;align-items:center;gap:16px;justify-content:space-between;margin:0 0 22px;padding:18px 22px;border-radius:16px;
  background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 22%,var(--surface)),var(--surface));border:1px solid var(--border);text-decoration:none;color:var(--text);transition:transform .2s,border-color .2s}
.cmp-banner:hover{transform:translateY(-2px);border-color:var(--accent)}
.cmp-banner__t{font-size:15px;line-height:1.5;color:var(--text-muted)}.cmp-banner__t b{display:block;color:var(--text);font-size:17px;margin-bottom:2px}
.cmp-banner__a{flex-shrink:0;background:var(--accent);color:#fff;font-weight:700;padding:10px 16px;border-radius:12px;white-space:nowrap}
@media(max-width:600px){.cmp-banner{flex-direction:column;align-items:flex-start}}

/* v90 — блок «Примеры сайтов» на главной */
.demo-sites{margin:34px 0 10px}
.ds-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}
.ds-card{display:block;border-radius:16px;overflow:hidden;border:1px solid var(--border);background:var(--surface);text-decoration:none;color:var(--text);transition:transform .2s,border-color .2s}
.ds-card:hover{transform:translateY(-4px);border-color:var(--accent)}
.ds-card img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;display:block}
.ds-card span{display:block;padding:10px 12px;font-size:13px;color:var(--text-muted)}.ds-card b{display:block;color:var(--text);font-size:15px}
@media(max-width:860px){.ds-grid{grid-template-columns:1fr 1fr}}

/* v91 — мини-сравнение в «О нас», ссылка на замер скорости */
.about-cmp{margin:26px 0 34px}.ac-w{overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.ac{border-collapse:collapse;width:100%;min-width:640px;font-size:14px}.ac th,.ac td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
.ac thead th{font-size:15px}.ac th small{display:block;font-weight:400;color:var(--text-muted);font-size:12px}.ac tbody td:first-child{color:var(--text);font-weight:600}
.ac td{color:var(--text-muted)}.ac .ac-our{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--text)}.ac tr:last-child td{border-bottom:0}
.ac-more{display:inline-block;margin-top:12px;color:var(--accent-2,var(--accent));font-weight:600;text-decoration:none}
.footer-speed{color:inherit;opacity:.85}.footer-speed:hover{opacity:1;text-decoration:underline}

@media(max-width:600px){
  .ac-w{border:0;background:none;overflow:visible}.ac{min-width:0}.ac thead{display:none}
  .ac tr{display:block;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:6px 14px;margin-bottom:10px}
  .ac td{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:8px 0;text-align:right}
  .ac td:first-child{display:block;text-align:left;font-size:15px;padding-top:6px}.ac td:last-child{border-bottom:0}
  .ac td[data-l]::before{content:attr(data-l);color:var(--text-muted);font-weight:400;text-align:left}
  .ac .ac-our{background:none;color:var(--accent-2,var(--accent));font-weight:600}
}

/* v93 — 6 примеров сайтов: сетка 3×2 */
.ds-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:860px){.ds-grid{grid-template-columns:1fr 1fr}}

/* ── плашки «тип сайта / стек» на фото карточки + фильтр по типам (v94) ── */
.card-img { position: relative; }
.card-tags { position: absolute; z-index: 2; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ctag { font: 700 11.5px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.ctag-type { color: #fff; background: linear-gradient(135deg, #ff7a3d, #ff3d6e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 16px -2px rgba(255,80,90,.65); animation: ctagGlow 2.6s ease-in-out infinite; }
.ctag-type::before { content: "🔥"; margin-right: 5px; }
.ctag-stack { color: #eceaff; background: rgba(20,18,34,.72); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
@keyframes ctagGlow { 0%,100% { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 14px -2px rgba(255,80,90,.5); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 4px 22px 0 rgba(255,110,70,.85); } }
@media (prefers-reduced-motion: reduce) { .ctag-type { animation: none; } }
.pf-types { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 8px; scrollbar-width: none; }
.pf-types::-webkit-scrollbar { display: none; }
.pf-type { flex-shrink: 0; border: 1px solid var(--accent-line); background: var(--surface); color: inherit; border-radius: 999px;
  padding: 7px 13px; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.pf-type i { font-style: normal; opacity: .55; margin-left: 3px; }
.pf-type:hover { background: var(--accent-soft); }
.pf-type.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pf-type.on i { opacity: .8; }
/* блок «Примеры сайтов»: 11 концептов + карточка «Ваш сайт», плашка типа на превью (v94) */
.ds-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:980px){.ds-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:860px){.ds-grid{grid-template-columns:1fr 1fr}}
.ds-card .ds-img{display:block;padding:0;position:relative}
.ds-card .ctag{position:absolute;left:8px;top:8px;display:inline-block;padding:5px 9px;font-size:10.5px;color:#fff}
.ds-cta{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:180px;border-style:dashed;background:var(--accent-soft)}
.ds-cta .ds-plus{font-size:40px;line-height:1;color:var(--accent);padding:0}
.ds-cta b{margin-bottom:2px}

/* ===== конструктор: 3 режима + наборы по уровням + профессиональное ТЗ (v95) ===== */
.ob-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ob-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; color: var(--text);
  transition: border-color .15s, transform .12s, box-shadow .15s; }
.ob-mode:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--glow-accent); }
.ob-mode b { font-size: 15px; }
.ob-mode span:last-child { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.ob-mode-ico { font-size: 24px; }
#obProBtn { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border-color: var(--accent-line); }
@media (max-width: 560px) { .ob-modes { grid-template-columns: 1fr; } .ob-mode { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; } .ob-mode span:last-child { flex-basis: 100%; } }
.ob-level { margin-bottom: 12px; }
.ob-level-h { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; }
.ob-level-h b { color: var(--text); }
.ob-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ob-preset-card { align-items: flex-start; text-align: left; padding: 12px; width: 100%; }
.ob-preset-card:hover { border-color: var(--accent); }
.ob-preset-txt { display: flex; flex-direction: column; gap: 3px; }
.ob-preset-txt b { font-size: 13px; }
.ob-preset-desc { font-size: 11.5px; font-weight: 400; color: var(--text-muted); line-height: 1.35; }
.ob-preset-meta { font-size: 11px; font-weight: 700; color: var(--accent-2); }

.obp-tabs { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.obp-tabs button, .obp-views button { flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; padding: 7px 14px; font: 700 12.5px Inter, system-ui, sans-serif; cursor: pointer; }
.obp-tabs button.on, .obp-views button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.obp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
@media (max-width: 900px) { .obp-wrap { grid-template-columns: 1fr; } }
.obp-side { position: sticky; top: 0; display: grid; gap: 10px; }
@media (max-width: 900px) { .obp-side { position: static; } }
.obp-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.obp-group.locked { opacity: .75; }
.obp-gh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13.5px; }
.obp-sub { font-size: 11px; color: var(--text-muted); }
.obp-lock { font-size: 11px; color: var(--accent-2); }
.obp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.obp-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 7px 11px;
  font: 600 12.5px Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .12s, background .12s; }
.obp-chip:hover:not(:disabled) { border-color: var(--accent); }
.obp-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.obp-chip:disabled { cursor: not-allowed; }
.obp-chip.obp-own { border-style: dashed; }
.obp-own-in { margin-top: 8px; }
.obp-desc { margin-top: 9px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.obp-desc b { color: var(--text); }
.obp-tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.obp-t-ours { background: #ffd54a; color: #3a2a00; } .obp-t-pop { background: #3b82f6; color: #fff; } .obp-t-ent { background: #64748b; color: #fff; }
.obp-t-old { background: #b45309; color: #fff; } .obp-t-niche { background: #7c3aed; color: #fff; } .obp-t-add { background: #0f9f6e; color: #fff; }
.obp-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; }
.obp-next { width: 100%; border: 1px dashed var(--accent-line); background: none; color: var(--accent-2); border-radius: 12px; padding: 11px; font: 700 13px Inter, sans-serif; cursor: pointer; }
.obp-stack, .obp-tree, .obp-notes { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.obp-sh { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.obp-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin: 0 4px 5px 0; }
.obp-ours { font-size: 11.5px; color: var(--accent-2); margin-top: 4px; }
.obp-notes { display: grid; gap: 6px; }
.obp-note { font-size: 12px; line-height: 1.45; }
.obp-note.warn { color: #f5b041; }
.obp-fix { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 4px 9px; font: 700 11.5px Inter, sans-serif; cursor: pointer; margin-top: 8px; }
.obp-views { display: flex; gap: 5px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.obp-views button { padding: 5px 10px; font-size: 11.5px; }
.obp-view-body { max-height: 460px; overflow: auto; font: 12px/1.55 "JetBrains Mono", ui-monospace, Menlo, monospace; }
.obp-node { display: flex; gap: 6px; align-items: baseline; padding: 1px 0 1px calc(var(--d) * 14px); white-space: nowrap; border-radius: 4px; }
.obp-node .obp-ico { width: 16px; flex-shrink: 0; text-align: center; font-size: 11px; }
.obp-node .obp-name { color: var(--text); }
.obp-cmt { color: var(--text-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.obp-cmt::before { content: "— "; }
.obp-root .obp-name { font-weight: 700; color: var(--accent-2); }
.obp-new { animation: obpNew 1.6s ease-out; }
@keyframes obpNew { 0% { background: color-mix(in srgb, var(--accent) 45%, transparent); } 100% { background: transparent; } }
.obp-legend { font: 11px Inter, system-ui, sans-serif; color: var(--text-muted); margin: 8px 0 4px; white-space: normal; }
.obp-table { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 8px; overflow: hidden; }
.obp-tn { background: var(--surface-2); padding: 5px 9px; font-weight: 700; color: var(--accent-2); }
.obp-f { display: grid; grid-template-columns: minmax(90px, auto) auto 1fr; gap: 8px; padding: 3px 9px; border-top: 1px solid var(--border); font-size: 11.5px; }
.obp-f code { color: #6fd3a8; font: inherit; } .obp-f i { color: var(--text-muted); font-style: normal; font-family: Inter, sans-serif; font-size: 11px; }
.obp-stage { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; position: relative; font-family: Inter, sans-serif; }
.obp-sn { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.obp-st { font-size: 12.5px; } .obp-sd { font-size: 12px; font-weight: 700; color: var(--accent-2); }
.obp-bar { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.obp-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.obp-total { margin-top: 8px; font: 800 14px Inter, sans-serif; }
.obp-doc { max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; font: 12px/1.55 "JetBrains Mono", ui-monospace, monospace; margin: 0 0 10px; color: var(--text); }
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/demo/assets/fonts/jbmono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/demo/assets/fonts/jbmono-400-cyrillic.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url(/demo/assets/fonts/jbmono-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F}

/* виджет чата не должен перекрывать кнопки конструктора заказа */
body.ob-open #efw-root { display: none !important; }
/* колонки не должны растягиваться по длинным строкам дерева/кода */
.obp-wrap > .obp-form, .obp-wrap > .obp-side, .obp-side > * { min-width: 0; }
.obp-view-body .obp-node { min-width: max-content; }

/* ===== v96: «вау»-слой конструктора — 3D-архитектура и эффекты (order-fx.js) ===== */
.arch { height: 330px; perspective: 1000px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 60%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); border-radius: 12px; }
.arch-stage { position: relative; width: 190px; height: 118px; margin-top: 150px; transform-style: preserve-3d;
  transform: rotateX(calc(58deg + var(--rx, 0deg))) rotateZ(calc(-38deg + var(--ry, 0deg))); transition: transform .35s ease-out; }
.arch-slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--z)); }
.arch-top { position: absolute; inset: 0; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 26px color-mix(in srgb, var(--c) 55%, transparent);
  color: #fff; font-family: Inter, system-ui, sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.arch-top b { font-size: 14px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-top small { font-size: 10.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-ico { position: absolute; right: 9px; top: 6px; font-size: 16px; opacity: .8; }
.arch-side { position: absolute; background: color-mix(in srgb, var(--c) 62%, #000); }
.arch-front { left: 0; top: 100%; width: 100%; height: 16px; transform-origin: top; transform: rotateX(-90deg); }
.arch-right { top: 0; left: 100%; width: 16px; height: 100%; transform-origin: left; transform: rotateY(90deg); background: color-mix(in srgb, var(--c) 48%, #000); }
.arch-enter { animation: archEnter .8s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes archEnter { from { transform: translateZ(calc(var(--z) + 180px)); opacity: 0; } to { transform: translateZ(var(--z)); opacity: 1; } }
.arch-swap { animation: archSwap .9s cubic-bezier(.3,.9,.3,1) both; }
@keyframes archSwap { 0% { transform: translateZ(var(--z)) rotateZ(0); } 45% { transform: translateZ(calc(var(--z) + 70px)) rotateZ(200deg) scale(1.08); } 100% { transform: translateZ(var(--z)) rotateZ(360deg); } }
.arch-swap .arch-top { animation: archFlash .9s ease-out; }
@keyframes archFlash { 40% { box-shadow: inset 0 0 0 2px #fff, 0 0 60px var(--c); } }
.arch-packet { position: absolute; left: var(--x); top: 46%; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px rgba(180,172,246,.9); animation: archPacket 2.4s linear infinite; animation-delay: var(--dl); opacity: 0; }
@keyframes archPacket { 0% { transform: translateZ(var(--h)); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateZ(0); opacity: 0; } }
.arch-docker { position: absolute; inset: -16px; border: 2px dashed rgba(79,209,197,.85); border-radius: 14px; background: rgba(79,209,197,.07);
  transform: translateZ(-6px); animation: archDash 1.2s ease-out both; }
.arch-docker span { position: absolute; left: 8px; bottom: -22px; font: 700 10px "JetBrains Mono", monospace; color: #4fd1c5; }
@keyframes archDash { from { opacity: 0; transform: translateZ(-6px) scale(1.25); } }
.arch-redis { position: absolute; right: -74px; top: 34px; width: 50px; height: 50px; border-radius: 8px; transform: translateZ(var(--z));
  background: linear-gradient(135deg, #ff6b5f, #b71c14); display: grid; place-items: center; color: #fff; font: 800 10px Inter, sans-serif; box-shadow: 0 0 20px rgba(216,44,32,.6); }
.arch-redis.arch-enter { --z: 60px; }
.arch-legend { display: grid; gap: 4px; margin-top: 10px; font: 12px Inter, system-ui, sans-serif; }
.arch-leg { display: grid; grid-template-columns: 12px 90px 1fr; gap: 8px; align-items: center; }
.arch-leg i { width: 12px; height: 12px; border-radius: 3px; } .arch-leg i.dash { border: 2px dashed #4fd1c5; }
.arch-leg span { color: var(--text-muted); } .arch-leg b { font-weight: 700; }

/* микро-эффекты */
.ob-mode, .ob-preset-card, .ob-type-card { position: relative; transform-style: preserve-3d; }
.fx-tilt { transition: transform .08s linear !important; }
.fx-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.16), transparent 55%); }
.fx-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.28); transform: scale(0); pointer-events: none; animation: fxRipple .6s ease-out forwards; }
@keyframes fxRipple { to { transform: scale(1); opacity: 0; } }
.fx-spark { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; z-index: 100000; pointer-events: none; animation: fxSpark .7s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes fxSpark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: .2; } }
.fx-bump { display: inline-block; animation: fxBump .5s ease-out; }
@keyframes fxBump { 30% { transform: scale(1.12); color: var(--accent-2); } }
.fx-float { position: fixed; z-index: 100000; pointer-events: none; font: 800 14px Inter, sans-serif; color: #4fd1c5; text-shadow: 0 2px 10px rgba(0,0,0,.4); animation: fxFloat 1.1s ease-out forwards; }
.fx-float.minus { color: #ff7a9c; }
@keyframes fxFloat { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-46px); opacity: 0; } }
.fx-pop { animation: fxPop .4s ease-out; }
@keyframes fxPop { 40% { transform: scale(1.025); background: var(--accent-soft); } }
.fx-step-in { animation: fxStepIn .38s cubic-bezier(.2,.8,.2,1); } .fx-step-back { animation: fxStepBack .38s cubic-bezier(.2,.8,.2,1); }
@keyframes fxStepIn { from { opacity: 0; transform: translateX(26px); } } @keyframes fxStepBack { from { opacity: 0; transform: translateX(-26px); } }
.fx-rise { animation: fxRise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes fxRise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.fx-slide { animation: fxSlide .55s ease-out both, obpNew 1.6s ease-out; animation-delay: calc(var(--i) * 40ms), 0s; }
@keyframes fxSlide { from { opacity: 0; transform: translateX(-14px); } }
.fx-drop { animation: fxDrop .5s cubic-bezier(.2,1.3,.4,1) both; animation-delay: calc(var(--i) * 70ms); transform-origin: top; }
@keyframes fxDrop { from { opacity: 0; transform: translateY(-14px) rotateX(-40deg); } }
.fx-grow .obp-bar::after { animation: fxGrow .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes fxGrow { from { width: 0; } }
.fx-pill { animation: fxPill .4s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes fxPill { from { opacity: 0; transform: scale(.6); } }
.fx-line { display: block; animation: fxLine .3s ease-out both; animation-delay: calc(var(--i) * 28ms); }
@keyframes fxLine { from { opacity: 0; transform: translateX(-6px); } }
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100001; }
/* иконки режимов живут */
#obQuickBtn .ob-mode-ico { animation: fxFlick 2.6s infinite; } #obEasyBtn .ob-mode-ico { animation: fxWiggle 3s ease-in-out infinite; }
#obProBtn .ob-mode-ico { animation: fxSwing 3.4s ease-in-out infinite; display: inline-block; }
@keyframes fxFlick { 0%, 86%, 100% { opacity: 1; filter: none; } 88% { opacity: .3; } 90% { opacity: 1; filter: drop-shadow(0 0 8px #ffd54a); } 93% { opacity: .5; } }
@keyframes fxWiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-12deg) scale(1.1); } 90% { transform: rotate(10deg) scale(1.1); } }
@keyframes fxSwing { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-35deg); } 88% { transform: rotate(20deg); } }
#obProBtn { overflow: hidden; }
#obProBtn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 62%, var(--accent) 75%, #ffd54a 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: btnBorderSpin 3.2s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .arch-enter, .arch-swap, .arch-packet, .fx-rise, .fx-slide, .fx-drop, .fx-pill, .fx-line, .fx-step-in, .fx-step-back, #obProBtn::before,
  #obQuickBtn .ob-mode-ico, #obEasyBtn .ob-mode-ico, #obProBtn .ob-mode-ico, .fx-grow .obp-bar::after { animation: none !important; }
}
/* подписи слоя у переднего края плиты — он виден из-под верхнего слоя */
.arch { height: 390px; }
.arch-stage { margin-top: 205px; }
.arch-top { justify-content: flex-end; padding-bottom: 8px; }

/* ===== v97: «вау»-слой сайта (site-fx.js) ===== */
/* переходы между разделами */
::view-transition-old(root) { animation: sfxOut .28s ease-in both; }
::view-transition-new(root) { animation: sfxIn .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sfxOut { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(3px); } }
@keyframes sfxIn { from { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(3px); } }
/* первый экран */
#heroBlock { position: relative; }
.sfx-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#heroBlock > .hero-inner, #heroBlock > .hero-strip { position: relative; z-index: 1; }
.sfx-mag { transition: transform .15s ease-out !important; }
/* портфолио */
#projects-list .card[data-id], .ds-card { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.sfx-tilt { transition: transform .08s linear, box-shadow .3s !important; box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 60%, transparent); }
.sfx-tilt::before { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 50%); }
#projects-list .card[data-id], .ds-card { position: relative; }
.card-img .sfx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; opacity: 0;
  transform: scale(1.08); transition: opacity .6s ease, transform 2.4s ease-out; z-index: 1; }
.card-img .sfx-slide.on { opacity: 1; transform: scale(1); }
.sfx-sliding .card-img::after { opacity: 0 !important; }
.sfx-sliding .ctag-type { animation-duration: .9s; }
/* страница проекта: устройство въезжает в 3D */
.shot-stage { transition: transform .2s ease-out; transform-style: preserve-3d; }
.sfx-device-in { animation: sfxDevice .9s cubic-bezier(.2,.9,.25,1) both; }
@keyframes sfxDevice { from { opacity: 0; transform: perspective(1200px) rotateX(24deg) translateY(40px) scale(.92); } }
/* «О нас»: процесс */
.sfx-proc { position: relative; }
.sfx-proc .process-step { opacity: .25; transform: translateX(-10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.sfx-proc .process-step.sfx-on { opacity: 1; transform: none; }
.sfx-proc .process-step.sfx-on .step-num { animation: sfxNum .6s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 0 0 6px var(--accent-soft); }
@keyframes sfxNum { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } }
/* магазин */
.sfx-fly { position: fixed; z-index: 100000; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 40px; display: grid; place-items: center; }
.sfx-bump { animation: sfxBump .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes sfxBump { 40% { transform: scale(1.08); } }
/* кабинет: этапы заказа */
.cab-steps { position: relative; display: flex; justify-content: space-between; margin: 12px 4px 14px; }
.cab-steps::before, .cab-steps::after { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 3px; border-radius: 3px; background: var(--surface-3, #2c2a3c); }
.cab-steps::after { right: auto; width: calc((100% - 16px) * var(--p) / 100); background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: cabLine 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cabLine { from { width: 0; } }
.cab-st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.cab-st i { width: 17px; height: 17px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface-3, #3a3850); transition: .3s; }
.cab-st.done i { background: var(--accent); border-color: var(--accent); animation: cabDot .4s both; animation-delay: calc(var(--i) * 150ms); }
.cab-st.now i { background: var(--accent-2); border-color: #fff; box-shadow: 0 0 0 0 var(--accent); animation: cabPulse 1.6s infinite; }
@keyframes cabDot { from { transform: scale(0); } }
@keyframes cabPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.cab-st em { font-style: normal; font-size: 10.5px; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cab-st.now em { color: var(--text); font-weight: 700; }
.cab-steps-off { display: block; font-size: 12px; color: #ff8a8a; margin: 8px 0; }
.cab-steps-off::before, .cab-steps-off::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .sfx-device-in, .cab-steps::after, .cab-st.done i, .cab-st.now i { animation: none !important; }
  .sfx-proc .process-step { opacity: 1; transform: none; }
}
