/* СисАдми — оформление сайта. Один файл, без внешних зависимостей и веб-шрифтов. */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --mut: #55637a;
  --mut-2: #7b8798;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --acc: #1d4ed8;
  --acc-dark: #1e3a8a;
  --acc-soft: #eef4ff;
  --teal: #0d9488;
  --amber: #b45309;
  --ok: #15803d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px -20px rgba(15, 23, 42, .28);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf5;
    --ink-2: #f1f5f9;
    --mut: #9fb0c6;
    --mut-2: #8395ab;
    --bg: #0b1220;
    --card: #131c2e;
    --line: #23304a;
    --line-2: #33415e;
    --acc: #6ea0ff;
    --acc-dark: #93b6ff;
    --acc-soft: #16233c;
    --teal: #2dd4bf;
    --amber: #fbbf24;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 48px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink-2); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); margin-top: 0; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.section { padding: 52px 0; }
.section--tight { padding: 34px 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 10px;
}

.lead { font-size: 1.08rem; color: var(--mut); max-width: 62ch; }

/* ---------- Шапка ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--acc); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink-2); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--acc), var(--teal)); color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--acc) 60%, transparent);
}
.logo-text span { color: var(--acc); }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--mut); padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { background: var(--acc-soft); color: var(--acc); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--acc); background: var(--acc-soft); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: .95rem; }
.header-phone:hover { color: var(--acc); text-decoration: none; }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; color: var(--ink-2); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .97rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--acc); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--acc) 80%, transparent); }
.btn-primary:hover { background: var(--acc-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 44px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--mut); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot--live { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1rem; margin-bottom: 16px; color: var(--mut); font-weight: 600; }
.slot-list { display: grid; gap: 10px; }
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .93rem;
}
.slot-time { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.slot-free { color: var(--ok); font-weight: 600; font-size: .85rem; }
.slot-busy { color: var(--mut-2); font-weight: 600; font-size: .85rem; }
.slot-note { margin-top: 14px; font-size: .82rem; color: var(--mut-2); }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--mut); font-size: .95rem; }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); font-size: 19px; margin-bottom: 14px;
}
.card-meta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; font-size: .87rem; color: var(--mut); }
.card-meta b { color: var(--ink-2); }

/* ---------- Счётчики ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-align: center;
}
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--acc); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .87rem; color: var(--mut); margin-top: 4px; }
.stat-live { font-size: .72rem; color: var(--mut-2); margin-top: 8px; display: block; }

/* ---------- Таблицы цен ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table caption { text-align: left; padding: 0 0 12px; font-weight: 700; color: var(--ink-2); font-size: 1.05rem; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.price-table thead th { background: var(--acc-soft); color: var(--acc-dark); font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--acc-soft) 55%, transparent); }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink-2); }
.price-table .muted { color: var(--mut); font-weight: 400; }
@media (max-width: 620px) {
  .price-table thead { display: none; }
  .price-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .price-table td { display: block; border: none; padding: 4px 16px; text-align: left; }
  .price-table td:last-child { text-align: left; color: var(--acc); }
}

/* ---------- Шаги ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  counter-increment: step; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; font-size: 1.04rem; }
.step p { color: var(--mut); font-size: .94rem; margin: 0; }

/* ---------- Отзывы ---------- */
.review { display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 1rem;
}
.review-name { font-weight: 700; color: var(--ink-2); font-size: .97rem; }
.review-date { font-size: .82rem; color: var(--mut-2); }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: .95rem; }
.review-text { color: var(--mut); font-size: .95rem; margin: 0; }
.review-service { font-size: .8rem; color: var(--acc); background: var(--acc-soft); padding: 3px 9px; border-radius: 20px; align-self: flex-start; }

.rating-summary { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.rating-big { font-size: 2.6rem; font-weight: 800; color: var(--acc); line-height: 1; }
.rating-bars { flex: 1; min-width: 220px; display: grid; gap: 5px; }
.rating-row { display: grid; grid-template-columns: 34px 1fr 46px; gap: 9px; align-items: center; font-size: .84rem; color: var(--mut); }
.bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: #f59e0b; border-radius: 4px; }

/* ---------- Статьи ---------- */
.post-card { display: flex; flex-direction: column; }
.post-date { font-size: .82rem; color: var(--mut-2); }
.post-card h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.post-card h3 a { color: inherit; }
.post-card p { font-size: .93rem; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--mut-2); margin-top: 14px; }

.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.article-meta { color: var(--mut-2); font-size: .9rem; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }
.article h2 { margin-top: 2em; font-size: 1.35rem; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--ink); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 7px 0; }
.article blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 3px solid var(--acc); background: var(--acc-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.article code { background: var(--acc-soft); padding: 2px 6px; border-radius: 5px; font-family: var(--mono); font-size: .88em; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; }
.article th, .article td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article th { background: var(--acc-soft); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 5px 0; font-size: .93rem; }
.toc .toc-title { font-weight: 700; color: var(--ink-2); margin-bottom: 8px; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.35rem; color: var(--acc); line-height: 1; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--mut); font-size: .95rem; }

/* ---------- Форма ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--mut-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 108px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #dc2626; }
.field .error { font-size: .8rem; color: #dc2626; display: none; }
.field.invalid .error { display: block; }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.form-note { font-size: .82rem; color: var(--mut-2); }
.form-status { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .93rem; display: none; margin-top: 14px; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.form-status.err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
@media (prefers-color-scheme: dark) { .form-status.err { background: #2a1414; border-color: #7f1d1d; color: #fca5a5; } }

/* ---------- Контакты ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .card-icon { margin: 0; width: 36px; height: 36px; font-size: 17px; }
.contact-row b { display: block; color: var(--ink-2); font-size: .95rem; }
.contact-row span { color: var(--mut); font-size: .9rem; }

.coverage { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--acc-soft); color: var(--acc-dark); border-radius: 20px; padding: 5px 13px; font-size: .87rem; font-weight: 500; }

.map-embed {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  height: 320px; display: grid; place-items: center; text-align: center; color: var(--mut);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; box-shadow: var(--shadow);
}
.map-embed b { display: block; color: var(--ink-2); margin-bottom: 4px; }

/* ---------- CTA-полоса ---------- */
.cta-band { background: linear-gradient(135deg, var(--acc-dark), var(--acc)); color: #fff; border-radius: var(--radius); padding: 34px 38px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 56ch; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: .85rem; color: var(--mut-2); padding: 18px 0 0; }
.breadcrumbs a { color: var(--mut); }
.breadcrumbs span { margin: 0 7px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 46px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mut-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--mut); font-size: .92rem; }
.footer-grid a:hover { color: var(--acc); }
.footer-about { color: var(--mut); font-size: .92rem; max-width: 34ch; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--mut-2); font-size: .85rem; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px; font-size: .78rem; color: var(--mut); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 2px; box-shadow: var(--shadow); }
  .burger { display: block; margin-left: auto; }
  .header-phone { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .form-card, .nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .price-table { box-shadow: none; border-color: #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
