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

:root {
  --bg:        #ffffff;
  --bg-tint:   #f5f8ff;
  --surface:   #ffffff;
  --surface-2: #f3f7ff;
  --surface-3: #e9f0ff;
  --line:      #e7edf9;
  --line-strong: #d9e2f3;

  --ink:   #0d0f14;
  --ink-2: #586074;
  --ink-3: #98a1b5;

  --accent:      #3a5cff;
  --accent-deep: #2440d8;
  --accent-soft: #d8e2ff;
  --accent-tint: #eef3ff;

  --shadow:    0 18px 50px -20px rgba(40,70,180,0.22);
  --shadow-sm: 0 8px 24px -12px rgba(40,70,180,0.18);

  --radius:    22px;
  --radius-lg: 28px;
  --radius-sm: 14px;

  --font-sans: 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient soft blobs */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 88% 4%, rgba(120,150,255,0.18), transparent 70%),
    radial-gradient(30% 26% at 4% 38%, rgba(150,175,255,0.12), transparent 70%),
    radial-gradient(40% 30% at 50% 108%, rgba(120,150,255,0.10), transparent 70%);
}

section, header, footer, nav { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--ink);
}

.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.label::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  flex-shrink: 0;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.accent { color: var(--accent); }

/* ════════ NAV ════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 40px;
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  font-size: 15px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.nav-logo .logo-4 { color: var(--accent); }
.nav-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; white-space: nowrap; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  padding: 11px 22px; background: var(--ink); color: #fff;
  text-decoration: none; border-radius: 999px; transition: all 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: #20243a; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ════════ BUTTONS ════════ */
.btn-primary {
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  padding: 16px 30px; background: var(--ink); color: #fff;
  text-decoration: none; border-radius: 999px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.btn-primary:hover { background: #20243a; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary {
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  padding: 16px 30px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  text-decoration: none; border-radius: 999px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ════════ HERO ════════ */
#hero {
  min-height: 100vh;
  padding: 140px 0 70px;
  display: flex; align-items: center;
}
.hero-wrap {
  width: 100%;
  display: grid; grid-template-columns: 1fr 460px; gap: 50px; align-items: center;
}
.hero-left { padding-bottom: 10px; }
.hero-eyebrow { margin-bottom: 26px; }
.hero-title {
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 18px;
}
.hero-role {
  font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 28px;
}
.hero-desc {
  font-size: 19px; color: var(--ink-2); line-height: 1.65; max-width: 480px; margin-bottom: 36px;
}
.hero-desc strong { color: var(--ink); font-weight: 700; }

.hero-offer-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; max-width: 560px;
}
.hero-offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  text-decoration: none;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
}
.hero-offer-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.hero-offer-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 11px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-tint); padding: 5px 10px; border-radius: 999px;
}
.hero-offer-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; }
.hero-offer-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; }
.hero-offer-arrow { font-size: 13px; font-weight: 700; color: var(--accent); }
.hero-about-link {
  font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s;
}
.hero-about-link:hover { color: var(--accent); }

/* hero photo */
.hero-photo-col { position: relative; display: flex; justify-content: center; }
.hero-photo-platform {
  position: relative;
  width: 100%; max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(58% 52% at 50% 44%, rgba(110,145,255,0.22), transparent 72%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-photo-platform img {
  width: 100%; height: auto; display: block;
}
.hero-photo-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: var(--shadow-sm);
}
.hero-photo-badge b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.hero-photo-badge span { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* ════════ METRICS ════════ */
.metrics-section { padding: 30px 0 60px; }
.metrics-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
}
.metrics-head .label { margin: 0; }
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: all 0.2s;
}
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent-soft); }
.metric-n { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 9px; letter-spacing: -0.02em; }
.metric-l { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; font-weight: 500; }
.metric-s { font-size: 11px; color: var(--ink-3); margin-top: 7px; font-weight: 600; letter-spacing: 0.02em; }

/* ════════ SECTION SHELL ════════ */
.section { padding: 90px 0; }
.section-header { margin-bottom: 44px; }
.section-title { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin-top: 16px; letter-spacing: -0.03em; text-transform: uppercase; }

/* заголовки — КАПС */
.hero-title,
.section-title,
.diag2-title, .diag-intro-title, .diag-how-title,
.uxtest-title, .kb-title, .selftest-title, .cta-title {
  text-transform: uppercase;
}

#about, #cases { padding: 90px 0; }
#about .section-header, #cases .section-header { margin-bottom: 44px; }

/* ════════ FEATURE CARD ════════ */
.feature-strip { padding: 40px 0; }
.feature-card {
  display: grid; grid-template-columns: 420px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -22px rgba(40,70,180,0.3); }
.feature-card:hover .feature-arrow { transform: translateX(6px); }
.feature-visual {
  position: relative;
  background-color: var(--surface-2);
  min-height: 360px;
  background-size: cover;
  background-position: center;
}
.feature-content { padding: 52px 54px; display: flex; flex-direction: column; justify-content: center; }
.feature-content .label { margin-bottom: 20px; }
.feature-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 16px; }
.feature-desc { font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 540px; margin-bottom: 24px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; max-width: 100%; }
.feature-tags span {
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.feature-action {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: -0.005em;
}
.feature-arrow { transition: transform 0.2s; }

.feature-card--compact { grid-template-columns: 300px 1fr; }
.feature-card--compact .feature-visual { min-height: 240px; }
.feature-card--compact .feature-content { padding: 40px 44px; }
.feature-card--compact .feature-title { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 12px; }
.feature-card--compact .feature-desc { font-size: 15px; margin-bottom: 18px; }

/* ════════ DIAGNOSTIC ════════ */
#diagnostic { padding: 90px 0 50px; }
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.diag-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 46px 44px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.diag-card.alt {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(120,150,255,0.10), transparent 70%),
    var(--surface);
}
.diag-card .label { margin-bottom: 20px; }
.diag-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.025em; }
.diag-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 28px; max-width: 420px; }
.diag-bullets { display: flex; flex-direction: column; margin-bottom: 34px; }
.diag-bullet {
  display: flex; gap: 13px; padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty;
}
.diag-bullet:last-child { border-bottom: 1px solid var(--line); }
.diag-bullet-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-tint); flex-shrink: 0; margin-top: 7px; }
.diag-bullet strong { color: var(--ink); font-weight: 700; }

/* ════════ KNOWLEDGE BASE ════════ */
.kb-section { padding: 50px 0; }
.kb-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.kb-panel-text { padding: 56px 54px; }
.kb-panel-text .label { margin-bottom: 18px; }
.kb-title { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.kb-intro { font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 460px; margin-bottom: 22px; }
.kb-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.kb-list li {
  font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2);
}
.kb-panel-visual { background-size: cover; background-position: center; min-height: 320px; }

/* ════════ ABOUT ════════ */
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; }
.about-photo-platform {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(58% 52% at 50% 44%, rgba(110,145,255,0.22), transparent 72%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: flex-end; justify-content: center;
}
.about-photo-platform img { width: 100%; height: auto; display: block; }
.about-bio { margin-bottom: 30px; }
.about-bio p { font-size: 16.5px; color: var(--ink-2); line-height: 1.75; }
.about-bio p strong { color: var(--ink); font-weight: 700; }
.about-how-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.about-how-items { display: flex; flex-direction: column; }
.about-how-item {
  display: flex; gap: 14px; padding: 15px 0; align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.about-how-item:first-child { border-top: 1px solid var(--line); }
.about-how-arrow { color: var(--accent); flex-shrink: 0; font-weight: 800; }
.about-how-txt { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.about-how-txt strong { color: var(--ink); font-weight: 700; }

/* ════════ CASES ════════ */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.case-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #7b97ff); }
.case-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.case-bullets {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.case-bullet { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.case-bullet > div:last-child { text-wrap: pretty; }
.case-bullet-dot { color: var(--accent); flex-shrink: 0; font-weight: 800; }
.case-bullet strong { color: var(--ink); font-weight: 700; }
.case-metrics { display: flex; gap: 30px; flex-wrap: wrap; }
.case-metric-n { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; letter-spacing: -0.025em; }
.case-metric-l { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }

/* ════════ FINAL CTA ════════ */
#cta-final { padding: 60px 0 90px; }
.cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--surface-2);
  background-size: cover; background-position: center;
  padding: 90px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.88));
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.04; margin: 18px 0 18px; letter-spacing: -0.03em; }
.cta-desc { font-size: 17px; color: var(--ink-2); line-height: 1.65; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════════ FOOTER ════════ */
footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-name { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.footer-name span { color: var(--accent); font-weight: 800; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; font-weight: 600; color: var(--ink-3); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1040px) { .nav-links { display: none; } }
@media (max-width: 1000px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo-col { max-width: 420px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card, .feature-card--compact { grid-template-columns: 1fr; }
  .feature-visual { min-height: 240px; }
  .kb-panel { grid-template-columns: 1fr; }
  .kb-panel-visual { min-height: 220px; order: -1; }
  .diag-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-platform { max-width: 420px; }
  .cases-grid { grid-template-columns: 1fr; }
  .container { padding: 0 24px; }
}
@media (max-width: 600px) {
  .hero-offer-cards { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .feature-content { padding: 34px 28px; }
  .diag-card { padding: 34px 28px; }
  .kb-panel-text { padding: 36px 28px; }
  .case-card { padding: 32px 26px; }
  .case-metrics { gap: 20px; }
  .hero-title { font-size: clamp(44px, 13vw, 64px); }
  .cta-panel { padding: 60px 24px; }
}

/* ═══════════════════════════════════════════
   v2 RICH COMPONENTS
   ═══════════════════════════════════════════ */

/* gradient CTA + small chips shared */
.btn-gradient {
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  padding: 16px 30px;
  background: linear-gradient(135deg, #4a6bff, #2f4fd6);
  color: #fff; text-decoration: none; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(58,92,255,0.55);
  transition: all 0.2s;
}
.btn-gradient span { transition: transform 0.2s; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(58,92,255,0.65); }
.btn-gradient:hover span { transform: translateX(4px); }

.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); flex-shrink: 0; }

.chip-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-tint);
  padding: 8px 15px; border-radius: 999px;
}

.time-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 13px 18px; border-radius: 999px; white-space: nowrap;
}
.time-pill svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* ───────── UX-TEST ───────── */
.uxtest-section { padding: 50px 0; }
.uxtest-panel {
  display: grid; grid-template-columns: 1.18fr 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.uxtest-visual {
  position: relative;
  padding: 40px 40px 36px;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(120,150,255,0.10), transparent 70%),
    linear-gradient(180deg, var(--surface-2), #fbfcff);
  border-right: 1px solid var(--line);
}
.uxtest-flowtag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.uxtest-flowtag--top { margin-bottom: 18px; }
.uxtest-sources { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.src-card {
  width: 84px; height: 70px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.src-card svg { width: 30px; height: 30px; }
.src-card--text { flex-direction: column; gap: 6px; padding: 0 14px; }
.src-line { height: 5px; border-radius: 3px; background: var(--surface-3); width: 100%; }
.src-line.w90 { width: 90%; } .src-line.w70 { width: 70%; } .src-line.w60 { width: 60%; }
.src-card--video { color: var(--accent-deep); }

.uxtest-orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; position: relative; }
.uxtest-orb {
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #7d97ff, #2f4fd6 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(58,92,255,0.10), 0 8px 22px -6px rgba(58,92,255,0.55);
}
.uxtest-orb svg { width: 24px; height: 24px; }
.uxtest-flowtag--orb { font-size: 12px; }

.uxtest-personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.persona {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 14px 13px;
  box-shadow: var(--shadow-sm);
}
.persona-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.persona-ava {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.persona-id { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.persona-id b { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.persona-id span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.persona-badge {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.persona-badge svg { width: 14px; height: 14px; }
.persona-badge.good { background: #e6f6ec; color: #1f9d57; }
.persona-badge.mid  { background: #fdf0dd; color: #d6951f; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 13px 13px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.persona-quote { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 13px; position: relative; text-wrap: pretty; flex: 1; }
.persona-quote .q { color: var(--accent); font-weight: 800; font-size: 15px; margin-right: 2px; }
.persona-scores { display: flex; flex-direction: column; gap: 6px; }
.score {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border-radius: 8px; padding: 7px 10px;
}
.score span { white-space: nowrap; }
.score b { font-weight: 800; color: var(--ink); }
.score--good { background: #edf8f1; color: #1f9d57; }
.score--good b { color: #178048; }
.score--mid { background: #fdf4e6; color: #c4881a; }
.score--mid b { color: #a8740f; }

.uxtest-insight {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-2); line-height: 1.45; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.uxtest-insight-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.uxtest-insight-ic svg { width: 18px; height: 18px; }

.uxtest-text { padding: 56px 54px; display: flex; flex-direction: column; justify-content: center; }
.uxtest-text .label { margin-bottom: 20px; }
.uxtest-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 16px; }
.uxtest-desc { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; }
.uxtest-text .feature-tags { margin-bottom: 28px; }
.uxtest-text .feature-action { text-decoration: none; }

/* ───────── DIAGNOSTIC v2 ───────── */
#diagnostic .section-header { margin-bottom: 36px; }
.diag2-card {
  background: linear-gradient(168deg, #fbfcff 0%, #ffffff 46%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 48px 44px;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}
.diag2-card::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,150,255,0.10), transparent 70%);
  pointer-events: none;
}
.diag2-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.diag2-head { }
.chip-pill { margin-bottom: 20px; }
.diag2-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.diag2-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; max-width: 460px; }
.diag2-head .diag-bullets { margin-bottom: 0; }

/* radar */
.diag2-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(64% 56% at 50% 42%, rgba(120,150,255,0.12), transparent 70%),
    linear-gradient(180deg, var(--surface-2), #fbfcff);
}
.radar { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.radar-ring { fill: rgba(120,150,255,0.05); stroke: #d4ddf5; stroke-width: 1; }
.radar-axis { stroke: #dbe3f6; stroke-width: 1; }
.radar-fill { fill: rgba(74,107,255,0.18); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar-pt { r: 4; fill: #fff; stroke: var(--accent); stroke-width: 2; }
.radar-pt.warn { fill: #fff; stroke: #ff5d5d; }
.radar-warn-ring { r: 9; fill: rgba(255,93,93,0.14); stroke: none; }
.radar-label {
  position: absolute; font-size: 10.5px; font-weight: 700; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm);
}

/* idea flow diagram */
.idea-flow { display: grid; grid-template-columns: auto 120px auto; align-items: center; gap: 4px; width: 100%; }
.idea-inputs { display: flex; flex-direction: column; gap: 10px; }
.idea-chip {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 13px; border-radius: 12px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.idea-chip-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.idea-chip-ic svg { width: 16px; height: 16px; }
.idea-mid { position: relative; height: 240px; }
.idea-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.idea-orb {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #7d97ff, #2f4fd6 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 7px rgba(58,92,255,0.10), 0 8px 20px -6px rgba(58,92,255,0.55);
}
.idea-orb svg { width: 22px; height: 22px; }
.idea-result { display: flex; align-items: center; gap: 8px; }
.idea-arrow { color: var(--accent); font-weight: 800; font-size: 18px; }
.idea-chip--result { background: var(--accent); color: #fff; border-color: var(--accent); white-space: normal; max-width: 110px; line-height: 1.3; }

/* how it works */
.diag-how {
  position: relative; z-index: 1;
  margin-top: 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px 28px;
}
.diag-how-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 20px; letter-spacing: -0.01em; }
.diag-how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.diag-how-steps::before {
  content: ''; position: absolute; top: 23px; left: 16%; right: 16%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 9px);
}
.how-step { text-align: center; position: relative; }
.how-ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--accent); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  position: relative; z-index: 1;
}
.how-ic svg { width: 24px; height: 24px; }
.how-n { font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 5px; }
.how-txt { font-size: 13px; color: var(--ink-2); line-height: 1.45; font-weight: 500; max-width: 200px; margin: 0 auto; text-wrap: pretty; }

.diag2-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 1; }

/* header icon badge + row */
.diag2-head-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.diag2-head-row .chip-pill { margin-bottom: 0; }
.diag2-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(58,92,255,0.6);
}
.diag2-ic svg { width: 24px; height: 24px; }

/* funnel (продукт) */
.funnel { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; }
.funnel-bar {
  position: relative; width: var(--w); min-width: 140px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: 11px;
  background: linear-gradient(135deg, #5577ff, #2f4fd6);
  color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(58,92,255,0.7);
}
.funnel-bar b { font-weight: 800; opacity: 0.85; font-variant-numeric: tabular-nums; }
.funnel-bar.bottleneck {
  background: linear-gradient(135deg, #ff8585, #ef4d4d);
  box-shadow: 0 8px 18px -10px rgba(239,77,77,0.7);
}
.funnel-flag {
  position: absolute; left: -12px; top: 50%; transform: translate(-100%, -50%);
  background: #fff; color: #ef4d4d; border: 1px solid #ffdada;
  font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.funnel-flag::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: #ef4d4d;
}

/* ───────── HERO CTA (single button) ───────── */
.hero-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 30px 0 8px; }

/* ───────── secondary / ghost button ───────── */
.btn-ghost {
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  padding: 15px 28px;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--accent-soft);
  text-decoration: none; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  transition: all 0.2s;
}
.btn-ghost span { transition: transform 0.2s; }
.btn-ghost:hover { background: var(--accent-tint); transform: translateY(-2px); }
.btn-ghost:hover span { transform: translateX(4px); }

/* ───────── DIAGNOSTIC · intro + per-type cards ───────── */
.section-sub { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 640px; }

/* общий блок «что это такое» */
.diag-intro {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, var(--accent-tint), #fbfcff);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 22px;
}
.diag-intro-ic {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(58,92,255,0.6);
}
.diag-intro-ic svg { width: 26px; height: 26px; }
.diag-intro-title { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.diag-intro-desc { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 16px; max-width: 720px; }

/* кнопка внутри карточки типа */
.diag-card-cta { margin-top: 26px; }

/* иллюстрация метрик продукта */
.metrics-illu {
  width: 100%; display: flex; flex-direction: column; gap: 12px;
}
.mi-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; color: var(--ink); }
.mi-head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); flex-shrink: 0; }
.mi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mi-tile, .mi-funnel-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.mi-tile-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mi-tile-h span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.mi-tile-h b { font-size: 14px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.mi-spark { width: 100%; height: 40px; display: block; }
.mi-prog { height: 9px; border-radius: 999px; background: var(--accent-tint); overflow: hidden; }
.mi-prog span { display: block; height: 100%; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, #5577ff, #2f4fd6); }
.mi-tile-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.4; }
.mi-funnel { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.mi-fbar {
  width: var(--w); min-width: 130px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 13px; border-radius: 9px;
  background: linear-gradient(135deg, #5577ff, #2f4fd6);
  color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 14px -9px rgba(58,92,255,0.7);
}
.mi-fbar b { font-weight: 800; opacity: 0.88; font-variant-numeric: tabular-nums; }

/* общий «как это работает» */
.diag-how--common {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--surface-2), #fbfcff);
}

.uxtest-free .section-header { margin-bottom: 30px; }

@media (max-width: 900px) {
  .diag-intro { flex-direction: column; gap: 16px; padding: 24px; }
}
@media (max-width: 600px) {
  .mi-row { grid-template-columns: 1fr; }
  .mi-fbar { min-width: 110px; }
}

/* ───────── SELF-DIAGNOSTIC TEST ───────── */
.selftest-section { padding: 50px 0; }
.selftest-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.selftest-text { padding: 56px 54px; display: flex; flex-direction: column; justify-content: center; }
.selftest-text .label { margin-bottom: 20px; }
.selftest-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.selftest-desc { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; }
.selftest-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.selftest-tags span {
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.selftest-text .btn-gradient { align-self: flex-start; }
.selftest-visual {
  position: relative; padding: 44px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 44%, rgba(120,150,255,0.14), transparent 70%),
    linear-gradient(180deg, var(--surface-2), #fbfcff);
}
.selftest-radar-wrap { position: relative; width: 100%; max-width: 330px; }
.selftest-out { font-size: 12.5px; color: var(--ink-3); font-weight: 600; text-align: center; max-width: 280px; line-height: 1.5; }

/* ───────── v2 RESPONSIVE ───────── */
@media (max-width: 1000px) {
  .uxtest-panel { grid-template-columns: 1fr; }
  .uxtest-visual { border-right: none; border-bottom: 1px solid var(--line); }
  .diag2-main { grid-template-columns: 1fr; gap: 32px; }
  .diag2-visual { min-height: 260px; order: 2; }
  .selftest-panel { grid-template-columns: 1fr; }
  .selftest-visual { border-left: none; border-top: 1px solid var(--line); order: -1; }
}
@media (max-width: 600px) {
  .uxtest-visual { padding: 28px 20px; }
  .uxtest-personas { grid-template-columns: 1fr; }
  .uxtest-text { padding: 36px 28px; }
  .diag2-card { padding: 32px 24px; }
  .diag-how { padding: 22px 18px; }
  .diag-how-steps { grid-template-columns: 1fr; gap: 20px; }
  .diag-how-steps::before { display: none; }
  .how-txt { max-width: none; }
  .idea-flow { grid-template-columns: 1fr; gap: 16px; }
  .idea-mid { display: none; }
  .idea-result { justify-content: flex-start; }
  .src-card { width: 72px; height: 60px; }
}

/* ───────── IMAGE-BASED VISUALS (готовые иллюстрации) ───────── */
.uxtest-visual--img {
  padding: 0 !important;
  background: linear-gradient(180deg, var(--surface-2), #fbfcff) !important;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.uxtest-visual--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.diag2-visual--img {
  padding: 0 !important;
  overflow: hidden;
  align-items: stretch !important;
}
.diag2-visual--img img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; border-radius: inherit; }

.selftest-visual--img {
  padding: 0 !important;
  display: block !important;
  background-size: cover; background-position: center;
}
.selftest-visual--img .selftest-out {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  max-width: none; text-align: left;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; color: var(--ink-2);
}

@media (max-width: 1000px) {
  .selftest-visual--img { min-height: 280px; }
}
