/* ============================================================
   Где Бенз — стили документных страниц (политика) и формы
   поддержки. Инпуты — порт полей приложения: sunken-подложка,
   hairline-обводка, r10, фокус брендом.
   ============================================================ */

/* ---------- Общий документный лейаут ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 56px 20px 0; }
.doc-head { margin-bottom: 28px; }
.doc-head h1 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.doc-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.doc-meta span {
  background: var(--surface2); border: 1px solid var(--hairline);
  padding: 5px 10px; border-radius: 8px;
}

/* Оглавление */
.toc { padding: 20px 22px; margin: 26px 0 38px; }
.toc h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.toc ol { margin-left: 18px; columns: 2; column-gap: 34px; }
.toc li { font-size: 13.5px; padding: 3px 0; break-inside: avoid; }
.toc a { color: var(--text2); font-weight: 600; }
.toc a:hover { color: var(--brand); }

/* Тело политики */
.doc article { margin-bottom: 34px; scroll-margin-top: 80px; }
.doc article h2 {
  font-size: 19px; font-weight: 600; margin-bottom: 14px;
  padding-top: 8px;
}
.doc article h3 { font-size: 15.5px; font-weight: 600; margin: 18px 0 8px; }
.doc article p { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.doc article p.note { font-size: 13.5px; color: var(--text2); }
.doc article ul, .doc article ol { margin: 0 0 14px 22px; }
.doc article li { font-size: 15px; margin-bottom: 7px; }
.doc article li::marker { color: var(--brand); font-weight: 700; }
.doc article strong { color: var(--ink); }

/* Таблицы политики */
.tbl-wrap { overflow-x: auto; margin: 14px 0 18px; border-radius: var(--r-card); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
table.tbl th {
  text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: var(--surface2);
  padding: 11px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; min-width: 140px; }
table.tbl tr:last-child td { border-bottom: none; }

/* Плашка-акцент в документе */
.callout {
  background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--r-card); padding: 16px 18px; margin: 16px 0;
  font-size: 14.5px; color: var(--text);
}
.callout strong { color: var(--brand); }

/* ---------- Страница поддержки ---------- */
.support-page { max-width: 560px; margin: 0 auto; padding: 64px 20px 0; }
.support-page > h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.support-page .lead { font-size: 15.5px; color: var(--text2); margin-bottom: 30px; }

.form-card { padding: 26px 24px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 700; color: var(--text2);
  margin-bottom: 7px; letter-spacing: .01em;
}
.field input, .field textarea {
  width: 100%; font-family: 'Onest', sans-serif; font-size: 15px; color: var(--text);
  background: var(--sunken); border: 1px solid var(--hairline);
  border-radius: var(--r-btn); padding: 12px 14px;
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Honeypot: убрать из потока и от людей, доступно только ботам */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0;
}

.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.form-actions .btn { min-width: 190px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* Спиннер в кнопке */
.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: rot .7s linear infinite; display: none;
}
.btn.sending .spin { display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Статусы отправки */
.form-error {
  display: none; align-items: flex-start; gap: 10px;
  background: var(--tint-none); color: var(--none);
  border: 1px solid color-mix(in srgb, var(--none) 30%, transparent);
  border-radius: var(--r-btn); padding: 12px 14px;
  font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.form-error.show { display: flex; }

.success-card { display: none; padding: 40px 28px; text-align: center; }
.success-card.show { display: block; }
.success-card .ok-ic {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand); color: var(--brand-on);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: var(--shadow-md);
}
.success-card .ok-ic svg { width: 26px; height: 26px; }
.success-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.success-card p { font-size: 14.5px; color: var(--text2); max-width: 380px; margin: 0 auto; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .doc-head h1 { font-size: 24px; }
  .form-actions .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .toc { display: none; }
  body { background: #fff; color: #000; }
  .doc article { break-inside: avoid-page; }
}
