/* Shared pricing cards for the public site and the signed-in cabinet. */
.fc-plan {
  --plan-ink: #142c3e;
  --plan-muted: #607181;
  --plan-accent: #195878;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid #dfe6eb;
  border-radius: 22px;
  background: #fff;
  color: var(--plan-ink);
  box-shadow: 0 4px 18px rgba(25, 51, 70, .035);
  font-family: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fc-plan *, .fc-plan *::before { box-sizing: border-box; }
.fc-plan:hover { border-color: #b8cbd7; box-shadow: 0 10px 30px rgba(25, 51, 70, .065); }
.fc-plan.is-active { border-color: #639ab4; background: #fbfdfe; }
.fc-plan__top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 12px; gap: 12px; }
.fc-plan .fc-plan__label { color: var(--plan-muted); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.fc-plan__badge { padding: 4px 9px; border-radius: 6px; background: #e9f2f6; color: var(--plan-accent); font-size: 11px; font-weight: 600; }
.fc-plan .fc-plan__title { margin: 0; color: var(--plan-ink); font-size: 27px; font-weight: 650; letter-spacing: -.7px; line-height: 1.2; }
.fc-plan .fc-plan__description { min-height: 66px; margin: 14px 0 22px; color: var(--plan-muted); font-size: 14px; line-height: 1.55; }
.fc-plan__pricing { min-height: 88px; padding-bottom: 22px; border-bottom: 1px solid #e9eef1; }
.fc-plan__monthly { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; }
.fc-plan .fc-plan__price { color: var(--plan-ink); font-size: clamp(27px, 2.5vw, 34px); font-weight: 650; letter-spacing: -1px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-plan__period { color: var(--plan-muted); font-size: 14px; white-space: nowrap; }
.fc-plan .fc-plan__total { margin: 10px 0 0; font-size: 12px; font-weight: 550; color: var(--plan-muted); line-height: 1.5; }
.fc-plan__old-price { display: block; margin-bottom: 5px; color: var(--plan-muted); font-size: 12px; }
.fc-plan .fc-plan__features { flex: 1; display: grid; align-content: start; gap: 13px; padding: 24px 0 28px; margin: 0; list-style: none; }
.fc-plan .fc-plan__features li { position: relative; margin: 0; padding: 0 0 0 24px; color: #40576a; font-size: 13px; line-height: 1.5; }
.fc-plan__features li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 6px; height: 10px; border: solid #56866d; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.fc-plan__features strong { color: var(--plan-ink); font-weight: 600; }
.fc-plan .fc-plan__features li:first-child { padding-bottom: 14px; margin-bottom: 1px; border-bottom: 1px solid #e9eef1; font-size: 14px; }
.fc-plan .fc-plan__action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: auto 0 0; padding: 11px 16px; border: 1px solid #195878; border-radius: 10px; background: #195878; color: #fff; box-shadow: none; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.fc-plan__action:hover { background: #10445f; }
.fc-plan__action:focus-visible { outline: 2px solid #6b9db5; outline-offset: 3px; }
.fc-plan.is-active .fc-plan__action { background: #fff; color: #195878; }
.fc-plan.is-active .fc-plan__action:hover { background: #e9f2f6; }
.public-pricing-more > .public-pricing-grid { margin-bottom: 0; }
.public-pricing-more .fc-plan__features { list-style: none; }
.public-pricing-more .fc-plan__features li { display: block; border-top: 0; }
@media (max-width: 800px) {
  .fc-plan { padding: 24px; }
  .fc-plan .fc-plan__description { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-plan, .fc-plan .fc-plan__action { transition: none; }
}

.fc-plan__chat-mode { display: flex; align-items: flex-start; gap: 10px; min-height: 74px; padding: 20px 0; margin-bottom: 4px; border-top: 1px solid #dfe6eb; color: var(--plan-muted); }
.fc-plan__chat-mode svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.fc-plan .fc-plan__chat-mode p { margin: 0; color: var(--plan-ink); font-size: 13px; line-height: 1.55; }
.fc-plan__chat-mode.is-upcoming { color: #397c9e; }
.fc-plan__chat-mode.is-upcoming p { font-weight: 550; }
.fc-plan__chat-mode small { display: block; margin-top: 5px; color: var(--plan-muted); font-size: 11px; line-height: 1.4; }

.fc-plan__features a { color: #075e9e; text-decoration: underline; }
.fc-plan__hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.125rem;
  height: 1.125rem;
  margin-inline-start: .35rem;
  vertical-align: middle;
  border: 1px solid #a3bdcf;
  border-radius: 50%;
  background: #f0f7fb;
  color: #275572;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1;
  cursor: help;
}

.fc-plan__hint:focus-visible {
  outline: 2px solid #276b96;
  outline-offset: 2px;
}

.fc-plan__hint:is(:hover, :focus)::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 12rem;
  line-height: 1.35;
  right: -.5rem;
  bottom: calc(100% + .4rem);
  padding: .45rem .65rem;
  border-radius: .4rem;
  background: #19324a;
  color: white;
}

.fc-plan.fc-plan--telegram .fc-plan__price {
  white-space: normal;
}

.fc-plan--telegram .fc-plan__features .fc-plan__feature-heading {
  padding-left: 0;
  color: var(--plan-ink);
  font-weight: 600;
}

.fc-plan--telegram .fc-plan__feature-heading::before {
  content: none;
}

.fc-plan.fc-plan--telegram .fc-plan__payment-note {
  margin: 0 0 14px;
}

.fc-telegram-pricing {
  display: grid;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.public-telegram-pricing > .fc-telegram-pricing {
  margin-top: 16px;
}

.fc-telegram-pricing .fc-telegram-pricing__note {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(47, 116, 182, .22);
  border-radius: 10px;
  color: #142c3e;
  background: linear-gradient(135deg, #eef6ff, #f5fbf7);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.fc-telegram-pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fc-telegram-pricing .fc-plan__features li {
  display: block;
  border-top: 0;
}

@media (max-width: 760px) {
  .fc-telegram-pricing__grid {
    grid-template-columns: 1fr;
  }
}
