/* Общая оболочка отдельных страниц: карта и админка эти классы не используют. */
.page {
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--good) 18%, transparent), transparent 42%), var(--map-bg);
}

.page [hidden] {
  display: none !important;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--map-bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.page-header .brand-mark {
  width: auto;
  padding: 0 14px;
  letter-spacing: normal;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-shell {
  width: min(860px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 48px;
  display: grid;
  gap: 16px;
}

.page-card {
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-card h1 {
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.page-card h2 {
  font-size: clamp(20px, 4.4vw, 28px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.page-card h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}

.page-lead {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.page-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.page-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  color: var(--good);
  margin: 0 0 8px;
}

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--good);
  color: var(--on-good);
  font-size: 12px;
  font-weight: 800;
}

.page-badge.is-muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.page-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding-top: 8px;
}

.page-disclaimer {
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.page-steps {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.page-steps li::marker {
  color: var(--good);
  font-weight: 800;
}

.page-steps li > strong {
  display: block;
}

/* Профиль и премиум. */
.account-hero .account-benefits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.account-benefits li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  line-height: 1.45;
  font-size: 14px;
}

.account-benefits li strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-soft);
  margin-bottom: 16px;
}

.account-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-tabs button.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.account-email-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed var(--good);
  border-radius: 14px;
  background: var(--surface-soft);
}

.account-email-box code {
  flex: 1 1 180px;
  font-size: 15px;
  word-break: break-all;
  padding: 6px 8px;
}

.account-email-box input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.account-donate-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 12px;
}

.account-hint {
  min-height: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--good);
  font-weight: 700;
}

.account-hint.is-error {
  color: var(--danger);
}

.account-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--detect) 16%, transparent);
  line-height: 1.55;
  font-size: 14px;
}

.account-preview {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 16px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.account-preview img {
  width: min(240px, 70%);
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.account-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Пошаговая установка и уведомления. */
.install-steps.is-current {
  outline: 2px solid var(--good);
  outline-offset: 2px;
}

.install-video {
  margin: 18px auto 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.install-video video {
  width: min(320px, 100%);
  height: auto;
  border-radius: 16px;
  background: #000;
  display: block;
}

.install-video figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.install-push {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 16px;
}

.install-native {
  width: 100%;
  margin-top: 12px;
}

.install-chat {
  text-align: center;
}

.install-chat .primary-button {
  display: inline-flex;
}
