/* ==========================================================================
   Полный зал · облако — консоль платформы
   Отдельная таблица стилей: площадки видят бэк-офис, платформа — эту.
   ========================================================================== */

:root {
  --ink: #14110f;
  --ink-soft: #241f1a;
  --cream: #f6f1e7;
  --paper: #fffdf9;
  --paper-2: #fbf7ef;
  --gold: #c2a06a;
  --gold-bright: #d9bb8c;
  --gold-pale: #f1e4cd;
  --muted: #6f6558;
  --muted-2: #9a8f80;
  --line: rgba(20, 17, 15, 0.12);
  --line-strong: rgba(20, 17, 15, 0.2);
  --green: #4d6b46;
  --green-bg: #e8f0e2;
  --amber: #8d6220;
  --amber-bg: #f8eed8;
  --red: #93453d;
  --red-bg: #f6e5e2;
  --shadow: 0 1px 2px rgba(20, 17, 15, 0.04), 0 14px 40px -30px rgba(20, 17, 15, 0.55);
  --radius: 4px;
  --radius-lg: 8px;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pf {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(194, 160, 106, 0.16), transparent 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  background: rgba(20, 17, 15, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  word-break: break-all;
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Шапка ------------------------------------------------------------------ */

.pf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pf-brand { display: inline-flex; align-items: center; gap: 12px; }
.pf-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 20px;
}
.pf-brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.05;
}
.pf-brand__text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-nav { display: flex; align-items: center; gap: 18px; }
.pf-nav form { margin: 0; }
.pf-nav a { font-size: 14px; color: var(--muted); }
.pf-nav a:hover, .pf-nav a.is-active { color: var(--ink); }
.pf-link { font-size: 14px; color: var(--muted); padding: 0; }
.pf-link:hover { color: var(--red); }

/* Основное полотно ------------------------------------------------------- */

.pf-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px) 72px;
}

.pf-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 20px clamp(20px, 4vw, 56px) 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

/* Типографика ------------------------------------------------------------ */

.pf-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.pf-lead { font-size: 17px; color: var(--muted); max-width: 62ch; }
.pf-hint { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.pf-hint a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Кнопки ----------------------------------------------------------------- */

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.pf-btn--gold { background: var(--ink); color: var(--gold-bright); }
.pf-btn--gold:hover { background: var(--ink-soft); color: #f3dfbd; }
.pf-btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.pf-btn--ghost:hover { border-color: var(--ink); background: rgba(255, 253, 249, 0.6); }
.pf-btn--danger { background: var(--red-bg); color: var(--red); border-color: rgba(147, 69, 61, 0.28); }
.pf-btn--danger:hover { background: #f0d6d2; }
.pf-btn--sm { padding: 8px 14px; font-size: 13px; }
.pf-btn--xs { padding: 6px 10px; font-size: 12px; }
.pf-btn--block { width: 100%; }

/* Hero ------------------------------------------------------------------- */

.pf-hero { padding: clamp(16px, 4vw, 40px) 0 clamp(32px, 5vw, 56px); }
.pf-hero h1 { font-size: clamp(34px, 5.4vw, 62px); margin-bottom: 22px; }
.pf-hero .pf-lead { margin-bottom: 28px; }
.pf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pf-hero__note { font-size: 13px; color: var(--muted); }

/* Сетки и карточки ------------------------------------------------------- */

.pf-grid { display: grid; gap: 20px; }
.pf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pf-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.pf-card__title { font-size: 21px; margin-bottom: 10px; }
.pf-card__text { font-size: 14.5px; color: var(--muted); }

.pf-plans { padding: clamp(28px, 4vw, 48px) 0; }
.pf-section-head { margin-bottom: 22px; }
.pf-section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.pf-section-head p { color: var(--muted); }

.pf-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.pf-plan__name { font-size: 26px; margin-bottom: 10px; }
.pf-plan__text { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

.pf-list { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.pf-list li { padding-left: 18px; position: relative; }
.pf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.pf-list--check li::before {
  content: "✓";
  background: none;
  color: var(--green);
  width: auto;
  height: auto;
  font-size: 12px;
  top: 0.1em;
}

.pf-note {
  margin-top: clamp(28px, 4vw, 48px);
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f1e6d4;
}
.pf-note h2 { font-size: 24px; margin-bottom: 10px; }
.pf-note p { color: rgba(241, 230, 212, 0.72); font-size: 14.5px; max-width: 68ch; }

/* Вход и регистрация ----------------------------------------------------- */

.pf-auth { display: flex; justify-content: center; padding: clamp(16px, 5vw, 56px) 0; }
.pf-auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.pf-auth__card--wide { max-width: 520px; }
.pf-auth__card h1 { font-size: 30px; margin-bottom: 10px; }

.pf-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(8px, 3vw, 32px) 0;
}
.pf-signup__intro { padding-top: 12px; }
.pf-signup__intro h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 18px; }
.pf-signup__intro .pf-lead { margin-bottom: 20px; }
.pf-signup__intro .pf-list { margin-bottom: 18px; }

/* Формы ------------------------------------------------------------------ */

.pf-form { display: grid; gap: 16px; }
.pf-form--row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
}
.pf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.pf-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pf-field > span:first-child { font-weight: 600; color: var(--ink); font-size: 12.5px; }

.pf-field input,
.pf-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.pf-field input:focus,
.pf-field select:focus { outline: none; border-color: var(--gold); background: var(--paper); }

.pf-slug { display: flex; align-items: stretch; }
.pf-slug input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pf-slug__suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gold-pale);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.pf-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.pf-check input { margin-top: 3px; }

.pf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pf-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--red-bg);
  color: var(--red);
  font-size: 13.5px;
  border: 1px solid rgba(147, 69, 61, 0.2);
}

.pf-flash {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.pf-flash--success { background: var(--green-bg); color: var(--green); border-color: rgba(77, 107, 70, 0.24); }
.pf-flash--error { background: var(--red-bg); color: var(--red); border-color: rgba(147, 69, 61, 0.24); }
.pf-flash--info { background: var(--amber-bg); color: var(--amber); border-color: rgba(141, 98, 32, 0.24); }

/* Консоль ---------------------------------------------------------------- */

.pf-page { display: grid; gap: 24px; }
.pf-page__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.pf-page__head > div:first-child { max-width: 720px; }
.pf-page__head h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 8px; }
.pf-page__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-breadcrumb { font-size: 13px; color: var(--muted); }
.pf-breadcrumb a:hover { color: var(--ink); }

.pf-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pf-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  display: grid;
  gap: 2px;
}
.pf-stat__value { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.pf-stat__label { font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted-2); }

.pf-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.pf-panel--danger { border-color: rgba(147, 69, 61, 0.28); }
.pf-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.pf-panel__head h2 { font-size: 22px; }

.pf-table-wrap { overflow-x: auto; margin: 0 -24px -24px; padding: 0 24px 8px; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.pf-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pf-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pf-table tr:last-child td { border-bottom: 0; }
.pf-table__title { display: block; font-weight: 600; font-size: 14.5px; }
.pf-table__title:hover { color: var(--amber); }
.pf-table__sub { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.pf-table__num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-table__actions { text-align: right; white-space: nowrap; }
.pf-table__actions .pf-btn + .pf-btn { margin-left: 6px; }

.pf-empty { text-align: center; padding: 40px 20px 32px; display: grid; gap: 10px; justify-items: center; }
.pf-empty h3 { font-size: 22px; }
.pf-empty p { color: var(--muted); max-width: 46ch; font-size: 14px; }

.pf-people { display: grid; gap: 4px; margin-bottom: 18px; }
.pf-people__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pf-people__item:last-child { border-bottom: 0; }
.pf-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  flex: none;
}
.pf-people__text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pf-people__text strong { font-size: 14px; font-weight: 600; }
.pf-people__text span { font-size: 12px; color: var(--muted-2); }

.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pf-badge--ok { background: var(--green-bg); color: var(--green); }
.pf-badge--warn { background: var(--amber-bg); color: var(--amber); }
.pf-badge--bad { background: var(--red-bg); color: var(--red); }
.pf-badge--muted { background: rgba(20, 17, 15, 0.07); color: var(--muted); }

.pf-meta { display: grid; gap: 0; font-size: 14px; margin: 0; }
.pf-meta > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pf-meta > div:last-child { border-bottom: 0; }
.pf-meta dt { color: var(--muted-2); font-size: 13px; }
.pf-meta dd { margin: 0; overflow-wrap: anywhere; }
.pf-meta a { text-decoration: underline; text-underline-offset: 2px; }

.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-actions form { margin: 0; }
.pf-rule { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Заглушка-уведомление --------------------------------------------------- */

.pf-notice { text-align: center; display: grid; gap: 14px; justify-items: center; }
.pf-notice__code { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--muted-2); }
.pf-notice .pf-hero__actions { justify-content: center; }
.pf-notice__venue { font-size: 12px; color: var(--muted-2); }

/* Код в справке (аварийный сброс пароля) --------------------------------- */

.pf-code {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #f1e6d4;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
}
.pf-code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Адаптив ---------------------------------------------------------------- */

@media (max-width: 960px) {
  .pf-grid--3 { grid-template-columns: 1fr; }
  .pf-grid--2 { grid-template-columns: 1fr; }
  .pf-signup { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-signup .pf-auth__card--wide { max-width: none; }
}

@media (max-width: 640px) {
  .pf-head { padding: 14px 18px; gap: 12px; }
  .pf-brand__text { font-size: 16px; }
  .pf-nav { gap: 12px; }
  .pf-nav .pf-btn { padding: 8px 12px; font-size: 12.5px; }
  .pf-main { padding: 28px 18px 48px; }
  .pf-hero h1 { font-size: 34px; }
  .pf-row { grid-template-columns: 1fr; }
  .pf-form--row { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-meta > div { grid-template-columns: 1fr; gap: 2px; }
  .pf-table-wrap { margin: 0 -18px -18px; padding: 0 18px 8px; }
  .pf-panel { padding: 18px; }
  .pf-foot { padding: 16px 18px 22px; }
}

/* Домен и TLS: DNS-записи для ручного DNS-01 --------------------------------- */

.pf-list--ordered { list-style: decimal; padding-left: 20px; }
.pf-list--ordered li { padding-left: 0; }
.pf-list--ordered li::before { content: none; }

.pf-table--dns { min-width: 680px; }
.pf-dns__value {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(20, 17, 15, 0.06);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pf-dns__value--long { font-size: 12px; }

@media (max-width: 640px) {
  .pf-table--dns { min-width: 560px; }
}

.pf-alert--warn {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: rgba(141, 98, 32, 0.24);
}
