/* =============================================================
   pingvids — info pages
   Для статических читательских страниц:
   rules, terms, pricing, advertising.
   Требует tokens.css.
   ============================================================= */

/* ── Сброс и базовые элементы ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #050508;
  font-family: var(--font);
  color: var(--txt);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}
a      { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Оболочка ────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--max-w);
  height: 100dvh;
  max-height: 844px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
@media (min-height: 900px) {
  body { padding: 24px 16px; }
  .shell {
    border-radius: var(--r-xl);
    box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 32px 80px rgba(0,0,0,.7);
  }
}

/* ── Минимальный хедер (лого + назад) ────────────────────── */
.info-hdr {
  height: var(--hdr);
  background: var(--bg-s);
  border-bottom: .5px solid var(--brd);
  display: flex; align-items: center;
  padding: 0 14px; gap: 10px;
  flex-shrink: 0;
}
.info-back {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-r); border: .5px solid var(--brd);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt3); cursor: pointer; transition: all var(--t);
  flex-shrink: 0;
}
.info-back:hover { border-color: var(--brd2); color: var(--txt2); }
.info-back i { font-size: 14px; }

.info-logo { display: flex; align-items: baseline; }
.info-logo .ping { font-family: var(--brand); font-size: 14px; font-weight: 300; color: var(--txt4); }
.info-logo .vids { font-family: var(--brand); font-size: 14px; font-weight: 600; }

/* Языковой переключатель в хедере */
.info-lang {
  margin-left: auto;
  display: flex; align-items: center;
  background: var(--bg-r); border: .5px solid var(--brd2);
  border-radius: var(--r-pill); overflow: hidden;
}
.info-lang-btn {
  padding: 4px 10px; font-size: 10px; font-weight: 600;
  letter-spacing: .04em; color: var(--txt4);
  transition: all var(--t); cursor: pointer;
}
.info-lang-btn.active { background: var(--ac-s); color: var(--accent); }

/* ── Контентная область ──────────────────────────────────── */
.info-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; padding: 24px 20px 40px;
}
.info-body::-webkit-scrollbar { display: none; }

/* ── Навигация по разделам (якоря) ───────────────────────── */
.info-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: .5px solid var(--brd);
}
.info-nav-link {
  font-size: 11px; color: var(--txt3);
  padding: 4px 10px; border-radius: var(--r-pill);
  border: .5px solid var(--brd);
  cursor: pointer; transition: all var(--t);
}
.info-nav-link:hover { color: var(--txt2); border-color: var(--brd2); }

/* ── Типографика ─────────────────────────────────────────── */
.info-section { margin-bottom: 28px; }

/* clamp(): плавное масштабирование без media-breakpoint скачков.
   Формула: clamp(минимум, преферренс на vw/dvh, максимум). Минимум —
   текущий размер для мелких экранов, максимум — +2..+6px для крупных. */
.info-h1 {
  font-family: var(--brand);
  font-size: clamp(18px, 2.6dvh + 12px, 24px);
  font-weight: 600; letter-spacing: -.3px; margin-bottom: 6px;
}
.info-h2 {
  font-family: var(--brand);
  font-size: clamp(14px, 1.8dvh + 10px, 18px);
  font-weight: 600; letter-spacing: -.2px; margin-bottom: 12px; color: var(--txt);
}
.info-h3 {
  font-size: clamp(12px, 1.4dvh + 9px, 15px);
  font-weight: 600; margin-bottom: 8px; color: var(--txt2);
}
.info-date  { font-size: 11px; color: var(--txt4); margin-bottom: 20px; }
.info-p     {
  font-size: clamp(13px, 1.4dvh + 10px, 16px);
  color: var(--txt2); line-height: 1.7; margin-bottom: 12px;
}
.info-p:last-child { margin-bottom: 0; }

/* Список */
.info-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-left: 4px; }
.info-list-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; color: var(--txt2); line-height: 1.6;
}
.info-list-item::before {
  content: ''; display: block; flex-shrink: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ac); margin-top: 8px;
}

/* Выделение */
.info-note {
  background: var(--bg-r); border: .5px solid var(--brd2);
  border-left: 2px solid var(--ac);
  border-radius: var(--r-s); padding: 10px 14px;
  font-size: 12px; color: var(--txt2); line-height: 1.6;
  margin-bottom: 16px;
}
.info-warn {
  background: var(--warn-s); border: .5px solid rgba(186,117,23,.3);
  border-radius: var(--r-s); padding: 10px 14px;
  font-size: 12px; color: #FAC775; line-height: 1.6;
  margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
}
.info-warn i { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ── Таблица (тарифы, расценки) ──────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table th {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--txt4);
  padding: 8px 10px; text-align: left;
  border-bottom: .5px solid var(--brd2);
}
.info-table td {
  font-size: 12px; color: var(--txt2); padding: 10px 10px;
  border-bottom: .5px solid var(--brd);
  vertical-align: top;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table td.price {
  font-family: var(--brand); font-size: 13px; font-weight: 600;
  color: var(--txt); white-space: nowrap;
}
.info-table td.feature-ok { color: var(--ok); font-size: 13px; }
.info-table td.feature-no { color: var(--txt4); font-size: 13px; }

/* ── Тарифные карточки ───────────────────────────────────── */
.plan-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.plan-card {
  background: var(--bg-s); border-radius: var(--r-l);
  border: .5px solid var(--brd); padding: 16px;
}
.plan-card.featured {
  border-color: var(--ac-b);
  background: linear-gradient(135deg, var(--bg-s), rgba(83,74,183,.06));
}
.plan-name  { font-family: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.plan-price {
  font-family: var(--brand); font-size: 22px; font-weight: 600;
  margin-bottom: 12px; color: var(--txt);
}
.plan-price span { font-size: 12px; font-weight: 400; color: var(--txt3); }
.plan-features { display: flex; flex-direction: column; gap: 6px; }
.plan-feature  { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--txt2); }
.plan-feature i { font-size: 11px; color: var(--ok); flex-shrink: 0; }
.plan-feature.no i { color: var(--txt4); }
.plan-feature.no   { color: var(--txt4); }

/* ── Футер страницы ──────────────────────────────────────── */
.info-footer {
  padding: 20px 0 0; margin-top: 8px;
  border-top: .5px solid var(--brd);
  text-align: center; font-size: 11px; color: var(--txt4);
  line-height: 1.8;
}
.info-footer a { color: var(--txt3); }
.info-footer a:hover { color: var(--txt2); }
