/* Карта мастера — сайт. Простой CSS, без внешних шрифтов и библиотек. */
:root {
  --ink: #12151a;
  --ink-2: #3d4550;
  --muted: #6b7280;
  --bg: #f6f6f4;
  --card: #ffffff;
  --line: #e3e3df;
  --accent: #166534;
  --accent-2: #15803d;
  --warn: #b45309;
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: 34px; }
h2 { font-size: 26px; margin-top: 8px; }
h3 { font-size: 19px; }

p { margin: 0 0 12px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--ink-2); }
.lead-sm { font-size: 17px; color: var(--ink-2); }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 246, 244, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
}
.nav { display: flex; gap: 16px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a.active { color: var(--ink); font-weight: 600; }

/* кнопки */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; margin-left: auto; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }

/* секции */
.band { padding: 56px 0; }
.band-alt { background: #fbfbfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero { padding: 44px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.tag {
  display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); background: #eaf3ec; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }

/* плитки */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card-k { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* телефоны */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.phone {
  background: #101215; border-radius: 22px; padding: 10px; color: #e9eaec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9aa1ab; padding: 4px 8px 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2f3944; }
.phone-body { background: #171a1f; border-radius: 16px; padding: 14px; flex: 1; }
.phone-h { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.phone-note { font-size: 12.5px; color: #9aa1ab; margin: -6px 0 12px; line-height: 1.4; }
.phone-row { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #232830; font-size: 13.5px; color: #c9cdd3; }
.phone-row:first-of-type { border-top: none; }
.phone-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.phone-main { color: #e3e5e8; }
.phone-sub { font-size: 12px; color: #8e959f; line-height: 1.35; }
.num { color: var(--accent-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-foot { font-size: 11px; color: #7f8791; padding: 8px 6px 2px; text-align: center; margin-top: auto; }

/* цифры */
.stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0; }
.stat-n { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-t { font-size: 14px; color: var(--muted); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.chip-on { color: var(--accent); border-color: #cfe3d5; background: #eef6f0; }

/* как установить */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.steps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.steps li { margin-bottom: 6px; }

/* цены */
.price-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price-card-hot { border-color: #cfe3d5; box-shadow: 0 1px 0 #eef6f0 inset; }
.price-n { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-n .muted { font-size: 16px; font-weight: 400; }
.price-t { font-weight: 600; margin: 4px 0 6px; }

.table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 620px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.table th { background: #fafaf8; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

.list { padding-left: 20px; color: var(--ink-2); }
.list li { margin-bottom: 6px; }

.notice { background: #fffbeb; border: 1px solid #f3e2b7; border-radius: 12px; padding: 14px 16px; font-size: 15px; }

/* блог */
.post-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-item h3 { margin: 4px 0 6px; }
.post-item h3 a { text-decoration: none; color: var(--ink); }
.post-item h3 a:hover { color: var(--accent); }

.article h1 { margin-bottom: 18px; }
.article h2 { margin: 28px 0 10px; }
.article p, .article li { color: var(--ink-2); }
.article ul { padding-left: 22px; }
.article code { background: #f0f0ed; padding: 1px 5px; border-radius: 4px; font-size: 0.95em; }
.article pre { background: #12151a; color: #e9eaec; padding: 14px; border-radius: 10px; overflow-x: auto; }

.legal h1 { font-size: 26px; }
.legal .sub { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul, .legal ol { padding-left: 22px; }

/* подвал */
.foot { background: #12151a; color: #d9dce1; padding: 40px 0 24px; margin-top: 20px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.foot .mark { background: #fff; color: #12151a; }
.foot-brand { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.foot-col a { display: block; color: #b9bec7; text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.foot-col a:hover { color: #fff; }
.foot .muted { color: #8d939d; font-size: 14px; }
.foot-title { font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.foot-bottom { border-top: 1px solid #24282f; margin-top: 24px; padding-top: 16px; font-size: 13px; }
.foot-bottom .muted { color: #8d939d; }

/* формы и кабинет */
.auth-card { max-width: 460px; }
.f { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.input {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.input:focus { outline: 2px solid #cfe3d5; outline-offset: 1px; border-color: #bcd6c6; }
.input-code { font-size: 22px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 12px 0; }
.check input { margin-top: 3px; }
.hint { color: var(--warn); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: 14px;
  color: var(--accent); cursor: pointer; text-decoration: underline;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); margin: 18px 0;
}
.status-n { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.status-ok { border-color: #cfe3d5; background: #f3f9f4; }
.status-ok .status-n { color: var(--accent); }
.status-off { border-color: #f3e2b7; background: #fffbeb; }
.status-off .status-n { color: var(--warn); }
.dirs { list-style: none; padding: 0; margin: 12px 0; }
.dir {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
}
.dir-on { border-color: #cfe3d5; }
.dir-soon { opacity: 0.65; }
.table-admin { font-size: 14px; }
.table-admin th, .table-admin td { white-space: normal; padding: 10px 10px; }
.table-admin .link-btn, .table-admin .input-month { white-space: nowrap; }
.table-admin td:first-child, .table-admin th:first-child { white-space: nowrap; }

/* блок «база обновляется» */
.band-upd { padding: 26px 0; }
.upd {
  display: flex; gap: 16px; align-items: flex-start;
  background: #eef6f0; border: 1px solid #cfe3d5; border-radius: var(--radius); padding: 18px 20px;
}
.upd p { margin: 0; }
.upd-icon { font-size: 24px; line-height: 1; color: var(--accent); }

/* кнопка установки */
.btn-install { background: #12151a; border-color: #12151a; color: #fff; }
.btn-install:hover { background: #000; }
.btn-big { padding: 16px 26px; font-size: 18px; width: 100%; }

/* оплата */
.pay-card { margin: 20px 0; }
.pay-now {
  background: #f3f9f4; border: 1px solid #cfe3d5; border-radius: var(--radius);
  padding: 14px 16px; margin: 16px 0;
}
.pay-calc {
  background: #fffbeb; border: 1px solid #f3e2b7; border-radius: 10px;
  padding: 12px 14px; font-size: 15px; margin: 0 0 16px;
}
.input-small { max-width: 120px; }
.extend { display: grid; gap: 8px; max-width: 420px; margin-bottom: 8px; }
.pay-title { font-weight: 600; margin-bottom: 10px; }
.pay-dirs { display: grid; gap: 8px; margin-bottom: 16px; }
.pay-dir {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.pay-dir input { width: 20px; height: 20px; }
.pay-dir-name { flex: 1; }
.pay-total { font-size: 18px; margin: 4px 0 16px; }
.pay-total b { font-size: 22px; }
.hint-muted { color: var(--muted); }
.hint { min-height: 0; }

/* установка */
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; line-height: 0; }
.qr svg, .qr canvas, .qr img { display: block; width: 190px; height: 190px; }
.inst-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.inst-steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.inst-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.inst-ico { display: inline-flex; vertical-align: -6px; color: var(--ink-2); }
.inst-alert { background: #fffbeb; border: 1px solid #f3e2b7; border-radius: 12px; padding: 16px 18px; }
.inst-alert p { margin: 0 0 8px; }
.inst-alert p:last-child { margin: 0; }
.inst-done { color: var(--accent); font-weight: 600; }
.steps-big { font-size: 18px; }
.steps-big li { margin-bottom: 10px; }

/* планшет и телефон */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-phone { max-width: 320px; }
  .phones { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .band { padding: 38px 0; }
  .hero { padding: 28px 0 36px; }
  .cards, .two, .price-row, .phones { grid-template-columns: 1fr; }
  .nav { display: none; }
  .btn-sm { margin-left: auto; }
  .top-in { gap: 10px; height: 56px; }
  .brand { font-size: 15px; }
  .foot-in { grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px; font-size: 14px; }
  .price-n { font-size: 26px; }
}

/* отчёт партнёра и админка */
.stats-partner { grid-template-columns: repeat(3, 1fr); }
.stat-hot .stat-n { color: var(--accent); }
.input-month { max-width: 150px; }
.table-scroll .table { min-width: 720px; }
.table-admin .link-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .stats-partner { grid-template-columns: 1fr 1fr; }
}

/* ---------- демо-карточки (/demo) ---------- */
.demo-search { display: flex; gap: 12px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.demo-search .input { flex: 1 1 320px; min-height: 44px; }
.demo-grid { display: grid; gap: 18px; margin: 18px 0 26px; }
.demo-card { padding: 18px 20px; }
.demo-card h3 { margin: 2px 0 10px; font-size: 20px; }
.demo-kind { margin: 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6b7280); }
.demo-reasons { margin: 6px 0 12px; padding-left: 18px; }
.demo-reasons li { margin-bottom: 10px; }
.demo-reasons .demo-check { display: block; margin-top: 3px; font-size: 14px; color: var(--muted, #4b5563); }
.demo-variants { border-left: 3px solid var(--line, #e5e7eb); padding-left: 12px; margin: 10px 0; }
.demo-variants ul { margin: 4px 0 8px; padding-left: 18px; }
.demo-safety { background: #fff7e6; border-radius: 8px; padding: 8px 10px; }
.demo-src { margin: 10px 0 0; word-break: break-word; }
.demo-cta { margin: 8px 0 30px; }
.demo-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
