/* ============================================================
   Edgecraft Landing — COMPILATION
   Editorial shell (v3 Variant B) + platform tour & compute band
   (v3 Variant A) + centered "Craft your edge" hero (Claude v1).
   Section order: hero → compute → platform tour → how it works →
   precision (dark) → who → pricing → testimonials → faq → final cta.
   ============================================================ */

/* ---- logo theme swap ---- */
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.container { max-width: 72rem; }

/* ============================================================
   NAV — light, links centered (Variant B)
   ============================================================ */
.nav { position: sticky; top: 0; z-index: var(--z-nav); border-bottom: 1px solid transparent;
  transition: background var(--duration-hover) var(--ease-out), border-color var(--duration-hover) var(--ease-out); }
.nav.is-scrolled { background: hsl(var(--background-default) / 0.8); backdrop-filter: blur(var(--blur-nav)); -webkit-backdrop-filter: blur(var(--blur-nav)); border-bottom-color: hsl(var(--border-muted)); }
.nav-inner { display: flex; align-items: center; height: 68px; }
.nav-logo img { height: 21px; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; font-size: var(--text-sm); color: hsl(var(--foreground-light)); transition: color var(--duration-hover) var(--ease-out); }
.nav-links a:hover { color: hsl(var(--foreground-default)); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: var(--text-sm); font-weight: 500; color: hsl(var(--foreground-light)); }
.nav-signin:hover { color: hsl(var(--foreground-default)); }
/* язык: виден ТОЛЬКО текущий (EN); второй вариант выезжает по наведению на переключатель */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-full); padding: 2px; }
.lang { padding: 3px 9px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; color: hsl(var(--foreground-lighter)); white-space: nowrap; }
.lang.is-active { background: hsl(var(--background-surface-200)); color: hsl(var(--foreground-default)); }
.lang-alt { max-width: 0; padding-inline: 0; opacity: 0; overflow: hidden;
  transition: max-width 0.22s var(--ease-out), padding 0.22s var(--ease-out), opacity 0.18s var(--ease-out); }
.lang-switch:hover .lang-alt, .lang-switch:focus-within .lang-alt { max-width: 3.2rem; padding: 3px 9px; opacity: 1; color: hsl(var(--brand-link)); }
[data-theme="dark"] .lang-switch:hover .lang-alt, [data-theme="dark"] .lang-switch:focus-within .lang-alt { color: hsl(var(--brand-default)); }
.nav-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-md); color: hsl(var(--foreground-default)); }

/* мобильное меню (§07-18): сперва главное — регистрация и вход, ниже нейтральный список разделов */
.mobile-menu { position: fixed; inset: 68px 0 0; z-index: var(--z-overlay); background: hsl(var(--background-default)); padding: 20px 24px; flex-direction: column; gap: 2px; display: none; }
.mobile-menu.is-open { display: flex; }
.mm-link { padding: 13px 8px; font-size: var(--text-base); font-weight: 500; color: hsl(var(--foreground-light)); border-bottom: 1px solid hsl(var(--border-muted)); }
.mm-link:last-child { border-bottom: none; }
.mm-ctas { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 22px; }

/* ============================================================
   Shared atoms — editorial kickers (B) + section heads (A)
   ============================================================ */
.section { padding: 112px 0; }
.section.band { background: hsl(var(--background-200)); border-top: 1px solid hsl(var(--border-muted)); border-bottom: 1px solid hsl(var(--border-muted)); }

.kicker.rule { display: inline-flex; align-items: center; gap: 12px; }
.kicker.rule::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5; }
.kicker.rule.center { display: flex; justify-content: center; }
.kicker.rule.center::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5; }

.cap-head { max-width: 44rem; margin-bottom: 64px; }
.cap-head.center { margin-inline: auto; text-align: center; }
.cap-head h2, .who .cap-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-top: 18px; line-height: 1.1; }
.cap-head.center .pricing-lead, .cap-head.center h2 { margin-inline: auto; }
.pricing-lead { margin-top: 16px; font-size: var(--text-lg); max-width: 38rem; }

.section-head { max-width: 52rem; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-top: 14px; }
.section-sub { margin-top: 16px; font-size: var(--text-lg); line-height: 1.55; }
.section-head.center .section-sub { margin-inline: auto; max-width: 40rem; }

/* ============================================================
   HERO — centered "Craft your edge" (Claude v1)
   ============================================================ */
/* мобила: welcome-бонус ближе к шапке (§07-18: «слишком много белого») */
.hero { position: relative; overflow: hidden; padding: 44px 0 72px; text-align: center; --mx: 50%; --my: 38%; }
@media (min-width: 768px) { .hero { padding: 128px 0 104px; } }
/* сетка проявляется под курсором (вариант 06) */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, hsl(var(--brand-default) / 0.25) 0 1px, transparent 1px 34px),
              repeating-linear-gradient(90deg, hsl(var(--brand-default) / 0.25) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(16rem 16rem at var(--mx) var(--my), #000 20%, transparent 70%);
          mask-image: radial-gradient(16rem 16rem at var(--mx) var(--my), #000 20%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border-strong)); background: hsl(var(--background-surface-75));
  font-size: var(--text-xs); color: hsl(var(--foreground-light)); }
.pill .new { padding: 1px 7px; border-radius: var(--radius-full); background: #5CD5F3; color: #072A33; font-weight: 600; letter-spacing: .02em; }
/* на мобиле текст пилюли уходит на 2 строки — балансируем перенос, чтобы строки были ровные */
.pill .pill-txt { text-wrap: balance; }
.hero h1 { margin-top: 24px; font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 .accent { color: hsl(var(--brand-link)); }
[data-theme="dark"] .hero h1 .accent { color: #5CD5F3; }
/* вторая строка печатается (вариант 08) */
.hero h1 .accent { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  border-right: 3px solid hsl(var(--brand-default)); max-width: 0;
  animation: hero-type 6s steps(19, end) infinite, hero-caret 0.8s step-end infinite; }
@keyframes hero-type { 0% { max-width: 0; } 35%, 88% { max-width: 100%; } 96%, 100% { max-width: 0; } }
@keyframes hero-caret { 50% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .accent { max-width: none; border-right: none; animation: none; }
  .s-dropzone::after, .s-share-col > * { animation: none; }
  .s-share-col > * { opacity: 1; transform: none; }
}
.hero .sub { margin-top: 22px; max-width: 40rem; font-size: var(--text-lg); line-height: 1.6; color: hsl(var(--foreground-light)); }
.hero-ctas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.hero-ctas .btn { width: 100%; max-width: 22rem; }
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; justify-content: center; width: auto; }
  .hero-ctas .btn { width: auto; }
}
.hero .micro { margin-top: 16px; font-size: var(--text-xs); color: hsl(var(--foreground-muted)); }
.hero .micro .sep { margin: 0 8px; }

/* Community EV: тап в любом месте шапки (вариант 10) — счётчик по центру */
/* tap-highlight выключен (наследуется на потомков): иначе на тач-экранах весь hero
   мигает голубым при каждом тапе; фидбек тапа — анимация .evfly */
[data-ev-hero] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-ev-hero] a, [data-ev-hero] .btn { cursor: pointer; }
.ev-center { -webkit-user-select: none; user-select: none; }
.ev-center { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: var(--radius-full); border: 1px solid hsl(var(--border-default));
  background: hsl(var(--background-surface-75)); font-size: var(--text-xs); color: hsl(var(--foreground-light)); }
.evtotal { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; color: hsl(var(--success-default)); }
.evlive { display: inline-flex; align-items: center; }
.evlive .dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--success-default)); box-shadow: 0 0 0 3px hsl(var(--success-default) / 0.18); animation: ev-pulse 2s ease-in-out infinite; }
@keyframes ev-pulse { 50% { box-shadow: 0 0 0 6px hsl(var(--success-default) / 0); } }
.evfly { position: absolute; z-index: 8; font-size: 13px; font-weight: 700; font-family: var(--font-mono); color: hsl(var(--success-default)); pointer-events: none; animation: ev-fly 1s var(--ease-out) forwards; }
@keyframes ev-fly { 0% { opacity: 0; transform: translateY(0) scale(0.85); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }
.evtoast { position: absolute; z-index: 7; right: 18px; top: 84px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid hsl(var(--border-default));
  background: hsl(var(--background-surface-75)); box-shadow: var(--shadow-sm); font-size: var(--text-xs);
  color: hsl(var(--foreground-light)); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.evtoast.on { opacity: 1; transform: none; }
.evtoast b { font-family: var(--font-mono); color: hsl(var(--success-default)); }
.evtoast .ava { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9px; font-weight: 700;
  background: hsl(var(--subaccent-200)); color: hsl(var(--subaccent-default)); }
@media (prefers-reduced-motion: reduce) { .evlive .dot, .evfly { animation: none; } }

/* ============================================================
   COMPUTE BAND — live counter (Variant A)
   ============================================================ */
.compute { padding: 56px 0; border-top: 1px solid hsl(var(--border-muted)); border-bottom: 1px solid hsl(var(--border-muted)); background: hsl(var(--background-200)); }
.compute-inner { display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 48px; align-items: center; }
.hours-counter { margin-top: 12px; font-family: var(--font-heading); font-weight: 600; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 4rem); color: hsl(var(--foreground-default)); }
.hours-counter .hc-int { font-variant-numeric: tabular-nums; }
.hours-counter .hc-frac { font-size: 0.5em; vertical-align: baseline; }
.hours-counter .hc-unit { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: hsl(var(--foreground-lighter)); }
.compute-cap { margin-top: 14px; max-width: 26rem; font-size: var(--text-sm); }
.compute-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: hsl(var(--border-default)); border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-lg); overflow: hidden; }
.cs { background: hsl(var(--background-surface-75)); padding: 20px 18px; }
.cs-n { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: hsl(var(--foreground-default)); font-variant-numeric: tabular-nums; }
.cs-n span { font-size: 0.6em; color: hsl(var(--brand-link)); margin-left: 1px; }
[data-theme="dark"] .cs-n span { color: hsl(var(--brand-default)); }
.cs-l { margin-top: 6px; font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); line-height: 1.4; }

/* ============================================================
   WINDOW (shared product frame, Variant A)
   ============================================================ */
.window { position: relative; z-index: 1; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-xl); background: hsl(var(--background-surface-75)); box-shadow: var(--shadow-lg); overflow: hidden; }
.win-chrome { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid hsl(var(--border-muted)); background: hsl(var(--background-surface-100)); font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }
.win-chrome .cdot { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--border-strong)); }
.win-url { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 10px; border-radius: var(--radius-full); background: hsl(var(--background-surface-200)); color: hsl(var(--foreground-lighter)); }
.win-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: hsl(var(--success-default)); font-weight: 500; }
.win-live .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--success-default)); box-shadow: 0 0 0 3px hsl(var(--success-default) / 0.18); }
.win-body { padding: 16px; }
.win-body.pad { padding: 18px; }
.win-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.mini-card { border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-lg); background: hsl(var(--background-surface-100)); padding: 10px 12px; }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: var(--text-xs); }
.mc-row .k { color: hsl(var(--foreground-lighter)); }
.mc-row .v { color: hsl(var(--foreground-default)); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.win-hint { margin-left: auto; font-size: var(--text-xs); color: hsl(var(--brand-link)); font-weight: 500; }
[data-theme="dark"] .win-hint { color: hsl(var(--brand-default)); }

/* ============================================================
   PLATFORM TOUR (Variant A)
   ============================================================ */
.platform { border-top: 1px solid hsl(var(--border-muted)); }
.tour { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 32px; align-items: stretch; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tour-tab { display: flex; gap: 14px; text-align: left; padding: 16px; border-radius: var(--radius-lg); border: 1px solid transparent; transition: all var(--duration-hover) var(--ease-out); }
.tour-tab:hover { background: hsl(var(--background-surface-100)); }
.tour-tab.is-active { background: hsl(var(--background-surface-75)); border-color: hsl(var(--border-default)); box-shadow: var(--shadow-sm); }
.tt-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-md); background: hsl(var(--background-surface-200)); color: hsl(var(--foreground-light)); }
.tt-ic svg { width: 18px; height: 18px; }
.tour-tab.is-active .tt-ic { background: hsl(var(--brand-default)); color: hsl(var(--brand-ink)); }
.tt-txt { display: flex; flex-direction: column; gap: 3px; }
.tt-txt strong { font-size: var(--text-base); font-weight: 600; color: hsl(var(--foreground-default)); font-family: var(--font-heading); }
.tt-txt em { font-style: normal; font-size: var(--text-sm); color: hsl(var(--foreground-lighter)); line-height: 1.45; }

/* min-width:0 — иначе широкий контент панели (полоса позиций) распирает grid-трек,
   и на мобиле вся секция выпирает за экран вместо внутреннего скролла (§07-18) */
.tour-canvas { position: relative; min-height: 420px; min-width: 0; }
.tour-tabs { min-width: 0; }
.tour-panel { display: none; }
.tour-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-panel.is-active { animation: none; } }

/* add-a-spot panel */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label { font-size: var(--text-sm); font-weight: 500; color: hsl(var(--foreground-light)); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.field-label.mt { margin-top: 16px; }
.field-label .req { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--destructive-default)); }
.field-label .hint { margin-left: auto; font-size: var(--text-xs); font-weight: 400; color: hsl(var(--foreground-lighter)); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; border: 1.5px dashed hsl(var(--border-control)); border-radius: var(--radius-lg); background: hsl(var(--background-control)); color: hsl(var(--foreground-lighter)); text-align: center; }
.dropzone svg { width: 24px; height: 24px; }
.dropzone span { font-size: var(--text-sm); }
.dropzone b { color: hsl(var(--foreground-default)); }
.dropzone small { font-size: 11px; }
.uploaded { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-md); background: hsl(var(--background-surface-100)); font-size: var(--text-xs); }
.up-thumb { width: 42px; height: 30px; border-radius: 4px; flex: none; background:
  linear-gradient(135deg, hsl(var(--subaccent-default) / 0.5), hsl(var(--brand-default) / 0.55)); border: 1px solid hsl(var(--border-default)); }
.up-thumb.sm { width: 40px; height: 40px; border-radius: 6px; }
.up-meta { line-height: 1.4; }
.up-meta small { color: hsl(var(--foreground-lighter)); font-size: 10px; }
.up-ok { margin-left: auto; color: hsl(var(--success-default)); font-weight: 700; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { padding: 5px 11px; border-radius: var(--radius-md); border: 1px solid hsl(var(--border-control)); background: hsl(var(--background-surface-75)); font-size: var(--text-xs); font-weight: 500; color: hsl(var(--foreground-light)); }
.opt.is-on { background: hsl(var(--brand-500)); color: #fff; border-color: hsl(var(--brand-600)); }
[data-theme="dark"] .opt.is-on { background: hsl(var(--brand-500)); color: hsl(var(--foreground-default)); border-color: hsl(var(--brand-default) / 0.4); }
.mock-input { padding: 9px 12px; border: 1px solid hsl(var(--border-control)); border-radius: var(--radius-md); background: hsl(var(--background-control)); font-size: var(--text-sm); color: hsl(var(--foreground-lighter)); }
.order-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; padding-top: 12px; border-top: 1px solid hsl(var(--border-muted)); font-size: var(--text-sm); font-weight: 500; }

/* add panel extras (real form details) */
.opt-note { margin-top: 10px; font-size: var(--text-xs); color: hsl(var(--brand-link)); }
[data-theme="dark"] .opt-note { color: hsl(var(--brand-default)); }
.order-row.slim { margin: 0 0 12px; padding-top: 0; border-top: none; font-weight: 400; font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }
.autosave { margin-top: 10px; text-align: center; font-size: var(--text-xs); }

/* library / projects panel (real dashboard) */
.lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.badge--warn { color: hsl(28 90% 42%); background: hsl(35 95% 55% / 0.14); border-color: hsl(35 90% 50% / 0.35); }
[data-theme="dark"] .badge--warn { color: hsl(35 95% 62%); }
.prj-list { display: flex; flex-direction: column; gap: 10px; }
.prj-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main side" "meta side"; row-gap: 4px; align-items: center; padding: 12px 14px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-lg); background: hsl(var(--background-surface-100)); }
.prj-main { grid-area: main; display: flex; align-items: center; gap: 10px; min-width: 0; color: hsl(var(--foreground-light)); }
.prj-name { font-weight: 600; font-family: var(--font-heading); font-size: var(--text-sm); color: hsl(var(--foreground-default)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj-main .badge { flex: none; font-size: 10px; letter-spacing: 0.04em; }
.prj-meta { grid-area: meta; font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }
.prj-side { grid-area: side; display: flex; align-items: center; gap: 8px; justify-self: end; }
.prj-date { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }
.prj-count { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); padding: 2px 8px; border-radius: var(--radius-full); background: hsl(var(--background-surface-200)); }
.prj-folder { grid-template-areas: "main side"; background: hsl(var(--background-surface-75)); }
.prj-folder svg { color: hsl(var(--foreground-lighter)); flex: none; }

/* viewer top bar (Easy/Pro panels) */
.viewer-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid hsl(var(--border-muted)); font-size: var(--text-sm); }
.vb-title { font-weight: 600; font-family: var(--font-heading); }
.vb-nav { margin-left: 6px; font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }
.vb-ver { font-size: var(--text-xs); }
.vb-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.vb-cam { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-md); color: hsl(var(--foreground-light)); background: hsl(var(--background-surface-100)); }
.vb-cam svg { width: 15px; height: 15px; }
.share-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid hsl(var(--brand-300)); border-radius: var(--radius-md); background: hsl(var(--brand-200) / 0.4); color: hsl(var(--brand-link)); font-size: var(--text-xs); font-weight: 600; }
[data-theme="dark"] .share-chip { color: hsl(var(--brand-default)); background: hsl(var(--brand-default) / 0.1); border-color: hsl(var(--brand-default) / 0.35); }
.share-chip svg { width: 13px; height: 13px; }

/* easy layout: stylized table screenshot + facts + matrices */
.easy-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.easy-left { display: flex; flex-direction: column; gap: 10px; }
.mock-table { border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-lg); background: hsl(222 18% 12%); padding: 12px; }
.mt-felt { position: relative; height: 128px; border-radius: 52% / 46%; background: radial-gradient(ellipse at 50% 42%, hsl(var(--brand-default) / 0.28), hsl(222 24% 17%) 72%); border: 2px solid hsl(222 14% 26%); }
.mt-seat { position: absolute; display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 7px; border-radius: var(--radius-full); background: hsl(222 16% 20%); border: 1px solid hsl(222 12% 32%); color: hsl(0 0% 88%); font-family: var(--font-mono); font-size: 9.5px; }
.mt-seat i { font-style: normal; color: hsl(0 0% 55%); font-size: 8px; }
.mt-seat.s1 { top: -9px; left: 18%; }
.mt-seat.s2 { top: -9px; right: 18%; }
.mt-seat.s3 { top: 42%; left: -8px; }
.mt-seat.s4 { top: 42%; right: -8px; }
.mt-seat.s5 { bottom: 26px; right: 12%; }
.mt-pot { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); font-size: 9px; color: hsl(0 0% 70%); }
.mt-hero { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 3px; }
.spot-facts { display: flex; flex-direction: column; border: 1px solid hsl(var(--border-muted)); border-radius: var(--radius-lg); background: hsl(var(--background-surface-100)); overflow: hidden; }
.spot-facts .sf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-bottom: 1px solid hsl(var(--border-muted)); }
.spot-facts .sf:last-child { border-bottom: none; }
.spot-facts .sf-k { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: hsl(var(--foreground-lighter)); }
.spot-facts .sf-v { font-size: var(--text-xs); font-weight: 600; color: hsl(var(--foreground-default)); }
.easy-mx figcaption { display: flex; flex-direction: column; gap: 2px; }
.easy-mx figcaption b { font-size: var(--text-xs); color: hsl(var(--foreground-default)); font-weight: 600; }
.mx-leg { font-size: 9.5px; color: hsl(var(--foreground-lighter)); }

/* bubble factor — схематично, в голубом, не бросается */
.bf-panel { border: 1px solid hsl(var(--border-muted)); border-radius: var(--radius-lg); background: hsl(var(--background-surface-100)); padding: 10px 12px; }
.bf-title { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: hsl(var(--foreground-lighter)); margin-bottom: 8px; }
.bf-grid { display: grid; grid-template-columns: 24px repeat(4, 1fr); gap: 2px; font-size: 9.5px; }
.bf-grid .bf-h { display: grid; place-items: center; color: hsl(var(--foreground-lighter)); font-weight: 600; padding: 3px 0; }
.bf-grid i { font-style: normal; display: grid; place-items: center; padding: 3px 0; border-radius: 3px; background: hsl(var(--brand-200) / 0.25); color: hsl(var(--foreground-light)); }
.bf-grid i.l1 { background: hsl(var(--brand-200) / 0.55); }
.bf-grid i.l2 { background: hsl(var(--brand-200) / 0.85); color: hsl(var(--brand-link)); }
.bf-grid i.l3 { background: hsl(var(--brand-300)); color: hsl(var(--brand-link)); font-weight: 700; }
[data-theme="dark"] .bf-grid i { background: hsl(var(--brand-default) / 0.08); }
[data-theme="dark"] .bf-grid i.l1 { background: hsl(var(--brand-default) / 0.16); }
[data-theme="dark"] .bf-grid i.l2 { background: hsl(var(--brand-default) / 0.26); color: hsl(var(--brand-default)); }
[data-theme="dark"] .bf-grid i.l3 { background: hsl(var(--brand-default) / 0.38); color: hsl(var(--brand-default)); }

/* pro panel: position strip + node head + details */
.seg--static { pointer-events: none; }
.pstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.pcell { border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-md); background: hsl(var(--background-surface-100)); padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.pcell.is-active { border-color: hsl(var(--brand-500)); box-shadow: 0 0 0 1px hsl(var(--brand-500)); background: hsl(var(--brand-200) / 0.25); }
[data-theme="dark"] .pcell.is-active { background: hsl(var(--brand-default) / 0.08); }
.pc-pos { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-family: var(--font-heading); font-weight: 600; font-size: var(--text-xs); color: hsl(var(--foreground-default)); }
.pc-pos b { font-weight: 500; color: hsl(var(--foreground-lighter)); font-size: 10px; }
.pc-act { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-family: var(--font-mono); color: hsl(var(--foreground-lighter)); }
.pcell .swatch, .details-card .swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block; }
.pcell .sw-push, .details-card .sw-push { background: hsl(var(--brand-default)); }
.pcell .sw-call, .details-card .sw-call { background: hsl(var(--subaccent-default)); }
.pcell .sw-fold, .details-card .sw-fold { background: hsl(var(--foreground-muted) / 0.4); }
.node-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.nh-title { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-base); }
.nh-leg { font-size: 10px; color: hsl(var(--foreground-lighter)); }
.mx-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.details-card .dc-title { font-weight: 600; font-family: var(--font-heading); font-size: var(--text-xs); margin-bottom: 4px; }
.details-card .mc-row .k { display: inline-flex; align-items: center; gap: 6px; }
.dc-sub { padding-left: 14px; }
.dc-sub .k, .dc-sub .v { font-size: 10px; }
.dc-pos { color: hsl(var(--success-default)) !important; }

/* team panel */
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid hsl(var(--border-muted)); }
.team-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* flex:none — иначе на мобиле длинное имя сплющивало логотип воркспейса (§07-18) */
.team-ava { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; font-weight: 700; font-family: var(--font-heading); background: hsl(var(--brand-default)); color: hsl(var(--brand-ink)); }
.team-name { font-weight: 600; font-family: var(--font-heading); }
.team-sub { font-size: var(--text-xs); }
.team-bal { text-align: right; }
.tb-n { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-2xl); }
.tb-l { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); margin-left: 4px; }
.team-members { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tm { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: var(--radius-full); border: 1px solid hsl(var(--border-default)); background: hsl(var(--background-surface-100)); font-size: var(--text-xs); color: hsl(var(--foreground-light)); }
.tm-a { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: hsl(var(--subaccent-200)); color: hsl(var(--subaccent-default)); }
.team-feed { display: flex; flex-direction: column; gap: 8px; }
.tf-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid hsl(var(--border-muted)); border-radius: var(--radius-md); background: hsl(var(--background-surface-100)); font-size: var(--text-sm); }
.tf-ava { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: hsl(var(--background-surface-300)); color: hsl(var(--foreground-light)); flex: none; }
.tf-txt { color: hsl(var(--foreground-light)); }
.tf-txt strong { color: hsl(var(--foreground-default)); }
.tf-txt em { font-style: normal; color: hsl(var(--foreground-default)); }
.tf-badge, .tf-time { margin-left: auto; flex: none; }
.tf-time { font-size: var(--text-xs); color: hsl(var(--foreground-muted)); }

/* easy panel matrices */
.easy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.easy-mx { display: flex; flex-direction: column; gap: 6px; }

/* tree/pro panel */
.pro-main { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 16px; align-items: start; margin-top: 4px; }
.pro-mx { min-width: 0; }

/* ============================================================
   HOW IT WORKS (Variant A)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-2xl); background: hsl(var(--background-surface-75)); }
.s-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.s-n { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); color: hsl(var(--brand-ink)); background: hsl(var(--brand-default)); width: 34px; height: 26px; display: grid; place-items: center; border-radius: var(--radius-md); }
.step h3 { font-size: var(--text-xl); }
.step p { font-size: var(--text-sm); line-height: 1.55; }
.s-art { margin-top: 18px; padding: 14px; border: 1px solid hsl(var(--border-muted)); border-radius: var(--radius-lg); background: hsl(var(--background-surface-100)); display: flex; align-items: center; gap: 12px; }
.s-file { font-size: var(--text-sm); font-weight: 600; color: hsl(var(--foreground-default)); }
.s-note { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); margin-top: 3px; }
.s-log { display: block; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 2; color: hsl(var(--foreground-light)); }
.lg-ok { color: hsl(var(--success-default)); font-weight: 700; }
.s-log .dim { color: hsl(var(--foreground-muted)); }
.s-mini { gap: 10px; }
.s-mini .mm { flex: 1; }
/* decorative / at-a-glance matrices: colour grid only, no cramped labels */
.s-mini .cell span, .s-share .cell span, .easy-mx .cell span { display: none; }
.s-mini .matrix, .s-share .matrix, .easy-mx .matrix { gap: 1.5px; }

/* step 1: upload art (+b05 sheen sweep) */
.s-drop { flex-direction: column; align-items: stretch; gap: 10px; }
.s-dropzone { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1.5px dashed hsl(var(--border-control)); border-radius: var(--radius-md); background: hsl(var(--background-control)); color: hsl(var(--foreground-lighter)); font-size: var(--text-xs); }
.s-dropzone::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%;
  background: linear-gradient(100deg, transparent, hsl(var(--brand-default) / 0.12), transparent);
  animation: dz-sheen 3.6s ease-in-out infinite; }
@keyframes dz-sheen { 0% { left: -50%; } 60%, 100% { left: 110%; } }
.s-dropzone svg { width: 18px; height: 18px; flex: none; }
.s-dropzone b { color: hsl(var(--foreground-default)); }
.s-drop .uploaded { margin-top: 0; }

/* step 2: «матрица прогревается» — порт заглушки платформы (ComputingMatrix v2) */
.s-computing { flex-direction: column; gap: 10px; padding: 16px 14px; }
.ec-computing { display: grid; grid-template-columns: repeat(13, 9px); gap: 1.5px;
  --ec-off: hsl(var(--background-surface-300)); --ec-on: hsl(var(--brand-500)); }
[data-theme="dark"] .ec-computing { --ec-on: hsl(var(--brand-default)); }
.ec-computing i { width: 9px; height: 9px; border-radius: 1.5px; background: var(--ec-off); animation: ec-mfill 2.45s infinite; }
@keyframes ec-mfill {
  0%, 12% { background: var(--ec-off); }
  22%, 55% { background: var(--ec-on); }
  70%, 100% { background: var(--ec-off); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-computing i { animation: none; }
  .ec-computing i.on { background: var(--ec-on); }
}

/* step 3: share art (+c03 files stagger) */
.s-share { gap: 12px; align-items: stretch; }
.s-share .mm { flex: 1; min-width: 0; }
.s-share-col { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.s-share-col > * { animation: share-stagger 5s var(--ease-out) infinite; }
.s-share-col > *:nth-child(2) { animation-delay: 0.25s; }
.s-share-col > *:nth-child(3) { animation-delay: 0.5s; }
@keyframes share-stagger { 0% { opacity: 0; transform: translateX(10px); } 12%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-md); background: hsl(var(--background-surface-75)); font-size: 10.5px; color: hsl(var(--foreground-light)); }
.file-chip svg { width: 13px; height: 13px; color: hsl(var(--foreground-lighter)); }

/* ============================================================
   PRECISION (DARK, minimal stepper — Variant B)
   ============================================================ */
.section-dark { background: hsl(0 0% 5.9%); color: hsl(0 0% 88%); }
.precision { text-align: center; }
.precision .kicker { color: hsl(var(--brand-default)); }
.precision-h { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 20px; }
.precision-sub { max-width: 40rem; margin: 20px auto 0; color: hsl(0 0% 68%); font-size: var(--text-lg); line-height: 1.55; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 64px; background: hsl(0 0% 15%); border: 1px solid hsl(0 0% 15%); border-radius: var(--radius-lg); overflow: hidden; }
.pstep { background: hsl(0 0% 4%); padding: 28px 20px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.ps-n { font-family: var(--font-heading); font-weight: 600; color: hsl(var(--brand-default)); font-size: var(--text-lg); }
.ps-t { color: #fff; font-weight: 600; font-size: var(--text-base); }
.ps-d { color: hsl(0 0% 60%); font-size: var(--text-sm); line-height: 1.45; }

/* ============================================================
   WHO IT'S FOR (Variant B, hairline editorial grid)
   ============================================================ */
.who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid hsl(var(--border-default)); }
.who-item { padding: 40px 40px 40px 0; border-bottom: 1px solid hsl(var(--border-default)); }
.who-item:nth-child(odd) { border-right: 1px solid hsl(var(--border-default)); padding-right: 40px; }
.who-item:nth-child(even) { padding-left: 40px; }
.who-item h3 { font-size: var(--text-xl); margin-bottom: 12px; }
.who-item p { font-size: var(--text-base); line-height: 1.55; }
/* заголовок секции = бывший кикер, повышенный до h2 (дубль-заголовок «Для тех, кто…»
   убран — читался как пятый пункт списка). Стилистика как у h2 других секций. */
.who .cap-head { margin-bottom: 44px; }
.who .cap-head .who-title { margin-top: 0; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1;
  letter-spacing: -0.02em; text-transform: none; font-weight: 600; color: hsl(var(--foreground-default)); gap: 16px; }
.who .cap-head .who-title::before, .who .cap-head .who-title::after { width: 30px; height: 2px; background: hsl(var(--brand-default)); opacity: 1; }

/* ============================================================
   PRICING (Variant B)
   ============================================================ */
.pricing { border-top: 1px solid hsl(var(--border-muted)); }
.free-line { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; padding: 28px 32px; border: 1px solid hsl(var(--brand-300)); border-radius: var(--radius-2xl); background: linear-gradient(120deg, hsl(var(--brand-200) / 0.5), hsl(var(--background-surface-75))); }
.fl-title { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-2xl); margin-bottom: 6px; }
.free-line > div { max-width: 38rem; }
.free-line p { font-size: var(--text-sm); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { position: relative; padding: 30px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-2xl); background: hsl(var(--background-surface-75)); }
.price-card.is-featured { border-color: hsl(var(--brand-500)); box-shadow: 0 0 0 1px hsl(var(--brand-500)); }
.pc-badge { position: absolute; top: -11px; left: 30px; padding: 3px 10px; border-radius: var(--radius-full); background: hsl(var(--brand-default)); color: hsl(var(--brand-ink)); font-size: var(--text-xs); font-weight: 600; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-card h3 { font-size: var(--text-2xl); }
.pc-tag { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); padding: 3px 10px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-full); }
.pc-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.pc-price .amt { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-5xl); letter-spacing: -0.02em; }
.pc-price .per { font-size: var(--text-sm); color: hsl(var(--foreground-lighter)); }
.pc-note { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); margin-bottom: 18px; min-height: 32px; }
.pc-units { margin: 2px 0 10px; font-size: var(--text-sm); color: hsl(var(--foreground-lighter)); }
.pc-units b { color: hsl(var(--foreground-default)); font-weight: 600; }
.pc-hint { margin: 0 0 18px; font-size: var(--text-xs); line-height: 1.5; }
.pc-qty { margin: 2px 0 14px; }
.pc-qty .mock-input { color: hsl(var(--foreground-muted)); }
.pc-queue { margin-bottom: 14px; padding: 8px 12px; border-left: 3px solid hsl(var(--brand-500)); border-radius: var(--radius-md); background: hsl(var(--brand-200) / 0.35); font-size: var(--text-xs); color: hsl(var(--foreground-light)); }
[data-theme="dark"] .pc-queue { background: hsl(var(--brand-default) / 0.08); }
.pc-queue b { color: hsl(var(--foreground-default)); font-weight: 600; }
.pfaq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.pfaq-card { padding: 16px 18px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-lg); background: hsl(var(--background-surface-75)); }
.pfaq-card b { font-size: var(--text-sm); font-weight: 600; font-family: var(--font-heading); }
.pfaq-card p { margin-top: 6px; font-size: var(--text-xs); line-height: 1.5; }
.ladder { margin: 16px 0 18px; border-top: 1px solid hsl(var(--border-muted)); }
.ld-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; font-size: var(--text-sm); border-bottom: 1px solid hsl(var(--border-muted)); color: hsl(var(--foreground-light)); }
.ld-row.best { color: hsl(var(--brand-link)); font-weight: 600; }
[data-theme="dark"] .ld-row.best { color: hsl(var(--brand-default)); }
.pc-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; }
.pc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); color: hsl(var(--foreground-light)); }
.ck { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: hsl(var(--brand-default)); position: relative; }
.ck::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid hsl(var(--brand-ink)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pricing-foot { margin-top: 32px; text-align: center; font-size: var(--text-sm); max-width: 46rem; margin-inline: auto; }
.pricing-foot b { color: hsl(var(--foreground-default)); }

/* ============================================================
   TESTIMONIALS (Variant B)
   ============================================================ */
.testimonials { border-top: 1px solid hsl(var(--border-muted)); padding-bottom: 112px; }
.testimonials .cap-head { margin-bottom: 40px; }
.quote { flex: 0 0 380px; max-width: 380px; padding: 26px; border: 1px solid hsl(var(--border-default)); border-radius: var(--radius-2xl); background: hsl(var(--background-surface-75)); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote p { font-size: var(--text-base); line-height: 1.55; color: hsl(var(--foreground-default)); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.q-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); background: hsl(var(--subaccent-200)); color: hsl(var(--subaccent-default)); flex: none; }
.quote figcaption b { font-size: var(--text-sm); display: block; }
.quote figcaption small { font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }

/* ============================================================
   FAQ (Variant B, hairline rows)
   ============================================================ */
.faq-section { border-top: 1px solid hsl(var(--border-muted)); }
.faq-wrap { max-width: 48rem; }
.faq { border-top: 1px solid hsl(var(--border-default)); }
.faq details { border-bottom: 1px solid hsl(var(--border-default)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-size: var(--text-lg); font-weight: 500; font-family: var(--font-heading); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 15px; height: 15px; flex: none; border-right: 2px solid hsl(var(--foreground-lighter)); border-bottom: 2px solid hsl(var(--foreground-lighter)); transform: rotate(45deg); transition: transform var(--duration-hover) var(--ease-out); margin-top: -4px; }
/* > summary — иначе открытый родитель («Which formats…») разворачивал шевроны ЗАКРЫТЫХ доп-вопросов */
.faq details[open] > summary .chev { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { padding: 0 4px 24px; font-size: var(--text-base); line-height: 1.6; max-width: 42rem; }
/* §2026-08-04 (заказчик): ссылка-пример внутри ответа FAQ должна ЧИТАТЬСЯ как ссылка —
   брендовый цвет (токен сам темнеет/светлеет по теме) + подчёркивание, ярче на hover */
.faq-a a { color: hsl(var(--brand-link)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: hsl(var(--brand-link) / 0.4); transition: text-decoration-color var(--duration-hover) var(--ease-out); }
.faq-a a:hover { text-decoration-color: currentColor; }
/* доп-вопросы, вложенные в пункт FAQ («Which formats…»): мельче и тише основного уровня */
.faq .faq-subwrap { margin-top: 18px; border-top: 1px solid hsl(var(--border-muted)); }
.faq details.faq-sub { border-bottom: 1px solid hsl(var(--border-muted)); }
.faq details.faq-sub:last-child { border-bottom: none; }
.faq .faq-sub summary { padding: 14px 4px; font-size: var(--text-base); color: hsl(var(--foreground-light)); }
.faq .faq-sub .chev { width: 11px; height: 11px; }
.faq .faq-sub .faq-a { padding: 0 4px 16px; font-size: var(--text-sm); }

/* ============================================================
   FINAL CTA (light editorial — Variant B)
   ============================================================ */
.final { text-align: center; border-top: 1px solid hsl(var(--border-muted)); padding: 128px 0; }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; }
.final > .container > p { margin: 18px auto 30px; font-size: var(--text-lg); color: hsl(var(--foreground-light)); max-width: 32rem; }
.final-micro { margin-top: 18px; font-size: var(--text-xs); color: hsl(var(--foreground-lighter)); }

/* ============================================================
   FOOTER (Variant B)
   ============================================================ */
.footer { padding: 40px 0 20px; border-top: 1px solid hsl(var(--border-default)); }
/* 4 колонки: бренд + Платформа + Контакты + Компания (раньше 3 → «Компания» переносилась вниз) */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand img { height: 24px; margin-bottom: 14px; }
.f-tag { font-size: var(--text-xs); letter-spacing: var(--tracking-wide); color: hsl(var(--foreground-muted)); }
.footer h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: var(--text-sm); color: hsl(var(--foreground-lighter)); }
.footer ul a:hover { color: hsl(var(--foreground-default)); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 16px; border-top: 1px solid hsl(var(--border-muted)); font-size: var(--text-xs); color: hsl(var(--foreground-muted)); }
.fb-right { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   RESPONSIVE (merged A + B)
   ============================================================ */
@media (max-width: 1080px) {
  .compute-inner { grid-template-columns: 1fr; gap: 28px; }
  .tour { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-signin { display: none; }
  /* тач: hover-выезд второго языка не работает — оба языка видны всегда, активный подсвечен */
  .lang-alt { max-width: none; padding: 3px 9px; opacity: 1; }
  /* nav-links скрыты (их margin-inline:auto больше не прижимает правый блок) */
  .nav-right { margin-left: auto; }
  .stepper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  /* хедер: логотип компактнее и не наезжает на правый блок (symbol.png без тёмного
     варианта — на тёмной теме чёрные полосы пропадут, поэтому просто ужимаем lockup) */
  .nav-inner { gap: 10px; }
  .nav-logo { min-width: 0; flex-shrink: 1; display: flex; align-items: center; }
  .nav-logo img { height: 18px; max-width: 100%; object-fit: contain; object-position: left center; }
  .nav-right { flex: none; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .who-list { grid-template-columns: 1fr; }
  .who-item, .who-item:nth-child(odd) { border-right: none; padding: 28px 0; }
  .who-item:nth-child(even) { padding: 28px 0; }
  .price-grid { grid-template-columns: 1fr; gap: 14px; }
  .compute-stats { grid-template-columns: repeat(2, 1fr); }
  .add-grid { grid-template-columns: 1fr; }
  .easy-layout { grid-template-columns: 1fr; }
  .pfaq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* §07-18: центрируем мобильную версию там, где это имеет смысл */
  .section-head, .cap-head { text-align: center; margin-inline: auto; }
  .kicker.rule { display: inline-flex; }
  .kicker.rule::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5; }
  .compute-lead { text-align: center; }
  .compute-cap { margin-inline: auto; }
  .step { text-align: center; }
  .s-top { justify-content: center; }
  .s-art { justify-content: center; }
  .s-computing { align-items: center; }
  .who-item { text-align: center; }
  .who-item p { max-width: 34rem; margin-inline: auto; }

  /* Pro-дерево: позиции — горизонтальная скролл-лента, как в мобильном приложении;
     ничего не выпирает за экран */
  .pstrip { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .pcell { flex: 0 0 auto; min-width: 88px; }
  .pro-main { grid-template-columns: 1fr; }
  .viewer-bar { flex-wrap: wrap; row-gap: 8px; }
  .mx-tools { justify-content: center; }
  .node-head { justify-content: center; }

  /* Bubble factor: квадратнее и по центру */
  .bf-panel { max-width: 360px; margin-inline: auto; width: 100%; }
  .bf-title { text-align: center; }
  .bf-grid .bf-h { padding: 8px 0; }
  .bf-grid i { padding: 9px 0; }
  .mock-table, .spot-facts { max-width: 360px; margin-inline: auto; width: 100%; }

  /* тарифы: компактнее (§07-18 «слишком громоздко») */
  .free-line { padding: 18px 18px; margin-bottom: 24px; gap: 14px; }
  .fl-title { font-size: var(--text-xl); }
  .price-card { padding: 20px 18px; }
  .price-card h3 { font-size: var(--text-xl); }
  .pc-price { margin: 12px 0 2px; }
  .pc-price .amt { font-size: var(--text-4xl); }
  .pc-units { margin: 2px 0 8px; }
  .pc-note { min-height: 0; margin-bottom: 12px; }
  .pc-list { gap: 7px; margin-bottom: 14px; }
  .pc-list li { font-size: var(--text-xs); }
  .pc-queue { font-size: var(--text-xs); padding: 6px 10px; margin-bottom: 10px; }
  .pfaq { gap: 10px; margin-top: 20px; }
  .pfaq-card { padding: 12px 14px; }
  .pfaq-card p { margin-top: 4px; }
  .pricing-foot { margin-top: 18px; font-size: var(--text-xs); }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  /* CTA дублируется первым пунктом мобильного меню — в строке хедера ему не хватает места */
  .nav-right .btn--primary { display: none; }
  /* .accent не переносится (typing-анимация с nowrap) → кегль масштабируем от вьюпорта,
     чтобы строка не резалась краями экрана; RU-строка длиннее — свой, меньший кегль */
  .hero h1 { font-size: min(2.7rem, 9.9vw); }
  html[lang="ru"] .hero h1 { font-size: min(1.9rem, 7.4vw); overflow-wrap: break-word; }
  .pill { max-width: 100%; padding: 7px 16px; line-height: 1.5; }
  /* кнопки с длинным русским текстом: перенос вместо распирания карточки/вылета за экран */
  .btn--block, .btn--hero { white-space: normal; height: auto; min-height: 34px; padding-block: 7px; line-height: 1.3; text-align: center; max-width: 100%; }
  .btn--hero { min-height: 44px; }
  .stepper { grid-template-columns: 1fr; }
  .easy-grid { grid-template-columns: 1fr 1fr; }
  .free-line { flex-direction: column; align-items: flex-start; }
  .free-line .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 400px) {
  .nav-logo img { height: 16px; }
}

/* ============ Контакты (§07-18: email / Telegram / Discord) ============ */
.contacts .cap-head { margin-bottom: 36px; }
.contacts-list { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 220px; padding: 20px 24px;
  border: 1px solid hsl(var(--border-default)); border-radius: 10px;
  background: hsl(var(--background-surface-100));
  text-decoration: none; transition: border-color .15s ease;
}
.contact-card:hover { border-color: hsl(var(--brand-500)); }
.contact-card .cc-label { font-size: var(--text-sm); color: hsl(var(--foreground-lighter)); }
.contact-card .cc-value { font-size: var(--text-base); color: hsl(var(--foreground-default)); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .contacts-list { flex-direction: column; }
  .contact-card { min-width: 0; }
}
