/* ============================================================
   УМКа — новый сайт (2026). Дизайн-система: тёплый editorial + красный акцент
   ============================================================ */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #1B1A17;
  --ink-2: #6E6A61;
  --ink-3: #9A958A;
  --line: #E7E3D8;
  --line-soft: #F0EDE4;
  --red: #EE3F33;
  --red-dark: #D42A1F;
  --red-soft: #FCEBE8;
  --dark: #1B1A17;
  --dark-2: #2A2823;
  --ok: #2E7D4F;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(27, 26, 23, .18);
  --shadow-soft: 0 10px 30px -14px rgba(27, 26, 23, .14);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --h1: clamp(2.1rem, 4.6vw, 3.6rem);
  --h2: clamp(1.6rem, 3vw, 2.4rem);
  --h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --sect: clamp(46px, 6.5vw, 80px);
  --ease: cubic-bezier(.22, .61, .21, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: var(--h1); letter-spacing: -0.035em; }
h2 { font-size: var(--h2); letter-spacing: -0.03em; }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.section { padding: var(--sect) 0; }
.section--tight { padding: calc(var(--sect) * .6) 0; }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- типографические мелочи ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.accent { color: var(--red); }
.muted { color: var(--ink-2); }

/* ссылки-подчёркивания (editorial) */
.u-link { position: relative; color: var(--ink); font-weight: 600; }
.u-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.u-link:hover { color: var(--ink); }
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: .01em; cursor: pointer; border: 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  white-space: normal; max-width: 100%; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(238, 63, 51, .55); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.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(--ink); color: var(--ink); }
.btn--lg { min-height: 58px; padding: 0 36px; font-size: 16px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 248, 243, .95); }
.header__in { display: flex; align-items: center; gap: 14px; height: 72px; max-width: 1320px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { height: 40px; width: auto; display: block; }
.logo small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.3; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 8px; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--ink); }
/* выпадающее меню услуг */
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 290px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  display: block; columns: 1;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub li { margin: 0; }
.nav .sub a { display: flex; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; }
.nav .sub a:hover { background: var(--red-soft); }
.nav .sub a::after { display: none; }
.header__phone { text-align: right; margin-left: 8px; }
.header__phone a { display: block; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.header__phone span { font-size: 12px; color: var(--ink-2); }
.header .btn { min-height: 42px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.burger { display: none; }
@media (max-width: 1340px) { .logo small { display: none; } }
@media (max-width: 1240px) { .header__phone { display: none; } }
.m-menu { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger {
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .header .btn { margin-left: auto; }
  .m-menu {
    display: block; position: fixed; inset: 0; z-index: 85; background: var(--bg);
    padding: 90px 24px 40px; overflow: auto; transform: translateX(100%); transition: transform .3s var(--ease);
  }
  .m-menu.is-open { transform: none; }
  .m-menu ul { list-style: none; margin: 0 0 26px; padding: 0; }
  .m-menu a { display: block; padding: 13px 4px; font-size: 19px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .m-menu .sub a { font-size: 15.5px; font-weight: 400; padding-left: 18px; }
  .m-menu .btn { width: 100%; margin-top: 8px; }
  .m-menu__x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; cursor: pointer; }
}
@media (max-width: 720px) { .header .btn { display: none; } }
.nav ul { gap: 4px; }

/* мобильное меню */

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 var(--sect); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em;
  background: var(--red-soft); z-index: -1; border-radius: 3px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { font-size: 13.5px; color: var(--ink-2); }
.hero__media { position: relative; }
.hero__photo {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4; background: var(--line-soft);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__badge {
  position: absolute; left: -26px; bottom: 34px; max-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 16px 18px;
}
.hero__badge b { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 4px; }
.hero__badge b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46,125,79,.16); }
.hero__badge p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.hero__lic {
  position: absolute; top: 22px; right: -14px; background: var(--dark); color: #F4F1EA;
  border-radius: var(--radius); padding: 12px 16px; font-size: 12.5px; line-height: 1.45; max-width: 210px;
  box-shadow: var(--shadow-soft);
}
.hero__lic b { color: #fff; }

/* полоса доверия */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trustbar__in { display: flex; flex-wrap: wrap; gap: 10px 44px; justify-content: space-between; padding: 18px 0; }
.trustbar span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.trustbar svg { flex: 0 0 auto; }

/* ---------- каталог услуг: номерной editorial-список ---------- */
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { margin: 0; border-bottom: 1px solid var(--line); }
.svc-list a {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 10px; color: var(--ink); transition: background .25s var(--ease), padding .25s var(--ease);
}
.svc-list a:hover { background: var(--surface); color: var(--ink); padding-left: 22px; }
.svc-list .num { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.svc-list .nm { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; }
.svc-list .ds { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); margin-top: 3px; }
.svc-list .go {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; transition: all .25s var(--ease); flex: 0 0 auto;
}
.svc-list a:hover .go { background: var(--red); border-color: var(--red); }
.svc-list a:hover .go svg { stroke: #fff; transform: rotate(-45deg); }
.svc-list .go svg { stroke: var(--ink); transition: all .25s var(--ease); }

/* карточки подуслуг (чипсы) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.chips-groups { display: grid; gap: 18px; margin: 26px 0 0; }
.chips-groups .chips { margin: 0; }
.chips-group > b { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); margin-bottom: 10px; }

/* ---------- команда ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.team-card b { display: block; font-size: 15.5px; margin-bottom: 8px; }
.team-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.team-card__ava {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
  color: var(--red-dark); display: grid; place-items: center; font-weight: 700; font-size: 20px; margin-bottom: 14px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red-dark); background: var(--red-soft); }

/* ---------- преимущества ---------- */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.why__sticky { position: sticky; top: 110px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.why-list .ic {
  width: 54px; height: 54px; border-radius: 16px; background: var(--red-soft);
  display: grid; place-items: center;
}
.why-list b { display: block; font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.why-list p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; position: relative; transition: border-color .25s, box-shadow .25s;
}
.step:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--red); margin-bottom: 14px;
}
.step b { display: block; font-size: 16.5px; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- CTA-панель ---------- */
.cta-band { background: var(--dark); color: #EDEAE2; border-radius: 22px; padding: clamp(34px, 5vw, 64px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(238,63,51,.32), transparent 68%);
}
.cta-band h2 { color: #fff; max-width: 16em; }
.cta-band p { color: #B8B3A8; max-width: 44em; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; position: relative; z-index: 1; }
.cta-band .tel { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.cta-band .tel:hover { color: var(--red); }

/* ---------- города ---------- */
.city-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.city-grid a {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; color: var(--ink); transition: all .2s var(--ease);
}
.city-grid a:hover { border-color: var(--red); color: var(--red-dark); background: var(--red-soft); }

/* ---------- отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.review .stars { color: #F2A33C; letter-spacing: 2px; font-size: 14px; }
.review p { margin: 0; font-size: 14.5px; color: var(--ink); }
.review .who { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.review .who b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 4px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-weight: 400; font-size: 18px; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.faq details[open] summary .pl { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }
.faq .ans { padding: 0 44px 20px 4px; color: var(--ink-2); font-size: 15px; }

/* ---------- формы ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--bg);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(238,63,51,.12);
}
.hp, .field .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.consents { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: 0 0 auto; }
.agree a { text-decoration: underline; }
.agree em { color: var(--ink-3); font-style: normal; font-size: 12px; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok.is-on { display: block; }
.form-ok .ok-ic {
  width: 64px; height: 64px; border-radius: 50%; background: #E7F3EC; color: var(--ok);
  display: grid; place-items: center; margin: 0 auto 16px;
}

/* модалка */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__ov { position: absolute; inset: 0; background: rgba(27,26,23,.55); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; max-width: 560px; margin: 6vh auto 0; background: var(--surface);
  border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
  max-height: 88vh; overflow: auto;
}
.modal__x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; color: var(--ink-2);
}
.modal__x:hover { border-color: var(--ink); color: var(--ink); }

/* cookie */
.cookie {
  position: fixed; left: 18px; bottom: 18px; z-index: 80; max-width: 360px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; display: none;
}
.cookie.is-on { display: block; }
.cookie p { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.cookie .row { display: flex; gap: 10px; }
.cookie .btn { min-height: 40px; padding: 0 18px; font-size: 13.5px; }

/* ---------- футер ---------- */
.footer { background: var(--dark); color: #A8A399; margin-top: var(--sect); }
.footer a { color: #D8D4CB; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding: clamp(44px, 6vw, 72px) 0 40px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 14.5px; }
.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p { font-size: 13.5px; line-height: 1.6; }
.footer__tel { font-size: 20px; font-weight: 700; color: #fff !important; display: block; margin-bottom: 4px; }
.footer__bot { border-top: 1px solid var(--dark-2); padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12.5px; }
.footer__bot span { color: #79746A; }

/* мобильная быстрая панель */
.qbar { display: none; }

/* ---------- страницы: шапка внутренних ---------- */
.page-head { padding: clamp(34px, 5vw, 64px) 0 clamp(26px, 4vw, 44px); }
.page-head h1 { max-width: 20em; }
.page-head .lead { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--ink-3); }
.crumbs li { margin: 0; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--red-dark); }
.crumbs li + li::before { content: "→"; margin-right: 6px; color: var(--ink-3); }

/* ---------- prose: текстовый контент ---------- */
.prose { max-width: 860px; }
/* картинки в тексте статей — не на всю ширину */
.prose p img { max-width: min(560px, 100%); height: auto; border-radius: 14px; display: block; margin: 6px auto 10px; }

.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 2.2em 0 .7em; letter-spacing: -0.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; letter-spacing: -0.015em; }
.prose p { color: #35332E; }
.prose ul li, .prose ol li { color: #35332E; }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  display: table;
}
.prose th { text-align: left; background: var(--line-soft); padding: 12px 14px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.prose td { padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.prose tr:hover td { background: #FDFCF9; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap table { min-width: 560px; }

/* врезка-совет */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 1.6em 0; font-size: 15px;
}

/* ---------- гео-страницы городов ---------- */
.geo-kicker { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.geo-media { display: flex; gap: 20px; align-items: flex-start; margin: 26px 0 34px; }
.geo-coat { flex: 0 0 128px; margin: 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 10px 10px; box-shadow: var(--shadow-soft); }
.geo-coat img { max-width: 96px; height: auto; display: block; margin: 0 auto 8px; }
.geo-coat figcaption { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.geo-gallery { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.geo-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.geo-gallery img { width: 100%; height: 170px; object-fit: cover; display: block; }
.geo-services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 30px; }
.geo-svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.geo-svc:hover { border-color: var(--red); box-shadow: var(--shadow-soft); }
.geo-svc h3 { font-size: 18px; margin-bottom: 10px; }
.geo-svc p { font-size: 14.5px; line-height: 1.65; margin-bottom: 8px; color: #35332E; }
a.geo-more { font-weight: 600; font-size: 13.5px; }
.geo-faq { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; margin-bottom: 20px; }
.geo-faq h3 { font-size: 16.5px; margin-bottom: 6px; }
.geo-faq p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.geo-links { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 30px 0; font-size: 14.5px; line-height: 1.9; }
.geo-links p { margin-bottom: 6px; }

/* хаб городов */
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 24px 0 36px; }
.geo-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px 14px; text-align: center; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.geo-card:hover { border-color: var(--red); box-shadow: var(--shadow-soft); text-decoration: none; }
.geo-card img { max-width: 64px; max-height: 64px; }
.geo-card span { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.geo-no-coat { font-size: 24px; font-weight: 800; color: var(--red); height: 64px; line-height: 64px; }

/* ---------- карточки направлений (услуги-хаб, главная) ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dir {
  position: relative; display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dir:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); color: var(--ink); }
.dir__img { aspect-ratio: 16/9; overflow: hidden; background: var(--line-soft); }
.dir__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dir__body b { font-size: 15.5px; letter-spacing: -0.015em; }
.dir__body p { margin: 0; font-size: 13px; color: var(--ink-2); }
.dir__body .lnk { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--red-dark); }

/* ---------- статьи ---------- */
.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.art {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; color: var(--ink); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.art:hover { border-color: var(--red); box-shadow: var(--shadow-soft); color: var(--ink); }
.art b { font-size: 18.5px; letter-spacing: -0.02em; line-height: 1.3; }
.art p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.art .more { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--red-dark); }

/* ---------- цены ---------- */
.price-block { margin-bottom: 44px; }
.price-block > h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.price-note { background: var(--red-soft); border: 1px solid #F5C9C4; border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14.5px; margin: 18px 0; }

/* ---------- документы ---------- */
.doc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.doc .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; }
.doc b { display: block; margin-bottom: 4px; }
.doc p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* реквизиты */
.requisites { width: 100%; border-collapse: collapse; font-size: 15px; }
.requisites td { padding: 12px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.requisites td:first-child { color: var(--ink-2); width: 240px; }
.requisites td:last-child { font-weight: 600; }

/* ---------- hero внутренних страниц услуг ---------- */
.svc-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 5vw, 60px); align-items: center; padding-bottom: clamp(30px, 4vw, 50px); }
.svc-hero .img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 16/10; background: var(--line-soft); }
.svc-hero .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.svc-hero__facts b { color: var(--ink); }

/* связанные услуги */
.rel { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 100px 0; }
.err .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -0.04em; color: var(--red); line-height: 1; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .nav ul { gap: 18px; }
  .header__phone span { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__badge { left: 12px; }
  .dir-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reviews { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .team { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__sticky { position: static; }
  .svc-hero { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero__photo { aspect-ratio: 4/3.4; }
  .hero__badge { position: static; max-width: none; margin-top: 14px; }
  .hero__lic { top: 12px; right: 12px; max-width: 180px; font-size: 11.5px; }
  .reviews, .art-grid, .doc-list, .geo-services { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc-list a { grid-template-columns: 40px 1fr auto; padding: 18px 4px; gap: 12px; }
  .svc-list .go { width: 38px; height: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .geo-media { flex-direction: column; }
  .geo-coat { flex: none; }
  .geo-gallery img { height: 110px; }
  .geo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .modal__panel { margin: 4vh 12px 0; }
  .cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; }
  /* быстрая панель */
  .qbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(250,248,243,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .qbar .btn { min-height: 48px; font-size: 14.5px; padding: 0 10px; }
  body { padding-bottom: 76px; }
  .footer { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* ---------- Яндекс Карты: рейтинг и карта ---------- */
.yarate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 28px 0;
}
.yarate__num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.yarate__stars { color: #F2A33C; font-size: 18px; letter-spacing: 3px; }
.yarate__meta { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.yarate__meta b { color: var(--ink); }
.yarate__act { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px){ .yarate__act { margin-left: 0; } }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 28px 0; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 640px){ .map-wrap iframe { height: 320px; } }

/* ---------- калькулятор стоимости ---------- */
.calc__intro { max-width: 720px; margin-bottom: 28px; }
.calc__intro h2 { margin-bottom: 12px; }
.calc__card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); padding: clamp(20px, 3.4vw, 36px); }
.calc__tabs { display: inline-flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.calc__tab { border: 0; background: transparent; border-radius: 999px; padding: 10px 22px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.calc__tab.is-active { background: var(--dark); color: #fff; }
.calc__panel { display: none; }
.calc__panel.is-active { display: block; }
.calc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.calc__row--2 { grid-template-columns: 1.1fr 1fr; }
.calc__field[hidden] { display: none; }
.calc__area { display: flex; align-items: center; gap: 14px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 16px; background: var(--bg); }
.calc__area input[type="range"] { flex: 1; accent-color: var(--red); cursor: pointer; }
.calc__area output { font-weight: 700; font-size: 15px; white-space: nowrap; min-width: 66px; text-align: right; }
.calc__result { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.calc__pricelabel { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.calc__price { display: block; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.calc__discount { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.calc__discount b { color: var(--red); }
.calc__note { margin: 8px 0 0; max-width: 480px; font-size: 13px; color: var(--ink-3); }
.calc__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .calc__row, .calc__row--2 { grid-template-columns: 1fr; }
  .calc__result { flex-direction: column; align-items: stretch; }
  .calc__cta .btn { flex: 1; }
}
@media (max-width: 520px) {
  .calc__tabs { display: flex; width: 100%; }
  .calc__tab { flex: 1; padding: 10px 8px; }
}

/* ---------- мега-меню «Услуги» ---------- */
@media (min-width: 1081px) {
  .nav .has-sub--mega { position: static; }
  .nav .sub--mega {
    left: 0; right: 0; top: 100%; min-width: 0; border-radius: 0 0 18px 18px;
    border-top: 0; padding: 20px clamp(18px, 4vw, 40px) 18px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 30px;
  }
  .sub--mega .sub__group > ul { display: block; list-style: none; margin: 0; padding: 0; }
  .sub--mega .sub__head {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--red-dark); padding: 8px 12px 6px; white-space: nowrap;
  }
  .sub--mega .sub__head::after { display: none; }
  .sub--mega .sub__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
  .sub--mega .sub__all a { font-weight: 600; color: var(--red-dark); }
}
/* мобильные группы-аккордеоны */
.m-group__t {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  padding: 13px 4px; font: 700 16.5px var(--font); color: var(--ink); text-align: left;
}
.m-group__t svg { transition: transform .25s; flex: none; }
.m-group.is-open .m-group__t svg { transform: rotate(180deg); }
.m-group__list { display: none; list-style: none; margin: 0; padding: 0 0 6px; }
.m-group.is-open .m-group__list { display: block; }
.m-group__list a { font-size: 15.5px !important; font-weight: 400 !important; padding-left: 18px !important; }
