/* Страница тарифов (маркетинг, тёмная тема — оболочка в home_landing.css) */

.pricing-billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.pricing-billing__switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  gap: 0.15rem;
}

.pricing-billing__opt {
  margin: 0;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--home-muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pricing-billing__opt:hover {
  color: var(--home-text);
}

.pricing-billing__opt.is-active {
  color: var(--home-cta-text);
  background: linear-gradient(135deg, var(--home-cta), #5eead4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.pricing-billing__opt:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.pricing-card--pro {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.12),
    0 22px 56px rgba(0, 0, 0, 0.35);
}

.pricing-card--expert {
  border-color: rgba(251, 191, 36, 0.28);
}

.pricing-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--home-text);
}

.pricing-card__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--home-text);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.pricing-card__price-note {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--home-muted);
  margin-top: 0.35rem;
}

.pricing-card__price-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem;
}

.pricing-card__price-suffix {
  font-weight: 600;
  color: var(--home-muted);
  font-size: 0.95rem;
}

.pricing-card__price--dynamic {
  margin-bottom: 0.75rem;
}

.pricing-card__price-note--annual {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pricing-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0;
  margin-bottom: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* Годовой расчёт — второй ряд внутри .pricing-card__bottom (после кнопки). */
.pricing-card__bottom .pricing-card__annual-lump {
  margin: 0;
}

.pricing-card__audience {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--home-muted);
}

.pricing-card__section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color, #5b9bd5);
  margin: 0 0 0.65rem;
}

.pricing-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.pricing-card__list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--home-text);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.pricing-card__list li:last-child {
  border-bottom: none;
}

.pricing-card__list li .fa-fw {
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.1rem;
  text-align: center;
  color: var(--primary-color, #5b9bd5);
  font-size: 0.85rem;
}

.pricing-card__list li.pricing-card__li--muted {
  color: var(--home-muted);
}

.pricing-card__list li.pricing-card__li--muted .fa-fw {
  color: rgba(148, 163, 184, 0.55);
}

.pricing-footnote {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--home-muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card__cta-wrap {
  margin-top: auto;
  padding-top: 1.15rem;
}

.pricing-card__bottom .pricing-card__cta-wrap {
  margin-top: 0;
  padding-top: 0;
}

.pricing-card__cta {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* Строки матрицы тарифов внутри карточки (та же разметка, что и раньше у списка фич) */
.pricing-card__list--matrix {
  margin-top: 0.35rem;
}

.pricing-card__matrix-label {
  font-weight: 500;
}

.pricing-card__matrix-value {
  display: block;
  margin-top: 0.25rem;
  margin-left: 1.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--home-muted);
}

.pricing-card__list--matrix li.pricing-card__li--muted .pricing-card__matrix-value {
  color: rgba(148, 163, 184, 0.75);
}
