/* Страница тарифов (маркетинг, тёмная тема — оболочка в 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(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .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--team {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.15),
    0 22px 56px rgba(0, 0, 0, 0.35);
}

.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);
}

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

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

.pricing-card__list--matrix {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.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-addons {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.pricing-addons__title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.pricing-addons__lead {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.pricing-addons__groups {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

@media (min-width: 900px) {
  .pricing-addons__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.pricing-addons__group-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.pricing-addons__group--credit_pack .pricing-addons__group-title {
  color: #5eead4;
}

.pricing-addons__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pricing-addon-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.82));
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-addon-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.pricing-addon-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--home-accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.pricing-addon-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.pricing-addon-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--home-text);
  line-height: 1.35;
}

.pricing-addon-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.pricing-addon-card__units {
  font-size: 0.82rem;
  color: var(--home-muted);
}

.pricing-addon-card__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--home-text);
  white-space: nowrap;
}

.pricing-addons__note {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.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);
}
