/* Витрина тарифов и прайс генераций. */

.tariffs {
  --tf-ink: #14141c;
  --tf-muted: #6b6879;
  --tf-line: rgba(20, 20, 30, .1);
  --tf-brand: #0F33EF;
  --tf-brand-soft: #eef1ff;
  --tf-ok: #16a34a;
  --tf-warn: #b45309;

  padding: 40px 20px 80px;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--tf-ink);
}
.tariffs *, .tariffs *::before, .tariffs *::after { box-sizing: border-box; }
.tariffs__inner { max-width: 1080px; margin: 0 auto; }

.tariffs__alert {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  color: var(--tf-warn);
  font-size: 15px;
  line-height: 1.55;
}
.tariffs__alert strong { color: #92400e; }

.tariffs__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.tariffs__title {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.tariffs__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tf-muted); }
.tariffs__balance {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--tf-brand-soft);
  color: var(--tf-brand);
  font-size: 14px;
  font-weight: 500;
}

/* ── Карточки тарифов ─────────────────────────────────────────── */

.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid var(--tf-line);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(20, 20, 40, .04);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -18px rgba(15, 51, 239, .28); }
.plan--featured { border-color: var(--tf-brand); border-width: 2px; }

.plan__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--tf-brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan__name {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
}
.plan__subtitle { margin: 0 0 22px; font-size: 14px; line-height: 1.5; color: var(--tf-muted); }

.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.plan__amount {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.plan__unit { font-size: 15px; color: var(--tf-muted); }

.plan__credit {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 14px;
  color: #15803d;
}
.plan__credit b { color: #14532d; font-weight: 700; }
.plan__bonus {
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--tf-ok);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.plan__features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan__features li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.5;
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 2px; top: 6px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--tf-ok);
  border-bottom: 2px solid var(--tf-ok);
  transform: rotate(-45deg);
}

.plan__form { margin-top: auto; }
.plan__btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  margin-top: auto;
  border: 2px solid var(--tf-brand);
  border-radius: 100px;
  background: #fff;
  color: var(--tf-brand);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.plan__btn:hover { background: var(--tf-brand-soft); transform: translateY(-1px); color: var(--tf-brand); }
.plan__btn--primary { background: var(--tf-brand); color: #fff; }
.plan__btn--primary:hover { background: #0a26c0; color: #fff; }

.tariffs__empty { text-align: center; color: var(--tf-muted); grid-column: 1 / -1; }

/* ── Пополнение произвольной суммой ───────────────────────────── */

.topup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 820px;
  margin: 56px auto 0;
  padding: 30px 32px;
  background: #fafafd;
  border: 1px solid var(--tf-line);
  border-radius: 18px;
}
.topup__title {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}
.topup__lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tf-muted); }

.topup__presets { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.topup__preset {
  padding: 9px 16px;
  border: 1px solid var(--tf-line);
  border-radius: 100px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.topup__preset:hover { border-color: var(--tf-brand); }
.topup__preset.is-active { border-color: var(--tf-brand); background: var(--tf-brand-soft); color: var(--tf-brand); }

.topup__row { display: flex; gap: 10px; }
.topup__input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--tf-line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
}
.topup__input:focus { outline: 2px solid var(--tf-brand); outline-offset: 1px; border-color: transparent; }
.topup__submit {
  flex: none;
  padding: 13px 26px;
  border: none;
  border-radius: 12px;
  background: var(--tf-brand);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.topup__submit:hover { background: #0a26c0; }
.topup__note { margin: 10px 0 0; font-size: 12.5px; color: var(--tf-muted); }

/* ── Прайс генераций ──────────────────────────────────────────── */

.pricelist { max-width: 820px; margin: 56px auto 0; }
.pricelist__title {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}
.pricelist__lead { margin: 0 0 20px; font-size: 14px; color: var(--tf-muted); }
.pricelist__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tf-line);
  border-radius: 14px;
  background: #fff;
}
.pricelist__table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14.5px; }
.pricelist__table th, .pricelist__table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--tf-line);
}
.pricelist__table tr:last-child td { border-bottom: none; }
.pricelist__table th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tf-muted);
}
.pricelist__price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.pricelist__note { margin: 16px 0 0; font-size: 13.5px; color: var(--tf-muted); }

@media (max-width: 760px) {
  .topup { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .tariffs { padding: 28px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan, .plan__btn, .topup__preset, .topup__submit { transition: none; }
}

/* Прайс: три понятных числа вместо простыни из 16 строк */
.pricelist__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.pricelist__fact {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--tf-line);
  border-radius: 14px;
}
.pricelist__fact-num {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 7px;
}
.pricelist__fact p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tf-muted); }

.pricelist__details {
  border: 1px solid var(--tf-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.pricelist__details summary {
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pricelist__details summary::-webkit-details-marker { display: none; }
.pricelist__details summary::before {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--tf-brand);
  border-bottom: 2px solid var(--tf-brand);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.pricelist__details[open] summary::before { transform: rotate(45deg); }
.pricelist__details summary:hover { background: #fafafd; }
.pricelist__details .pricelist__table-wrap { border: none; border-radius: 0; border-top: 1px solid var(--tf-line); }
