/* Аварком 21. Графит и белый, красный — только действие «позвонить», янтарный — мелкие акценты. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --ink: #0e1013;
  --ink-2: #16191e;
  --ink-3: #20242b;
  --ink-line: rgba(255, 255, 255, .09);
  --on-ink: #e9ebee;
  --on-ink-muted: #9aa1ab;
  --paper: #ffffff;
  --paper-2: #f4f5f6;
  --text: #16191e;
  --muted: #5f6772;
  --line: #e3e5e8;
  --card: #ffffff;
  --faint: #b9bec5;
  --ok: #138a44;
  --plus: var(--text);
  --red: #e0212b;
  --red-2: #c3141d;
  --amber: #f4b41a;
  --green: #2bd576;
  --radius: 18px;
  --radius-s: 12px;
  --wrap: 1180px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* шапка, первый экран и нижняя панель — меняются вместе с темой */
  --top-bg: #f4f5f6;
  --top-glass: rgba(255, 255, 255, .86);
  --bar-glass: rgba(255, 255, 255, .95);
  --top-text: #16191e;
  --top-strong: #0e1013;
  --top-muted: #5f6772;
  --top-soft: #eceef1;
  --top-chip: #ffffff;
  --top-line: rgba(14, 16, 19, .09);
  --top-edge: rgba(14, 16, 19, .22);
  --top-accent: #e0212b;
  --top-amber: #b77a00;
  --top-shadow: rgba(14, 16, 19, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--font); font-feature-settings: "tnum" 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .55em; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(38px, 7.4vw, 72px); }
h2 { font-size: clamp(28px, 4.6vw, 46px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
section { padding: clamp(56px, 9vw, 110px) 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; color: var(--top-text);
  background: var(--top-glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--top-line);
}
.top-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
/* название не переносится и не сжимается: в шапке место уступают номер (короткий на телефоне) и подпись */
.top .brand { flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand b { font-size: 17px; font-weight: 800; }
.brand small { font-size: 12px; color: var(--top-muted); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--top-muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a[aria-current] { color: var(--top-strong); background: var(--top-soft); }
.top-phone {
  margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 17px;
  white-space: nowrap; padding: 9px 14px; border-radius: 12px; background: var(--top-soft); transition: background .2s, color .2s;
}
.top-phone .ic { color: var(--top-accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 213, 118, .6); animation: blip 2s infinite; flex: none; }
@keyframes blip { 70% { box-shadow: 0 0 0 8px rgba(43, 213, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 213, 118, 0); } }
@media (min-width: 1000px) { .nav { display: flex; } .top-phone { margin-left: 8px; } }
.nav a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1199px) { .nav { gap: 0; } .nav a { font-size: 14px; padding: 8px 8px; } .top-in { gap: 12px; }
  .top .top-phone .ph-full { display: none; } .top .top-phone .ph-short { display: inline; } }
@media (max-width: 440px) { .brand small { display: none; } .top-phone { font-size: 15px; padding: 8px 10px; } .top-phone .dot { display: none; } }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px; border-radius: 14px; border: 0; overflow: hidden;
  font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer; color: inherit; background: transparent;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-call { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(224, 33, 43, .7); }
.btn-call b { font-weight: 800; }
.btn-call::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  animation: shine 3.6s var(--ease) infinite 1.2s;
}
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.btn-line { color: var(--top-strong); box-shadow: inset 0 0 0 1.5px var(--top-edge); }
.btn-line-dark { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-xl { min-height: 64px; font-size: 20px; padding: 14px 30px; border-radius: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
@media (max-width: 560px) { .cta .btn { flex: 1 1 40%; padding-left: 12px; padding-right: 12px; } .cta .btn-call { flex: 1 1 100%; } }

/* ---------- первый экран ---------- */
.hero, .page-hero { position: relative; background: var(--top-bg); color: var(--top-text); overflow: hidden; isolation: isolate; }
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--top-line) 1px, transparent 1px), linear-gradient(90deg, var(--top-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 33, 43, .22), transparent 65%); filter: blur(10px);
}
.hero-in { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: var(--top-strong); max-width: 12ch; }
.hero h1 span { display: block; color: var(--top-amber); }
.lead-text { font-size: clamp(18px, 2.2vw, 21px); color: var(--top-muted); max-width: 34em; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--top-text);
  padding: 7px 14px; border-radius: 999px; background: var(--top-chip); border: 1px solid var(--top-line); margin-bottom: 22px;
}
.stats { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.stats li, .stats a { display: flex; flex-direction: column; text-decoration: none; }
.stats b { font-size: 28px; font-weight: 800; color: var(--top-strong); display: flex; align-items: center; gap: 6px; letter-spacing: -.02em; }
.stats b .ic { color: var(--amber); width: .8em; height: .8em; }
.stats li > span, .stats a > span { font-size: 14px; color: var(--top-muted); }
.hero .ticks { margin-top: 4px; }
.hero .ticks li { color: var(--top-text); }
.hero .ticks .ic { color: var(--top-amber); }

.hero-visual { position: relative; }
.hero-photo { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: 0 40px 80px -30px var(--top-shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 18s var(--ease) infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translate(-2%, -1%); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hero-photo { position: relative; }
@media (min-width: 940px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-b .hero-in { grid-template-columns: 1.2fr .8fr; }
}

/* анимированный маршрут */
.route {
  position: absolute; left: -24px; bottom: -36px; width: min(300px, 70%);
  background: rgba(22, 25, 30, .92); border: 1px solid var(--ink-line); border-radius: 20px; padding: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.hero-b .route { position: relative; left: auto; bottom: auto; width: 100%; max-width: 420px; margin: 0 auto; }
.route-map { width: 100%; height: auto; display: block; border-radius: 12px; background: #111418; }
.route-map .streets path { stroke: rgba(255, 255, 255, .07); stroke-width: 10; fill: none; }
.route-bg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.route-line {
  fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 560; stroke-dashoffset: 560; animation: draw 5s var(--ease) infinite;
}
@keyframes draw { 0% { stroke-dashoffset: 560; } 70%, 100% { stroke-dashoffset: 0; } }
.route-dest .pin { fill: var(--red); stroke: #fff; stroke-width: 3; }
.route-dest .ring { fill: none; stroke: var(--red); stroke-width: 2; transform-origin: center; animation: ring 2s ease-out infinite; }
.route-dest .ring.r2 { animation-delay: 1s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.route-car rect { fill: var(--amber); stroke: rgba(244, 180, 26, .3); stroke-width: 8; paint-order: stroke; }
.route-car path, .route-car circle { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.route-card { display: grid; gap: 4px; padding: 12px 6px 4px; }
.route-card b { font-size: 18px; color: #fff; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-ink-muted); font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blip 2s infinite; }
.bar-prog { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.bar-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--red)); transform-origin: left; animation: prog 5s var(--ease) infinite; }
@keyframes prog { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@media (max-width: 939px) {
  .route { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -60px; margin-left: 16px; max-width: 280px; }
}

/* ---------- что делать сейчас ---------- */
.now { background: var(--paper-2); }
.now h2 { max-width: 18ch; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 18px; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; background: var(--card); border-radius: var(--radius); padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.steps li::after { content: "0" counter(s); position: absolute; right: 20px; top: 18px; font-weight: 800; font-size: 14px; color: var(--faint); }
.steps .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--ink); color: var(--amber); margin-bottom: 8px; }
.steps li:last-child .ic { background: var(--red); color: #fff; }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); font-size: 15px; }
.now a { color: var(--text); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .steps-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }

/* ---------- услуги ---------- */
.cards { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.cards li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.cards .ic { width: 30px; height: 30px; color: var(--red); margin-bottom: 18px; }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- команда ---------- */
.team { background: var(--ink); color: var(--on-ink); }
.team h2 { color: #fff; }
.team p { color: var(--on-ink-muted); }
.team-in { display: grid; gap: 36px; align-items: center; }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team-photos img:nth-child(2) { margin-top: 40px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { color: var(--amber); margin-top: .2em; }
@media (min-width: 900px) { .team-in { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- фото ---------- */
.grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 32px; padding-bottom: 8px; scrollbar-width: none; }
.grid::-webkit-scrollbar { display: none; }
.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }
@media (min-width: 860px) { .grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } .grid img:nth-child(even) { transform: translateY(24px); } }

/* ---------- районы ---------- */
.area { background: var(--paper-2); }
.area-grid { display: grid; gap: 14px; margin-top: 32px; }
.area-grid > * { display: block; background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.area-grid h3 { display: flex; align-items: center; gap: 8px; }
.area-grid h3 .ic { color: var(--red); }
.area-grid p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- вопросы ---------- */
.faq-in { display: grid; gap: 20px; }
@media (min-width: 900px) { .faq-in { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(var(--plus), var(--plus)) center / 12px 2px no-repeat,
              linear-gradient(var(--plus), var(--plus)) center / 2px 12px no-repeat, var(--paper-2);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); --plus: var(--ink);
  background-color: var(--amber); background: linear-gradient(var(--plus), var(--plus)) center / 12px 2px no-repeat,
  linear-gradient(var(--plus), var(--plus)) center / 2px 12px no-repeat, var(--amber); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- контакты и форма ---------- */
.contact { background: var(--paper-2); }
.contact-in { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .contact-in { grid-template-columns: 1fr 1fr; gap: 64px; } }
.addr { display: flex; gap: 10px; color: var(--muted); }
.addr .ic { color: var(--red); margin-top: .25em; }
.lead { background: var(--card); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .35); display: grid; gap: 14px; border: 1px solid var(--line); }
.lead h2 { font-size: 28px; margin: 0; }
.lead p { margin: 0; }
.lead label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.lead input:not([type="checkbox"]) {
  font: 500 17px var(--font); padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-2); color: var(--text);
  transition: border-color .2s, background .2s;
}
.lead input:focus { outline: none; border-color: var(--text); background: var(--card); }
.lead .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.lead .agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.lead .invalid { border-color: var(--red) !important; }
.lead-msg { font-weight: 700; min-height: 1.4em; font-size: 15px; }
.lead-msg.ok { color: var(--ok); }
.lead-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.captcha:empty { display: none; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 33, 43, .2), transparent 65%); }
.page-hero h1 { color: var(--top-strong); font-size: clamp(34px, 6vw, 60px); max-width: 18ch; }
.crumbs { font-size: 14px; color: var(--top-muted); margin-bottom: 18px; }
.crumbs a { color: var(--top-muted); }
.doc-text .crumbs { color: var(--muted); }
.doc-text .crumbs a { color: var(--muted); }
.prose { max-width: 800px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 20px; }
.prose h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 1.6em; }
.prose p, .prose li { font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
/* кнопки внутри текста статьи (звонок в выноске) сохраняют свой цвет */
.prose a:not(.btn) { color: var(--red); font-weight: 600; }
.answer { font-size: 19px !important; background: var(--paper-2); border-left: 4px solid var(--amber); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 20px 22px; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ic { color: var(--red); margin-top: .25em; }
.callout { display: flex; gap: 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 24px; margin: 36px 0; }
.callout > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--red); color: #fff; }
.callout p { font-size: 18px; color: #fff; }
.callout .btn { min-height: 48px; font-size: 16px; }
.doc-text { padding-bottom: 60px; }
.doc-text h1 { font-size: clamp(30px, 5vw, 44px); }
.doc-text h2 { font-size: 21px; }
.doc-text p { font-size: 16px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }

.related { padding-top: 40px; }
.related h2 { font-size: 28px; }
.rel-grid { display: grid; gap: 12px; margin-top: 20px; }
.rel { position: relative; display: grid; gap: 4px; padding: 22px 56px 22px 22px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.rel span { color: var(--muted); font-size: 15px; }
.rel .ic { position: absolute; right: 22px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--red); transition: transform .3s var(--ease); }
@media (min-width: 760px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- подвал ---------- */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 40px; font-size: 15px; }
.foot a { color: var(--on-ink); }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot-phone { font-size: 22px; font-weight: 800; text-decoration: none; }
.foot-in { display: grid; gap: 28px; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { text-decoration: none; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.2fr .8fr 1.2fr; } }

/* ---------- нижняя панель на телефоне ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1.6fr 1fr;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--top-line);
}
.bar a, .bar button { display: flex; background: none; border: 0; font-family: inherit; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--top-text); text-decoration: none; font-size: 12px; font-weight: 700; }
.bar a .ic, .bar button .ic { width: 22px; height: 22px; }
.bar .bar-call { background: var(--red); color: #fff; font-size: 17px; flex-direction: row; gap: 8px; }
@media (min-width: 900px) { .bar { display: none; } body { padding-bottom: 0; } }

/* ---------- окно cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 460px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: 16px; border: 1px solid var(--line);
  padding: 12px 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); font-size: 13px; line-height: 1.4;
  animation: up .5s var(--ease);
}
.cookie p { margin: 0 0 10px; }
.cookie a { color: var(--red); }
.cookie div { display: flex; gap: 8px; }
.cookie .btn { min-height: 38px; padding: 6px 12px; font-size: 13px; flex: 1; white-space: nowrap; border-radius: 10px; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
@media (min-width: 900px) { .cookie { bottom: 20px; left: 20px; right: auto; margin: 0; } }

/* ---------- тёмная тема: по настройке устройства, пока посетитель не выбрал сам кнопкой в шапке ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b0d10;
    --paper-2: #121519;
    --card: #171a1f;
    --text: #e9ebee;
    --muted: #9aa1ab;
    --line: rgba(255, 255, 255, .1);
    --faint: #4a515b;
    --ok: #3ddc84;
    --top-bg: #0e1013;
    --top-glass: rgba(14, 16, 19, .82);
    --bar-glass: rgba(14, 16, 19, .94);
    --top-text: #e9ebee;
    --top-strong: #fff;
    --top-muted: #9aa1ab;
    --top-soft: #20242b;
    --top-chip: #20242b;
    --top-line: rgba(255, 255, 255, .09);
    --top-edge: rgba(255, 255, 255, .28);
    --top-accent: #f4b41a;
    --top-amber: #f4b41a;
    --top-shadow: rgba(0, 0, 0, .8);
  }
  :root:not([data-theme="light"]) .team { background: var(--ink-2); }
  :root:not([data-theme="light"]) .steps .ic { background: var(--ink-3); }
  :root:not([data-theme="light"]) .cards li:hover, :root:not([data-theme="light"]) .steps li:hover, :root:not([data-theme="light"]) .area-grid a:hover, :root:not([data-theme="light"]) .rel:hover { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); border-color: rgba(255, 255, 255, .18); }
  :root:not([data-theme="light"]) .lead { box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
  :root:not([data-theme="light"]) .lead input:focus { border-color: var(--amber); }
  :root:not([data-theme="light"]) .btn-line-dark:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
  :root:not([data-theme="light"]) .answer { border-left-color: var(--amber); }
  :root:not([data-theme="light"]) .callout { background: var(--card); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .foot { background: #07080a; }
  :root:not([data-theme="light"]) .cookie { box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }
  :root:not([data-theme="light"]) img { filter: brightness(.94); }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0d10;
  --paper-2: #121519;
  --card: #171a1f;
  --text: #e9ebee;
  --muted: #9aa1ab;
  --line: rgba(255, 255, 255, .1);
  --faint: #4a515b;
  --ok: #3ddc84;
  --top-bg: #0e1013;
  --top-glass: rgba(14, 16, 19, .82);
  --bar-glass: rgba(14, 16, 19, .94);
  --top-text: #e9ebee;
  --top-strong: #fff;
  --top-muted: #9aa1ab;
  --top-soft: #20242b;
  --top-chip: #20242b;
  --top-line: rgba(255, 255, 255, .09);
  --top-edge: rgba(255, 255, 255, .28);
  --top-accent: #f4b41a;
  --top-amber: #f4b41a;
  --top-shadow: rgba(0, 0, 0, .8);
}
:root[data-theme="dark"] .team { background: var(--ink-2); }
:root[data-theme="dark"] .steps .ic { background: var(--ink-3); }
:root[data-theme="dark"] .cards li:hover, :root[data-theme="dark"] .steps li:hover, :root[data-theme="dark"] .area-grid a:hover, :root[data-theme="dark"] .rel:hover { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); border-color: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .lead { box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
:root[data-theme="dark"] .lead input:focus { border-color: var(--amber); }
:root[data-theme="dark"] .btn-line-dark:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
:root[data-theme="dark"] .answer { border-left-color: var(--amber); }
:root[data-theme="dark"] .callout { background: var(--card); border: 1px solid var(--line); }
:root[data-theme="dark"] .foot { background: #07080a; }
:root[data-theme="dark"] .cookie { box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] img { filter: brightness(.94); }
:root[data-theme="light"] { color-scheme: light; }

/* кнопка темы: луна в светлой, солнце в тёмной */
.theme-btn {
  margin-left: auto; flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 12px; background: var(--top-soft); color: var(--top-text); cursor: pointer; transition: background .2s, color .2s;
}
.theme-btn .ic { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
.theme-btn + .top-phone { margin-left: 0; }
html:not(.js) .theme-btn { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
@media (min-width: 1000px) { .theme-btn { margin-left: 0; } }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { color: var(--top-accent); } }
@media (max-width: 380px) { .theme-btn { width: 36px; height: 36px; } }
@media (max-width: 340px) { .top .brand b { font-size: 15px; } }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal, .page-hero .reveal { transition-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .route-line { stroke-dashoffset: 0; }
}

/* ---------- «О службе» и дата обновления ---------- */
.prose-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.prose-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 17px; margin: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .req { grid-template-columns: 1fr; gap: 2px; } .req dd { margin-bottom: 10px; } }

/* ---------- мессенджеры ---------- */
.contact-call { width: 100%; margin: 8px 0 4px; }
.contact-sub { margin: 18px 0 0; font-weight: 700; }
.contact-geo { width: 100%; margin-bottom: 22px; font-size: 16px; }
.step-call a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; color: inherit; height: 100%; font-weight: 400; }
.step-call { border-color: var(--red) !important; }
.step-call em { font-style: normal; font-weight: 800; color: var(--red); margin-top: auto; padding-top: 6px; font-size: 18px; }
/* ссылка на разработчика: тихая, без «рекламного» вида */
.made-by { margin-top: 18px; font-size: 13px; }
.foot .made-by a { color: var(--on-ink-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.foot .made-by a:hover { color: var(--on-ink); }

/* ---------- выдвижные окна ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; max-height: 90vh;
  background: var(--card); color: var(--text); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
}
.sheet::backdrop { background: rgba(8, 9, 11, .6); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .35s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { position: relative; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.sheet h2 { font-size: 26px; margin: 0; padding-right: 40px; }
.sheet p { margin: 0; }
.sheet a:not(.btn) { color: var(--red); font-weight: 700; }
.sheet .btn { width: 100%; }
.sheet-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.geo-status { font-weight: 600; color: var(--muted); }
/* поиск места: радар, полоска ожидания, текущая точность */
.geo-search { display: grid; justify-items: center; gap: 12px; padding: 6px 0 2px; text-align: center; }
.geo-radar {
  position: relative; width: 136px; height: 136px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 33, 43, .14) 0 30%, transparent 31%), var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 34px var(--paper-2), inset 0 0 0 35px var(--line);
}
.geo-radar b { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(224, 33, 43, .32), rgba(224, 33, 43, 0) 28%); animation: geo-spin 2.2s linear infinite; }
.geo-radar::before, .geo-radar::after, .geo-radar i {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: geo-ping 2.4s var(--ease) infinite;
}
.geo-radar::after { animation-delay: .8s; }
.geo-radar i { animation-delay: 1.6s; }
.geo-radar .ic { position: relative; width: 42px; height: 42px; color: var(--red); fill: var(--card); animation: geo-bob .9s ease-in-out infinite alternate; }
@keyframes geo-spin { to { transform: rotate(360deg); } }
@keyframes geo-ping { 0% { transform: scale(.3); opacity: .8; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes geo-bob { to { transform: translateY(-6px); } }
.geo-wait { display: grid; gap: 4px; max-width: 34ch; }
.geo-wait strong { font-size: 19px; }
.geo-wait span { color: var(--muted); font-size: 15px; }
.geo-bar { width: 100%; max-width: 320px; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.geo-bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width .5s linear; }
.geo-now { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.geo-search:not([hidden]) + .geo-status { text-align: center; font-size: 15px; font-weight: 500; }
/* пока ищем место — кнопка звонка пульсирует: торопящемуся проще позвонить, чем ждать спутники */
/* кнопка звонка прилипает к низу окна — видна, даже если окно выше экрана */
#sheet-geo .btn-call { position: sticky; bottom: 12px; z-index: 1; }
@media (max-height: 760px) { .geo-radar { width: 104px; height: 104px; } .geo-radar .ic { width: 34px; height: 34px; } }
.geo-search:not([hidden]) ~ .btn-call { animation: call-pulse 1.6s ease-out infinite; }
.geo-search:not([hidden]) ~ .btn-call .ic { animation: call-shake 1.6s ease-in-out infinite; }
@keyframes call-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 33, 43, .55), 0 10px 30px -10px rgba(224, 33, 43, .7); }
  12% { transform: scale(1.035); }
  28% { transform: scale(1); }
  70%, 100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(224, 33, 43, 0), 0 10px 30px -10px rgba(224, 33, 43, .7); }
}
@keyframes call-shake { 0%, 36%, 100% { transform: rotate(0); } 6%, 18%, 30% { transform: rotate(-14deg); } 12%, 24% { transform: rotate(14deg); } }
.geo-status.ok { color: var(--ok); }
.geo-status.mid { color: var(--text); }
.geo-status.bad { color: var(--red); }
.geo-help { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; }
.geo-help ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.geo-result { display: grid; gap: 8px; }
.geo-frame { width: 100%; height: 200px; border: 0; border-radius: 14px; background: var(--paper-2); display: block; }
.geo-coords { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.geo-addr-l { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.geo-addr {
  font: 500 17px var(--font); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper-2); color: var(--text); width: 100%; min-width: 0;
}
.geo-addr:focus { outline: none; border-color: var(--text); background: var(--card); }
.geo-actions { display: grid; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--red); text-decoration: underline; cursor: pointer; }
@media (max-height: 480px) { .geo-frame { height: 130px; } }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 22px; } }

/* ---------- наведение — только с мышью (на телефоне :hover залипает после касания) ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--top-strong); background: var(--top-soft); }
  .top-phone:hover { background: var(--red); color: #fff; }
  .top-phone:hover .ic { color: #fff; }
  .btn:hover { transform: translateY(-2px); }
  .btn-call:hover { background: var(--red-2); }
  .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--top-strong); }
  .btn-line-dark:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
  .stats a:hover b { color: var(--amber); }
  .steps li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25); }
  .cards li:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .3); }
  .area-grid a:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .3); }
  .rel:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .3); }
  .rel:hover .ic { transform: translateX(4px); }
  .foot-nav a:hover { color: var(--amber); }
}

/* ---------- телефоны и iPhone ---------- */
.btn:active, .bar a:active, .bar button:active, .rel:active, .area-grid a:active { filter: brightness(.9); }
.wrap {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
/* фон не прокручивается под открытым окном */
html:has(dialog[open]), html.sheet-open { overflow: hidden; }
.sheet { max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-in { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
/* пока открыта клавиатура, нижняя панель прячется и не закрывает поле ввода */
@media (max-width: 899px) {
  body.typing .bar, body.typing .cookie { display: none; }
  body.typing { padding-bottom: 0; }
}
.lead .agree input { width: 24px; height: 24px; }
.lead .agree { min-height: 44px; align-items: center; }
.faq summary { min-height: 44px; }
/* телефоны: короткий номер в шапке, чтобы название не ломалось (полный — на кнопке звонка ниже) */
.top-phone .ph-short { display: none; }
@media (max-width: 559px) {
  .top-phone .ph-full { display: none; }
  .top-phone .ph-short { display: inline; }
  .top-in { gap: 10px; }
}
@media (max-width: 380px) {
  .brand b { font-size: 16px; }
  .top .brand { gap: 8px; }
  .top .brand img { width: 34px; height: 34px; }
  .top-in { gap: 8px; }
  .top-phone { gap: 6px; padding: 8px; }
  .hero h1 { font-size: 34px; }
  .btn-xl { font-size: 18px; padding: 12px 18px; }
  .cta .btn { font-size: 15px; }
}
/* телефон горизонтально: низкий экран */
@media (max-height: 480px) and (orientation: landscape) {
  :root { --bar-h: 54px; }
  .top-in { height: 56px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 36px; }
  .bar .bar-call { font-size: 15px; }
}
