/* ==========================================================================
   info.css — стили для информационных страниц
   (Тарифы, Пользовательское соглашение, Политика конфиденциальности)

   Переиспользует CSS-переменные из styles.css (--accent, --shadow-card и т.д.).
   Подключается ПОСЛЕ styles.css.
   ========================================================================== */

/* ---------- Контейнер страницы ---------- */
.info-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

.info-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted, #b8b8b6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.info-back:hover {
  color: var(--accent, #2f8f6f);
}

.info-back::before {
  content: "←";
  font-size: 16px;
  line-height: 1;
}

/* ---------- Заголовки ---------- */
.info-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text, #f0f0ee);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.info-subtitle {
  font-size: 14px;
  color: var(--text-muted, #8e8e8c);
  margin: 0 0 32px;
}

.info-section {
  margin-top: 32px;
}

.info-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text, #f0f0ee);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #f0f0ee);
  margin: 16px 0 8px;
}

.info-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted, #c8c8c6);
  margin: 0 0 12px;
}

.info-section ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.info-section li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted, #c8c8c6);
  margin-bottom: 4px;
}

.info-section strong {
  color: var(--text, #f0f0ee);
  font-weight: 600;
}

/* ---------- Карточки тарифов ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 32px;
}

@media (min-width: 720px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background-color: var(--card, #2a2a29);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.plan-card--featured {
  border-color: rgba(47, 143, 111, 0.4);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(47, 143, 111, 0.2) inset;
}

.plan-card__header {
  margin-bottom: 16px;
}

.plan-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #f0f0ee);
  margin: 0 0 4px;
}

.plan-card__quota {
  font-size: 13px;
  color: var(--accent, #2f8f6f);
  margin: 0;
}

.plan-card__featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent, #2f8f6f);
  background-color: rgba(47, 143, 111, 0.12);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card__prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.plan-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.plan-price:first-child {
  border-top: none;
  padding-top: 0;
}

.plan-price__period {
  font-size: 13px;
  color: var(--text-muted, #8e8e8c);
}

.plan-price__amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #f0f0ee);
  font-variant-numeric: tabular-nums;
}

.plan-price--year .plan-price__period::after {
  content: " · экономия";
  font-size: 11px;
  color: var(--accent, #2f8f6f);
  margin-left: 4px;
}

/* ---------- Блок поддержки ---------- */
.support-card {
  background-color: var(--card, #2a2a29);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
  margin: 24px 0;
}

.support-card p {
  margin: 0 0 12px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent, #2f8f6f);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  background-color: rgba(47, 143, 111, 0.08);
  border: 1px solid rgba(47, 143, 111, 0.2);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.support-link:hover {
  background-color: rgba(47, 143, 111, 0.14);
}

.support-link:active {
  transform: translateY(1px);
}

/* ---------- Юридические документы ---------- */
.legal-document {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted, #c8c8c6);
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document .legal-clause {
  display: block;
  font-weight: 600;
  color: var(--text, #f0f0ee);
}

/* ---------- Шапка страницы (упрощённая, без FAB) ---------- */
.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-bottom: 8px;
}

.info-logo {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.info-logo__matt {
  color: var(--text-muted, #c8c8c6);
}

.info-logo__sep {
  color: var(--text-muted, #8e8e8c);
  margin: 0 4px;
}

.info-logo__classified {
  color: var(--accent, #2f8f6f);
}
