/* Цінолов — стилі за прототипами (Main/Wizard/Dashboard/Admin). Шрифт Golos Text. */
:root {
  --blue: #1D4ED8;
  --blue-dark: #1E3A8A;
  --blue-soft: #EAF0FD;
  --orange: #B54708;
  --orange-soft: #FEF3E8;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #475467;
  --muted-2: #667085;
  --line: #E4E7EC;
  --line-2: #D0D5DD;
  --line-3: #98A2B3;
  --bg: #F4F7FB;
  --bg-2: #F2F4F7;
  --white: #FFFFFF;
  --green-soft: #ECFDF3;
  --green: #067647;
  --red-soft: #FEF3F2;
  --red: #B42318;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.55;
}
body.bg { background: var(--bg); }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.wrap-wide { max-width: 1240px; }
.wrap-narrow { max-width: 860px; }
.wrap-tight { max-width: 900px; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 17px; font-weight: 500; }
.site-nav a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.header-meta { display: flex; gap: 16px; align-items: center; font-size: 16px; flex-wrap: wrap; }
.header-meta .plan { color: var(--muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 12px 20px; min-height: 48px; border-radius: 10px; border: 1.5px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-text { background: transparent; color: var(--ink); border-color: transparent; font-weight: 600; padding: 12px 16px; }
.btn-lg { font-size: 19px; padding: 14px 28px; min-height: 56px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }

/* ---------- форми ---------- */
.field { margin-bottom: 20px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 8px; }
.input, textarea.input, select.input {
  width: 100%; font-family: inherit; font-size: 18px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line-3); border-radius: 10px; min-height: 52px; background: var(--white);
}
.input:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
textarea.input { min-height: 160px; resize: vertical; }
.hint { font-size: 15px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.alert { border-radius: 10px; padding: 14px 16px; font-size: 16px; margin-bottom: 20px; }
.alert-error { background: var(--red-soft); color: var(--red); border: 1px solid #FDA29B; }
.alert-ok { background: var(--green-soft); color: var(--green); border: 1px solid #ABEFC6; }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #B2CCFF; }
.alert-warn { background: var(--orange-soft); color: var(--orange); border: 1px solid #F9DBAF; }

/* ---------- картки ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card-lg { border-radius: 20px; padding: 28px; }
@media (min-width: 640px) { .card-lg { padding: 40px; } }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.badge { display: inline-block; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-warn { background: var(--orange-soft); color: var(--orange); }
.badge-off { background: var(--bg-2); color: var(--ink-2); }
.badge-blue { background: var(--blue); color: var(--white); font-size: 14px; padding: 4px 10px; }

/* ---------- лендинг ---------- */
.hero { background: var(--bg); }
.hero .wrap { padding-top: 48px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { padding-top: 72px; padding-bottom: 80px; gap: 48px; } }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-card { flex: 1 1 380px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: var(--blue); }
.hero h1 { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
@media (min-width: 900px) { .hero h1 { font-size: 52px; } }
.lead { font-size: 20px; color: var(--ink-2); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-cta .note { font-size: 16px; color: var(--muted); }
.demo { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.demo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.demo-tile { border-radius: 12px; padding: 14px; }
.demo-tile strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.demo-tile span { font-size: 15px; color: var(--ink-2); }
.demo-rows { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.t-orange { color: var(--orange); } .t-blue { color: var(--blue); } .t-ink2 { color: var(--ink-2); }
.bg-orange { background: var(--orange-soft); } .bg-blue { background: var(--blue-soft); } .bg-grey { background: var(--bg-2); }
.section .wrap { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) { .section .wrap { padding-top: 80px; padding-bottom: 80px; } }
.section-alt { background: var(--bg); }
.section h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
@media (min-width: 900px) { .section h2 { font-size: 38px; } }
.section .sub { font-size: 19px; color: var(--muted); margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.step-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-card h3, .feat h3 { font-size: 22px; margin-bottom: 8px; }
.feat { background: var(--white); border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.feat p, .step-card p { margin: 0; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.plan.popular { border: 2px solid var(--blue); background: var(--bg); }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .sub-plan { margin: 0; color: var(--muted); font-size: 16px; }
.plan .price { font-size: 40px; font-weight: 800; }
.plan .price small { font-size: 18px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.corp-note { margin: 24px 0 0; font-size: 17px; color: var(--ink-2); }
.robot { background: var(--ink); color: var(--white); }
.robot .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.robot h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.robot .lead-dark { font-size: 19px; color: #D0D5DD; margin: 0; }
.robot ul { flex: 1 1 480px; min-width: 0; margin: 0; padding-left: 22px; font-size: 18px; color: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.robot a { color: #93C5FD; }
.robot-intro { flex: 1 1 380px; min-width: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: 16px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- legal ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 40px 16px 64px; font-size: 17px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal h3 { font-size: 20px; margin: 24px 0 8px; }
.legal blockquote { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--orange-soft); color: var(--orange); border-radius: 0 8px 8px 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 16px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.legal code, .legal pre { background: var(--bg-2); border-radius: 6px; padding: 2px 6px; font-size: 15px; }
.legal pre { padding: 12px; overflow-x: auto; }
.draft-banner { background: var(--orange-soft); color: var(--orange); border: 1px solid #F9DBAF; border-radius: 10px; padding: 12px 16px; font-weight: 600; margin-bottom: 24px; }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 32px 16px; }
.auth-top { width: 100%; max-width: 520px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.auth-card { width: 100%; max-width: 520px; }
.auth-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.auth-card .intro { color: var(--muted); margin-bottom: 24px; }
.auth-links { margin-top: 20px; font-size: 16px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.b2b-note { font-size: 15px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }

/* ---------- майстер ---------- */
.wizard { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 24px 16px 48px; }
@media (min-width: 640px) { .wizard { padding: 40px 24px; } }
.wizard-top { width: 100%; max-width: 860px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.steps { width: 100%; max-width: 860px; list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--line-2); color: var(--muted); }
@media (min-width: 640px) { .steps li { padding: 12px 16px; font-size: 17px; gap: 10px; } .steps { gap: 12px; } }
.steps li .dot { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--line); color: var(--ink-2); }
.steps li.active { background: var(--white); border-color: var(--blue); color: var(--ink); }
.steps li.active .dot, .steps li.done .dot { background: var(--blue); color: var(--white); }
.steps li.done { color: var(--ink); }
.wizard-card { width: 100%; max-width: 860px; }
.wizard-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
@media (min-width: 640px) { .wizard-card h1 { font-size: 32px; } }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
.method { text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; padding: 18px 20px; min-height: 88px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line-2); text-decoration: none; display: block; }
.method strong { display: block; font-size: 19px; margin-bottom: 4px; }
.method span { font-size: 16px; color: var(--muted); }
.method.on { background: var(--blue-soft); border: 2px solid var(--blue); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shops { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.shop { display: flex; align-items: center; gap: 14px; width: 100%; font-size: 18px; color: var(--ink); cursor: pointer; padding: 14px 18px; min-height: 64px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line-2); }
.shop input { width: 28px; height: 28px; accent-color: var(--blue); flex-shrink: 0; }
.shop:has(input:checked) { background: var(--blue-soft); border: 2px solid var(--blue); }
.shop .note { font-size: 15px; color: var(--muted); display: block; }
.done-box { text-align: center; padding: 24px 0; }
.done-box h1 { font-size: 30px; margin-bottom: 12px; }
.done-box p { margin: 0 auto 28px; color: var(--ink-2); max-width: 560px; font-size: 19px; }
.done-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- кабінет ---------- */
.app-header { background: var(--white); border-bottom: 1px solid var(--line); }
.app-header .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.app-nav { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg-2); border-radius: 12px; padding: 4px; }
.app-nav a { font-size: 16px; font-weight: 600; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--ink-2); text-decoration: none; }
.app-nav a.on { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(16,24,40,0.1); }
.app-main { padding: 24px 0 48px; }
@media (min-width: 900px) { .app-main { padding: 32px 0 48px; } }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.page-head h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
@media (min-width: 900px) { .page-head h1 { font-size: 34px; } }
.page-head p { margin: 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.tile { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--muted-2); border-radius: 16px; padding: 22px; display: block; }
.tile .n { font-size: 44px; font-weight: 800; line-height: 1.1; }
.tile .t { font-size: 19px; font-weight: 600; }
.tile .s { font-size: 15px; color: var(--muted); }
.tile-orange { border-top-color: var(--orange); } .tile-orange .n { color: var(--orange); }
.tile-blue { border-top-color: var(--blue); } .tile-blue .n { color: var(--blue); }
.tile-ink { border-top-color: var(--ink); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 999 1 600px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
@media (min-width: 900px) { .col-main .card h2 { font-size: 24px; } }
.card .sub { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 560px; }
.tbl th { text-align: left; color: var(--muted); font-size: 15px; padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.tbl td { padding: 14px 8px; border-bottom: 1px solid var(--bg-2); vertical-align: top; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .diff { color: var(--orange); font-weight: 700; }
.tbl .tip { font-size: 15px; color: var(--ink-2); }
.tbl .sub-line { font-size: 14px; color: var(--muted); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; font-size: 16px; }
.compare > div { background: var(--bg); border-radius: 10px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.compare .lab { font-size: 13px; color: var(--muted); font-weight: 600; }
.compare .nm { font-weight: 600; }
.compare .pr { color: var(--muted); }
.hint-box { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); background: var(--orange-soft); border-radius: 8px; padding: 10px 12px; }
.yesno { display: flex; gap: 12px; }
.yesno form { flex: 1; }
.yesno .btn { width: 100%; min-height: 52px; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.events li { display: flex; gap: 10px; align-items: baseline; }
.events .time { font-size: 14px; color: var(--muted); min-width: 44px; }
.dark-card { background: var(--ink); color: var(--white); border-radius: 16px; padding: 24px; }
.dark-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.dark-card p { margin: 0; font-size: 17px; color: var(--line); }
.dark-card a { color: #93C5FD; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--bg); border-radius: 12px; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 16px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.inline-form .input { flex: 1 1 260px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--bg-2); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }
.explain { font-size: 15px; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 10px 12px; margin-top: 8px; width: 100%; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.limit { background: var(--bg); border-radius: 10px; padding: 12px; }
.limit strong { display: block; font-size: 24px; }
.limit span { font-size: 14px; color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.plan-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--bg); }
.plan-list li.current { background: var(--blue-soft); font-weight: 700; }
/* тариф і оплата */
.billing-status { font-size: 16px; }
.billing-status p { margin: 0 0 6px; }
.billing-form h3, .card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.choice-group { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.choice-group legend { padding: 0; margin-bottom: 6px; width: 100%; }
.choice { display: flex; align-items: center; gap: 10px; flex: 1 1 150px; font-size: 16px; color: var(--ink); cursor: pointer; padding: 10px 12px; min-height: 52px; border-radius: 10px; background: var(--white); border: 1.5px solid var(--line-2); }
.choice input { width: 22px; height: 22px; accent-color: var(--blue); flex-shrink: 0; }
.choice:has(input:checked) { background: var(--blue-soft); border: 2px solid var(--blue); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice .note { font-size: 14px; color: var(--muted); display: block; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 14px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--bg-2); vertical-align: top; }
.table .r { text-align: right; white-space: nowrap; }

/* ---------- адмінка ---------- */
.admin { min-height: 100vh; background: var(--bg); display: flex; flex-wrap: wrap; font-size: 16px; }
.admin-nav { flex: 1 1 220px; background: var(--ink); color: var(--white); padding: 24px 16px; }
.admin-nav .brand { color: var(--white); font-size: 22px; margin: 0 8px 4px; display: block; }
.admin-nav .sub { font-size: 13px; color: var(--line-3); margin: 0 8px 24px; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: block; padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--line-2); text-decoration: none; }
.admin-nav a.on { background: #1D2939; color: var(--white); font-weight: 600; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 20px 16px 48px; }
@media (min-width: 900px) { .admin-main { padding: 28px 28px 48px; } }
.admin-main h1 { font-size: 28px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 800; }
.kpi .n { font-size: 13px; color: var(--muted); }
.admin .card { border-radius: 14px; padding: 20px; }
.admin .card h2 { font-size: 20px; }
.admin .tbl { font-size: 15px; min-width: 520px; }
.admin .tbl td { padding: 10px 8px; }
.bar { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--blue); }

/* ---------- помилки ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.error-page h1 { font-size: 34px; margin-bottom: 12px; }
.error-page p { color: var(--muted); font-size: 19px; }

.htmx-request .btn { opacity: 0.6; pointer-events: none; }
