/* ============================================================
   Тарифы — современный pricing-дизайн
   ============================================================ */

/* full-bleed герой (width:100vw) шире контента на ширину скроллбара —
   клипуем лишнее по горизонтали (на этих страницах нет sticky-элементов). */
body.page-noxscroll { overflow-x: hidden; }

/* ---------- Hero ---------- */
.plans-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(55% 120% at 88% -10%, rgba(59, 130, 246, 0.20), transparent 60%),
    radial-gradient(45% 110% at 8% 110%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(180deg, #f7fafe 0%, #ffffff 100%);
}

.plans-hero__inner {
  padding: 54px 0 46px;
  text-align: center;
}

.plans-hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.plans-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.plans-hero__sub {
  margin: 16px auto 0;
  max-width: 620px;
  color: #475569;
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Контейнер страницы ---------- */
.plans-page {
  padding-top: 36px;
  padding-bottom: 64px;
}

.plans-section + .plans-section {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid #eef2f7;
}

.plans-section__head {
  margin-bottom: 26px;
  text-align: center;
}

.plans-section__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.plans-section__head p {
  margin: 10px auto 0;
  max-width: 560px;
  color: #64748b;
  font-size: 15px;
}

/* ---------- Пустое состояние ---------- */
.plans-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  padding: 28px;
  text-align: center;
}
.plans-empty h2 { margin: 0 0 10px; color: #0f172a; }
.plans-empty p { margin: 0; color: #475569; }

/* ---------- Сетка карточек ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* ---------- Карточка тарифа ---------- */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6ecf4;
  border-radius: 20px;
  background: #fff;
  padding: 26px 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  border-color: #d3deef;
}

/* Выделенный (популярный) тариф */
.plan-card.is-featured {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.20);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #3b82f6, #6366f1) border-box;
  border: 1.5px solid transparent;
}

.plan-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

/* ---------- Шапка карточки ---------- */
.plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.plan-card__code {
  margin: 0 0 6px;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.plan-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #0f172a;
}

.plan-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.plan-card__desc {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Цена ---------- */
.plan-card__price {
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-card__price .amount {
  color: #0f172a;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-card__price .period {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Список возможностей ---------- */
.plan-card__features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plan-card__features li {
  position: relative;
  padding-left: 30px;
  color: #334155;
  line-height: 1.45;
  font-size: 14.5px;
}

.plan-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.plan-card.is-featured .plan-card__features li::before {
  background: #2563eb;
  color: #fff;
}

.plan-card__empty-features {
  margin-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

/* ---------- Кнопка ---------- */
.plan-card__actions {
  margin-top: auto;
  padding-top: 24px;
}

.btn-plan {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1.5px solid #2563eb;
  background: #fff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  min-height: 46px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn-plan:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.26);
}

/* В выделенной карточке — кнопка сразу залитая */
.plan-card.is-featured .btn-plan {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: transparent;
  color: #fff;
}
.plan-card.is-featured .btn-plan:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1060px) {
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .plans-hero__inner { padding: 38px 0 30px; }
  .plans-section + .plans-section { margin-top: 32px; padding-top: 30px; }
  .plans-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card { padding: 22px 20px; }
  .plan-card__price .amount { font-size: 32px; }
  .plan-card:hover { transform: none; }
}
