/* style.css — Imredi HoReCa landing */

/* ====== GENERIC ====== */
.serif-italic, .accent { color: var(--accent); font-weight: 700; font-style: normal; }
.section { padding: var(--sp-9) 0; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 720px) { .section { padding: var(--sp-8) 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-5);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head { margin-bottom: var(--sp-8); max-width: 880px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-wide { width: 100%; padding: 16px; font-size: var(--text-base); }

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-svg { width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 36px;
  line-height: 1;
  font-size: 18px;
  font-weight: 800;
}
.logo-sub {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 3px;
  margin-left: 0;
  display: block;
}
.nav-links {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  margin-left: var(--sp-4);
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a {
  color: var(--text-dim);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ====== HERO ====== */
.hero {
  padding: var(--sp-8) 0 var(--sp-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(232, 95, 60, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.00;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
  color: var(--text);
}
.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: var(--sp-6);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  align-items: start;
}
.proof-item { min-width: 0; }
.proof-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.proof-label { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.4; }
.proof-div { display: none; }

.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3CB371;
  box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.badge-delta {
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .proof-num { font-size: var(--text-xl); }
}

/* ====== STRIP ====== */
.strip {
  padding: var(--sp-5) 0;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.strip-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
}
.strip-items {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-dim);
}
.strip-items .dot { color: var(--text-muted); opacity: 0.5; }

/* ====== PROBLEM ====== */
.problem { background: var(--bg); }
.eyebrow-dark { color: var(--text-muted); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-7);
  align-items: stretch;
  margin-bottom: var(--sp-7);
}
.problem-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
}
.problem-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.problem-stats {
  display: grid;
  gap: var(--sp-4);
}
.stat {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .25s var(--ease);
}
.stat:hover { border-color: var(--accent); }
.stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.stat-label { font-size: var(--text-md); color: var(--text); margin-bottom: var(--sp-2); }
.stat-source { font-size: 12px; color: var(--text-muted); }
.stat-source a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-muted); }
.stat-source a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.problem-pains { max-width: 100%; }
.pains-lead {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.01em;
}
.pains-list {
  display: grid;
  gap: var(--sp-4);
}
.pains-list li {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: var(--text-md);
  line-height: 1.5;
}
.pains-list li:last-child { border-bottom: 1px solid var(--border); }
.pains-list strong { color: var(--text); font-weight: 600; }

/* Acccent pain (бенчмарк-хук) */
.pains-list li.pains-accent {
  position: relative;
  background: var(--accent-soft);
  border-top: 1px solid transparent;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5) var(--sp-4) calc(var(--sp-5) + 14px);
  margin-top: var(--sp-3);
  color: var(--text);
}
.pains-list li.pains-accent::before {
  content: "";
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.pains-list li.pains-accent + li:not(.pains-accent) { border-top: 1px solid var(--border); }
[data-theme="dark"] .pains-list li.pains-accent {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
}

/* Pain CTA — мини-призыв после списка болей */
.pain-cta {
  margin-top: var(--sp-6);
  padding: var(--sp-6) var(--sp-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--sp-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pain-cta::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.pain-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pain-cta-sub {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.pain-cta-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 820px) {
  .pain-cta {
    grid-template-columns: 1fr;
    padding: var(--sp-5);
    gap: var(--sp-4);
  }
  .pain-cta-title { font-size: var(--text-lg); }
  .pain-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-media { min-height: 240px; }
  .problem-media img { min-height: 240px; }
  .stat-num { font-size: 44px; }
}

/* ====== HOW ====== */
.how { background: var(--bg-alt); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.how-step {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.how-step:hover { transform: translateY(-4px); border-color: var(--accent); }
.step-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}
.how-step h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-3);
  line-height: 1.25;
}
.how-step p { color: var(--text-dim); line-height: 1.55; font-size: var(--text-base); }

.how-illustration {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.how-illustration img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ====== VALUE ====== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.value-card {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.value-card:hover { border-color: var(--accent); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 95, 60, 0.12);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
[data-theme="light"] .value-icon { background: rgba(199, 62, 31, 0.10); }
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.value-card p { color: var(--text-dim); line-height: 1.55; }

@media (max-width: 720px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ====== COMPARE ====== */
.compare { background: var(--bg-alt); }
.compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  align-items: center;
}
.compare-row:first-child { border-top: 0; }
.compare-head {
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.compare-head .col-own { color: var(--accent); }
.row-label { color: var(--text); font-weight: 500; }
.compare-row > div:not(.row-label):not(.col-own) { color: var(--text-dim); }
.col-own {
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-left: -12px;
}
.compare-head .col-own { padding-left: 12px; }
.compare-note {
  margin-top: var(--sp-5);
  color: var(--text-dim);
  font-size: var(--text-sm);
  text-align: center;
}
.compare-note strong { color: var(--text); }

@media (max-width: 820px) {
  .compare-row {
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: var(--sp-3);
    padding: var(--sp-4);
    align-items: start;
  }
  .compare-head { display: none; }
  .compare-row > div:not(.row-label)::before {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
  }
  .compare-row > div:nth-child(2)::before { content: 'POS'; }
  .compare-row > div:nth-child(3)::before { content: 'ERP'; }
  .compare-row > div:nth-child(4)::before { content: 'Imredi'; color: var(--accent); }
  .row-label {
    grid-column: 1 / -1;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--text);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-2);
  }
  .col-own {
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .compare-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .compare-row > div:not(.row-label) {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: var(--sp-3);
    padding: 6px 0;
    align-items: baseline;
  }
  .compare-row > div:not(.row-label)::before {
    margin-bottom: 0;
    font-size: 11px;
    text-align: left;
  }
  .col-own {
    border-left: 0;
    padding: 10px 12px;
    background: rgba(232,95,60,0.10);
    border-radius: 6px;
    margin-top: 6px;
    margin-left: 0;
  }
}

/* ====== FAQ ====== */
.faq-list {
  max-width: 820px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 4px 0;
  transition: color .2s var(--ease);
  line-height: 1.3;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 28px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p {
  padding-top: var(--sp-4);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 720px;
  font-size: var(--text-base);
}

/* ====== CTA ====== */
.cta {
  background: var(--bg);
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.cta-sub {
  font-size: var(--text-md);
  color: var(--text-dim);
  margin-bottom: var(--sp-5);
  line-height: 1.55;
  max-width: 520px;
}
.cta-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.cta-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-dim);
  line-height: 1.5;
}
.cta-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.cta-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}
.form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.cta-form label {
  display: grid;
  gap: 6px;
}
.cta-form label span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.cta-form input,
.cta-form select {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color .2s var(--ease);
}
.cta-form input::placeholder { color: var(--text-muted); opacity: 0.7; }
.cta-form input:focus,
.cta-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-success {
  padding: 12px 14px;
  background: rgba(60, 179, 113, 0.12);
  border: 1px solid rgba(60, 179, 113, 0.3);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* ====== EARLY ACCESS ====== */
.early {
  background: var(--bg-alt);
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--border);
}
.early-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
}
.early-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.early-sub { color: var(--text-dim); max-width: 540px; }
.early-form {
  display: flex;
  gap: var(--sp-3);
  align-items: stretch;
}
.early-form input {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  min-width: 260px;
  font-size: var(--text-sm);
}
.early-form input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 720px) {
  .early-inner { grid-template-columns: 1fr; }
  .early-form { flex-direction: column; }
  .early-form input { min-width: 0; width: 100%; }
}

/* ====== FOOTER ====== */
.footer {
  background: var(--bg);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
}
.footer-meta {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer-meta .dot { color: var(--text-muted); }
.footer-meta a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  width: 100%;
  padding-top: var(--sp-2);
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}
.footer-legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-legal .dot { color: var(--border); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   BENCHMARK SECTION
   ============================================================ */
.benchmark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  box-shadow: var(--shadow-md);
  margin-top: var(--sp-5);
}

.benchmark-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-6);
}
.benchmark-store-name {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--text);
  letter-spacing: -0.01em;
}
.benchmark-store-sub {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.benchmark-legend {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}
.bm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-dim);
}
.bm-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.bm-dot-you { background: var(--accent); }
.bm-dot-avg { background: var(--text-muted); }
.bm-dot-top {
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--success) 55%, transparent);
}

.benchmark-metrics {
  display: grid;
  gap: var(--sp-6);
}

.bm-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.bm-metric-title {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--text);
  letter-spacing: -0.01em;
}
.bm-metric-unit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* The bar: 38px tall to fit markers w/ labels above */
.bm-bar {
  position: relative;
  height: 58px;
  padding-top: 26px; /* space for value labels sitting above markers */
  margin-bottom: var(--sp-5);
}
.bm-scale {
  position: absolute;
  left: 0; right: 0;
  top: 34px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
}
.bm-top-range {
  position: absolute;
  top: 34px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--success) 35%, transparent);
}
.bm-marker {
  position: absolute;
  top: 30px;
  width: 14px; height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: left .18s var(--ease);
  will-change: left;
}
.bm-top-range { transition: left .18s var(--ease), width .18s var(--ease); }
.bm-marker-you {
  background: var(--accent);
  width: 18px; height: 18px;
  top: 28px;
  box-shadow: 0 0 0 1px var(--accent), 0 4px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.bm-marker-avg {
  background: var(--text-dim);
}
.bm-marker-val {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.bm-marker-you .bm-marker-val { color: var(--accent); }

.bm-axis {
  position: absolute;
  left: 0; right: 0;
  top: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 10px;
}

.bm-verdict {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  border-left: 3px solid var(--border-strong);
}
.bm-verdict-bad {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--text);
}
[data-theme="dark"] .bm-verdict-bad {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.bm-verdict-good {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-left-color: var(--success);
  color: var(--text);
}
.bm-verdict-neutral {
  background: var(--surface-2);
  border-left-color: var(--border-strong);
  color: var(--text-dim);
}
.bm-verdict strong { font-weight: 700; color: var(--text); }

/* ============================================================
   Interactive sliders (per-metric + revenue)
   ============================================================ */
/* Slider overlaid on the bar itself: thumb sits exactly on the scale line */
.bm-metric { position: relative; }
.bm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  /* position the slider track to overlap the bm-scale line exactly */
  position: absolute;
  left: 0; right: 0;
  top: 34px; /* matches .bm-scale top in .bm-bar */
  transform: translateY(-7px);
  z-index: 3;
}
.bm-slider:focus { outline: none; }
.bm-slider::-webkit-slider-runnable-track {
  height: 20px;
  background: transparent;
  border-radius: 0;
}
.bm-slider::-moz-range-track {
  height: 20px;
  background: transparent;
  border-radius: 0;
}
.bm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;  /* we already render the you-marker; thumb acts as hit-target */
  border: none;
  cursor: grab;
}
.bm-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.bm-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: grab;
}
.bm-slider:focus-visible + .bm-verdict,
.bm-slider:hover ~ .bm-bar .bm-marker-you,
.bm-bar + .bm-slider:focus-visible {
  /* no-op placeholders, kept so browsers don't complain about unknown selectors */
}
/* Hover/focus feedback on the you-marker while dragging slider */
.bm-metric:hover .bm-marker-you,
.bm-metric:focus-within .bm-marker-you {
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 6px 14px color-mix(in srgb, var(--accent) 40%, transparent);
}
.bm-marker-you { cursor: grab; }

/* Revenue input strip */
.benchmark-revenue {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.benchmark-revenue > label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.bm-revenue-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
}
.bm-revenue-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  cursor: pointer;
}
.bm-revenue-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}
.bm-revenue-control input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}
.bm-revenue-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bm-summary-neutral { color: var(--success) !important; font-size: var(--text-xl) !important; }

@media (max-width: 640px) {
  .benchmark-revenue { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.benchmark-foot {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.benchmark-summary-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.benchmark-summary-text {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.benchmark-sources {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}
.benchmark-sources a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.benchmark-sources a:hover { border-bottom-color: var(--accent); }

/* Mobile */
@media (max-width: 720px) {
  .benchmark-card { padding: var(--sp-5); }
  .benchmark-head { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .benchmark-legend { gap: var(--sp-3); }
  .benchmark-foot {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .bm-bar { height: 62px; padding-top: 28px; }
  .bm-marker-val { font-size: var(--text-xs); }
  .bm-axis { font-size: 10px; }
  .pain-item-accent { padding: var(--sp-4); }
}

/* ============================================================
/* ============================================================
   BENCHMARK CTA + REPORT MODAL
   ============================================================ */
.benchmark-cta-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border);
}
.benchmark-cta-wrap .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: var(--text-base);
  font-weight: 700;
}
.benchmark-cta-wrap .btn-arrow {
  width: 18px; height: 18px;
  transition: transform .2s var(--ease);
}
.benchmark-cta-wrap .btn-primary:hover .btn-arrow { transform: translateX(3px); }
.benchmark-cta-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Modal shell */
.bm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  overflow-y: auto;
}
.bm-modal.is-open { display: flex; animation: bmFadeIn .22s var(--ease); }
.bm-modal-backdrop {
  position: fixed; inset: 0;
  background: color-mix(in srgb, #0b0b0c 55%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bm-modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--sp-6) var(--sp-6);
  box-shadow: 0 24px 60px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.08);
  animation: bmSlideUp .26s var(--ease);
}
@keyframes bmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmSlideUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bm-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.bm-modal-close:hover { color: var(--accent); border-color: var(--accent); }
.bm-modal-close svg { width: 16px; height: 16px; }

.bm-modal-head { margin-bottom: var(--sp-5); }
.bm-modal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.bm-modal-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}
.bm-modal-title .accent { color: var(--accent); }
.bm-modal-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Breakdown rows */
.bm-report-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.bm-brk-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.bm-brk-row + .bm-brk-row { border-top: 1px dashed var(--border); padding-top: 12px; }
.bm-brk-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.bm-brk-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.bm-brk-label {
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 600;
}
.bm-brk-gap {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.bm-brk-value {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-num, inherit);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}
.bm-brk-value.is-good { color: var(--success, #1B8A4F); }
.bm-brk-value.is-neutral { color: var(--text-muted); }

/* Recommendation card */
.bm-report-reco { margin-bottom: var(--sp-5); }
.bm-reco-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.bm-reco-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: var(--sp-4);
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent);
}
.bm-reco-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.bm-reco-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.bm-reco-title {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.bm-reco-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}
.bm-reco-effect {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Form */
.bm-report-form { }
.bm-form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.bm-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.bm-form-row input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--text-base);
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.bm-form-row input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.bm-form-row input[type="email"].is-invalid {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.bm-form-row .btn-primary { padding: 12px 20px; font-weight: 700; }
.bm-form-note {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Success state */
.bm-report-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.bm-success-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success, #1B8A4F) 14%, transparent);
  color: var(--success, #1B8A4F);
  display: inline-flex; align-items: center; justify-content: center;
}
.bm-success-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.bm-success-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text);
}
.bm-success-title span { color: var(--accent); }
.bm-success-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.bm-success-actions {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 640px) {
  .bm-modal { padding: var(--sp-3) var(--sp-3); }
  .bm-modal-panel { padding: var(--sp-5) var(--sp-4); border-radius: 14px; }
  .bm-modal-title { font-size: var(--text-xl); }
  .bm-form-row { grid-template-columns: 1fr; }
  .bm-form-row .btn-primary { width: 100%; justify-content: center; }
  .bm-brk-row { grid-template-columns: 24px 1fr auto; gap: 10px; }
  .bm-brk-label { font-size: var(--text-xs); }
  .bm-brk-value { font-size: var(--text-sm); }
  .bm-reco-card { grid-template-columns: 40px 1fr; gap: 12px; padding: var(--sp-3); }
  .bm-reco-icon { width: 40px; height: 40px; }
  .bm-success-actions { width: 100%; }
  .bm-success-actions .btn { flex: 1; justify-content: center; }
}

/* Body lock when modal is open */
body.bm-modal-open { overflow: hidden; }
.bm-report-form[hidden], .bm-report-success[hidden] { display: none !important; }

/* ===== BENCHMARK · SEGMENT CONTROLS ===== */
.benchmark-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: 14px;
  margin: 0 0 20px;
}
.bm-seg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bm-seg label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}
.bm-seg select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 32px 10px 12px;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23828282' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.bm-seg select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
@media (max-width: 768px) {
  .benchmark-segments { grid-template-columns: repeat(2, 1fr); }
}

/* BENCHMARK privacy card (унифицировано с Retail) */
.bm-privacy {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.bm-privacy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bm-privacy-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.bm-privacy-icon { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.bm-privacy-text {
  margin: 0;
  font-size: var(--text-md);
  color: var(--text-dim);
  line-height: 1.55;
}
.bm-privacy-text strong { color: var(--text); font-weight: 700; }
.bm-privacy-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ===== AI MODULES ===== */
.section.modules { background: var(--bg-alt); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.module-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.module-target {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
}
.module-card > p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.module-price {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.module-price .num { font-weight: 700; }
.modules-note {
  margin-top: 24px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-dim);
}
.modules-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) {
  .modules-grid { grid-template-columns: 1fr; }
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card-popular {
  border: 2px solid var(--accent);
  box-shadow: 0 14px 38px rgba(188, 10, 41, 0.12);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-tier {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
}
.price-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.price-value .num { color: var(--accent); }
.price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: -6px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-dim);
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-features strong { color: var(--text); }
.price-foot {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.4;
}
.pricing-modules-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--surface-2);
  border-radius: 14px;
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.6;
}
.pricing-modules-note strong { color: var(--text); }
.pricing-modules-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== GUARANTEE (унифицировано с Retail) ===== */
.guarantee-card {
  padding: 44px 48px;
  background: linear-gradient(135deg, rgba(188, 10, 41, 0.04), rgba(188, 10, 41, 0.10));
  border: 1px solid rgba(188, 10, 41, 0.22);
  border-radius: 22px;
  text-align: center;
}
.guarantee-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.guarantee-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.guarantee-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.guarantee-item {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.guarantee-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.guarantee-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.guarantee-foot {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.55;
}
.guarantee-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .guarantee-card { padding: 32px 22px; }
  .guarantee-title { font-size: 26px; }
  .guarantee-list { grid-template-columns: 1fr; }
}

/* ===== COMPARE 4-COL ===== */
.compare-table-4 .compare-row {
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
}
@media (max-width: 980px) {
  .compare-table-4 .compare-row {
    grid-template-columns: 1fr;
    border-bottom: none;
  }
  .compare-table-4 .compare-head { display: none; }
  .compare-table-4 .compare-row > div {
    padding: 8px 0;
  }
  .compare-table-4 .compare-row .row-label {
    font-weight: 700;
    color: var(--accent);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
  }
}

/* ===== ROADMAP ===== */
.section.roadmap { background: var(--bg); }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.roadmap-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
}
.roadmap-quarter {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roadmap-list li {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rm-status {
  display: inline-block;
  width: fit-content;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.rm-done { background: rgba(34, 161, 88, 0.12); color: #1F8449; }
.rm-now { background: var(--accent-soft); color: var(--accent); }
.rm-plan { background: var(--surface-3); color: var(--text-muted); }
.roadmap-note {
  margin-top: 22px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.roadmap-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .rm-done { background: rgba(34, 197, 94, 0.18); color: #4ADE80; }

/* ===== EYEBROW LIGHT (для блока guarantee на dark backgrounds) ===== */
.eyebrow-light { color: var(--accent); }

/* CONSENT CHECKBOX */
.consent-label {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 6px 0 4px;
}
.consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-label > span { flex: 1; }

/* SKOLKOVO BADGE */
.skolkovo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.skolkovo-badge img {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ============== FITS GRID (Кому подходит) ============== */
.fits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.fits-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 16px);
  padding: var(--sp-6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fits-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.08));
}
.fits-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md, 12px);
  background: var(--accent-soft, rgba(220,38,38,.08));
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.fits-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--sp-2) 0;
  color: var(--text);
}
.fits-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
@media (max-width: 980px) { .fits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fits-grid { grid-template-columns: 1fr; } }

/* ============== INTEGRATIONS GRID ============== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.integration-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 16px);
  padding: var(--sp-7);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.integration-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.08));
}
.integration-logo {
  width: 56px; height: 56px;
  border-radius: var(--r-md, 12px);
  background: linear-gradient(135deg, #FFB800, #FF8A00);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: var(--sp-4);
}
.integration-logo--1c { background: linear-gradient(135deg, #E60012, #B00010); font-size: 18px; }
.integration-logo--ms { background: linear-gradient(135deg, #1976FF, #0F4FB3); font-size: 18px; }
.integration-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--text);
}
.integration-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin-bottom: var(--sp-4);
}
.integration-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
}
.integrations-note {
  margin-top: var(--sp-6);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}
.integrations-note a { color: var(--accent); }
@media (max-width: 880px) { .integrations-grid { grid-template-columns: 1fr; } }

/* ============== TEAM ============== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0 28px;
}
.team-stat {
  padding: 28px 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
}
.team-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.team-stat-label {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.team-clients {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 22px;
}
.team-clients-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.team-clients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-clients-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}
.team-client-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.team-client-chip.team-client-more {
  background: transparent;
  border-style: dashed;
  color: var(--text-dim);
  font-weight: 500;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .team-stat { padding: 22px 20px; }
  .team-stat-val { font-size: 24px; }
}

/* ============== FOOTER LINKS + LOGO IN FOOTER ============== */
.footer-inner {
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.footer-brand .logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.footer-brand .logo-main { font-size: 17px; font-weight: 700; color: var(--text); }
.footer-brand .logo-sub { font-size: 11px; margin-top: 2px; color: var(--text-dim); }
.footer-brand .skolkovo-badge img { height: 32px; display: block; }
.footer-links {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  font-size: var(--text-sm);
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
}

/* logo-main in header */
.logo-main { font-weight: 700; }

/* ============== BLOG ============== */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumbs a { color: var(--text-dim); text-decoration: none; transition: color .15s var(--ease, ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-muted); }

.blog-hero { padding: var(--sp-6) 0 var(--sp-4); }
.blog-hero .section-head { margin-bottom: var(--sp-3); }
.blog-hero .breadcrumbs { margin-bottom: var(--sp-3); }
.blog-hero .eyebrow { margin-bottom: var(--sp-2); }
.blog-hero .section-title { margin-bottom: var(--sp-3); font-size: clamp(28px, 4vw, 40px); }
.blog-hero .section-sub { font-size: 16px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color .2s var(--ease, ease), transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(220, 38, 38, 0.35);
}
.blog-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--surface-2);
}
@media (max-width: 720px) {
  .blog-card-img { aspect-ratio: 16 / 9; }
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s var(--ease, ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex; flex-direction: column; flex: 1;
}
.blog-card .blog-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center;
}
.blog-card h3 {
  font-family: var(--font-display, inherit);
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 var(--sp-3);
  color: var(--text);
  font-weight: 700;
}
.blog-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 var(--sp-4);
}
.blog-card .blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
  font-size: 14px;
}

/* Blog search */
.blog-search-wrap {
  position: relative;
  margin-bottom: var(--sp-4);
  max-width: 560px;
}
.blog-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.blog-search {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 44px 12px 44px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
}
.blog-search::placeholder { color: var(--text-muted); }
.blog-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.blog-search::-webkit-search-cancel-button { display: none; }
.blog-search-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border);
  color: var(--text);
  border: none;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s var(--ease, ease), color .15s var(--ease, ease);
}
.blog-search-clear:hover { background: var(--accent); color: #fff; }
.blog-search-clear[hidden] { display: none; }

.blog-empty {
  padding: var(--sp-6);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--text-muted);
  margin-top: var(--sp-4);
}

/* Blog category filters */
.blog-filters {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.blog-filter {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s var(--ease, ease);
}
.blog-filter:hover { color: var(--text); border-color: var(--accent); }
.blog-filter.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============== RELATED POSTS ============== */
.related {
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border);
}
.related h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--sp-5);
}

/* ============== PROCUREMENT (HoReCa parity with Retail) ============== */
.procurement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.procurement-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  position: relative;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.procurement-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.procurement-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}
.procurement-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 var(--sp-3);
  line-height: 1.25;
}
.procurement-card > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 var(--sp-4);
}
.procurement-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
}
.procurement-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.procurement-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.procurement-effect {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.procurement-cta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-7);
}
@media (max-width: 760px) {
  .procurement-grid { grid-template-columns: 1fr; }
}

/* ============== CASES (HoReCa parity with Retail) ============== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.case-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px color-mix(in oklab, var(--accent) 40%, transparent);
}
.case-head {
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.case-tag {
  display: inline-block;
  padding: 4px 10px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
}
.case-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.case-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.case-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-stat {
  margin-bottom: var(--sp-4);
}
.case-stat-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}
.case-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.case-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  flex: 1;
}
.case-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.case-bullets li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.case-bullets strong {
  color: var(--text);
  font-weight: 700;
}
.case-foot {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
}
.cases-disclaimer {
  margin-top: var(--sp-6);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.cases-disclaimer a { color: var(--accent); }
@media (max-width: 1000px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .cases-grid { grid-template-columns: 1fr; }
}
