/* Ціни, варіант 3: заголовок, перемикач періоду, тарифи блоками 2×2 (як на сторінці партнерів), розгортання
   тарифу на всю ширину з деталями й калькулятором, підказки ⓘ і «Порівняти всі тарифи».
   Таблиця порівняння — compare.css, поведінка — pricing.js.
   Кольори тарифів — як на сайті: Безкоштовно біла, Pro Plus бірюзова, Custom Enterprise синя.
   Ціни — жирною антиквою (Palatino), як і було на сайті. */

.pc {
  --pc-ink: #000;
  --pc-text: #3a3a3c;
  --pc-mute: #6e6e73;
  --pc-line: rgba(0, 0, 0, .08);
  --pc-neon: #00ffc0;
  --pc-blue: #3d38a0;
  --pc-orange: #ff9f2e;
  --pc-ease: cubic-bezier(.16, 1, .3, 1);
  --pc-spring: cubic-bezier(.34, 1.4, .5, 1);
  --pc-r: 26px;
  --pc-serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  position: relative;
  /* верхній відступ під шапку вже дає .main (≈170px) */
  padding: 0 0 40px;
  color: var(--pc-ink);
}

.pc [hidden] {
  display: none !important;
}

.pc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* загальний жовтий «блоб» під кнопками з main.css (button:hover:before) тут не потрібен */
.pc button:before,
.pc button:not(.disabled):hover:before,
.pc button:not(.disabled):active:before {
  content: none !important;
}

.pc button {
  font-family: var(--font);
}

.pc-wrap {
  /* ширина й поля — як у блоків сторінки «Партнери» (.wrap.wrap-wide > .content-wrap) */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--x, 60px);
}

/* ---------- Підказки ⓘ ----------
   Кнопка .pc-tip одразу перед своєю .pc-tip-body (role=tooltip, id для aria-describedby). pricing.js переносить
   усі підказки в окремий шар у <body> і ставить їх над кнопкою: так їх не обрізають блоки й таблиці.
   Миша — наведення, клавіатура — фокус, палець — тап. */
.pc-tip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0 0 0 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  color: inherit;
  font: 700 11px/1 var(--font);
  vertical-align: .08em;
  cursor: help;
  transition: background-color .2s ease, color .2s ease, transform .3s var(--pc-spring);
  -webkit-tap-highlight-color: transparent;
}

.pc-tip:not(.disabled):hover,
.pc-tip[aria-expanded="true"] {
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

.pc-tip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* буква «i» — з CSS, не текстом: gtranslate перекладав її як сполучник (у словацькій «i» → «a») */
.pc-tip i {
  font-style: normal;
  font-family: Georgia, serif;
}

.pc-tip i:before {
  content: 'i';
}

.pc .pc-tip-body {
  display: none;
}

.pc-tips {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 60;
}

.pc-tips .pc-tip-body {
  position: absolute;
  left: var(--tx, 0);
  top: var(--ty, 0);
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 14px 11px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(.98);
  transform-origin: var(--ax, 50%) 100%;
  transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.4, .5, 1), visibility 0s linear .2s;
  pointer-events: none;
}

.pc-tips .pc-tip-body:after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--ax, 50%);
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #000;
}

.pc-tips .pc-tip-body.is-below {
  transform-origin: var(--ax, 50%) 0;
  transform: translateY(-6px) scale(.98);
}

.pc-tips .pc-tip-body.is-below:after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #000;
}

.pc-tips .pc-tip-body.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .35s cubic-bezier(.34, 1.4, .5, 1), visibility 0s;
}

/* ---------- Заголовок і перемикач періоду ---------- */

.pc-head {
  text-align: center;
}

.pc-title {
  max-width: 14em;
  margin: 0 auto;
  padding: 0;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.pc-lead {
  max-width: 32em;
  margin: 16px auto 0;
  color: var(--pc-text);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  text-wrap: balance;
}

/* чорна «пігулка» їде під обраним варіантом; положення й ширину ставить pricing.js (--tx, --tw) */
.pc-toggle {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  margin: 28px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--pc-line), 0 14px 34px -22px rgba(0, 0, 0, .35);
}

.pc-toggle-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: var(--tx, 5px);
  width: var(--tw, 50%);
  border-radius: 999px;
  background: #000;
  transition: left .55s var(--pc-spring), width .55s var(--pc-spring);
}

.pc-toggle-btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pc-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color .35s ease, background-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.pc-toggle-btn.is-on,
.pc-toggle-btn.is-on:not(.disabled):hover {
  color: #fff;
}

.pc-toggle-btn:not(.is-on):not(.disabled):hover {
  color: var(--pc-ink);
  background: rgba(0, 0, 0, .05);
}

.pc-toggle-btn:focus-visible {
  outline: 2px solid var(--pc-ink);
  outline-offset: 3px;
}

/* бейдж знижки — наліпка над «Рік»; коли обрано місяць, він блідне, при поверненні до року підстрибує */
.pc-save {
  position: absolute;
  top: -15px;
  right: -22px;
  padding: 4px 9px 5px;
  border-radius: 999px;
  background: var(--pc-orange);
  color: #000;
  font: 700 15px/1 var(--pc-serif);
  white-space: nowrap;
  rotate: 8deg;
  box-shadow: 0 6px 14px -6px rgba(242, 96, 45, .7), 0 0 0 2px #f4f4f4;
  transition: opacity .35s ease, scale .45s var(--pc-spring), rotate .45s var(--pc-spring);
}

.pc[data-period="month"] .pc-save {
  opacity: .55;
  scale: .88;
  rotate: 3deg;
}

.pc-save.is-pop {
  animation: pc-save-pop .6s var(--pc-spring);
}

@keyframes pc-save-pop {
  0% { scale: .88; rotate: 3deg; }
  45% { scale: 1.18; rotate: 12deg; }
  100% { scale: 1; rotate: 8deg; }
}

.pc[data-period="year"] .pc-m,
.pc[data-period="month"] .pc-y {
  display: none !important;
}

/* ---------- Блоки тарифів: бенто 2×2, варіант B ----------
   Pro Plus — висока картка ліворуч на два ряди (grid-column 1, grid-row 1 / span 2), праворуч одна над одною
   «Безкоштовно» і «Custom Enterprise» (місце задано grid-column/grid-row, DOM-порядок не міняємо — фокус і читалки
   йдуть як є). Висоту сітки задає Pro Plus, праві картки ділять її навпіл, кнопки в них притиснуті донизу.
   Усередині Pro Plus: назва й ціна в рядок, опис, примітка, кнопки, а нижче інсет .pc-peek (три групи того, що
   входить, пункти групи у 2 колонки). До 767px — одна колонка: Pro Plus, Безкоштовно, Enterprise.
   Сітка — дві колонки без проміжків (блоки стикаються), радіус 30px, поля 35px (25px до 560px), до 560px сітка
   виходить на 15px за поля сторінки, як у блоків сторінки «Партнери».
   Клік по блоку (поза кнопками й посиланнями) розгортає його на всю ширину сітки — «розкриття контейнера»
   (pricing.js): відкритий блок лягає поверх сітки (absolute, на всю її ширину), його обрізка (clip-path)
   розширюється від місця блоку до повного розміру, висота сітки плавно підлаштовується, решта блоків гасне, а вміст
   проявляється слідом. Вміст одразу зверстаний у кінцевому вигляді й не масштабується — нічого не стрибає й не
   розтягується. На місці відкритого блоку — заглушка .pc-ph (pricing.js копіює їй order і позицію в сітці,
   зокрема grid-row: span 2). У розгорнутому стані .pc-peek і .pc-note приховані. */

.pc-bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(44px, 5vw, 60px);
}

.pc-plan {
  position: relative;
  min-height: 345px;
  padding: 35px;
  border-radius: 30px;
  background: #fff;
  color: var(--pc-ink);
  cursor: pointer;
  transition: translate .45s var(--pc-ease), box-shadow .4s ease, opacity .35s ease .12s, visibility 0s;
  -webkit-tap-highlight-color: transparent;
}

/* поки відкрито тариф, решта блоків згасає під ним */
.pc-bento.has-open > .pc-plan:not(.is-open) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.pc-plan.is-open {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  min-height: 0;
  cursor: auto;
}

/* розкладка бенто B: Pro Plus на два ряди ліворуч, решта праворуч одна під одною */
@media (min-width: 768px) {
  .pc-plan.pc-plus {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .pc-plan.pc-free {
    grid-column: 2;
    grid-row: 1;
  }

  .pc-plan.pc-ent {
    grid-column: 2;
    grid-row: 2;
  }
}

/* відкритий блок — absolute, а в grid таке позиціювання рахується від його клітинки (колонка 2 для
   «Безкоштовно» й Enterprise): скидаємо місце в сітці, щоб блок ліг на всю сітку, як Pro Plus */
.pc-bento > .pc-plan.is-open {
  grid-column: auto;
  grid-row: auto;
}

.pc-ph {
  pointer-events: none;
}

/* наведення — як у карток партнерів (.m-card) */
@media (hover: hover) {
  .pc-plan:not(.is-open):hover {
    z-index: 1;
    translate: 0 -4px;
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .28);
  }

  .pc-plan:not(.is-open):hover .pc-open svg {
    translate: 4px 0;
  }
}

.pc-plan-in {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pc-back {
  display: none;
}

.pc-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.pc-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.pc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 4px;
  line-height: 1;
}

.pc-num {
  font: 700 clamp(48px, 4.4vw, 60px)/.9 var(--pc-serif);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.02em;
}

.pc-cur {
  margin-left: 2px;
  font: 700 28px/1 var(--pc-serif);
}

.pc-from,
.pc-per {
  color: var(--pc-mute);
  font-size: 15px;
  font-weight: 600;
}

.pc-from {
  margin-right: 4px;
}

.pc-price-word,
.pc-talk {
  font: 700 clamp(22px, 2vw, 26px)/1.1 var(--pc-serif);
}

.pc-sub {
  max-width: 34em;
  margin: 14px 0 0;
  color: var(--pc-text);
  font-size: 16px;
  line-height: 1.5;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: auto;
  padding-top: 26px;
}

/* кнопки: «пігулки» без підкреслення посилань з main.css. Без реакції на клас .hover, який main.js
   ставить усім посиланням з тією самою адресою — через нього «блимали» всі кнопки реєстрації разом */
.pc .pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.pc a.pc-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.pc a.pc-btn-line,
.pc a.pc-btn-line.hover {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #000;
  color: #000;
}

.pc a.pc-btn-line:hover {
  background: #000;
  color: #fff;
}

.pc a.pc-btn-black,
.pc a.pc-btn-black.hover {
  background: #000;
  color: #fff;
}

.pc a.pc-btn-black:hover {
  background: #fff;
  color: #000;
}

.pc a.pc-btn-white,
.pc a.pc-btn-white.hover {
  background: #fff;
  color: var(--pc-blue);
}

.pc a.pc-btn-white:hover {
  background: #000;
  color: #fff;
}

/* «Що входить →» у згорнутому блоці */
.pc-open,
.pc-switch,
.pc-back {
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pc-open {
  display: inline-flex;
}

.pc-open:not(.disabled):hover,
.pc-switch:not(.disabled):hover,
.pc-back:not(.disabled):hover {
  color: inherit;
}

.pc-open svg,
.pc-switch svg,
.pc-back svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: translate .3s var(--pc-spring);
}

.pc-open:hover svg,
.pc-switch:hover svg {
  translate: 4px 0;
}

.pc-open:focus-visible,
.pc-switch:focus-visible,
.pc-back:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Розгорнутий блок ----------
   Дві колонки: ліворуч назва, ціна, опис, кнопки й «головне» (калькулятор / мітки / підказка),
   праворуч перелік того, що входить. На телефоні — одна колонка. */

.pc-plan.is-open .pc-plan-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr;
  grid-template-areas:
    'back back'
    'head side'
    'sub side'
    'actions side'
    'main side';
  column-gap: clamp(32px, 5vw, 64px);
}

.pc-plan.is-open .pc-back {
  grid-area: back;
  display: inline-flex;
  justify-self: start;
  margin: 0 0 18px -2px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  font-size: 15px;
  transition: background-color .25s ease;
}

.pc-plan.is-open .pc-back:hover {
  background: rgba(0, 0, 0, .12);
}

.pc-plan.is-open .pc-back:hover svg {
  translate: -3px 0;
}

.pc-plan.is-open .pc-plan-head { grid-area: head; }
.pc-plan.is-open .pc-sub { grid-area: sub; }

.pc-plan.is-open .pc-actions {
  grid-area: actions;
  margin-top: 0;
  padding-top: 22px;
}

.pc-plan.is-open .pc-open {
  display: none;
}

.pc-more {
  display: contents;
}

.pc-more-main {
  grid-area: main;
  padding-top: 26px;
}

.pc-more-side {
  grid-area: side;
  align-self: start;
  padding: 24px 26px 22px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .04);
}

@keyframes pc-more-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-chips li {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.pc-hint {
  margin: 18px 0 6px;
  color: var(--pc-text);
  font-size: 15px;
  line-height: 1.5;
}

.pc-more-main > .pc-hint:first-child {
  margin-top: 0;
}

.pc-switch {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-size: 15px;
  transition: background-color .25s ease, color .25s ease;
}

/* «Подивитися Pro Plus» — акцентна: бірюзово-блакитний градієнт, м'яке світіння, раз на кілька секунд
   по ній пробігає відблиск; на наведенні трохи збільшується й світиться сильніше */
.pc .pc-switch-plus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 24px;
  background: linear-gradient(110deg, #00ffc0, #00deff);
  box-shadow: 0 10px 26px -12px rgba(0, 190, 160, .95), inset 0 0 0 1px rgba(0, 0, 0, .05);
  color: #000;
  font-size: 16px;
  font-weight: 800;
  transition: transform .4s var(--pc-spring), box-shadow .35s ease;
}

.pc .pc-switch-plus:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%) no-repeat;
  background-size: 60% 100%;
  background-position: -120% 0;
  animation: pc-sheen 3.6s ease-in-out 1s infinite;
}

@keyframes pc-sheen {
  0%, 62% { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}

.pc .pc-switch-plus:not(.disabled):hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(0, 255, 192, .28), 0 14px 32px -10px rgba(0, 190, 160, 1), inset 0 0 0 1px rgba(0, 0, 0, .05);
  color: #000;
}

.pc .pc-switch-plus:active {
  transform: scale(.99);
}

.pc-switch-sm {
  margin-top: 16px;
  padding: 8px 14px;
  font-size: 14px;
}

.pc-inc {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.pc-feats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 15.5px;
  line-height: 1.45;
}

.pc-k {
  flex: none;
  min-width: 24px;
  font-weight: 800;
  text-align: center;
}

.pc-check {
  position: relative;
  align-self: flex-start;
  height: 1.45em;
}

.pc-check:before {
  content: '';
  position: absolute;
  top: .32em;
  left: 6px;
  width: 11px;
  height: 6px;
  border-left: 2.2px solid currentColor;
  border-bottom: 2.2px solid currentColor;
  rotate: -45deg;
}

.pc-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
}

.pc-logos-cap {
  flex-basis: 100%;
  color: rgba(0, 0, 0, .7);
  font-size: 13px;
}

.pc-logos img {
  width: auto;
  height: 19px;
  opacity: .85;
}

/* ---------- Pro Plus ---------- */

.pc-plus {
  background: var(--pc-neon);
}

.pc-badge {
  position: absolute;
  top: -13px;
  left: 35px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 4px #f4f4f4;
}

.pc-plan.pc-plus.is-open .pc-badge {
  left: auto;
  right: 35px;
}

.pc-plus .pc-name {
  font-size: 36px;
}

.pc-plus .pc-sub {
  color: rgba(0, 0, 0, .8);
}

.pc-plus .pc-from,
.pc-plus .pc-per {
  color: rgba(0, 0, 0, .6);
}

.pc-plus .pc-tip {
  background: rgba(0, 0, 0, .1);
}

.pc-plus .pc-more-side {
  background: rgba(0, 0, 0, .12);
}

.pc-plus .pc-feats a {
  border-bottom: 1px dotted rgba(0, 0, 0, .7);
  color: #000;
}

.pc-plus .pc-feats a:hover {
  border-bottom-style: solid;
  color: #000;
}

/* примітка під описом: дрібніша й приглушена; у розгорнутому блоці прихована */
.pc-note {
  max-width: 34em;
  margin: 10px 0 0;
  color: rgba(0, 0, 0, .6);
  font-size: 13.5px;
  line-height: 1.45;
}

/* вибірка того, що входить: темніша підкладка, як у .pc-more-side; притиснута до низу високої картки */
.pc-peek {
  margin-top: auto;
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .12);
}

.pc-plus .pc-actions {
  margin-top: 0;
  padding-bottom: 26px;
}

.pc-peek-g + .pc-peek-g {
  margin-top: 16px;
}

.pc-peek-h {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, .6);
}

/* пункти в один стовпчик: у дві колонки довгі пункти рвались і ряди виходили нерівні */
.pc-peek ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-peek li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.4;
}

.pc-plus.is-open .pc-peek,
.pc-plus.is-open .pc-note {
  display: none;
}

.pc-feats-cols {
  column-gap: 28px;
}

@media (min-width: 1024px) {
  .pc-feats-cols {
    columns: 2;
  }
}

.pc-feats-cols li {
  break-inside: avoid;
}

.pc-inc-more {
  margin-top: 18px;
}

/* вузький десктоп (до 1299) й планшет: менше поля й кегль */
@media (max-width: 1299px) {
  .pc-peek {
    padding: 18px 16px;
  }

  .pc-peek li {
    gap: 6px;
    font-size: 14px;
  }

  .pc-peek .pc-k {
    min-width: 20px;
  }
}

@media (max-width: 767px) {
  .pc-peek {
    margin-top: 4px;
  }

  /* одна колонка: Pro Plus першим (DOM-порядок не міняємо) */
  .pc-plan.pc-plus {
    order: -1;
  }
}

/* ---------- Custom Enterprise ---------- */

.pc-ent {
  background: var(--pc-blue);
  color: #fff;
}

.pc-ent .pc-sub,
.pc-ent .pc-hint {
  color: rgba(255, 255, 255, .82);
}

.pc-ent .pc-more-side {
  background: rgba(0, 0, 0, .2);
}

.pc-ent.is-open .pc-back {
  background: rgba(255, 255, 255, .1);
}

.pc-ent.is-open .pc-back:hover {
  background: rgba(255, 255, 255, .18);
}

/* ---------- Калькулятор Pro Plus ----------
   Стовпчики — ціна одного клієнта на кожній сходинці (висоту ставить pricing.js): що більша база, то нижчий
   стовпчик. Повзунок під ними — той самий вибір; його точки стоять точно під центрами стовпчиків. */

/* калькулятор і перелік у Pro Plus — темніші за сам блок (глибина), текст на них чорний: контраст ≥ 6:1 */
.pc-calc {
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .12);
}

.pc-calc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
}

.pc-calc-q {
  font-size: 15px;
  font-weight: 700;
}

.pc-calc-val {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.pc-calc-val b {
  font-variant-numeric: tabular-nums;
}

.pc-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  height: 112px;
  margin-top: 14px;
}

.pc-bars button {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, .7);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pc-bars i {
  display: block;
  width: 58%;
  max-width: 36px;
  height: var(--h, 20%);
  min-height: 6px;
  border-radius: 8px 8px 3px 3px;
  background: rgba(0, 0, 0, .2);
  transition: height .55s var(--pc-spring), background-color .3s ease;
}

.pc-bars button:hover i {
  background: rgba(0, 0, 0, .3);
}

.pc-bars button.is-on i {
  background: #000;
}

/* «20 000+» — ціна обговорюється, стовпчик пунктирний */
.pc-bars button:last-child i {
  height: 18%;
  background: none;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .3);
}

.pc-bars button:last-child.is-on i {
  box-shadow: inset 0 0 0 2px #000;
}

.pc-bars span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pc-bars button.is-on span,
.pc-bars button:not(.disabled):hover {
  color: #000;
}

.pc-range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  /* точки повзунка — під центрами стовпчиків */
  width: calc(100% * 6 / 7 + 22px);
  height: 26px;
  margin: 8px 0 0 calc(100% / 14 - 11px);
  background: transparent;
  cursor: pointer;
}

.pc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #000 var(--p), rgba(0, 0, 0, .14) var(--p));
}

.pc-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #000 var(--p), rgba(0, 0, 0, .14) var(--p));
}

.pc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #000, 0 4px 10px rgba(0, 0, 0, .25);
  transition: scale .25s var(--pc-spring);
}

.pc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #000, 0 4px 10px rgba(0, 0, 0, .25);
}

.pc-range:active::-webkit-slider-thumb {
  scale: 1.15;
}

.pc-range:focus-visible {
  outline: none;
}

.pc-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px #000, 0 0 0 5px #fff, 0 0 0 7px #000;
}

.pc-bars-cap {
  margin: 4px 0 0;
  color: rgba(0, 0, 0, .7);
  font-size: 12px;
  line-height: 1.4;
}

.pc-calc-out {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pc-calc-out > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
}

/* «Обговоримо» замість числа — картка ціни на всю ширину, слово в один рядок */
.pc-calc-out.is-talk > div:first-child {
  grid-column: 1 / -1;
}

.pc-calc-out [data-pc-talk] {
  white-space: nowrap;
}

.pc-calc-label {
  color: var(--pc-mute);
  font-size: 13px;
  font-weight: 600;
}

.pc-calc-big {
  font: 700 34px/1.05 var(--pc-serif);
  font-variant-numeric: tabular-nums lining-nums;
}

.pc-calc-sm {
  color: var(--pc-mute);
  font-size: 13px;
}

.pc-calc-save {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.pc-link {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pc-link:not(.disabled):hover {
  color: inherit;
  border-bottom-style: dotted;
}

/* усі ціни таблицею: висота розгортається плавно (grid-template-rows 0fr → 1fr), блок тарифу росте разом
   із нею, а висоту сітки під ним підтягує ResizeObserver у pricing.js; таблиця проявляється слідом */
.pc-tiers {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows .55s var(--pc-ease), margin-top .55s var(--pc-ease), opacity .3s ease;
}

.pc-tiers.is-open {
  grid-template-rows: 1fr;
  margin-top: 12px;
  opacity: 1;
  transition: grid-template-rows .55s var(--pc-ease), margin-top .55s var(--pc-ease), opacity .4s ease .15s;
}

.pc-tiers-in {
  min-height: 0;
  overflow: hidden;
}

/* шеврон «вниз / вгору»: загальне наведення кнопок (.pc-switch:hover svg) зсуває стрілку «→» вправо,
   а шеврону це не пасує — він киває у свій бік: униз, коли таблиця згорнута, вгору, коли розгорнута */
.pc-switch-sm[data-pc-tiers] svg {
  transition: rotate .4s var(--pc-ease), translate .3s var(--pc-spring);
}

.pc-switch-sm[data-pc-tiers][aria-expanded="true"] svg {
  rotate: 180deg;
}

.pc-switch-sm[data-pc-tiers]:hover svg {
  translate: 0 2px;
}

.pc-switch-sm[data-pc-tiers][aria-expanded="true"]:hover svg {
  translate: 0 -2px;
}

.pc-tiers-t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
}

.pc-tiers-t th,
.pc-tiers-t td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--pc-line);
  text-align: center;
}

.pc-tiers-t tr:last-child > * {
  border-bottom: 0;
}

.pc-tiers-t thead th {
  color: var(--pc-mute);
  font-size: 12.5px;
  font-weight: 700;
}

.pc-tiers-t thead th:first-child,
.pc-tiers-t tbody th {
  padding-left: 16px;
  text-align: left;
}

.pc-tiers-t tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.pc-tiers-t td {
  font: 700 17px/1.1 var(--pc-serif);
}

.pc-tiers-t td[colspan] {
  font: 600 13px/1.3 var(--font);
}

.pc-note-sm {
  margin: 8px 2px 0;
  color: rgba(0, 0, 0, .7);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- «Порівняти всі тарифи» ---------- */

.pc-more-row {
  margin-top: 32px;
  text-align: center;
}

.pc-more-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--pc-line);
  color: var(--pc-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.pc-more-btn:not(.disabled):hover {
  background: #000;
  color: #fff;
}

.pc-more-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.pc-more-btn svg {
  width: 16px;
  height: 16px;
  transition: rotate .45s var(--pc-spring);
}

.pc-more-btn[aria-expanded="true"] svg {
  rotate: 180deg;
}

.pc-more-btn .pc-more-close,
.pc-more-btn[aria-expanded="true"] .pc-more-open {
  display: none;
}

.pc-more-btn[aria-expanded="true"] .pc-more-close {
  display: inline;
}

.pc-compare {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .6s var(--pc-ease), opacity .4s ease;
}

.pc-compare.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.pc-compare-in {
  min-height: 0;
  overflow: clip;
  overflow-clip-margin: 24px;
}

/* ---------- Планшет: розгорнутий тариф — одна колонка (у двох калькулятор і перелік були затісні) ---------- */

@media (max-width: 1023px) {
  .pc-plan.is-open .pc-plan-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: 'back' 'head' 'sub' 'actions' 'main' 'side';
  }

  .pc-plan.is-open .pc-more-main,
  .pc-plan.is-open .pc-more-side {
    max-width: 640px;
  }

  .pc-more-side {
    margin-top: 22px;
  }
}

/* ---------- Телефон: блоки один під одним ---------- */

@media (max-width: 767px) {
  .pc-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-plan {
    min-height: 0;
  }

  /* блоки стикаються, тож бейдж не виступає над блоком (наліз би на сусіда), а стоїть усередині, першим рядком */
  .pc-badge {
    position: static;
    align-self: flex-start;
    margin: 0 0 14px;
    translate: none;
    box-shadow: none;
  }

  .pc-plan.pc-plus.is-open .pc-badge {
    display: none;
  }

  .pc-more-side {
    padding: 20px 18px 18px;
  }


  .pc-name {
    font-size: 27px;
  }

  .pc-plus .pc-name {
    font-size: 32px;
  }

  .pc-actions .pc-btn {
    flex: 1 1 100%;
  }

  .pc-calc {
    padding: 16px 14px 14px;
  }

  .pc-calc-big {
    font-size: 28px;
  }

  .pc-toggle-btn {
    padding: 13px 22px;
  }
}

/* ---------- До 560px — як xs-p-25 і xs-ml_-15 у партнерів ---------- */

@media (max-width: 560px) {
  .pc-bento {
    margin-left: -15px;
    margin-right: -15px;
  }

  .pc-plan {
    padding: 25px;
  }
}

/* ---------- Без руху ---------- */

@media (prefers-reduced-motion: reduce) {
  .pc-save.is-pop,
  .pc .pc-switch-plus:after {
    animation: none !important;
  }

  .pc-tiers,
  .pc-tiers.is-open,
  .pc-switch-sm[data-pc-tiers] svg {
    transition: none !important;
  }

  .pc-plan,
  .pc-toggle-thumb,
  .pc-compare,
  .pc-save,
  .pc-bars i {
    transition: none !important;
  }
}
