/* ==========================================================================
   REVAL — LANDING STYLES
   Верстка 1-в-1 по презентации Reval_для сайта1.pdf
   Палитра и типографика — по site_export/brand-style.md
   ========================================================================== */

:root {
  --dark:        #111827;
  --panel:       #1F2937;
  --panel-2:     #273244;
  --accent:      #10B981;
  --accent-600:  #059669;
  --accent-dk:   #0b6b4f;
  --white:       #FFFFFF;
  --light:       #F3F4F6;
  --text-dark:   #111827;
  --muted-light: #6B7280;
  --muted-dark:  #9CA3AF;
  --mint:        #D3F5E8;
  --divider:     #374151;

  --radius:      14px;
  --radius-sm:   10px;
  --maxw:        1200px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Секции ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark  { background: var(--dark);  color: var(--white); }
.section-light { background: var(--white); color: var(--text-dark); }
.section-light-2 { background: #FAFBFC; }

.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head-left { margin-left: 0; text-align: left; }

.tagline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.tagline-dark { color: var(--accent-600); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
}
.section-title-accent { color: var(--accent); }
.section-subtitle {
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted-light);
  max-width: 780px;
}
.section-dark .section-subtitle { color: var(--muted-dark); }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  border: 0; border-radius: 12px; padding: 14px 24px; cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #06281d; box-shadow: 0 8px 24px -8px rgba(16,185,129,.5); }
.btn-primary:hover { background: var(--accent-600); box-shadow: 0 12px 30px -8px rgba(16,185,129,.6); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--divider); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ── Иконки-маски (окрашиваемые) ────────────────────────────────────────── */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--mint); flex-shrink: 0;
}
.ic {
  display: inline-block; width: 28px; height: 28px;
  background: var(--accent-dk);
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
.icon-chip--green { background: var(--accent); }
.icon-chip--green .ic { background: #06281d; }
.icon-chip--dark { background: #0d241c; }
.icon-chip--dark .ic { background: var(--accent); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,24,39,.8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(55,65,81,.5);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.brand::after { content: '.pro'; color: var(--accent); }
.header-nav { display: flex; gap: 26px; margin-left: 12px; }
.header-nav a { font-size: 15px; font-weight: 500; color: var(--muted-dark); transition: color .2s; }
.header-nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-phone { font-weight: 600; font-size: 15px; color: var(--white); }
.header-phone:hover { color: var(--accent); }

/* ── 1. Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 100px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -25%; right: -8%;
  width: 55%; height: 130%;
  background: radial-gradient(closest-side, rgba(16,185,129,.13), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero-title {
  font-size: clamp(72px, 11vw, 132px);
  font-weight: 800; line-height: .95; letter-spacing: -.04em;
  color: var(--white); margin: 12px 0 6px;
}
.hero-decoder {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500; letter-spacing: .04em;
  color: var(--muted-dark); margin-bottom: 24px;
}
.hero-subtitle { font-size: clamp(17px, 2.2vw, 22px); color: var(--muted-dark); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-chart-bg {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  height: 560px; width: auto; opacity: .22; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 20px 44px rgba(16,185,129,.2));
}

/* ── OEM live-оценка (карточка в hero) ──────────────────────────────────── */
.oem-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: rgba(23, 32, 46, .82);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 26px 26px 28px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}
.oem-head { margin-bottom: 18px; }
.oem-tags { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.oem-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #06281d; background: var(--accent);
  padding: 5px 12px 5px 10px; border-radius: 999px;
}
/* пульсирующее свечение плашки — отрывает бейдж от тёмного фона */
.oem-tag { animation: oemPillGlow 2.2s ease-in-out infinite; }
@keyframes oemPillGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50%      { box-shadow: 0 0 20px 2px rgba(16,185,129,.7); }
}

/* мерцающая точка-маяк: белая, «дышит» + расходящееся кольцо-пинг */
.oem-live-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: #ffffff; flex-shrink: 0;
  box-shadow: 0 0 8px 1px rgba(255,255,255,.95);
  animation: oemDotPulse 1.5s ease-in-out infinite;
}
.oem-live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255,255,255,.9);
  animation: oemBeacon 1.5s ease-out infinite;
}
@keyframes oemBeacon {
  0%   { transform: scale(1);   opacity: .85; }
  100% { transform: scale(3.8); opacity: 0; }
}
@keyframes oemDotPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 6px 1px rgba(255,255,255,.7); }
  50%      { transform: scale(1.25); box-shadow: 0 0 12px 3px rgba(255,255,255,1); }
}
@media (prefers-reduced-motion: reduce) {
  .oem-tag { animation: none; }
  .oem-live-dot, .oem-live-dot::after { animation: none; }
}
.oem-beta { font-size: 13px; font-weight: 600; color: var(--muted-dark); }
.oem-hint { font-size: 14px; color: var(--muted-dark); }
.oem-form-row { display: flex; gap: 10px; }
.oem-input-wrap { position: relative; flex: 1; }
.oem-input {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 600;
  letter-spacing: .04em; color: var(--white);
  background: var(--dark); border: 1.5px solid var(--divider);
  border-radius: 12px; padding: 14px 40px 14px 16px; transition: border-color .2s;
}
.oem-input::placeholder { color: #5b6675; font-weight: 500; letter-spacing: normal; }
.oem-input:focus { outline: none; border-color: var(--accent); }
.oem-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: var(--panel-2); color: var(--muted-dark); font-size: 18px; line-height: 1;
  cursor: pointer; display: none;
}
.oem-clear.is-visible { display: block; }
.oem-clear:hover { color: var(--white); }
.oem-btn {
  flex-shrink: 0; font-family: inherit; font-size: 16px; font-weight: 700;
  color: #06281d; background: var(--accent); border: 0; border-radius: 12px;
  padding: 0 26px; cursor: pointer; transition: background .2s, transform .1s;
}
.oem-btn:hover { background: var(--accent-600); }
.oem-btn:active { transform: translateY(1px); }
.oem-btn:disabled { opacity: .6; cursor: default; }

/* загрузка */
.oem-loading { display: none; text-align: center; padding: 22px 0 6px; }
.oem-loading.is-visible { display: block; }
.oem-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.oem-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: oemBounce 1.2s infinite ease-in-out; }
.oem-dots span:nth-child(2) { animation-delay: .15s; }
.oem-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes oemBounce { 0%,80%,100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.oem-loading-text { color: var(--white); font-weight: 600; font-size: 15px; }
.oem-loading-hint { color: var(--muted-dark); font-size: 13px; margin-top: 4px; }

/* результат */
.oem-result { display: none; }
.oem-result.is-visible { display: block; animation: oemFade .4s var(--ease); }
@keyframes oemFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.oem-sep { height: 1px; background: var(--divider); margin: 20px 0 16px; }
.oem-part-name { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 12px; min-height: 0; }
.oem-price-block { margin-bottom: 18px; }
.oem-price-label { font-size: 13px; color: var(--muted-dark); margin-bottom: 4px; }
.oem-price-value { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--white); line-height: 1; }
.oem-currency { color: var(--accent); }
.oem-metrics { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.oem-metric { flex: 1; }
.oem-metric-divider { width: 1px; align-self: stretch; background: var(--divider); }
.oem-metric-label { font-size: 12px; color: var(--muted-dark); margin-bottom: 7px; }
.oem-metric-bar { height: 6px; background: var(--dark); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.oem-metric-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 1s var(--ease); }
.oem-metric-value { font-size: 18px; font-weight: 700; color: var(--white); }
.oem-metric-value--offers { color: var(--accent); }
.oem-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-dark); margin-bottom: 8px; }
.oem-range-labels b { color: var(--white); font-weight: 700; }
.oem-range-track { position: relative; height: 6px; background: var(--dark); border-radius: 3px; }
.oem-range-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #374151, var(--accent)); border-radius: 3px; opacity: .5; }
.oem-range-marker { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--dark); transform: translate(-50%, -50%); transition: left .6s var(--ease); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }

/* ошибка */
.oem-error { display: none; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; background: rgba(231,76,60,.12); border: 1px solid rgba(231,76,60,.35); border-radius: 12px; }
.oem-error.is-visible { display: flex; }
.oem-error-icon { color: #E74C3C; font-size: 16px; }
.oem-error p { color: #f1a49c; font-size: 14px; }

/* ── 2. Правила (тёмная) ────────────────────────────────────────────────── */
.rules-row { display: flex; align-items: stretch; gap: 8px; }
.rule-card {
  flex: 1; background: var(--panel); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s var(--ease), border-color .25s;
}
.rule-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.5); }
.rule-num { display: block; font-size: 42px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 20px; }
.rule-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.rule-card p { font-size: 15px; color: var(--muted-dark); }
.rule-arrow { align-self: center; color: var(--accent); font-size: 26px; font-weight: 700; flex-shrink: 0; }
.rules-footer { margin-top: 40px; font-size: 17px; color: var(--muted-dark); font-style: italic; }
.rules-footer strong { color: var(--white); font-style: normal; }

/* ── 3. Проблема (светлая) ──────────────────────────────────────────────── */
.problem-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: stretch; }
.problem-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.problem-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--light); border-radius: var(--radius); padding: 22px 24px;
}
.pnum {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #06281d; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.problem-row h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.problem-row p { font-size: 15px; color: var(--muted-light); }

.quote-panel {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--white);
  border-radius: 22px; padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.quote-panel-glow {
  position: absolute; top: -60px; right: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(211,245,232,.35), transparent 70%);
}
.quote-panel blockquote { position: relative; }
.quote-panel blockquote p {
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; font-style: italic; line-height: 1.4;
}
.quote-panel cite { display: block; margin-top: 16px; text-align: right; font-style: italic; font-weight: 600; color: var(--muted-dark); }
.quote-divider { display: block; width: 56px; height: 3px; background: var(--accent); border-radius: 2px; margin: 28px 0 22px; }
.quote-panel .tagline { margin-bottom: 12px; }
.quote-audience { color: var(--muted-dark); font-size: 15px; }

/* ── 4. Что такое Reval (светлая, мятные кружки) ────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--light); border: 1px solid #EBEDF0; border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -26px rgba(17,24,39,.35); }
.feature-card .icon-chip { border-radius: 50%; margin-bottom: 22px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted-light); font-size: 15px; }

/* ── 5. Внутри продукта — схема с выносками ─────────────────────────────── */
.diagram {
  position: relative;
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.25fr) minmax(240px, 1fr);
  gap: 44px; align-items: center;
}
.diagram-lines {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 4; overflow: visible;
}
.dline { stroke: rgba(16,185,129,.85); stroke-width: 2; stroke-dasharray: 6 7; fill: none; }
.ddot { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.dport { fill: var(--accent); }
/* десктоп: якорь — невидимая точка (конец линии) */
.anchor { position: absolute; width: 1px; height: 1px; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; }
.anchor b { display: none; }

.diag-col { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }

.callout {
  position: relative; z-index: 2;
  background: var(--panel);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.callout-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.diag-left .callout-head { justify-content: flex-end; }
.diag-left .callout-body { text-align: right; }
.callout h3 { font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.25; }
.callout p { font-size: 14px; color: var(--muted-dark); }
.c-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #06281d; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.mini-shot {
  margin-top: 14px; background: var(--dark); border: 1px solid var(--divider);
  border-radius: 10px; padding: 6px; overflow: hidden;
}
.mini-shot img { border-radius: 6px; }

/* центральный мокап */
.diag-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.shot {
  position: relative;
  width: 100%; background: var(--white); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 6px; overflow: visible;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.7);
}
.shot img { border-radius: 8px; width: 100%; display: block; }
.shot-price { margin-top: 12px; border-color: rgba(16,185,129,.55); }

.inside-footer { text-align: center; margin-top: 56px; font-size: 19px; color: var(--muted-dark); }
.inside-footer strong { color: var(--accent); }

kbd {
  display: inline-block; background: var(--panel-2); border: 1px solid var(--divider);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--white);
}

/* ── 6. Тарифы (светлая) ────────────────────────────────────────────────── */
.sub-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  background: var(--dark); color: var(--white);
  border-radius: 18px; padding: 36px 44px; margin-bottom: 44px;
}
.sub-banner-text .tagline { margin-bottom: 10px; }
.sub-banner-text h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.sub-banner-text p { color: var(--muted-dark); font-size: 16px; }
.sub-banner-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sub-price { font-size: clamp(38px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.sub-per { color: var(--muted-dark); font-size: 16px; margin-bottom: 14px; }

.addon-label { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.addon-line { flex: 1; height: 2px; background: var(--accent); border-radius: 2px; max-width: 4px; }
.addon-title {
  font-size: clamp(14px, 1.6vw, 17px); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-600); white-space: nowrap;
}
.addon-label::after { content: ''; flex: 1; height: 2px; background: rgba(16,185,129,.25); border-radius: 2px; }

.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-bottom: 26px; }
.addon-card {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--light); border-radius: var(--radius); padding: 30px 32px;
}
.addon-info h4 { font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 12px; }
.addon-info p { color: var(--muted-light); font-size: 15px; }
.addon-price { text-align: right; flex-shrink: 0; }
.addon-num { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--text-dark); line-height: 1; }
.addon-per { color: var(--muted-light); font-size: 14px; }

.example-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--mint); border-radius: 12px; padding: 16px 22px;
}
.example-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #06281d; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.example-text { font-weight: 700; color: #065f46; font-size: 15px; }
.example-calc { margin-left: auto; color: #065f46; font-size: 16px; }
.example-calc strong { font-size: 18px; }
.pricing-note { margin-top: 18px; font-size: 14px; color: var(--muted-light); font-style: italic; }

/* ── 7. Услуги (тёмная, вторая карточка зелёная) ────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card { background: var(--panel); border-radius: 18px; padding: 36px 34px; }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.service-price { color: var(--accent); font-weight: 700; font-size: 18px; }
.service-card h3 { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.service-lead { color: var(--muted-dark); margin-bottom: 20px; font-size: 16px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.service-list li { position: relative; padding-left: 26px; color: var(--white); font-size: 15px; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.service-card--accent { background: var(--accent); }
.service-card--accent h3,
.service-card--accent .service-price { color: #06281d; }
.service-card--accent .service-lead { color: rgba(6,40,29,.7); }
.service-card--accent .service-list li { color: #06281d; }
.service-card--accent .service-list li::before { background: #06281d; }

/* ── 8. CTA (тёмная) ────────────────────────────────────────────────────── */
.section-cta { position: relative; overflow: hidden; }
.cta-decor {
  position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(16,185,129,.16), transparent 70%);
  pointer-events: none;
}
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 24px 22px;
}
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(16,185,129,.15); color: var(--accent); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step p { font-size: 15px; color: var(--white); }

.cta-panel {
  position: relative;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #16241d, var(--panel));
  border: 1px solid var(--divider);
  border-radius: 22px; padding: 44px 44px;
}
.cta-panel-text h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; color: var(--white); }
.cta-panel-text > p { color: var(--muted-dark); font-size: 17px; margin-bottom: 22px; }
.cta-founder { display: flex; flex-direction: column; gap: 2px; }
.founder-name { font-weight: 700; color: var(--white); }
.founder-role { font-size: 14px; color: var(--muted-dark); }
.cta-panel-action { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-qr { background: var(--white); border-radius: 12px; padding: 10px; text-align: center; width: 150px; }
.cta-qr img { width: 100%; border-radius: 6px; }
.cta-qr figcaption { font-size: 12px; color: var(--muted-light); margin-top: 6px; font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 64px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--divider); }
.footer-wordmark { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.footer-wordmark::after { content: '.'; color: var(--accent); }
.footer-tagline { margin-top: 12px; color: var(--muted-dark); max-width: 280px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-contacts a { font-weight: 600; color: var(--white); }
.footer-contacts a:hover { color: var(--accent); }
.footer-messengers { display: flex; gap: 16px; margin-top: 6px; }
.footer-messengers a, .footer-messengers span { font-size: 14px; color: var(--muted-dark); font-weight: 500; }
.footer-legal { margin-top: 28px; text-align: center; }
.footer-legal-name { font-weight: 700; color: var(--white); font-size: 15px; margin-bottom: 8px; }
.footer-legal-req { font-size: 13px; line-height: 1.7; color: var(--muted-dark); max-width: 760px; margin: 0 auto; }
.footer-copy { margin-top: 18px; font-size: 14px; color: var(--muted-dark); text-align: center; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9,13,22,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); color: var(--text-dark); border-radius: 20px;
  padding: 40px 38px; width: 100%; max-width: 440px; position: relative;
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
  max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted-light); cursor: pointer; }
.modal-close:hover { color: var(--text-dark); }
.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { color: var(--muted-light); margin-bottom: 24px; font-size: 15px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form label { display: flex; flex-direction: column; gap: 7px; }
.modal-form label span { font-size: 14px; font-weight: 600; }
.modal-form input { font-family: inherit; font-size: 16px; padding: 13px 15px; border: 1.5px solid #D1D5DB; border-radius: 11px; transition: border-color .2s; }
.modal-form input:focus { outline: none; border-color: var(--accent); }
.modal-error { color: #dc2626; font-size: 14px; display: none; }
.modal-error.show { display: block; }
.modal-note { font-size: 12px; color: var(--muted-light); text-align: center; }
.modal-success { text-align: center; padding: 12px 0; }
.modal-success-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--mint); color: var(--accent-600); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.modal-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.modal-success p { color: var(--muted-light); font-size: 15px; }

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .problem-layout { grid-template-columns: 1fr; gap: 36px; }

  /* схема → в одну колонку, линии прячем, точки → кружки с номером */
  .diagram { display: flex; flex-direction: column; gap: 20px; }
  .diagram-lines { display: none; }
  /* колонки «растворяем», чтобы выноски стали прямыми элементами и слушались order */
  .diag-col { display: contents; }
  .diag-center { order: 0; max-width: 620px; margin: 0 auto 6px; }
  /* сквозной порядок 01→07 */
  .callout[data-anchor="01"] { order: 1; }
  .callout[data-anchor="02"] { order: 2; }
  .callout[data-anchor="03"] { order: 3; }
  .callout[data-anchor="04"] { order: 4; }
  .callout[data-anchor="05"] { order: 5; }
  .callout[data-anchor="06"] { order: 6; }
  .callout[data-anchor="07"] { order: 7; }
  /* на мобильном все выноски выравниваем слева */
  .diag-left .callout-head { justify-content: flex-start; }
  .diag-left .callout-body { text-align: left; }

  .anchor { width: 28px; height: 28px; }
  .anchor b {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: #06281d;
    font-size: 12px; font-weight: 800; font-style: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 3px rgba(17,24,39,.5);
  }

  /* hero в стек: сначала текст+кнопки, ниже — карта live-оценки на всю ширину */
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { justify-content: stretch; margin-top: 22px; }
  .oem-card { width: 100%; max-width: 100%; }

  /* «4 правила» — 2×2, стрелки убираем (чтобы не вылезало за экран) */
  .rules-row { flex-wrap: wrap; gap: 16px; }
  .rule-card { flex: 1 1 44%; }
  .rule-arrow { display: none; }

  /* услуги: меньше отступов, чтобы «бабблы» не были такими длинными */
  .services-grid { gap: 20px; }
  .service-card { padding: 26px 24px; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-chart-bg { display: none; }
  .oem-card { max-width: 100%; }
  .hero-cta .btn { flex: 1; }

  .rules-row { flex-direction: column; }
  .rule-arrow { transform: rotate(90deg); align-self: center; }

  .features-grid { grid-template-columns: 1fr; }
  .sub-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 26px; }
  .sub-banner-price { text-align: left; align-items: flex-start; }
  .addon-grid { grid-template-columns: 1fr; }
  .addon-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .addon-price { text-align: left; }
  .example-strip { flex-direction: column; align-items: flex-start; }
  .example-calc { margin-left: 0; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 22px 20px; }
  .service-card h3 { font-size: 21px; margin-bottom: 10px; }
  .service-top { margin-bottom: 16px; }
  .service-lead { margin-bottom: 14px; }
  .service-list { gap: 10px; }
  .steps-row { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 26px; }
  .footer-inner { flex-direction: column; }
  .footer-contacts { align-items: flex-start; }
  .header-actions .header-phone { display: none; }
  .addon-title { white-space: normal; }
}
