/* Сайт ERP (/erp/): база — ../platform/platform.css і ../platform/app.css (токени Proboot, мітки,
   кнопки, фрагменти інтерфейсу); тут — блоки сайту: шлях пари, планшет, етикетка, тарифи, таблиці. */

.sec {
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid var(--line-soft);
}

.sec.alt {
  background: rgb(255 255 255 / 0.015);
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sec-head > p:not(.label) {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--dim);
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head.center > p:not(.label) {
  margin-left: auto;
  margin-right: auto;
}

.top-nav a.is-here {
  background: var(--surface-2);
  color: var(--text);
}

.top-nav a:first-child:not(.is-here) {
  background: none;
  color: var(--dim);
}

.top-nav a:first-child:not(.is-here):hover {
  color: var(--text);
}

/* ── Перший екран ────────────────────────────────────────────────── */
.erp-hero .hero-in {
  align-items: center;
}

@media (min-width: 980px) {
  .erp-hero .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.erp-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
}

.hero-cards {
  position: relative;
  display: grid;
  gap: 16px;
}

@media (min-width: 980px) {
  .hero-cards {
    padding-left: 40px;
  }
  .hero-cards .hc-cost {
    width: 340px;
    margin: -8px 0 0 -40px;
  }
}

.cost-row .over {
  display: block;
}

/* ── Факти ───────────────────────────────────────────────────────── */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.facts-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 18px;
  border-left: 1px solid var(--line);
}

.fact:nth-child(odd) {
  border-left: 0;
}

.fact b {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.fact span {
  color: var(--dim);
  font-size: 14px;
}

@media (min-width: 900px) {
  .facts-in {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fact:nth-child(odd) {
    border-left: 1px solid var(--line);
  }
  .fact:first-child {
    border-left: 0;
  }
}

@media (max-width: 899px) {
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ── Симптоми ────────────────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pain {
  padding: 24px 22px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pain .code {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.pain h3 {
  font-size: 15px;
  line-height: 1.3;
}

.pain p {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 14px;
}

/* ── Шлях пари ───────────────────────────────────────────────────── */
.path-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.path-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.path-nav button:first-child {
  border-left: 0;
}

.path-nav button small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.path-nav button:hover {
  color: var(--text);
}

.path-nav button.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.path-nav button.is-done small::after {
  content: ' ✓';
}

@media (max-width: 900px) {
  .path-nav {
    display: flex;
    overflow-x: auto;
  }
  .path-nav button {
    flex-shrink: 0;
  }
}

.panel {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

.panel-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.panel-copy > div > p {
  max-width: 460px;
  margin: 0;
  color: var(--dim);
}

.panel-copy .tier {
  margin-top: 22px;
}

.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.panel-frag {
  position: relative;
}

.panel-frag::before {
  content: '';
  position: absolute;
  inset: 5% 10%;
  background: radial-gradient(ellipse at center, rgb(var(--accent-rgb) / 0.16), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.path-next {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.fade-in {
  animation: fade-in 0.28s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ── Мітка тарифу ────────────────────────────────────────────────── */
.tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tier b {
  color: var(--text);
  font-weight: 400;
}

/* ── Фрагменти ERP ───────────────────────────────────────────────── */
.pb-frag .fcard {
  width: 100%;
}

.grid-run {
  display: grid;
  grid-template-columns: 110px repeat(var(--cols, 6), minmax(0, 1fr)) 60px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.grid-run > span {
  padding: 8px 6px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.grid-run > span:first-child {
  border-left: 0;
  padding-left: 16px;
  text-align: left;
}

.grid-run.head > span {
  color: var(--dim);
  font-size: 11.5px;
}

.grid-run.sum-row > span {
  font-weight: 600;
}

.grid-run .cell-sub {
  display: block;
  color: var(--dim);
  font-size: 11px;
}

.cost-rows {
  display: flex;
  flex-direction: column;
}

.cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.cost-row:first-child {
  border-top: 0;
}

.cost-row.total {
  font-weight: 600;
}

.cost-row .over {
  color: var(--error);
  font-size: 12px;
}

.cost-row .ok {
  color: var(--success);
  font-size: 12px;
}

.bundle-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.bundle-row:first-child {
  border-top: 0;
}

.load {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.load + .load {
  margin-top: 8px;
}

.load .pb-hbar {
  height: 8px;
}

.load .pb-hbar span.hot {
  background: var(--warning);
}

/* Етикетка пари */
.label-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 560px) {
  .label-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pair-label {
  padding: 12px 14px;
  border-radius: 4px;
  background: #f4f4f1;
  color: #111;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
}

.pair-label b {
  display: block;
  font-family: var(--font);
  font-size: 13px;
}

.pair-label .big {
  float: right;
  font-family: var(--font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.pair-label svg {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
}

.pair-label svg rect {
  fill: #111;
}

.scan-log {
  max-height: 170px;
  overflow: hidden;
}

.scan-log .pb-list-row {
  padding: 7px 12px;
  font-size: 12px;
}

.scan-log .pb-list-row.is-new {
  animation: pb-flash 1.4s ease-out;
}

.gp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.gp-grid .pb-sz {
  width: auto;
}

/* Планшет */
.tablet {
  padding: 14px;
  border: 1px solid #2c2c2c;
  border-radius: 26px;
  background: #101010;
  box-shadow: 0 50px 90px -30px rgb(0 0 0 / 0.95), inset 0 0 0 1px #1d1d1d;
}

.tablet-screen {
  overflow: hidden;
  border-radius: 14px;
}

.tablet-screen .pb-app.pb-frag {
  padding: 18px;
  background: var(--bg);
}

.t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.t-head b {
  font-size: 18px;
}

.t-bundle {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.t-bundle .t-big {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.t-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.t-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.t-tile small {
  color: var(--dim);
  font-size: 12px;
}

.t-tile b {
  font-size: 20px;
}

.t-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--btn-main-bg);
  color: var(--btn-main-fg);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.t-main.done {
  background: var(--success);
  color: #fff;
}

/* ── Робочі місця ────────────────────────────────────────────────── */
.ws-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 900px) {
  .ws-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}

.roles {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.role {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.role span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Тарифи (картки) ─────────────────────────────────────────────── */
.billing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.billing .seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.billing .seg button {
  padding: 8px 14px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.billing .seg button.is-active {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.billing small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.plan.hi {
  border-color: rgb(var(--accent-rgb) / 0.55);
  box-shadow: 0 30px 70px -40px rgb(var(--accent-rgb) / 0.55);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.plan .when {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
}

.plan .promise {
  min-height: 3.2em;
  margin: 12px 0 0;
  font-size: 15px;
}

.price {
  margin: 20px 0 4px;
}

.price s {
  display: block;
  color: var(--dim);
  font-size: 15px;
}

.price b {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  color: var(--dim);
  font-size: 14px;
}

.price-note {
  min-height: 2.6em;
  margin: 0;
  color: var(--dim);
  font-size: 12.5px;
}

.plan .for {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.plan ul {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 14px;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.plan li.lead {
  padding-left: 0;
  color: var(--dim);
}

.plan li.lead::before {
  display: none;
}

.plan .btn {
  margin-top: auto;
}

.limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.limits span {
  color: var(--dim);
}

/* ── Таблиці ─────────────────────────────────────────────────────── */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.tbl {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.tbl th,
.tbl td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tbl thead th {
  border-top: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tbl tbody th {
  color: var(--dim);
  font-weight: 400;
}

.tbl td.num,
.tbl th.num {
  text-align: right;
  white-space: nowrap;
}

.tbl .hi {
  background: rgb(var(--accent-rgb) / 0.07);
}

.tbl .yes {
  color: var(--accent);
}

.tbl .no {
  color: var(--line);
}

.tbl .group td {
  padding-top: 22px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 14px;
}

.rules li {
  position: relative;
  padding: 4px 0 4px 16px;
}

.rules li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--accent);
}

.two-col {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.two-col h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

.license {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.license summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.license summary::-webkit-details-marker {
  display: none;
}

.license summary small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 400;
}

.license summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 24px;
  transition: transform 0.2s ease;
}

.license[open] summary::after {
  transform: rotate(45deg);
}

.license-body {
  padding: 0 22px 22px;
}

.beta-band {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 28px;
}

.beta-step {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.beta-step.now {
  border-color: rgb(var(--accent-rgb) / 0.55);
}

.beta-step small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beta-step b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.beta-step span {
  color: var(--dim);
  font-size: 14px;
}

/* ── Порівняння й «кому підходить» ───────────────────────────────── */
.approaches {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.appr {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.appr.hi {
  border-color: rgb(var(--accent-rgb) / 0.55);
  box-shadow: 0 30px 70px -40px rgb(var(--accent-rgb) / 0.5);
}

.appr .label {
  margin-bottom: 16px;
}

.appr h3 {
  font-size: 18px;
}

.appr ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.appr li {
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 14px;
}

.appr.hi li {
  color: var(--text);
}

.appr .sum {
  margin: 16px 0 0;
  font-size: 14px;
}

.fit {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .fit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.fit > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.fit h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.fit ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.fit .yes li::before,
.fit .no li::before {
  position: absolute;
  left: 0;
  font-family: var(--mono);
}

.fit .yes li::before {
  content: '+';
  color: var(--accent);
}

.fit .no li::before {
  content: '−';
  color: var(--dim);
}

.fit .no li {
  color: var(--dim);
}

/* ── Етапи впровадження ──────────────────────────────────────────── */
.step-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .step-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-list li {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.step-n {
  padding-bottom: 26px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.step-list p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
}

/* ── Можливості (сторінка модулів) ───────────────────────────────── */
.mod-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1000px) {
  .mod-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
  }
}

.mod-nav {
  display: none;
}

@media (min-width: 1000px) {
  .mod-nav {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: start;
  }
  .mod-nav a {
    padding: 7px 10px;
    border-radius: 3px;
    color: var(--dim);
    font-size: 14px;
    text-decoration: none;
  }
  .mod-nav a:hover,
  .mod-nav a.is-active {
    background: var(--surface);
    color: var(--text);
  }
}

.mod {
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
}

.mod:first-child {
  padding-top: 0;
  border-top: 0;
}

.mod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mod-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.mod > p {
  max-width: 640px;
  margin: 0 0 20px;
  color: var(--dim);
}

.mod-body {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 1200px) {
  .mod-body.with-frag {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.feat-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.feat-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.feat-list li small {
  display: block;
  color: var(--dim);
  font-size: 13.5px;
}

/* ── Питання ─────────────────────────────────────────────────────── */
.faq-in {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .faq-in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 22px;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 620px;
  margin: 0;
  padding: 0 0 22px;
  color: var(--dim);
}

/* ── Підвал ──────────────────────────────────────────────────────── */
.foot-cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  padding: 40px 0 28px;
}

.foot-cols h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-cols a {
  display: block;
  padding: 3px 0;
  color: var(--dim);
  font-size: 14px;
  text-decoration: none;
}

.foot-cols a:hover {
  color: var(--text);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
}

/* ── Тости ───────────────────────────────────────────────────────── */
.toast-zone {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.9);
  animation: fade-in 0.2s ease-out;
}

/* ── Вузькі екрани ───────────────────────────────────────────────── */
@media (max-width: 560px) {
  .pb-frag .pb-step:not(.is-current) {
    gap: 0;
    font-size: 0;
  }
  .pb-frag .pb-step-line {
    margin: 0 4px;
    min-width: 6px;
  }
  .pb-frag .fcard-head .pb-mono {
    display: none;
  }
  .pb-frag .fcard-body {
    padding: 12px;
  }
  .grid-run {
    grid-template-columns: 70px repeat(var(--cols, 6), minmax(0, 1fr)) 40px;
    font-size: 12px;
  }
  .grid-run > span {
    padding: 7px 2px;
  }
  .grid-run > span:first-child {
    padding-left: 10px;
  }
  .bundle-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .bundle-row > :last-child {
    grid-column: 1 / -1;
  }
  .t-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Дрібниці фрагментів ─────────────────────────────────────────── */
.pb-app .txt-ok {
  color: var(--success);
}
.pb-app .txt-warn {
  color: var(--warning);
}
.pb-app .txt-err {
  color: var(--error);
}

.pb-mb8 {
  margin-bottom: 8px;
}

.mini-step {
  width: 16px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

.grid-run > span:hover .mini-step,
.mini-step:focus-visible {
  opacity: 1;
}

.mini-step:hover {
  color: var(--text);
}

.grid-run b {
  font-weight: 600;
}

@media (hover: none) {
  .mini-step {
    opacity: 1;
  }
}

.tc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}

.tc-fields small {
  display: block;
  color: var(--dim);
  font-size: 12px;
}

.tc-fields b {
  font-size: 14px;
  font-weight: 600;
}

.work-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.work-grid .pb-list-row {
  padding: 10px 14px;
}

.gp-grid button.pb-sz {
  height: 40px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.gp-grid button.pb-sz.is-pick {
  border-color: var(--accent-color);
  box-shadow: inset 0 0 0 1px var(--accent-color);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.kpi-row > div {
  padding: 12px 16px;
  border-left: 1px solid var(--line);
}

.kpi-row > div:first-child {
  border-left: 0;
}

.kpi-row small {
  display: block;
  color: var(--dim);
  font-size: 11.5px;
}

.kpi-row b {
  font-size: 18px;
  font-weight: 600;
}

.pb-frag .pb-table td,
.pb-frag .pb-table th {
  padding: 9px 10px;
}

.pb-frag .pb-table td:first-child,
.pb-frag .pb-table th:first-child {
  padding-left: 16px;
}

.sec-first {
  border-top: 0;
  padding-top: clamp(48px, 7vw, 96px);
}

.sec-first h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.tbl-sm {
  min-width: 0;
}

@media (max-width: 560px) {
  .tc-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-row > div {
    padding: 10px;
  }
  .kpi-row b {
    font-size: 14px;
  }
  .pb-frag .pb-table {
    font-size: 12px;
  }
  .pb-frag .pb-table td,
  .pb-frag .pb-table th {
    padding: 8px 6px;
  }
}

@media (max-width: 560px) {
  .pb-frag .mh {
    display: none;
  }
}

.grid-run > span {
  position: relative;
}

.mini-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.mini-step.dec {
  left: 2px;
}

.mini-step.inc {
  right: 2px;
}

/* Старт — уже працює: виділення скрізь */
.tier-live {
  border-color: rgb(var(--accent-rgb) / 0.6);
  background: rgb(var(--accent-rgb) / 0.1);
  color: var(--text);
}

.tier-live i,
.plan .when.live i {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #57c785;
  box-shadow: 0 0 8px rgb(87 199 133 / 0.9);
}

.plan .when.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.beta-step.now small::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #57c785;
  box-shadow: 0 0 8px rgb(87 199 133 / 0.9);
  vertical-align: 1px;
}

/* Перший екран: УТП без курсиву, текст ближче до верху */
.hero.erp-hero {
  padding-top: clamp(28px, 4.5vw, 64px);
}

.erp-hero .hero-in {
  align-items: start;
}


.erp-hero .lead {
  max-width: 560px;
  margin-top: 24px;
}

@media (min-width: 980px) {
  .erp-hero .hero-cards {
    margin-top: 8px;
  }
}

/* Шрифт — як на головному лендингу proboot.app: Archivo для латиниці, кирилиця — системним
   шрифтом пристрою (у файлі Archivo кирилиці немає). Вікна інтерфейсу лишаються на Inter. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Archivo', system-ui, -apple-system, sans-serif;
}

h1,
.cta h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  letter-spacing: -0.03em;
}

.btn {
  letter-spacing: 0.02em;
}

.erp-hero .actions .btn {
  padding: 0 18px;
}

/* ── Типографіка як на головному лендингу proboot.app ────────────── */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/PlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/PlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
  line-height: 1.45;
}

.logo-img {
  display: block;
  width: auto;
  height: 40px;
}

.top-nav {
  gap: 28px;
  border: 0;
  background: none;
}

.top-nav a,
.top-nav a:first-child:not(.is-here) {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a.is-here,
.top-nav a:hover {
  background: none;
  color: var(--text);
}

.top-nav a i {
  display: none;
}

.header-cta {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 2px;
  background: #f2f2f2;
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .header-cta {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .logo-img {
    height: 32px;
  }
}

.hero-title-row {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.erp-hero h1.h1-usp {
  max-width: none;
  font-size: clamp(2.25rem, 6.5vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.erp-hero h1.h1-usp span {
  display: block;
  max-width: 44ch;
  margin-top: 24px;
  color: #9a9a9a;
  font-size: clamp(1rem, 1vw + 0.9rem, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.erp-hero .lead {
  margin-top: 0;
  color: var(--text);
  opacity: 0.85;
}

.btn {
  border-radius: 2px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
}

.erp-hero .actions .btn {
  padding: 0 16px;
  font-size: 0.8rem;
}

/* Контейнер — як на головному лендингу: до 1600px, поля 24–40px */
.wrap,
.wrap-wide {
  max-width: 1600px;
  padding: 0 clamp(16px, 4vw, 40px);
}

.sec-head {
  max-width: 900px;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Мітки — у форматі головного лендингу: [ТЕКСТ] моно, без рамки й крапки */
.label {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgb(242 242 242 / 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.label i {
  display: none;
}

.label::before {
  content: '[';
}

.label::after {
  content: ']';
}

/* Справжнє вікно системи (iframe зі збірки tools/order-embed) */
.real-modal {
  margin: 0 0 8px;
}

.real-modal-box {
  position: relative;
  overflow: hidden;
}

.real-modal iframe {
  display: block;
  width: 760px;
  max-width: none;
  height: 640px;
  transform-origin: 0 0;
  border: 0;
  background: transparent;
  color-scheme: dark;
}

.real-modal figcaption {
  margin: 10px 0 0;
}

.hero-cards,
.hero-cards > *,
.erp-hero .hero-in > * {
  min-width: 0;
}

.real-modal-box iframe {
  position: absolute;
  top: 0;
  left: 0;
}

.panel-copy h2 + div {
  margin-top: 24px;
}
