/* Pricing — Atom landing styles (structure from Donkit, chrome from главная) */

.pricing-page {
  background: var(--bg);
  color: var(--snow);
  min-height: 100dvh;
}

.pricing-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* ---- Shared section chrome (как .section на главной) ---- */
.pricing-block {
  max-width: none;
  margin: 0;
  padding: var(--section-pad-y) var(--page-pad);
}

/* Kickers = как eyebrow на морде (mono + caps + silence) */
.pricing-page .section__eyebrow {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
}

/* Hero title тарифов — крупный, как сейчас */
.plans__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  color: var(--snow);
  max-width: 18ch;
}

/* Остальные section-заголовки — как .section__title на морде */
.pricing-title,
.pmtx__title,
.pcred__title,
.pfaq__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-title);
  color: var(--snow);
  text-wrap: balance;
  max-width: 22ch;
}

.plans,
.pmtx,
.pcred,
.pfaq,
.pcta {
  max-width: none;
  margin: 0;
  padding: var(--section-pad-y) var(--page-pad);
}

/* ---- 01 Plans ---- */
.plans__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.plans__head .section__eyebrow {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.plans__head .plans__title {
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.plans__lead {
  margin: 0 0 1rem;
  max-width: 46ch;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--silence);
  text-wrap: pretty;
}

.plans__promo {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--signal) 40%, var(--hairline));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--signal) 14%, var(--panel));
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.plans__footnote {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  max-width: 62ch;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--silence);
  text-wrap: pretty;
}

.pcard__was {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: -0.25rem 0 0;
  flex-wrap: wrap;
}

.pcard__old {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--silence);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.pcard__off {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--signal) 16%, transparent);
}

.plans__tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
}

.plans__tabs button {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--silence);
  transition:
    color var(--duration-mid) var(--ease-out),
    background var(--duration-mid) var(--ease-out);
}

.plans__tabs button.is-active {
  background: var(--signal);
  color: var(--snow);
}

.plans__tabs button:hover:not(.is-active) {
  color: var(--snow);
}

.plans__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  isolation: isolate;
}

/* author display:grid would otherwise override native [hidden] */
.plans__grid[hidden] {
  display: none !important;
}

/* «Для команд» — две карточки, ширина как у карточек в 3-колоночном ряду */
.plans__grid--team {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(100%, calc(2 * ((100% - 2 * var(--col-gap)) / 3) + var(--col-gap)));
  margin-inline: auto;
}

/* Plan card — как team-card / cta-card на морде: texture + glow */
.pcard {
  --pcard-grid: rgba(255, 250, 250, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background-color: var(--panel);
  overflow: visible;
  isolation: isolate;
  box-sizing: border-box;
  box-shadow:
    0 1px 0 rgba(255, 250, 250, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition:
    border-color var(--duration-mid) var(--ease-out),
    transform var(--duration-mid) var(--ease-out),
    box-shadow var(--duration-mid) var(--ease-out);
}

.pcard > * {
  position: relative;
  z-index: 1;
}

.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.pcard:hover {
  z-index: 3;
}

/* тултип цены поверх соседних блоков карточки и соседних карточек */
.pcard:has(.price-redact:hover),
.pcard:has(.price-redact:focus-visible) {
  z-index: 12;
}

.pcard:hover {
  border-color: color-mix(in srgb, var(--snow) 28%, var(--hairline));
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 250, 250, 0.05) inset,
    0 16px 48px rgba(0, 0, 0, 0.42);
}

/* Free — graph paper + soft top wash */
.pcard--grid {
  background-color: color-mix(in srgb, var(--panel) 72%, var(--graphite) 28%);
  background-image:
    linear-gradient(to bottom, rgba(51, 73, 245, 0.22) 0%, transparent 48%),
    linear-gradient(var(--pcard-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pcard-grid) 1px, transparent 1px);
  background-size: auto, 16px 16px, 16px 16px;
}
.pcard--grid::before {
  background: radial-gradient(90% 55% at 50% 0%, rgba(51, 73, 245, 0.2) 0%, transparent 70%);
}

/* Pro / Team featured — dense grid + corner glow */
.pcard.is-featured,
.pcard--dense {
  background-color: color-mix(in srgb, var(--graphite) 45%, var(--panel) 55%);
  background-image:
    radial-gradient(80% 70% at 100% 100%, rgba(51, 73, 245, 0.22) 0%, transparent 55%),
    radial-gradient(60% 50% at 0% 0%, rgba(51, 73, 245, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(255, 250, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 250, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 12px 12px, 12px 12px;
  border-color: rgba(51, 73, 245, 0.35);
}
.pcard.is-featured::before,
.pcard--dense::before {
  background:
    linear-gradient(rgba(255, 250, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 250, 0.06) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  opacity: 0.7;
}

/* Pro Plus — vertical field lines */
.pcard--lines {
  background-color: color-mix(in srgb, var(--graphite) 35%, var(--panel) 65%);
  background-image:
    radial-gradient(80% 60% at 50% 0%, rgba(51, 73, 245, 0.2) 0%, transparent 55%),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--silence) 16%, transparent) 0 1px,
      transparent 1px 9px
    );
}
.pcard--lines::before {
  background: linear-gradient(to bottom, rgba(51, 73, 245, 0.16) 0%, transparent 42%);
}

/* Enterprise — calendar tiles + top glow (как team-card--deck) */
.pcard--glow {
  background-color: color-mix(in srgb, var(--panel) 80%, var(--fill) 20%);
  background-image:
    radial-gradient(70% 55% at 50% 0%, rgba(51, 73, 245, 0.22) 0%, transparent 55%),
    radial-gradient(60% 50% at 100% 100%, rgba(51, 73, 245, 0.14) 0%, transparent 55%);
  border-color: rgba(51, 73, 245, 0.28);
}
.pcard--glow::before {
  inset: 1rem;
  border-radius: 2px;
  opacity: 0.4;
  background:
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--fill) 70%, var(--snow) 3%) 0 18px,
      transparent 18px 28px
    ),
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--fill) 70%, var(--snow) 3%) 0 18px,
      transparent 18px 28px
    );
  -webkit-mask-image:
    repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(0deg, #000 0 18px, transparent 18px 28px);
  -webkit-mask-composite: source-in;
  mask-image:
    repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 28px),
    repeating-linear-gradient(0deg, #000 0 18px, transparent 18px 28px);
  mask-composite: intersect;
}

.pcard.is-featured:hover {
  border-color: color-mix(in srgb, var(--signal) 55%, var(--hairline));
}

.pcard__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--signal);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.pcard__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--silence);
}

.pcard__idx {
  color: var(--signal);
}


.pcard__name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
  line-height: 1.1;
  color: var(--snow);
}

.pcard__price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  z-index: 2;
}

.pcard:has(.price-redact:hover) .pcard__price,
.pcard:has(.price-redact:focus-visible) .pcard__price {
  z-index: 6;
}

.pcard__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: var(--snow);
  min-height: 0.95em;
}

.pcard__num--masked {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.pcard__from,
.pcard__cur {
  font-family: var(--font-display);
  font-weight: 700;
  color: inherit;
}

.pcard__from {
  font-size: 0.55em;
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
  color: var(--silence);
  margin-right: 0.1em;
}

.pcard__num:empty {
  display: none;
}

.pcard__price:has(.pcard__num:empty) .pcard__per {
  margin-left: 0;
}

.pcard.is-featured .pcard__num {
  color: var(--signal);
}

.pcard.is-featured .pcard__num--masked .price-redact__group i {
  background: color-mix(in srgb, var(--signal) 55%, transparent);
}

/* Redacted digit blocks + tooltip */
.price-redact {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  cursor: help;
  outline: none;
  vertical-align: middle;
}

.price-redact:hover,
.price-redact:focus-visible {
  z-index: 8;
}

.price-redact__group {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
}

.price-redact__group i {
  display: block;
  width: 0.52em;
  height: 0.82em;
  margin: 0;
  padding: 0;
  border-radius: 0.14em;
  background: color-mix(in srgb, var(--snow) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--snow) 10%, transparent);
  font-style: normal;
  transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.price-redact:hover .price-redact__group i,
.price-redact:focus-visible .price-redact__group i {
  background: color-mix(in srgb, var(--snow) 42%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 35%, transparent);
}

.price-redact[data-tip]::before,
.price-redact[data-tip]::after {
  position: absolute;
  left: 50%;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.price-redact[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 0.55rem);
  transform: translate(-50%, 0.25rem);
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.price-redact[data-tip]::before {
  content: "";
  bottom: calc(100% + 0.2rem);
  transform: translate(-50%, 0.25rem);
  border: 5px solid transparent;
  border-top-color: var(--hairline);
}

.price-redact:hover[data-tip]::before,
.price-redact:hover[data-tip]::after,
.price-redact:focus-visible[data-tip]::before,
.price-redact:focus-visible[data-tip]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pcard__per {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--silence);
}

.pcard__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--silence);
}

.pcard__sub {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--silence);
}

.pcard__list {
  list-style: none;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.pcard__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--snow);
}

.pcard__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-weight: 600;
}


/* Все CTA на карточках = primary: ghost сливается с геометричным фоном */
.pcard__cta {
  appearance: none;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: clamp(2.25rem, 3vw, 3.75rem);
  padding: 0 clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--snow);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--signal-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out),
    color var(--duration-mid) var(--ease-out);
}

.pcard__cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--snow);
}



/* Top-ups */
.topups {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 0;
}

.topups__h {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--silence);
}

.topups__h i {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.topups__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}

.topup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
}

.topup:has(.price-redact:hover),
.topup:has(.price-redact:focus-visible) {
  z-index: 12;
}

.topup--volume {
  border-color: color-mix(in srgb, var(--signal) 45%, var(--hairline));
  background: color-mix(in srgb, var(--signal) 6%, var(--panel));
}

.topup__badge {
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.topup__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
  line-height: 1.1;
  color: var(--snow);
}

.topup__price--masked {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.topup__price:empty {
  display: none;
}

.topup--volume .topup__price {
  color: var(--signal);
}

.topup--volume .topup__price--masked .price-redact__group i {
  background: color-mix(in srgb, var(--signal) 55%, transparent);
}

.topup__credits {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--signal);
}

.topup--volume .topup__credits {
  color: var(--signal);
}

.topup__note {
  font-size: var(--text-sm);
  color: var(--silence);
}

.topup--policy .topup__h {
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--silence);
}

.topup--policy p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--silence);
}

.topup--policy strong {
  color: var(--signal);
  font-weight: 600;
}

/* ---- 02 Compare matrix ---- */
.pmtx__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.pmtx__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
}

.pmtx__table {
  width: 100%;
  min-width: 52rem;
  /* separate — иначе sticky-колонка/сабхедер глючат */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: var(--text-sm);
}

/* Fixed clone of compare thead (overflow-x breaks native sticky) */
.pmtx__pin {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 15;
  display: none;
  pointer-events: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius) var(--radius) 0 0;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.pmtx__pin.is-on {
  display: block;
}
.pmtx__pin-scroll {
  overflow: hidden;
}

/* Mobile: scroll hints on sticky compare header */
.pmtx__pin-arrow {
  display: none;
  position: absolute;
  top: 0;
  bottom: auto;
  z-index: 5;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 100%;
  max-height: 3rem;
  margin: 0;
  padding: 0;
  border: none;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--panel) 96%, var(--bg)) 35%,
    transparent
  );
  color: var(--signal);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease-out), visibility 0.18s;
}
.pmtx__pin-arrow--right {
  right: 0;
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--panel) 96%, var(--bg)) 35%,
    transparent
  );
}
.pmtx__pin-arrow--left {
  left: 0;
}
.pmtx__pin-arrow.is-on {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  .pmtx__pin {
    position: fixed;
  }
  .pmtx__pin-arrow {
    display: flex;
    /* height = thead row only; JS sets --pin-head-h */
    height: var(--pin-head-h, 2.75rem);
  }
  /* left arrow sits after sticky label col so it doesn't clash */
  .pmtx__pin-arrow--left {
    left: 0;
    padding-left: 0.15rem;
  }
}
.pmtx__pin .pmtx__table {
  margin: 0;
}
.pmtx__pin thead th {
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pmtx__pin thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 6px 0 14px rgba(0, 0, 0, 0.22);
}
.pmtx__pin-group {
  display: none;
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--snow);
  /* тот же фон, что у .pmtx__group в таблице */
  background: color-mix(in srgb, var(--signal) 26%, var(--panel));
  border-top: 1px solid color-mix(in srgb, var(--signal) 32%, var(--hairline));
}
.pmtx__pin-group.is-on {
  display: block;
}

/* label col + 5 equal plan cols */
.pmtx__table col.pmtx__col-label {
  width: 22%;
}

.pmtx__table col.pmtx__col-plan {
  width: 15.6%;
}

.pmtx__table th,
.pmtx__table td {
  padding: 0.75rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  color: var(--silence);
  vertical-align: middle;
  word-break: break-word;
  hyphens: auto;
}

.pmtx__table thead th {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--signal);
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
  border-bottom-color: var(--hairline);
}

.pmtx__table tbody tr:last-child td {
  border-bottom: none;
}

/* label sticks in view while plan cols scroll horizontally */
.pmtx__group-label {
  position: sticky;
  left: 0.9rem;
  display: inline-block;
  max-width: calc(100vw - 2.5rem);
  z-index: 1;
}

.pmtx__table th:first-child,
.pmtx__table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  color: var(--snow);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  background: var(--panel);
  box-shadow: 6px 0 14px rgba(0, 0, 0, 0.2);
}

.pmtx__table thead th:first-child {
  z-index: 4;
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
}

/* выше специфичность, чем td:first-child — иначе panel перебивает заливку */
.pmtx__table tr.pmtx__group > td {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--snow);
  background: color-mix(in srgb, var(--signal) 26%, var(--panel));
  border-bottom: 1px solid color-mix(in srgb, var(--signal) 32%, var(--hairline));
  padding-top: 1rem;
}

.pmtx__table td.is-yes {
  color: var(--signal);
  font-weight: 600;
}

.pmtx__table td.is-no {
  color: var(--ink-quaternary);
}

/* ---- 03 Credits ---- */
.pcred__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pcred__split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--col-gap);
  align-items: stretch;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.pcred__col {
  --pcred-grid: rgba(255, 250, 250, 0.05);
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 250, 250, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.3);
  /* user side — graph paper + top wash */
  background-color: color-mix(in srgb, var(--panel) 72%, var(--graphite) 28%);
  background-image:
    linear-gradient(to bottom, rgba(51, 73, 245, 0.2) 0%, transparent 48%),
    linear-gradient(var(--pcred-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pcred-grid) 1px, transparent 1px);
  background-size: auto, 16px 16px, 16px 16px;
}

.pcred__col > * {
  position: relative;
  z-index: 1;
}

.pcred__col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(90% 55% at 50% 0%, rgba(51, 73, 245, 0.18) 0%, transparent 70%);
}

/* platform side — vertical field lines + corner glow */
.pcred__col--alt {
  background-color: color-mix(in srgb, var(--graphite) 40%, var(--panel) 60%);
  background-image:
    radial-gradient(80% 70% at 100% 100%, rgba(51, 73, 245, 0.2) 0%, transparent 55%),
    radial-gradient(70% 55% at 0% 0%, rgba(51, 73, 245, 0.12) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--silence) 14%, transparent) 0 1px,
      transparent 1px 9px
    );
  border-color: rgba(51, 73, 245, 0.32);
}

.pcred__col--alt::before {
  background: linear-gradient(to bottom, rgba(51, 73, 245, 0.14) 0%, transparent 45%);
}

.pcred__h {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--signal);
}

.pcred__col--alt .pcred__h {
  color: var(--signal);
}

.pcred__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pcred__bullets li {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--snow);
}

.pcred__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silence);
}

.pcred__bars {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  border: none;
  background: transparent;
}

.pcred__bars-h {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--silence);
}

/* same chrome as .pmtx__scroll / .pmtx__table */
.pcred__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--panel);
}

.pcred__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--text-sm);
}

.pcred__table th,
.pcred__table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.pcred__table thead th {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--signal);
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
  border-bottom-color: var(--hairline);
}

.pcred__table thead th:last-child,
.pcred__table td:last-child {
  text-align: right;
  width: 28%;
  white-space: nowrap;
}

.pcred__table tbody td:first-child {
  color: var(--snow);
}

.pcred__table tbody td:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--signal);
}

.pcred__table tbody tr:last-child th,
.pcred__table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- 04 FAQ — как порядок действий (.steps) в «для себя» ---- */
.pfaq .decl-layout__intro .section__title {
  /* на pricing title чуть плотнее, чем giant-секции главной */
  max-width: 16ch;
}

.pfaq__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
}

.faq {
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}

.faq:first-child {
  border-top: 1px solid var(--hairline);
}

.faq__q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--col-gap);
  align-items: center;
  width: 100%;
  padding: clamp(1rem, 2vw, 1.875rem) 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.faq__n {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 1.5vw, 2.25rem);
  color: var(--signal);
  line-height: 1.3;
}

.faq__t {
  grid-column: 2 / 4;
  min-width: 0;
  padding-right: 2rem;
  font-size: var(--text-title);
  font-weight: 400;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-title);
  color: var(--snow);
  text-align: left;
  text-wrap: balance;
}

.faq.is-open .faq__t {
  color: var(--signal);
}

.faq__plus {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  margin-top: 0.15em;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--silence);
}

.faq.is-open .faq__plus {
  color: var(--signal);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--col-gap);
}

.faq__a p {
  grid-column: 2 / 4;
  margin: 0;
  padding: 0 0 clamp(1rem, 2vw, 1.5rem);
  max-width: 52ch;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--silence);
  text-wrap: pretty;
}

/* ---- CTA — одна карточка шириной как обе на морде (1200px) ---- */
.pcta {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.pcta__card.cta-card {
  --cta-viz-w: clamp(12rem, 28vw, 18rem);
  --cta-viz-h: calc(var(--cta-viz-w) * 140 / 220);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: clamp(18rem, 32vw, 24rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pcta__card .cta-card__body {
  max-width: min(40rem, 70%);
  width: 100%;
  flex: 0 0 auto;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.pcta__card .cta-card__title {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
}

.pcta__card .cta-card__lead {
  max-width: 46ch;
  margin-inline: auto;
  text-align: center;
}

.pcta__card .cta-card__actions {
  align-items: center;
}

.pcta__card .cta-card__hint {
  text-align: center;
  max-width: 36ch;
}

.pcta__mg.ent-mg {
  aspect-ratio: 220 / 140;
}

/* ---- Responsive ---- */
/* 3 → стек; на среднем экране командные остаются 2 в ряд */
@media (max-width: 1100px) {
  .plans__grid {
    grid-template-columns: 1fr;
  }

  .plans__grid--team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .topups__row {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .pcred__split {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 640px) {
  /* тултип цены: под блоком, влево от края, с переносом — не режется экраном */
  .price-redact[data-tip]::before,
  .price-redact[data-tip]::after {
    left: 0;
    right: auto;
  }

  .price-redact[data-tip]::after {
    bottom: auto;
    top: calc(100% + 0.5rem);
    transform: translate(0, -0.2rem);
    max-width: min(16rem, calc(100vw - 2.5rem));
    white-space: normal;
    text-wrap: balance;
  }

  .price-redact[data-tip]::before {
    bottom: auto;
    top: calc(100% + 0.15rem);
    left: 0.7rem;
    transform: translate(0, -0.2rem);
    border-top-color: transparent;
    border-bottom-color: var(--hairline);
  }

  .price-redact:hover[data-tip]::before,
  .price-redact:hover[data-tip]::after,
  .price-redact:focus-visible[data-tip]::before,
  .price-redact:focus-visible[data-tip]::after {
    transform: translate(0, 0);
  }

  .pcta__card.cta-card {
    --cta-viz-w: clamp(7.5rem, 38vw, 10rem);
    --cta-viz-h: calc(var(--cta-viz-w) * 140 / 220);
    min-height: 0;
    /* место под иллюстрацию, чтобы hint не наезжал */
    padding-bottom: calc(var(--cta-viz-h) * 0.72 + 1.75rem);
  }

  .pcta__card .cta-card__body {
    max-width: none;
  }

  .pcta__card > .cta-card__viz {
    bottom: clamp(-3.25rem, -12vw, -2.25rem);
    opacity: 0.88;
  }

  .pcta__card .cta-card__actions,
  .pcta__card .cta-card__hint {
    position: relative;
    z-index: 2;
  }

  .faq__q {
    grid-template-columns: auto 1fr auto;
    column-gap: 1rem;
  }

  .faq__n {
    grid-column: 1;
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  }

  .faq__t {
    grid-column: 2;
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  }

  .faq__plus {
    grid-column: 3;
  }

  .faq__a-inner {
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
  }

  .faq__a p {
    grid-column: 2;
    max-width: none;
  }

  .pmtx__scroll {
    margin-inline: calc(var(--page-pad) * -1);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* узкая левая колонка — больше места тарифам при горизонтальном скролле */
  .pmtx__table {
    min-width: 40rem;
  }
  .pmtx__table col.pmtx__col-label {
    width: 6.75rem;
  }
  .pmtx__table col.pmtx__col-plan {
    width: 6.5rem;
  }
  .pmtx__table th:first-child,
  .pmtx__table td:first-child {
    padding-left: 0.75rem;
    padding-right: 0.55rem;
    font-size: 0.8125rem;
  }
  .pmtx__group-label {
    left: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }
}
