/* Layout: деловой «досье»-ритм — широкие секции на мягком фоне, петролевые акценты, жёлтый маркер для действий */
:root {
  --paper: #F3F6F5;
  --surface: #FFFFFF;
  --ink: #12231F;
  --muted: #56665F;
  --line: #D8E0DC;
  --primary: #0F5A4E;
  --primary-soft: #E1EFEB;
  --on-primary: #FFFFFF;
  --accent: #F0B429;
  --on-accent: #1E1604;
  --band: #0E3B34;
  --band-ink: #EEF5F2;
  --band-muted: #A9C4BC;
  --danger: #B42318;
  --shadow: 0 18px 40px -22px rgba(14, 59, 52, .45);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1513; --surface: #13201D; --ink: #E4EDEA; --muted: #95A8A1; --line: #253631;
    --primary: #52C4AD; --primary-soft: #183A33; --on-primary: #06201B;
    --accent: #F2C14E; --on-accent: #1E1604;
    --band: #102B26; --band-ink: #E4EDEA; --band-muted: #93B3AA; --danger: #F97066;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1513; --surface: #13201D; --ink: #E4EDEA; --muted: #95A8A1; --line: #253631;
  --primary: #52C4AD; --primary-soft: #183A33; --on-primary: #06201B;
  --accent: #F2C14E; --on-accent: #1E1604;
  --band: #102B26; --band-ink: #E4EDEA; --band-muted: #93B3AA; --danger: #F97066;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.3vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font-body); padding: 17px 26px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }

/* Шапка */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .04em; color: var(--ink); justify-self: start; }
.logo svg { width: 24px; height: 24px; color: var(--accent); transform: rotate(-35deg); }
.logo span b { color: var(--primary); font-weight: 700; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { text-decoration: none; font-weight: 500; padding: 10px 16px; border-radius: 999px; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.header-contact { justify-self: end; text-align: right; line-height: 1.3; }
.header-contact a { font-weight: 700; font-size: 18px; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-contact a:hover { color: var(--primary); }
.header-contact small { display: block; color: var(--muted); font-size: 13px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
.mobile-extra { display: none; }

@media (max-width: 960px) {
  .header-row { grid-template-columns: 1fr auto auto; gap: 14px; }
  .burger { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 12px 20px 20px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-header.open .main-nav { display: flex; }
  .main-nav a { padding: 14px 16px; font-size: 17px; }
  .mobile-extra { display: block; padding: 12px 16px 0; color: var(--muted); font-size: 14px; }
}
@media (max-width: 560px) {
  .header-contact small { display: none; }
  .header-contact a { font-size: 15px; }
  .logo { font-size: 19px; }
}
@media (max-width: 400px) { .header-contact { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero-text h1 em { font-style: normal; color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-media { position: relative; min-width: 0; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; }
.hero-chip {
  position: absolute; left: -20px; bottom: 26px; max-width: 290px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow); display: grid; gap: 8px; font-size: 14px;
}
.hero-chip .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-chip strong { font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 86%; background: var(--accent); border-radius: 6px; }
.hero-chip .meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-chip { left: 12px; bottom: 12px; }
}

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 32px 28px; display: grid; gap: 6px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.5vw, 64px); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .38em; font-weight: 500; margin-left: 6px; color: var(--ink); }
.stat p { color: var(--muted); max-width: 26ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 4px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* Форма заявки */
.request {
  background: var(--band); color: var(--band-ink); border-radius: 28px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  position: relative; overflow: hidden;
}
.request::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid var(--accent); opacity: .14; pointer-events: none;
}
.request-text { display: grid; gap: 16px; min-width: 0; }
.request-text p { color: var(--band-muted); }
.request-text ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.request-text li { display: flex; gap: 10px; align-items: flex-start; }
.request-text li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.lead-form { display: grid; gap: 14px; position: relative; z-index: 1; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--band-muted); }
.field input {
  font: 500 17px/1.2 var(--font-body); padding: 17px 18px; border-radius: 14px;
  border: 1.5px solid transparent; background: var(--surface); color: var(--ink); width: 100%;
}
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { font-size: 13px; color: var(--accent); min-height: 0; }
.lead-form .btn { width: 100%; margin-top: 4px; }
.consent { font-size: 12.5px; color: var(--band-muted); }
@media (max-width: 820px) { .request { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 14px 20px 14px 14px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 600;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .tick { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.toast .tick svg { width: 18px; height: 18px; }
.toast span small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* Проблемы */
.problems { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.problems-aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.problems-aside img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; }
.problem-list li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list .n { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.problem-list h3 { margin-bottom: 8px; }
.problem-list p { color: var(--muted); }
@media (max-width: 880px) {
  .problems { grid-template-columns: 1fr; }
  .problems-aside { position: static; }
  .problems-aside img { display: none; }
  .problem-list li { grid-template-columns: 44px 1fr; gap: 12px; }
  .problem-list .n { font-size: 26px; }
}

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card p { color: var(--muted); }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--primary); transform: translateY(-3px); }
.card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 15px; margin-top: 4px; }
.card .more svg { width: 16px; height: 16px; transition: transform .15s ease; }
a.card:hover .more svg { transform: translateX(4px); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.icon svg { width: 24px; height: 24px; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

/* Преимущества */
.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.adv-item { padding: 32px 28px 32px 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid var(--line); }
.adv-item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.adv-item p { color: var(--muted); }
@media (max-width: 900px) {
  .adv { grid-template-columns: 1fr 1fr; }
  .adv-item, .adv-item:not(:nth-child(3n+1)) { padding: 28px 20px 28px 0; border-left: 0; }
  .adv-item:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .adv { grid-template-columns: 1fr; }
  .adv-item:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* Сферы */
.spheres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.sphere {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 16.5px; line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sphere small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.sphere .go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: background-color .15s ease, color .15s ease; }
.sphere .go svg { width: 18px; height: 18px; }
.sphere:hover { border-color: var(--primary); }
.sphere:hover .go { background: var(--accent); color: var(--on-accent); }

/* Внутренние страницы */
.page-head { padding-block: clamp(36px, 6vw, 64px) clamp(28px, 4vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.page-head-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: end; }
.page-head-grid > div { display: grid; gap: 18px; min-width: 0; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.facts dl { margin: 0; display: grid; }
.facts .f { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts .f:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .page-head-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose { display: grid; gap: 16px; }
.prose p { color: var(--muted); font-size: 17px; max-width: 62ch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 600; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); } }

/* Цены */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--paper); }
.price-table td:first-child strong { display: block; font-size: 17px; }
.price-table td:first-child span { color: var(--muted); font-size: 14px; }
.price-table .price { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.contact-grid .card strong { font-size: 20px; word-break: break-word; }
.contact-grid .card a { text-decoration: none; }
.contact-grid .card a:hover { color: var(--primary); }
.copy-btn { justify-self: start; font: 600 14px/1 var(--font-body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }

.service-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 48px); padding-block: 36px; border-top: 1px solid var(--line); }
.service-block:last-child { border-bottom: 1px solid var(--line); }
.service-block > * { min-width: 0; }
.service-block .head { display: grid; gap: 12px; align-content: start; }
.service-block .head .price-hint { font-weight: 600; color: var(--primary); }
.service-block .body { display: grid; gap: 16px; }
.service-block .body p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }
@media (max-width: 820px) { .service-block { grid-template-columns: 1fr; } }

/* Подвал */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; align-items: start; }
.footer-grid > * { min-width: 0; }
.f-brand { display: grid; gap: 12px; justify-items: start; }
.f-brand .f-phone { font-weight: 700; font-size: 20px; text-decoration: none; font-variant-numeric: tabular-nums; }
.f-brand .f-mail { text-decoration: none; color: var(--muted); word-break: break-all; }
.f-brand a:hover { color: var(--primary); }
.f-brand .hours { color: var(--muted); font-size: 14px; }
.f-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.f-nav h4, .f-legal h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.f-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-nav a { text-decoration: none; }
.f-nav a:hover { color: var(--primary); }
.f-legal { display: grid; gap: 6px; justify-items: end; text-align: right; }
.f-legal strong { font-size: 16px; }
.f-legal p { color: var(--muted); font-size: 14px; }
.f-legal p b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-nav { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .f-legal { justify-items: start; text-align: left; }
  .f-nav { grid-template-columns: 1fr; }
}

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

/* Сетка услуг: неполный последний ряд по центру */
.cards.cards-center { display: flex; flex-wrap: wrap; justify-content: center; }
.cards-center > .card { flex: 0 1 calc((100% - 36px) / 3); }
@media (max-width: 1000px) { .cards-center > .card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .cards-center > .card { flex-basis: 100%; } }

/* Политика конфиденциальности */
.policy { max-width: 820px; display: grid; gap: 34px; }
.policy-sec { display: grid; gap: 12px; }
.policy-sec h2 { font-size: clamp(19px, 2vw, 23px); }
.policy-sec p { color: var(--muted); }
.policy-op dd { word-break: break-word; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }

/* Цифры: четыре в ряд */
.stats { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 22px 4px; }
  .stat:nth-child(2n) { border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* Поле «Задача» */
.field textarea {
  font: 500 16px/1.45 var(--font-body); padding: 14px 18px; border-radius: 14px;
  border: 1.5px solid transparent; background: var(--surface); color: var(--ink);
  width: 100%; min-height: 96px; resize: vertical;
}
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.field textarea:focus { outline: none; border-color: var(--accent); }
.field label .opt { opacity: .7; font-weight: 400; }

/* Карта */
:root {
  --map-land: #EDF1EE; --map-res: #E4EAE6; --map-ind: #E8E5E0; --map-green: #D3E6D8; --map-forest: #C3DCCA;
  --map-water: #B9D9E3; --map-water-label: #3F7C8F; --map-bld: #D6DED9; --map-bld-line: #C2CCC6;
  --map-road: #FFFFFF; --map-case: #CDD6D1; --map-major: #FAE3A4; --map-major-case: #DEBE66;
  --map-label: #34433E; --map-halo: #F2F5F3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --map-land: #121C1A; --map-res: #16211E; --map-ind: #1A1F1D; --map-green: #16271F; --map-forest: #172E22;
    --map-water: #13323C; --map-water-label: #73B6CA; --map-bld: #22302C; --map-bld-line: #2C3B36;
    --map-road: #2B3A36; --map-case: #1A2522; --map-major: #5B4B23; --map-major-case: #3B3119;
    --map-label: #AFC2BB; --map-halo: #121C1A;
  }
}
:root[data-theme="dark"] {
  --map-land: #121C1A; --map-res: #16211E; --map-ind: #1A1F1D; --map-green: #16271F; --map-forest: #172E22;
  --map-water: #13323C; --map-water-label: #73B6CA; --map-bld: #22302C; --map-bld-line: #2C3B36;
  --map-road: #2B3A36; --map-case: #1A2522; --map-major: #5B4B23; --map-major-case: #3B3119;
  --map-label: #AFC2BB; --map-halo: #121C1A;
}
.locate { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.map-card {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: var(--map-land); box-shadow: var(--shadow);
}
.map-svg { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-svg.dragging { cursor: grabbing; }
.m-land { fill: var(--map-land); }
.m-res { fill: var(--map-res); }
.m-ind { fill: var(--map-ind); }
.m-green { fill: var(--map-green); }
.m-forest { fill: var(--map-forest); }
.m-water { fill: var(--map-water); }
.m-bld { fill: var(--map-bld); stroke: var(--map-bld-line); stroke-width: .6; }
.m-river { fill: none; stroke: var(--map-water); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.m-stream { fill: none; stroke: var(--map-water); stroke-width: 2.5; stroke-linecap: round; }
.m-case, .m-rd { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-case-R { stroke: var(--map-case); stroke-width: 7.5; }
.m-rd-R { stroke: var(--map-road); stroke-width: 5; }
.m-case-S { stroke: var(--map-case); stroke-width: 10; }
.m-rd-S { stroke: var(--map-road); stroke-width: 7.5; }
.m-case-P { stroke: var(--map-major-case); stroke-width: 12.5; }
.m-rd-P { stroke: var(--map-major); stroke-width: 10; }
.m-labels { font-family: var(--font-body); font-size: 11px; font-weight: 500; fill: var(--map-label); stroke: var(--map-halo); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.m-labels .m-wl { fill: var(--map-water-label); font-style: italic; }
.m-pulse { fill: var(--accent); opacity: .3; transform-box: fill-box; transform-origin: center; animation: mpulse 2.6s ease-out infinite; }
@keyframes mpulse { from { transform: scale(.4); opacity: .55; } to { transform: scale(1.7); opacity: 0; } }
.m-pin { fill: var(--accent); stroke: var(--band); stroke-width: 1.5; }
.m-pin-dot { fill: var(--band); }
.m-tag rect { fill: var(--band); }
.m-tag text { fill: var(--band-ink); font: 700 10.5px var(--font-display); letter-spacing: .06em; }
.map-ctrl { position: absolute; top: 12px; right: 12px; display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.map-ctrl button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font: 600 20px/1 var(--font-body); cursor: pointer; }
.map-ctrl button + button { border-top: 1px solid var(--line); }
.map-ctrl button:hover { background: var(--primary-soft); color: var(--primary); }
.map-scale, .map-attr {
  position: absolute; bottom: 12px; font-size: 11px; line-height: 1.2; border-radius: 8px; padding: 4px 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ink);
}
.map-scale { left: 12px; display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.map-scale i { display: block; width: 60px; height: 6px; border: 1.5px solid currentColor; border-top: 0; }
.map-attr { right: 12px; color: var(--muted); font-size: 10.5px; }
.locate-info { display: grid; gap: 16px; align-content: center; min-width: 0; }
.addr { font-size: clamp(18px, 2vw, 21px); font-weight: 600; line-height: 1.4; max-width: 34ch; }
.coords { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.locate-facts { margin: 4px 0 0; display: grid; border-top: 1px solid var(--line); }
.locate-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.locate-facts dt { color: var(--muted); }
.locate-facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.locate-facts a { text-decoration: none; }
.locate-facts a:hover { color: var(--primary); }
.locate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 860px) {
  .locate { grid-template-columns: 1fr; }
  .map-card { max-width: none; }
}

/* Яндекс.Карта */
.map-yandex iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-note {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 80px);
  font-size: 11.5px; font-weight: 600; line-height: 1.3; padding: 6px 10px; border-radius: 999px;
  background: var(--band); color: var(--band-ink);
}

/* Подвал: блок «Контакты» */
.f-tag { color: var(--muted); font-size: 14px; max-width: 30ch; }
.f-legal .f-phone { font-weight: 700; font-size: 20px; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--ink); }
.f-legal .f-mail { text-decoration: none; color: var(--muted); word-break: break-all; }
.f-legal a:hover { color: var(--primary); }
.f-legal .f-addr { max-width: 32ch; }
.f-legal .f-ip { margin-top: 10px; font-size: 15px; }

/* Подвал: сетка и адаптив */
.footer-grid { grid-template-areas: "brand nav legal"; }
.f-brand { grid-area: brand; }
.f-nav { grid-area: nav; }
.f-legal { grid-area: legal; }
.f-legal-body { display: grid; gap: 14px; justify-items: inherit; }
.f-reach, .f-req { display: grid; gap: 6px; justify-items: inherit; }
.f-legal .f-ip { margin-top: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "nav" "legal"; gap: 0; }
  .f-nav, .f-legal { order: 0; grid-column: auto; }
  .f-brand {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
    padding-bottom: 24px; border-bottom: 1px solid var(--line);
  }
  .f-brand .f-tag { max-width: none; }
  .f-nav { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
  .f-legal { justify-items: start; text-align: left; padding-top: 24px; gap: 12px; }
  .f-legal-body { grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; justify-items: start; }
  .f-reach, .f-req { justify-items: start; }
  .footer-bottom { margin-top: 28px; }
}
@media (max-width: 560px) {
  .site-footer { padding-block: 40px 24px; }
  .f-nav { gap: 16px; font-size: 14.5px; }
  .f-nav ul { gap: 10px; }
  .f-legal-body { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

.f-reach, .f-req { align-content: start; }

/* Без фотографий */
.hero-grid { grid-template-columns: 1fr; }
.hero-text { max-width: 860px; }
.hero-text h1 { font-size: clamp(30px, 5vw, 58px); }
.prose-wide { max-width: 760px; }
.checks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 960px; }
@media (max-width: 700px) { .checks-2 { grid-template-columns: 1fr; } }
.price-table .price { white-space: normal; font-size: 18px; }

/* Сферы: неполный последний ряд по центру */
.spheres { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.spheres > .sphere { flex: 0 1 calc((100% - 36px) / 4); min-width: 0; }
@media (max-width: 1100px) { .spheres > .sphere { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 820px) { .spheres > .sphere { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 560px) { .spheres > .sphere { flex-basis: 100%; } }

/* Политика: списки */
.policy-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.policy-list li { position: relative; padding-left: 22px; color: var(--muted); }
.policy-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 2px; background: var(--primary); }
