/* ============================================================
   upost — админ-панель (admin.upost.uz)
   Токены и базовые компоненты — общие с мини-сайтом и кабинетом.
   ============================================================ */
:root {
  --c-bg: #F4F8FE;
  --c-surface: #FFFFFF;
  --c-surface-2: #F8FBFF;
  --c-ink: #0F2340;
  --c-ink-2: #34465F;
  --c-muted: #5E6E85;
  --c-line: #D5E2F6;
  --c-line-2: #E6EEFA;
  --c-brand: #00887A;
  --c-brand-hover: #006F63;
  --c-brand-ink: #006B5F;
  --c-brand-soft: #DDF1EE;
  --c-accent: #2F63C0;
  --c-accent-hover: #244F9C;
  --c-accent-soft: #D3E3FC;
  --c-periwinkle: #77A6F7;
  --c-peach: #FFCCBC;
  --c-peach-soft: #FFEDE7;
  --c-peach-ink: #9A3B1E;
  --c-danger: #A5261D;
  --c-danger-soft: #FBECEB;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(15, 42, 77, .04), 0 4px 16px rgba(15, 42, 77, .05);
  --shadow-lift: 0 2px 4px rgba(15, 42, 77, .06), 0 10px 28px rgba(15, 42, 77, .1);
  --font: Onest, Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; font-size: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); text-decoration: none; }
.btn--ghost { background: var(--c-surface); border-color: var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-accent-soft); border-color: var(--c-accent); text-decoration: none; }
.btn--block { width: 100%; }

/* ── Шапка ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 248, 254, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line-2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--c-accent); }
.brand-text b { color: var(--c-brand-ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--c-ink-2); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--c-accent); }

/* ── Герой ──────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--c-peach-soft); color: var(--c-peach-ink);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--c-ink); }
.hero h1 b { color: var(--c-brand-ink); }
.hero p { margin-top: 18px; font-size: 17px; color: var(--c-ink-2); max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 420px; margin: 0 auto; }

/* ── Возможности ────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { max-width: 56ch; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.section-head p { margin-top: 10px; color: var(--c-muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 26px 24px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon--brand { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.feature-icon--accent { background: var(--c-accent-soft); color: var(--c-accent); }
.feature-icon--peach { background: var(--c-peach-soft); color: var(--c-peach-ink); }
.feature-card h3 { font-size: 17px; font-weight: 600; }
.feature-card p { margin-top: 8px; color: var(--c-muted); font-size: 14px; }

/* ── Сети ───────────────────────────────────────────────── */
.networks { background: var(--c-surface-2); border-top: 1px solid var(--c-line-2); border-bottom: 1px solid var(--c-line-2); }
.network-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.network-chip {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px;
  background: var(--c-surface); border-radius: var(--r-pill); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; color: var(--c-ink-2);
}
.network-mark {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-accent); font-size: 11px; font-weight: 700; letter-spacing: .02em;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta { text-align: center; }
.cta-card {
  background: linear-gradient(150deg, var(--c-accent-soft), var(--c-brand-soft));
  border-radius: var(--r-xl); padding: 48px 32px;
}
.cta-card h2 { font-size: 28px; font-weight: 700; }
.cta-card p { margin-top: 10px; color: var(--c-ink-2); }
.cta-card .hero-actions { justify-content: center; margin-top: 26px; }

/* ── Подвал ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--c-line-2); padding: 32px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-tagline { color: var(--c-muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; }

/* ── Логин ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: var(--c-surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift); padding: 36px 32px;
}
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h1 { font-size: 22px; font-weight: 700; text-align: center; }
.login-card > p { margin-top: 8px; color: var(--c-muted); font-size: 14px; text-align: center; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--c-line); background: var(--c-surface-2); color: var(--c-ink);
}
.field input:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: transparent; }
.login-card .btn { margin-top: 24px; }
.login-note {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--c-peach-soft); color: var(--c-peach-ink); font-size: 13px; text-align: center;
}
.login-note--error { background: var(--c-danger-soft); color: var(--c-danger); }
.login-back { display: block; text-align: center; margin-top: 20px; font-size: 14px; }
.login-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--c-muted); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .site-nav a:not(.btn) { display: none; }
}

/* ── Панель ─────────────────────────────────────────────── */
.panel-main { padding: 40px 0 64px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.panel-head h1 { font-size: 24px; font-weight: 700; }
.panel-head p { color: var(--c-muted); font-size: 14px; }
.panel-section { margin-top: 36px; }
.panel-section h2 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }

.table-card { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-line-2); }
.data-table th { color: var(--c-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td.num { font-variant-numeric: tabular-nums; }
.data-table input[type="number"] {
  width: 64px; height: 32px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--c-line); background: var(--c-surface-2); color: var(--c-ink);
}
.data-table select {
  height: 32px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--c-line); background: var(--c-surface-2); color: var(--c-ink);
}
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.badge--active { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.badge--suspended { background: var(--c-danger-soft); color: var(--c-danger); }
.row-save { height: 32px; padding: 0 12px; font-size: 13px; }
.empty-note { padding: 24px; color: var(--c-muted); font-size: 14px; text-align: center; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-tile { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 22px; min-width: 140px; }
.stat-tile b { display: block; font-size: 26px; font-weight: 700; }
.stat-tile span { color: var(--c-muted); font-size: 13px; }
