/* Cond-site — собственный CSS. Mobile-first. Этап 1: токены, база, каркас, админка.
   Этап 3 расширил публичную часть. Внешних шрифтов нет — системный стек. */

/* ===== Токены темы ===== */
:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #0f172a;
  --muted: #5b6b7f;
  --border: #e2e8f0;
  --accent: #0e7490;
  --accent-hover: #155e75;
  --on-accent: #ffffff;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0f1a;
    --surface: #111827;
    --surface-2: #0f172a;
    --text: #e5eaf2;
    --muted: #93a1b5;
    --border: #1f2a3d;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --on-accent: #082032;
    --danger: #f87171;
    --ok: #4ade80;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-2: #0f172a;
  --text: #e5eaf2;
  --muted: #93a1b5;
  --border: #1f2a3d;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --on-accent: #082032;
  --danger: #f87171;
  --ok: #4ade80;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); /* место под мобильную панель */
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }

p { margin: 0 0 0.75em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.muted { color: var(--muted); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* ===== Формы ===== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }

input[type="text"], input[type="password"], input[type="tel"], input[type="email"],
input[type="number"], input[type="url"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* без зума на iOS */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 96px; resize: vertical; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.alert--error {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}

/* ===== Карточки ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__body { padding: 20px; }

/* ===== Бейджи ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge--new         { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge--in_progress { color: #b45309; background: rgba(245, 158, 11, 0.14); }
.badge--done        { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge--cancelled   { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.badge--muted       { color: var(--muted); background: var(--surface-2); }

/* ===== Переключатель темы (ненавязчивый) ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Публичная часть: каркас ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.site-header__brand { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.site-header__brand:hover { color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__phone { font-weight: 700; font-size: 15px; white-space: nowrap; }

.hero { padding: 48px 0 40px; }
.hero__title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.hero__text { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 32px 0; }
.section__title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }

.note-card { border-style: dashed; box-shadow: none; }

.contacts-list { margin: 0; padding-left: 20px; color: var(--text); }
.contacts-list li { margin-bottom: 8px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer__brand { font-weight: 700; color: var(--text); font-size: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ===== Нижняя мобильная панель действий ===== */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}
.mobile-bar__btn--call { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.mobile-bar__btn--cta { background: var(--accent); color: var(--on-accent); }

.error-page { text-align: center; padding: 64px 16px; }
.error-page__code { font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; }
.error-page__title { font-size: 22px; margin: 12px 0 24px; }

/* ===== Админка ===== */
.admin-body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.admin-topbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-topbar__brand {
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.admin-topbar__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.admin-topbar__actions { display: flex; align-items: center; gap: 14px; }
.admin-topbar__form { margin: 0; }
.admin-topbar__link {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.admin-topbar__link:hover { color: var(--accent); }
.admin-topbar__link--danger:hover { color: var(--danger); }

.admin-main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.admin-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.admin-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.admin-section { margin-top: 28px; }
.admin-section__title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 16px; }
.stat__value { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat__dim { color: var(--muted); font-size: 18px; font-weight: 600; }
.stat__label { color: var(--muted); font-size: 13px; margin-top: 4px; }

.sections-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.section-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.section-card__head strong { font-size: 15px; }
.sections-grid .muted { font-size: 14px; margin: 0; }

.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.data tr:last-child td { border-bottom: none; }

.empty { color: var(--muted); font-size: 14px; }

/* Нижняя навигация админки */
.admin-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.admin-nav__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.admin-nav__item--active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.admin-nav__item--disabled { opacity: 0.45; cursor: default; }

/* Страница входа */
.login-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 24px 0; }
.login-card { width: 100%; max-width: 400px; }
.login-title { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.login-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ===== Desktop ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .sections-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-nav {
    position: static;
    border-top: none;
    background: none;
    padding: 0;
    margin-bottom: 20px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
  }
  .admin-body { padding-bottom: 40px; }
  .admin-nav__item { flex: 0 0 auto; padding: 8px 18px; border: 1px solid var(--border); background: var(--surface); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Админка: этап 2 ===== */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-head .admin-title { margin: 0; }

.alert--ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.field--full { grid-column: 1 / -1; }
.field--check { flex-direction: row; align-items: center; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.card__footer { padding: 0 20px 20px; display: flex; gap: 10px; }

.btn--icon {
  min-height: 36px; width: 36px; padding: 0; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 16px;
}
.btn--icon:hover { color: var(--accent); border-color: var(--accent); }
.btn--danger-text { color: var(--danger); }
.btn--danger-text:hover { color: var(--danger); border-color: var(--danger); }

.inline { display: inline-flex; margin-right: 4px; }
.inline-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-status select { width: auto; padding: 6px 8px; font-size: 13px; }

.nowrap { white-space: nowrap; }
.small { font-size: 12px; }
.row--hidden { opacity: 0.55; }
.row-thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 8px; display: block; }
.row-thumb--empty { display: inline-block; background: var(--surface-2); border: 1px dashed var(--border); }
.row-title { font-weight: 600; color: var(--text); }
.row-title:hover { color: var(--accent); }
.comment-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.note-mark { color: var(--accent); }

.cat-item { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); }
.cat-item:last-of-type { border-bottom: none; }
.cat-item__title { font-weight: 600; }
.cat-add { display: flex; gap: 8px; margin-top: 12px; }
.cat-add input { flex: 1; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600;
}
.tab span { font-size: 12px; opacity: 0.8; }
.tab--active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.img-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.img-item {
  position: relative; width: 112px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px;
}
.img-item img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.img-item--primary { border-color: var(--accent); }
.img-item__actions { display: flex; justify-content: space-between; gap: 2px; margin-top: 6px; }
.img-item__actions .btn--icon { width: 24px; min-height: 24px; font-size: 12px; border-radius: 6px; }
.img-item__tag {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); padding: 2px 6px; border-radius: 999px;
}
.add-photos__body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.add-photos__body input[type="file"] { flex: 1; min-width: 200px; }

.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; font-size: 15px; }
.lead-dl dt { color: var(--muted); font-size: 13px; }
.lead-dl dd { margin: 0; }
.lead-phone { font-weight: 700; font-size: 17px; }

/* ===== Публичная часть: этап 2 ===== */
.site-nav { display: none; gap: 16px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
@media (min-width: 768px) { .site-nav { display: flex; } }

.container--narrow { max-width: 720px; }
.page-title { font-size: clamp(24px, 5vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-link { font-weight: 600; font-size: 14px; white-space: nowrap; }
.section--alt { background: var(--surface-2); border-radius: 24px; }

.service-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { display: block; overflow: hidden; color: var(--text); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12); color: var(--text); }
.service-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }
.service-card__noimg { display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 13px; border-bottom: 1px dashed var(--border); }
.service-card__body { padding: 16px; }
.service-card__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.service-card__text { font-size: 14px; color: var(--muted); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.price-tag { display: inline-block; font-weight: 800; font-size: 15px; color: var(--accent); }
.price-tag--lg { font-size: 24px; }

.cat-title { margin-top: 28px; }

.adv-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: step; }
@media (min-width: 560px) { .steps-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps-list { grid-template-columns: repeat(4, 1fr); } }
.steps-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 14px; margin-bottom: 10px;
}
.steps-item strong { display: block; margin-bottom: 4px; }
.steps-item .muted { font-size: 14px; margin: 0; }

.cta-card { border-style: none; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.cta-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }

.svc-gallery { margin-bottom: 20px; }
.svc-main-img { width: 100%; border-radius: var(--radius); display: block; background: var(--surface-2); }
.svc-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.svc-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }

.svc-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.svc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.svc-actions .btn { flex: 1; min-width: 180px; }
.svc-description { white-space: pre-line; margin-bottom: 20px; }

.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

.svc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip {
  display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}

/* Форма заявки */
.lead-form { margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alt { text-align: center; font-size: 14px; margin: 14px 0 0; }

.success-page { text-align: center; padding: 40px 16px; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 999px; font-size: 34px; font-weight: 800;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); margin-bottom: 16px;
}
.success-actions { justify-content: center; margin-top: 20px; }

/* ===== Публичная часть: этап 3 ===== */

/* Skip-link (доступность) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

/* Шапка */
.site-header { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.site-header__brand { display: inline-flex; align-items: center; gap: 8px; }
.site-header__logo { color: var(--accent); flex: 0 0 auto; }
.site-nav { display: none; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--muted); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--accent); }
.site-nav__active { color: var(--text) !important; }
.site-nav__cta {
  color: var(--on-accent) !important; background: var(--accent);
  padding: 9px 18px; border-radius: 999px; font-size: 14px !important;
  transition: background-color 0.15s ease;
}
.site-nav__cta:hover { background: var(--accent-hover); }
@media (min-width: 900px) { .site-nav { display: flex; } }
@media (min-width: 900px) { .site-header__phone { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 320px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(420px 260px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.4fr 1fr; } }
.hero__badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.hero__title { font-size: clamp(30px, 6.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero__text { font-size: clamp(16px, 2.5vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.hero__points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.hero__points li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15px; }
.hero__points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok);
}
.hero__card { border-style: solid; }
.hero__card-title { font-weight: 700; font-size: 17px; margin-bottom: 4px; }

/* Секции: ритм */
.section { padding: 48px 0; }
.section--top { padding-top: 32px; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section--alt { background: var(--surface-2); border-radius: 0; }
@media (min-width: 768px) { .section--alt { border-radius: 32px; margin: 0 12px; padding-left: 12px; padding-right: 12px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section__subtitle { font-size: 15px; margin: 0; }
.page-title { font-size: clamp(26px, 5vw, 38px); }
.page-lead { font-size: 17px; max-width: 640px; margin-bottom: 28px; }

/* Карточки услуг: финальный вид */
.service-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border); }
.service-card__imgwrap { overflow: hidden; position: relative; }
.service-card__imgwrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, #000 12%, transparent));
  pointer-events: none;
}
.service-card__img { transition: transform 0.35s ease; }
.service-card:hover .service-card__img { transform: scale(1.04); }
.service-card__noimg { aspect-ratio: 4 / 3; color: var(--muted); }
.service-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.service-card__title { font-size: 17px; }
.service-card__text { flex: 1; }
.service-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.service-card__link { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Преимущества */
.adv-card strong { display: block; margin-bottom: 4px; }
.adv-card .muted { font-size: 14px; margin: 0; }
.adv-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-weight: 800; font-size: 15px;
}

/* CTA-карточка */
.cta-card__body { display: grid; gap: 18px; align-items: center; }
@media (min-width: 768px) { .cta-card__body { grid-template-columns: 1fr auto; } }
.cta-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Галерея услуги */
.svc-main-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { color: var(--text); transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.contact-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12); color: var(--text); }
.contact-card__icon { font-size: 22px; display: block; margin-bottom: 10px; }
.contact-card strong { display: block; margin-bottom: 2px; }
.contact-card .muted { font-size: 14px; word-break: break-word; }

/* Информационные страницы */
.page-content { white-space: pre-line; font-size: 16px; line-height: 1.7; }

/* Подвал */
.site-footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding-bottom: 24px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__nav a { color: var(--muted); font-size: 14px; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer p { margin: 0 0 6px; }
.site-footer__text, .site-footer__copy { font-size: 13px; }

/* Мобильная панель: иконка */
.mobile-bar__btn { gap: 8px; }
.mobile-bar__btn svg { flex: 0 0 auto; }

/* Анимации появления */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal--d1 { transition-delay: 0.07s; }
.reveal--d2 { transition-delay: 0.14s; }
.reveal--d3 { transition-delay: 0.21s; }
.reveal--in { opacity: 1; transform: none; }

/* Ховер/фокус только для указывающих устройств */
@media (hover: none) {
  .service-card:hover .service-card__img { transform: none; }
  a.contact-card:hover { transform: none; box-shadow: var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card__img { transition: none; }
}
