/* ═══════════════════════════════════════════════════════════════════
   pricing-vnext.css — публичная страница тарифов OCC.

   Зачем свой файл. Прежняя /pricing тянула pricing-v2.css (1203 строки,
   фиолетовая палитра) и переопределяла его токены сорока строками инлайн-CSS
   прямо в шаблоне — фиолет перекрашивался в оранжевый поверх чужой структуры.
   Здесь слой собран сразу в брендовых токенах, без перекраски.

   Палитра совпадает с продуктовым слоем (--os-* в occ-shell-vnext.css):
   почти чёрный матовый фон, поверхности отличаются линией и свечением, а не
   ступенью светлоты. Оранжевый — цвет действия и статуса «сюда смотреть».
   ═══════════════════════════════════════════════════════════════════ */

.pv {
  --canvas: #090A0C;
  --surface: #14171B;
  --surface-2: #1A1E23;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --line-ember: rgba(255, 100, 30, .38);
  --text: #F4F5F6;
  --text-dim: #C3C7CC;
  --text-mute: #878C93;
  --ember: #FF641E;
  --ember-bright: #FF7F45;
  --ember-soft: rgba(255, 100, 30, .12);
  --ember-glow: 0 0 0 1px rgba(255, 100, 30, .28), 0 22px 60px -28px rgba(255, 100, 30, .5);
  --green: #35C46A;
  --red: #FF4D4D;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --ease: cubic-bezier(.22, .8, .28, 1);

  color-scheme: dark;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.pv * { box-sizing: border-box; }
.pv img { max-width: 100%; }

.pv-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ── Топбар ───────────────────────────────────────────────────── */
.pv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 10, 12, .88);
  backdrop-filter: blur(14px);
}

.pv-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}

.pv-logo i { color: var(--ember); font-size: 18px; }
.pv-logo .sep { color: var(--text-mute); font-weight: 400; }

.pv-top-nav { display: flex; align-items: center; gap: 8px; }

.pv-top-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.pv-top-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
@media (max-width: 720px) { .pv-top-link.opt { display: none; } }

/* ── Кнопки ───────────────────────────────────────────────────── */
.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 650;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.pv-btn:active { transform: translateY(1px); }

.pv-btn--primary {
  background: var(--ember);
  color: #0B0B0C;
  box-shadow: 0 14px 34px -16px rgba(255, 100, 30, .8);
}

.pv-btn--primary:hover { background: var(--ember-bright); }

.pv-btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.pv-btn--ghost:hover { border-color: var(--line-ember); background: var(--ember-soft); }

.pv-btn--quiet {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border-color: var(--line);
}

.pv-btn--quiet:hover { background: rgba(255, 255, 255, .09); }
.pv-btn--sm { min-height: 38px; padding: 9px 16px; font-size: 13px; }
.pv-btn--block { width: 100%; }

/* ── Заголовки секций ─────────────────────────────────────────── */
.pv-section { padding: clamp(52px, 8vw, 96px) 0 0; }

.pv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}

.pv-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--ember-soft);
}

.pv-h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.pv-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--text-dim);
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.65;
}

.pv-lead b { color: var(--text); font-weight: 650; }

/* ── HERO ─────────────────────────────────────────────────────── */
.pv-hero { padding: clamp(48px, 8vw, 92px) 0 clamp(28px, 4vw, 44px); }

.pv-h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6.4vw, 66px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.pv-h1 .em { color: var(--ember); }

.pv-hero-sub {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 0 0 30px;
}

.pv-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.pv-founding {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 11px 16px;
  border: 1px solid var(--line-ember);
  border-radius: 999px;
  background: var(--ember-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ember-bright);
}

.pv-founding i { font-size: 15px; }

/* цепочка процесса */
.pv-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.pv-chain-step {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.pv-chain i { color: var(--text-mute); font-size: 11px; }

/* ── КОНСТРУКТОР ──────────────────────────────────────────────── */
.pv-build { margin-top: 34px; display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .pv-build { grid-template-columns: 1fr; } }

.pv-base {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-ember);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #1B1A18, var(--surface) 60%);
  box-shadow: var(--ember-glow);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pv-base-ic {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--ember-soft);
  color: var(--ember);
  font-size: 21px;
}

.pv-base-body { flex: 1 1 240px; min-width: 0; }
.pv-base-name { font-size: 16.5px; font-weight: 750; margin-bottom: 5px; }
.pv-base-desc { font-size: 13px; color: var(--text-mute); line-height: 1.55; }
.pv-base-price { text-align: right; }
.pv-base-price-val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pv-base-price-lbl { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }

/* категории модулей */
.pv-cat { margin-top: 26px; }

.pv-cat-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.pv-cat-head i { color: var(--ember); font-size: 15px; }

.pv-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 620px) { .pv-mods { grid-template-columns: 1fr; } }

.pv-mod {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              transform .2s var(--ease);
  min-height: 44px;
}

.pv-mod:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pv-mod.is-on { border-color: var(--line-ember); background: linear-gradient(150deg, rgba(255,100,30,.08), var(--surface) 70%); }
.pv-mod.is-locked { cursor: default; opacity: .78; }

.pv-mod-box {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  color: transparent;
  font-size: 12px;
  transition: all .2s var(--ease);
}

.pv-mod.is-on .pv-mod-box { background: var(--ember); border-color: var(--ember); color: #0B0B0C; }
.pv-mod.is-locked .pv-mod-box { background: rgba(255,255,255,.14); border-color: transparent; color: var(--text-dim); }

.pv-mod-body { flex: 1 1 auto; min-width: 0; }
.pv-mod-name { font-size: 14px; font-weight: 650; line-height: 1.3; margin-bottom: 4px; }
.pv-mod-short { font-size: 12px; color: var(--text-mute); line-height: 1.5; }

.pv-mod-price {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ember-bright);
  white-space: nowrap;
}

.pv-mod.is-locked .pv-mod-price { color: var(--green); }

.pv-mod-dep {
  margin-top: 7px;
  font-size: 11px;
  color: var(--text-mute);
  display: flex; align-items: center; gap: 5px;
}

.pv-mod-dep i { font-size: 11px; color: var(--ember); }

/* итоговая панель */
.pv-sum {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.pv-sum-title {
  font-size: 11px; font-weight: 750; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px;
}

.pv-period { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }

.pv-period-btn {
  position: relative;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: all .2s var(--ease);
}

.pv-period-btn:hover { border-color: var(--line-strong); color: var(--text); }
.pv-period-btn.is-on { border-color: var(--ember); background: var(--ember-soft); color: var(--text); }

.pv-period-off {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  margin-top: 3px;
}

.pv-sum-rows { border-top: 1px solid var(--line); padding-top: 14px; }

.pv-sum-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 7px 0; font-size: 13px; color: var(--text-mute);
}

.pv-sum-row b { color: var(--text-dim); font-weight: 600; }
.pv-sum-row.is-save b, .pv-sum-row.is-save span { color: var(--green); }

.pv-sum-total {
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}

.pv-sum-total-val { font-size: 32px; font-weight: 850; letter-spacing: -.03em; }
.pv-sum-total-lbl { font-size: 12px; color: var(--text-mute); }

.pv-sum-period {
  margin-top: 8px; font-size: 12.5px; color: var(--text-dim);
  padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.04);
}

.pv-sum-cta { margin-top: 16px; display: grid; gap: 9px; }
.pv-sum-note { margin-top: 12px; font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }

/* готовые сборки */
.pv-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
@media (max-width: 820px) { .pv-presets { grid-template-columns: 1fr; } }

.pv-preset {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: all .2s var(--ease);
}

.pv-preset:hover { border-color: var(--line-ember); background: var(--surface-2); }
.pv-preset-name { font-size: 15px; font-weight: 750; margin-bottom: 6px; }
.pv-preset-desc { font-size: 12.5px; color: var(--text-mute); line-height: 1.55; min-height: 38px; }
.pv-preset-price { margin-top: 12px; font-size: 19px; font-weight: 800; color: var(--ember-bright); }
.pv-preset-price small { font-size: 11.5px; font-weight: 500; color: var(--text-mute); }

/* ── Комиссия ─────────────────────────────────────────────────── */
.pv-fee {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--surface-2), var(--surface) 62%);
}

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

.pv-fee-num {
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ember);
  margin-bottom: 14px;
}

.pv-fee-steps { display: grid; gap: 10px; }

.pv-fee-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .25);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.pv-fee-step-n {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ember-soft);
  color: var(--ember);
  font-size: 11.5px;
  font-weight: 800;
}

.pv-fee-free {
  margin-top: 12px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(53, 196, 106, .3);
  border-radius: var(--r-md);
  background: rgba(53, 196, 106, .08);
  font-size: 13px;
  color: #A9E9C1;
  line-height: 1.5;
}

.pv-fee-free i { color: var(--green); font-size: 15px; margin-top: 1px; }

/* ── Корпоративные тарифы ─────────────────────────────────────── */
.pv-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 1000px) { .pv-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pv-tiers { grid-template-columns: 1fr; } }

.pv-tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .2s var(--ease);
}

.pv-tier:hover { border-color: var(--line-strong); }
.pv-tier.is-popular { border-color: var(--line-ember); box-shadow: var(--ember-glow); }

.pv-tier-flag {
  position: absolute; top: -10px; left: 18px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ember);
  color: #0B0B0C;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pv-tier-name { font-size: 17px; font-weight: 780; margin-bottom: 4px; }
.pv-tier-tag { font-size: 12px; color: var(--text-mute); min-height: 32px; line-height: 1.4; }
.pv-tier-price { margin-top: 14px; font-size: 22px; font-weight: 820; letter-spacing: -.02em; }
.pv-tier-price small { font-size: 12px; font-weight: 500; color: var(--text-mute); }
.pv-tier-eq { margin-top: 5px; font-size: 12px; color: var(--text-mute); }

.pv-tier-limits { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

.pv-tier-chip {
  font-size: 11.5px; color: var(--text-dim);
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.pv-tier-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.pv-tier-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--text-dim); line-height: 1.45;
}

.pv-tier-list i { color: var(--ember); font-size: 12px; margin-top: 3px; }
.pv-tier-list li.inh { color: var(--text-mute); font-style: italic; }
.pv-tier-cta { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }

/* ── Матрица периметра ────────────────────────────────────────── */
.pv-matrix-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }

.pv-matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }

.pv-matrix th, .pv-matrix td {
  padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line);
}

.pv-matrix thead th {
  background: var(--surface-2); font-size: 12px; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: .05em;
}

.pv-matrix tbody tr:last-child td { border-bottom: 0; }
.pv-matrix tbody tr:hover td { background: rgba(255, 255, 255, .03); }

.pv-matrix .mod { text-align: left; display: flex; align-items: center; gap: 11px; }
.pv-matrix .mod i { color: var(--ember); font-size: 16px; }
.pv-matrix .mod b { display: block; font-size: 13px; font-weight: 650; }
.pv-matrix .mod small { display: block; font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.pv-matrix .yes { color: var(--green); font-size: 15px; }
.pv-matrix .no { color: var(--text-mute); opacity: .5; }
.pv-matrix .opt-lbl { display: block; font-size: 10px; color: var(--text-mute); margin-top: 2px; }

/* ── Пилот ────────────────────────────────────────────────────── */
.pv-poc {
  margin-top: 26px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px;
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

@media (max-width: 900px) { .pv-poc { grid-template-columns: 1fr; } }
.pv-poc-price { font-size: clamp(28px, 4.5vw, 44px); font-weight: 850; letter-spacing: -.03em; margin: 10px 0 12px; }
.pv-poc-rows { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }

.pv-poc-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 15px; background: var(--surface-2); font-size: 13px;
}

.pv-poc-row span:first-child { color: var(--text-dim); }
.pv-poc-row span:last-child { color: var(--ember-bright); font-weight: 650; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.pv-faq { margin-top: 26px; display: grid; gap: 10px; }

.pv-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.pv-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 650; color: var(--text);
  min-height: 44px;
}

.pv-faq-q::-webkit-details-marker { display: none; }
.pv-faq-q i { color: var(--ember); transition: transform .2s var(--ease); flex: 0 0 auto; }
.pv-faq-item[open] .pv-faq-q i { transform: rotate(180deg); }

.pv-faq-a {
  padding: 0 18px 17px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Финальный CTA и подвал ───────────────────────────────────── */
.pv-final {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line-ember);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, #1C1A18, var(--surface) 64%);
  box-shadow: var(--ember-glow);
  text-align: center;
}

.pv-final .pv-h2 { margin-bottom: 14px; }
.pv-final .pv-lead { margin: 0 auto 26px; }
.pv-final-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.pv-foot {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-mute);
}

.pv-foot a { color: var(--text-dim); text-decoration: none; }
.pv-foot a:hover { color: var(--ember); }

/* ── Доступность и движение ───────────────────────────────────── */
.pv :focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.pv-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::before, .pv *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
