/* MyHomePro — общие стили. Все классы с префиксом .mh, чтобы не конфликтовать с Tilda. */
:root {
  --mh-bg: #131312;
  --mh-surface: #1b1b19;
  --mh-raise: #252522;
  --mh-line: #33322d;
  --mh-line-strong: #4d4b44;
  --mh-text: #f0ebe3;
  --mh-text-2: #d6d0c6;          /* основной текст абзацев */
  --mh-muted: #aaa398;           /* вторичный текст, контраст 7:1 на фоне */
  --mh-accent: #c7a87a;          /* фирменный золотой из логотипа */
  --mh-accent-hi: #dcc199;
  --mh-on-accent: #17140f;
  --mh-paper: #f6f4ef;

  --mh-serif: "Cormorant Garamond", "Times New Roman", serif;
  --mh-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --mh-gutter: clamp(16px, 4vw, 56px);
  --mh-max: 1440px;
  --mh-section: clamp(80px, 11vw, 160px);
  --mh-ease: cubic-bezier(.22, .61, .36, 1);
  --mh-shadow-text: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .45);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mh-body, .mh-page {
  margin: 0;
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: var(--mh-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mh-page *, .mh-page *::before, .mh-page *::after { box-sizing: border-box; }
.mh-page img { display: block; max-width: 100%; height: auto; }
.mh-page a { color: inherit; }
.mh-page :focus-visible { outline: 2px solid var(--mh-accent-hi); outline-offset: 3px; }
.mh-page h1, .mh-page h2, .mh-page h3, .mh-page p, .mh-page ul, .mh-page ol, .mh-page figure, .mh-page dl, .mh-page dd, .mh-page blockquote { margin: 0; padding: 0; }
.mh-page ul, .mh-page ol { list-style: none; }
.mh-page button { font: inherit; color: inherit; }

.mh-wrap { width: 100%; max-width: var(--mh-max); margin: 0 auto; padding: 0 var(--mh-gutter); }
.mh-section { padding: var(--mh-section) 0; position: relative; }
.mh-section--tight { padding-top: 0; }
.mh-section--surface { background: var(--mh-surface); }
.mh-section--divide { border-top: 1px solid var(--mh-line); }

/* ---------- Типографика ---------- */
.mh-h2 {
  font-family: var(--mh-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  max-width: 18ch;
}
.mh-h3 {
  font-family: var(--mh-serif);
  font-weight: 500;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.18;
}
.mh-lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--mh-text-2); max-width: 52ch; line-height: 1.6; }
.mh-small { font-size: 14px; color: var(--mh-muted); line-height: 1.5; }
.mh-muted { color: var(--mh-muted); }

/* Шапка раздела: заголовок слева, пояснение справа */
.mh-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 56px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 900px) { .mh-head { grid-template-columns: 7fr 5fr; } }

.mh-list { display: grid; gap: 10px; }
.mh-list li { position: relative; padding-left: 22px; color: var(--mh-text-2); }
.mh-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--mh-accent); }

/* ---------- Кнопки ---------- */
.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 600 15px/1.2 var(--mh-sans); letter-spacing: .01em; text-align: center;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color .25s var(--mh-ease), color .25s var(--mh-ease), border-color .25s var(--mh-ease);
}
.mh-btn--primary { background: var(--mh-accent); color: var(--mh-on-accent); }
.mh-btn--primary:hover { background: var(--mh-accent-hi); }
.mh-btn--ghost { border-color: var(--mh-line-strong); color: var(--mh-text); background: transparent; }
.mh-btn--ghost:hover { border-color: var(--mh-text); }
/* Вторичная кнопка поверх фото: плотная подложка, чтобы текст не терялся */
.mh-btn--light { background: rgba(19, 19, 18, .62); color: #fff; border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mh-btn--light:hover { background: rgba(19, 19, 18, .8); border-color: #fff; }
.mh-btn--block { width: 100%; }
.mh-link {
  color: var(--mh-text); text-decoration: none; border-bottom: 1px solid var(--mh-line-strong);
  padding-bottom: 2px; transition: border-color .2s;
}
.mh-link:hover { border-color: var(--mh-accent); }

/* ---------- Шапка ---------- */
.mh-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  background: linear-gradient(180deg, rgba(10, 10, 9, .7), rgba(10, 10, 9, 0));
  border-bottom: 1px solid transparent;
}
/* Без плавного перехода: при прокрутке текст под шапкой не просвечивает ни на мгновение */
.mh-header.is-solid { background: var(--mh-bg); border-color: var(--mh-line); }
.mh-header__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.mh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--mh-text); flex: none; }
.mh-logo svg { width: 54px; height: 36px; }
.mh-logo__word { font: 600 14px/1.15 var(--mh-sans); letter-spacing: .12em; }
.mh-logo__word small { display: block; font-weight: 500; letter-spacing: .02em; color: var(--mh-text-2); font-size: 13px; margin-top: 4px; }
.mh-nav { display: none; gap: 28px; margin-left: auto; }
.mh-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--mh-text); opacity: .86; transition: opacity .2s, color .2s; }
.mh-nav a:hover, .mh-nav a.is-active { opacity: 1; color: var(--mh-accent-hi); }
.mh-header__phone { display: none; font-size: 15px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.mh-header__cta { display: none; min-height: 44px; padding: 0 20px; }
.mh-burger {
  margin-left: auto; width: 48px; height: 48px; border: 0; background: none; color: var(--mh-text);
  display: grid; place-items: center; cursor: pointer;
}
.mh-burger span { display: block; width: 24px; height: 2px; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; transition: .3s var(--mh-ease); }
.mh-burger[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); }
.mh-burger[aria-expanded="true"] span::after { content: ""; display: block; width: 24px; height: 2px; background: currentColor; transform: rotate(-90deg); }
@media (min-width: 1100px) {
  .mh-nav { display: flex; }
  .mh-header__phone { display: block; }
  .mh-header__cta { display: inline-flex; }
  .mh-burger { display: none; }
}

/* Мобильное меню */
.mh-menu {
  position: fixed; inset: 0; z-index: 890; background: var(--mh-bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 96px var(--mh-gutter) calc(24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .3s var(--mh-ease), visibility .3s;
}
.mh-menu.is-open { opacity: 1; visibility: visible; }
.mh-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--mh-line); }
.mh-menu nav a { font: 600 22px/1.2 var(--mh-sans); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--mh-line); }
.mh-menu__foot { display: grid; gap: 12px; margin-top: 28px; }

/* ---------- Прогресс по разделам ---------- */
.mh-progress {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 800;
  display: none; flex-direction: column; gap: 12px; padding: 10px 4px; border-radius: 12px;
  background: rgba(19, 19, 18, .72);
}
.mh-progress a { position: relative; display: block; width: 16px; height: 16px; }
.mh-progress a::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--mh-muted); transform: translate(-50%, -50%); transition: .3s var(--mh-ease);
}
.mh-progress a.is-active::before { background: var(--mh-accent); width: 8px; height: 8px; }
.mh-progress a span {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: 13px; color: var(--mh-text); opacity: 0; pointer-events: none; transition: opacity .2s;
  background: var(--mh-raise); padding: 4px 10px; border-radius: 2px;
}
.mh-progress a:hover span, .mh-progress a:focus-visible span { opacity: 1; }
.mh-progress.is-hidden { opacity: 0; pointer-events: none; }
/* Точки показываем только там, где справа есть свободное поле и они не лезут на контент */
@media (min-width: 1560px) { .mh-progress { display: flex; transition: opacity .3s; } }
.mh-progressbar {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 950;
  background: var(--mh-accent); transform-origin: 0 50%; transform: scaleX(0);
}
@media (min-width: 1560px) { .mh-progressbar { display: none; } }

/* ---------- Плавающая кнопка связи ---------- */
.mh-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 850; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mh-fab__toggle {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--mh-accent); color: var(--mh-on-accent); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: background-color .2s;
}
.mh-fab__toggle:hover { background: var(--mh-accent-hi); }
.mh-fab__toggle svg { width: 24px; height: 24px; transition: transform .3s var(--mh-ease); }
.mh-fab.is-open .mh-fab__toggle svg { transform: rotate(45deg); }
.mh-fab__list { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.mh-fab__list a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 28px;
  background: var(--mh-raise); border: 1px solid var(--mh-line-strong); text-decoration: none; font-size: 15px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--mh-ease), transform .25s var(--mh-ease), visibility .25s, border-color .2s;
}
.mh-fab__list a:hover { border-color: var(--mh-accent); }
.mh-fab__list svg { width: 20px; height: 20px; color: var(--mh-accent); }
.mh-fab.is-open .mh-fab__list a { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (max-width: 599px) { .mh-fab__toggle { width: 52px; height: 52px; } }

/* ---------- Hero ---------- */
.mh-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #0c0c0b; }
.mh-hero__media { position: absolute; inset: 0; }
.mh-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* Затемнение: плотное слева и снизу, где стоит текст */
.mh-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,9,.88) 0%, rgba(10,10,9,.7) 32%, rgba(10,10,9,.25) 62%, rgba(10,10,9,0) 80%),
    linear-gradient(180deg, rgba(10,10,9,.45) 0%, rgba(10,10,9,0) 18%, rgba(10,10,9,0) 50%, rgba(10,10,9,.75) 85%, var(--mh-bg) 100%);
}
@media (max-width: 899px) {
  .mh-hero__media img { object-position: 70% 50%; }
  .mh-hero__media::after {
    background: linear-gradient(180deg, rgba(10,10,9,.55) 0%, rgba(10,10,9,.35) 30%, rgba(10,10,9,.78) 58%, rgba(10,10,9,.94) 80%, var(--mh-bg) 100%);
  }
}
.mh-hero__in { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 96px); }
.mh-hero__title {
  font-family: var(--mh-serif); font-weight: 500;
  font-size: clamp(42px, 6vw, 92px); line-height: 1.02; letter-spacing: -.005em;
  max-width: 14ch; color: #fff; text-shadow: var(--mh-shadow-text);
}
.mh-hero__lead {
  margin-top: clamp(20px, 2.4vw, 32px); max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: #f3efe8; text-shadow: var(--mh-shadow-text);
}
.mh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 599px) { .mh-hero__actions .mh-btn { flex: 1 1 100%; } }

/* ---------- Цифры ---------- */
.mh-facts-wrap { padding: clamp(40px, 5vw, 64px) 0 var(--mh-section); }
.mh-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--mh-line); }
.mh-fact { padding: 28px 16px 28px 0; border-bottom: 1px solid var(--mh-line); }
.mh-fact:nth-child(odd) { border-right: 1px solid var(--mh-line); }
.mh-fact:nth-child(even) { padding-left: 16px; }
.mh-fact b { display: block; font: 500 clamp(48px, 5.6vw, 80px)/1 var(--mh-serif); color: var(--mh-accent); font-variant-numeric: lining-nums; }
.mh-fact span { display: block; margin-top: 10px; font-size: 15px; color: var(--mh-text-2); max-width: 24ch; }
@media (min-width: 900px) {
  .mh-facts { grid-template-columns: repeat(4, 1fr); }
  .mh-fact, .mh-fact:nth-child(even) { padding: 36px 24px 36px 0; border-right: 1px solid var(--mh-line); }
  .mh-fact:not(:first-child) { padding-left: 24px; }
  .mh-fact:last-child { border-right: 0; }
}

/* ---------- Портфолио ---------- */
.mh-filters { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 16px; }
.mh-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mh-filter > span { font-size: 14px; color: var(--mh-muted); margin-right: 6px; min-width: 64px; }
.mh-chip {
  min-height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid var(--mh-line-strong);
  background: transparent; color: var(--mh-text); font: 500 14px/1 var(--mh-sans); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.mh-chip:hover { border-color: var(--mh-text); }
.mh-chip[aria-pressed="true"] { background: var(--mh-text); color: var(--mh-bg); border-color: var(--mh-text); }
.mh-works__count { margin-bottom: 32px; min-height: 1.5em; }

.mh-works { display: grid; gap: clamp(40px, 4vw, 56px) clamp(16px, 2vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .mh-works { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .mh-works { grid-template-columns: repeat(3, 1fr); } }
/* На телефоне сначала 4 проекта, остальные по кнопке «Показать ещё» */
.mh-works__more { display: none; }
@media (max-width: 899px) {
  .mh-works.is-collapsed > .mh-work:nth-child(n+5) { display: none; }
  .mh-works.is-collapsed + .mh-works__more { display: flex; margin-top: 32px; }
}
.mh-work { text-decoration: none; display: block; }
.mh-work[hidden] { display: none; }
.mh-work__img { position: relative; overflow: hidden; background: var(--mh-surface); aspect-ratio: 3 / 2; }
.mh-work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--mh-ease); }
.mh-work__more {
  position: absolute; left: 20px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center;
  padding: 12px 18px; background: var(--mh-bg); color: var(--mh-text); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--mh-ease), transform .4s var(--mh-ease);
}
.mh-work__meta { padding-top: 18px; display: grid; gap: 10px; justify-items: start; }
.mh-work__meta .mh-h3 { transition: color .3s; }
.mh-work__specs { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--mh-text-2); }
@media (hover: hover) {
  .mh-work:hover .mh-work__img img { transform: scale(1.03); }
  .mh-work:hover .mh-work__more { opacity: 1; transform: none; }
  .mh-work:hover .mh-h3 { color: var(--mh-accent-hi); }
}
.mh-status {
  display: inline-block; font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 2px;
  border: 1px solid currentColor;
}
.mh-status.is-build { color: var(--mh-accent); }
.mh-status.is-ready { color: #9cc7a4; }
.mh-status.is-sketch { color: var(--mh-text-2); }
.mh-works__empty { padding: 48px 0; color: var(--mh-text-2); }
.mh-works__foot {
  margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--mh-line-strong);
}
@media (min-width: 900px) { .mh-works__foot { grid-template-columns: 1fr auto; } }

/* ---------- Разделы проекта ---------- */
.mh-services { display: grid; gap: 40px; }
@media (min-width: 1000px) { .mh-services { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; } .mh-paper { position: sticky; top: 108px; } }
.mh-paper button { display: block; width: 100%; padding: clamp(10px, 1.6vw, 20px); border: 0; background: var(--mh-paper); cursor: zoom-in; }
.mh-paper img { width: 100%; }
.mh-paper figcaption { margin-top: 14px; font-size: 14px; color: var(--mh-muted); }
.mh-parts { border-top: 1px solid var(--mh-line); }
.mh-part {
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--mh-line);
  align-items: baseline;
}
.mh-part b { font: 500 22px/1 var(--mh-serif); color: var(--mh-accent); }
.mh-part h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.mh-part p { grid-column: 2; color: var(--mh-muted); font-size: 15px; line-height: 1.5; }

/* ---------- Этапы ---------- */
.mh-steps-wrap { display: grid; gap: 48px; }
@media (min-width: 1000px) { .mh-steps-wrap { grid-template-columns: 5fr 7fr; gap: 80px; } .mh-steps-aside { position: sticky; top: 120px; align-self: start; } }
/* .mh-page ol обнуляет отступы, поэтому селектор усилен: иначе линия уезжает на текст */
.mh-page .mh-steps { position: relative; padding-left: 60px; }
.mh-steps::before, .mh-steps__fill {
  content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px; background: var(--mh-line-strong);
}
.mh-steps__fill { background: var(--mh-accent); transform-origin: 50% 0; transform: scaleY(1); list-style: none; }
.mh-step { position: relative; padding-bottom: clamp(40px, 5vw, 64px); }
.mh-step:last-child { padding-bottom: 0; }
.mh-step__n {
  position: absolute; left: -60px; top: 0; width: 33px; height: 33px; border-radius: 50%;
  display: grid; place-items: center; font: 600 14px/1 var(--mh-sans); font-variant-numeric: tabular-nums;
  background: var(--mh-bg); border: 1px solid var(--mh-accent); color: var(--mh-accent);
  transition: background-color .4s var(--mh-ease), color .4s var(--mh-ease);
}
.mh-step.is-on .mh-step__n { background: var(--mh-accent); color: var(--mh-on-accent); }
.mh-step h3 { margin-bottom: 10px; }
.mh-step p { color: var(--mh-text-2); max-width: 50ch; }
.mh-step__time { display: inline-block; margin-top: 14px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--mh-accent); border: 1px solid var(--mh-accent); border-radius: 2px; }
.mh-term { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mh-line); }
.mh-term b { display: block; font: 500 clamp(52px, 5.6vw, 80px)/1.05 var(--mh-serif); color: var(--mh-accent); margin-bottom: 12px; }

/* ---------- Полноширинная вставка: подпись под фото, а не поверх ---------- */
.mh-band { margin: 0; background: var(--mh-bg); }
.mh-band__img { position: relative; height: clamp(320px, 58vw, 820px); overflow: hidden; }
.mh-band__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-band__cap { padding-top: 16px; padding-bottom: 16px; font-size: 14px; color: var(--mh-muted); }

/* ---------- Страхи ---------- */
.mh-fears { border-top: 1px solid var(--mh-line); }
.mh-fear { border-bottom: 1px solid var(--mh-line); }
.mh-fear summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 34px; gap: 24px; align-items: start;
  padding: 26px 0; font: 600 clamp(18px, 1.7vw, 22px)/1.4 var(--mh-sans);
}
.mh-fear summary::-webkit-details-marker { display: none; }
.mh-fear summary i { position: relative; width: 34px; height: 34px; margin-top: 2px; border: 1px solid var(--mh-line-strong); border-radius: 50%; }
.mh-fear summary i::before, .mh-fear summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--mh-text); transform: translate(-50%, -50%); transition: transform .3s var(--mh-ease); }
.mh-fear summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.mh-fear[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.mh-fear__body { display: grid; gap: 12px; padding: 0 0 30px; }
.mh-fear__body p { color: var(--mh-text-2); max-width: 64ch; }
.mh-fear__body strong { color: var(--mh-text); font-weight: 600; }
@media (min-width: 900px) { .mh-fear__body { grid-template-columns: 170px 1fr; gap: 24px; padding-right: 58px; } }
.mh-fear__tag { font-size: 14px; font-weight: 600; color: var(--mh-accent); padding-top: 3px; }

.mh-guarantees { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); }
.mh-guarantee { background: var(--mh-surface); padding: 30px 26px; }
.mh-guarantee h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.mh-guarantee p { color: var(--mh-text-2); font-size: 15px; line-height: 1.55; }
@media (min-width: 700px) { .mh-guarantees { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mh-guarantees { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Почему индивидуальный / сравнение ---------- */
.mh-split { display: grid; gap: 48px; }
@media (min-width: 1000px) { .mh-split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.mh-figure { position: relative; overflow: hidden; background: var(--mh-surface); }
.mh-figure img { width: 100%; height: 100%; object-fit: cover; }
.mh-figure--tall { aspect-ratio: 4 / 5; }
.mh-split figcaption { margin-top: 12px; font-size: 14px; color: var(--mh-muted); }
.mh-reasons { border-top: 1px solid var(--mh-line); margin-top: 40px; }
.mh-reason { padding: 26px 0; border-bottom: 1px solid var(--mh-line); }
.mh-reason h3 { margin-bottom: 10px; }
.mh-reason p { color: var(--mh-text-2); max-width: 56ch; }
.mh-save { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.mh-save b { font: 500 clamp(60px, 7vw, 100px)/.9 var(--mh-serif); color: var(--mh-accent); }

.mh-compare { margin-top: clamp(72px, 9vw, 128px); }
.mh-compare__grid { display: grid; border-top: 1px solid var(--mh-line); }
.mh-compare__row { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--mh-line); }
.mh-compare__row h3 { font-size: 18px; font-weight: 600; }
.mh-compare__row p { color: var(--mh-muted); font-size: 15px; max-width: 58ch; }
.mh-compare__row p + p { color: var(--mh-text); }
.mh-compare__row p + p::before { content: "У нас: "; color: var(--mh-accent); font-weight: 600; }
.mh-compare__th { display: none; }
@media (min-width: 900px) {
  .mh-compare__row { grid-template-columns: 3fr 5fr 4fr; gap: 40px; }
  .mh-compare__row p + p::before { content: none; }
  .mh-compare__th { display: grid; padding: 0 0 14px; border: 0; font-size: 14px; color: var(--mh-muted); }
  .mh-compare__th span:last-child { color: var(--mh-accent); font-weight: 600; }
}

/* ---------- Пакеты и цены ---------- */
.mh-plans { display: grid; gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); }
@media (min-width: 760px) { .mh-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mh-plans { grid-template-columns: repeat(3, 1fr); } }
.mh-plan { background: var(--mh-surface); padding: 34px 26px 30px; display: flex; flex-direction: column; gap: 18px; }
.mh-plan--key { background: var(--mh-raise); }
.mh-plan__badge { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--mh-accent); border: 1px solid var(--mh-accent); padding: 5px 10px; border-radius: 2px; }
.mh-plan h3 { min-height: 2.4em; }
.mh-plan__price { font: 500 clamp(38px, 3.4vw, 48px)/1 var(--mh-serif); font-variant-numeric: lining-nums; }
.mh-plan__price small { display: block; font: 400 14px/1.45 var(--mh-sans); color: var(--mh-muted); margin-top: 8px; }
.mh-plan ul { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--mh-line); flex: 1; }
.mh-plan li { position: relative; padding-left: 20px; font-size: 15px; color: var(--mh-text-2); line-height: 1.45; }
.mh-plan li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 1px; background: var(--mh-accent); }
.mh-plans__note { margin-top: 28px; display: grid; gap: 20px; align-items: center; color: var(--mh-text-2); font-size: 15px; }
@media (min-width: 900px) { .mh-plans__note { grid-template-columns: 1fr auto; } }

/* ---------- Команда ---------- */
.mh-chief { display: grid; gap: 40px; margin-bottom: clamp(72px, 9vw, 128px); }
@media (min-width: 900px) { .mh-chief { grid-template-columns: 5fr 7fr; gap: 80px; align-items: end; } }
.mh-chief__quote { font: 400 clamp(19px, 1.6vw, 23px)/1.6 var(--mh-sans); }
.mh-chief__name { margin-top: 28px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.mh-chief__name b { font-size: 19px; font-weight: 600; }
.mh-chief__edu { margin-top: 10px; font-size: 15px; color: var(--mh-text-2); max-width: 56ch; }
.mh-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
@media (min-width: 700px) { .mh-team { grid-template-columns: repeat(3, 1fr); gap: 44px 24px; } }
@media (min-width: 1100px) { .mh-team { grid-template-columns: repeat(4, 1fr); } }
.mh-person__photo { aspect-ratio: 4 / 5; background: var(--mh-surface); margin-bottom: 16px; overflow: hidden; }
.mh-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.mh-person b { display: block; font-size: 18px; font-weight: 600; }
.mh-person span { display: block; font-size: 15px; color: var(--mh-accent); margin-top: 2px; }
.mh-person small { display: block; margin-top: 8px; font-size: 14px; color: var(--mh-muted); line-height: 1.5; }

/* ---------- Строятся сейчас (лента) ---------- */
.mh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 480px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--mh-line-strong) transparent; }
.mh-rail > * { scroll-snap-align: start; }
.mh-built { text-decoration: none; display: block; }
.mh-built__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mh-bg); }
.mh-built__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--mh-ease); }
.mh-built:hover .mh-built__img img { transform: scale(1.03); }
.mh-built__cap { display: grid; gap: 2px; margin-top: 14px; }
.mh-built__cap b { font: 600 17px/1.35 var(--mh-sans); }
.mh-built__cap span { font-size: 14px; color: var(--mh-muted); }
.mh-rail-nav { display: flex; gap: 8px; }
.mh-rail-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--mh-line-strong); background: none; color: var(--mh-text);
  cursor: pointer; display: grid; place-items: center; transition: border-color .2s;
}
.mh-rail-nav button:hover { border-color: var(--mh-text); }
.mh-rail-nav svg { width: 18px; height: 18px; }

/* ---------- Документы и отзывы ---------- */
.mh-docs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 700px) { .mh-docs__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .mh-docs__grid { grid-template-columns: repeat(5, 1fr); gap: 32px 20px; } }
.mh-doc { border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; width: 100%; }
.mh-doc__img { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mh-paper); padding: 8px; transition: outline-color .2s; outline: 1px solid transparent; }
.mh-doc__img img { max-height: 100%; width: auto; object-fit: contain; }
.mh-doc:hover .mh-doc__img { outline-color: var(--mh-accent); }
.mh-doc__cap { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--mh-text-2); }

.mh-reviews-wrap { margin-top: clamp(72px, 9vw, 128px); }
.mh-reviews { display: grid; gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); }
@media (min-width: 900px) { .mh-reviews { grid-template-columns: repeat(3, 1fr); } }
/* На телефоне отзывы листаются вбок */
@media (max-width: 899px) {
  .mh-reviews {
    display: flex; gap: 12px; background: none; border: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--mh-gutter) * -1); padding: 0 var(--mh-gutter) 8px; scroll-padding: 0 var(--mh-gutter);
    scrollbar-width: none;
  }
  .mh-reviews::-webkit-scrollbar { display: none; }
  .mh-reviews .mh-review { flex: 0 0 86%; scroll-snap-align: start; border: 1px solid var(--mh-line); }
}
.mh-reviews__hint { display: none; }
@media (max-width: 899px) { .mh-reviews__hint { display: block; margin-top: 12px; } }
.mh-review { background: var(--mh-bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 24px; }
.mh-review blockquote { font: 400 16px/1.65 var(--mh-sans); flex: 1; color: var(--mh-text-2); }
.mh-review footer { font-size: 14px; color: var(--mh-muted); }
.mh-review footer b { display: block; color: var(--mh-text); font-weight: 600; font-size: 15px; }

/* Лайтбокс */
.mh-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.mh-lightbox::backdrop { background: rgba(8, 8, 7, .94); }
.mh-lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; margin: 0 auto; background: #fff; }
.mh-lightbox__cap { margin-top: 12px; text-align: center; color: var(--mh-text); font-size: 15px; }
.mh-lightbox__close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--mh-line-strong);
  background: var(--mh-bg); color: var(--mh-text); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- Формы ---------- */
.mh-cta { display: grid; gap: 48px; }
@media (min-width: 1000px) { .mh-cta { grid-template-columns: 5fr 7fr; gap: 80px; } }
.mh-sample { display: grid; gap: 22px; align-content: start; padding: clamp(24px, 3vw, 40px); background: var(--mh-bg); border: 1px solid var(--mh-line); }
.mh-sample__cover { background: var(--mh-paper); padding: 10px; }
.mh-form { display: grid; gap: 16px; }
.mh-field { display: grid; gap: 8px; }
.mh-field label { font-size: 14px; font-weight: 500; color: var(--mh-text-2); }
.mh-field input, .mh-field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 2px;
  background: var(--mh-bg); border: 1px solid var(--mh-line-strong); color: var(--mh-text);
  font: 400 17px/1.3 var(--mh-sans); transition: border-color .2s;
}
.mh-field textarea { min-height: 110px; resize: vertical; }
.mh-field input:focus, .mh-field textarea:focus { outline: none; border-color: var(--mh-accent); }
.mh-field input::placeholder, .mh-field textarea::placeholder { color: #807a70; }
.mh-field.is-error input { border-color: #e0907f; }
.mh-field__err { font-size: 14px; color: #f0a594; display: none; }
.mh-field.is-error .mh-field__err { display: block; }
.mh-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14px; color: var(--mh-muted); line-height: 1.5; cursor: pointer; }
.mh-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mh-accent); }
.mh-consent a { color: var(--mh-text); }
.mh-form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .mh-form__row { grid-template-columns: 1fr 1fr; } }
.mh-form__ok { display: none; padding: 22px; border: 1px solid var(--mh-accent); color: var(--mh-text); }
.mh-form.is-sent > :not(.mh-form__ok) { display: none; }
.mh-form.is-sent .mh-form__ok { display: block; }
.mh-contacts { display: grid; gap: 0; margin-top: 24px; justify-items: start; }
.mh-contacts a { font: 600 clamp(20px, 1.8vw, 24px)/1.4 var(--mh-sans); text-decoration: none; padding: 8px 0; }
.mh-contacts a:hover { color: var(--mh-accent-hi); }
.mh-messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Попап */
.mh-modal { padding: 0; width: min(560px, 100vw); max-width: 100vw; max-height: 100dvh; background: var(--mh-bg); color: var(--mh-text); border: 1px solid var(--mh-line); }
.mh-modal::backdrop { background: rgba(8, 8, 7, .82); }
.mh-modal__in { padding: clamp(28px, 5vw, 48px); display: grid; gap: 18px; }
.mh-modal__close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none; color: var(--mh-text); font-size: 28px; cursor: pointer; }
@media (max-width: 599px) { .mh-modal { margin: auto 0 0; width: 100vw; } }

/* ---------- Подвал ---------- */
.mh-footer { border-top: 1px solid var(--mh-line); padding: 64px 0 calc(100px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--mh-text-2); }
.mh-footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .mh-footer__grid { grid-template-columns: 4fr 3fr 3fr 3fr; } }
.mh-footer__logo { display: inline-block; color: var(--mh-text); }
.mh-footer__logo svg { width: 150px; height: auto; }
.mh-footer h3 { font: 600 15px/1.4 var(--mh-sans); color: var(--mh-text); margin-bottom: 14px; }
.mh-footer ul { display: grid; gap: 0; }
.mh-footer a { text-decoration: none; }
/* Зона нажатия ссылок подвала не меньше 44 px по высоте */
.mh-footer ul a, .mh-footer__bottom a { display: inline-block; padding: 10px 0; }
.mh-footer h3 { margin-bottom: 4px; }
.mh-footer__bottom { align-items: center; }
.mh-footer a:hover { color: var(--mh-accent-hi); }
.mh-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--mh-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mh-muted); font-size: 14px; }

/* ---------- Страница проекта ---------- */
.mh-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--mh-text); }
.mh-back svg { width: 18px; height: 18px; transition: transform .25s var(--mh-ease); }
.mh-back:hover svg { transform: translateX(-4px); }
.mh-pj-hero { position: relative; height: min(86svh, 880px); min-height: 540px; overflow: hidden; display: flex; align-items: flex-end; background: #0c0c0b; }
.mh-pj-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-pj-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,.5) 0%, rgba(10,10,9,0) 22%, rgba(10,10,9,0) 40%, rgba(10,10,9,.8) 75%, rgba(10,10,9,.95) 100%);
}
.mh-pj-hero__in { position: relative; z-index: 1; padding-bottom: clamp(32px, 5vw, 64px); }
.mh-pj-hero .mh-back { padding: 0 14px; background: rgba(19, 19, 18, .7); border-radius: 2px; }
.mh-pj-title { font: 500 clamp(38px, 5.4vw, 80px)/1.04 var(--mh-serif); max-width: 18ch; margin-top: 18px; color: #fff; text-shadow: var(--mh-shadow-text); }
.mh-pj-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; font-size: 16px; color: #f3efe8; text-shadow: var(--mh-shadow-text); }
.mh-pj-sub .mh-status { text-shadow: none; background: rgba(19, 19, 18, .7); }
.mh-pj-intro { padding-top: clamp(48px, 6vw, 88px); }
.mh-pj-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .mh-pj-grid { grid-template-columns: 4fr 8fr; gap: 80px; } .mh-pj-specs { position: sticky; top: 108px; align-self: start; } }
.mh-pj-specs { border-top: 1px solid var(--mh-line); }
.mh-pj-specs div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--mh-line); }
.mh-pj-specs dt { font-size: 14px; color: var(--mh-muted); }
.mh-pj-specs dd { font-size: 15px; font-weight: 500; }
.mh-pj-text { display: grid; gap: 18px; max-width: 66ch; }
.mh-pj-text p { color: var(--mh-text-2); line-height: 1.75; }
.mh-pj-text .mh-pj-lead { font: 500 clamp(18px, 1.5vw, 21px)/1.6 var(--mh-sans); color: var(--mh-text); }
.mh-pj-text .mh-hero__actions { margin-top: 16px; }
.mh-gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .mh-gallery { grid-template-columns: repeat(2, 1fr); } .mh-gallery > :nth-child(3n+1) { grid-column: 1 / -1; } }
.mh-gallery button { border: 0; padding: 0; background: var(--mh-surface); cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.mh-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--mh-ease); }
@media (hover: hover) { .mh-gallery button:hover img { transform: scale(1.02); } }
.mh-sheets { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mh-sheets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mh-sheets { grid-template-columns: repeat(3, 1fr); } }
.mh-sheet button { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 10px; border: 0; background: var(--mh-paper); cursor: zoom-in; outline: 1px solid transparent; transition: outline-color .2s; }
.mh-sheet button:hover { outline-color: var(--mh-accent); }
.mh-sheet img { max-height: 100%; width: auto; object-fit: contain; }
.mh-sheet figcaption { margin-top: 10px; font-size: 15px; color: var(--mh-text-2); }
.mh-pj-cta { display: grid; gap: 20px; justify-items: start; }
.mh-pj-nav { display: grid; gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); }
@media (min-width: 800px) { .mh-pj-nav { grid-template-columns: 1fr 1fr; } }
.mh-pj-nav a { background: var(--mh-bg); padding: 30px 26px; text-decoration: none; display: grid; gap: 8px; transition: background-color .3s; }
.mh-pj-nav a:hover { background: var(--mh-surface); }
@media (min-width: 800px) { .mh-pj-nav a:last-child { text-align: right; } }
.mh-pj-backall { margin-top: 28px; text-align: center; }

/* ---------- Каталог ---------- */
.mh-catalog-hero { padding-top: 150px; }
.mh-catalog-hero .mh-pj-title { color: var(--mh-text); text-shadow: none; margin-top: 0; }
.mh-catalog-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .mh-catalog-grid { grid-template-columns: repeat(4, 1fr); } }
.mh-catalog-grid img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.mh-catalog-grid figure { overflow: hidden; }
.mh-catalog-grid figure.is-locked img { filter: blur(8px) brightness(.55); transform: scale(1.08); }

/* ---------- Плашка каталога после портфолио ---------- */
.mh-catalog-cta { margin-top: clamp(56px, 7vw, 96px); display: grid; background: var(--mh-surface); border: 1px solid var(--mh-line-strong); }
.mh-catalog-cta__img { overflow: hidden; background: var(--mh-raise); }
.mh-catalog-cta__img img { width: 100%; height: 100%; object-fit: cover; }
.mh-catalog-cta__body { display: grid; gap: 16px; align-content: center; padding: clamp(24px, 3vw, 44px); }
@media (min-width: 1000px) { .mh-catalog-cta { grid-template-columns: 7fr 5fr; } }
.mh-sample__photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mh-raise); }
.mh-sample__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Разделы проекта: список справа, пример слева ---------- */
.mh-svc { border-top: 1px solid var(--mh-line); }
.mh-svc__tab {
  position: relative; display: grid; gap: 4px; width: 100%; padding: 20px 48px 20px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--mh-line); cursor: pointer; color: var(--mh-text);
}
.mh-svc__tab::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 1.5px solid var(--mh-muted); border-bottom: 1.5px solid var(--mh-muted); transform: rotate(45deg); transition: transform .3s var(--mh-ease);
}
.mh-svc__item.is-active .mh-svc__tab::after { transform: rotate(-135deg); border-color: var(--mh-accent); margin-top: -3px; }
.mh-svc__name { font-size: 18px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.mh-svc__short { font-size: 15px; color: var(--mh-muted); line-height: 1.5; }
.mh-svc__tab:hover .mh-svc__name, .mh-svc__item.is-active .mh-svc__name { color: var(--mh-accent-hi); }
.mh-svc__panel { display: grid; gap: 24px; padding: 4px 0 32px; }
.mh-svc__panel[hidden] { display: none; }
.mh-svc__panel > .mh-svc__text > .mh-h3 { display: none; }
.mh-svc__cover { position: relative; display: block; width: 100%; padding: 10px; border: 0; background: var(--mh-paper); cursor: zoom-in; }
.mh-svc__cover img { width: 100%; max-height: 520px; object-fit: contain; }
.mh-svc__badge { position: absolute; right: 18px; bottom: 18px; padding: 7px 12px; background: var(--mh-bg); color: var(--mh-text); font-size: 13px; font-weight: 600; border-radius: 2px; }
.mh-svc__text { display: grid; gap: 14px; justify-items: start; }
.mh-svc__text p { color: var(--mh-text-2); max-width: 62ch; }
.mh-svc__lead { color: var(--mh-accent) !important; font-weight: 600; }
.mh-svc__sub { margin-top: 6px; font-weight: 600; color: var(--mh-text) !important; }
.mh-svc__text .mh-btn { margin-top: 10px; }
.mh-steps-mini { display: grid; gap: 12px; counter-reset: mhstep; }
.mh-steps-mini li { position: relative; padding-left: 42px; color: var(--mh-text-2); counter-increment: mhstep; }
.mh-steps-mini li::before {
  content: counter(mhstep); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--mh-accent); color: var(--mh-accent); font-size: 13px; font-weight: 600;
}
@media (min-width: 1000px) {
  .mh-svc { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: repeat(6, auto) 1fr; column-gap: 64px; border-top: 0; }
  .mh-svc__item { display: contents; }
  .mh-svc__tab { grid-column: 2; padding: 20px 48px 20px 24px; border-left: 2px solid transparent; transition: background-color .2s, border-color .2s; }
  .mh-svc__item:first-child .mh-svc__tab { border-top: 1px solid var(--mh-line); }
  .mh-svc__item.is-active .mh-svc__tab { background: var(--mh-raise); border-left-color: var(--mh-accent); }
  .mh-svc__tab::after { transform: rotate(-45deg); margin-top: -7px; }
  .mh-svc__item.is-active .mh-svc__tab::after { transform: rotate(-45deg); margin-top: -7px; }
  .mh-svc__panel { grid-column: 1; grid-row: 1 / span 7; align-self: start; padding: 0; }
  .mh-svc__panel > .mh-svc__text > .mh-h3 { display: block; }
}

/* Мини-превью сметы вместо обложки */
.mh-svc__cover--doc { cursor: pointer; }
.mh-smeta-mini { display: block; padding: 18px 20px 56px; color: #26241f; font-size: 14px; text-align: left; }
.mh-smeta-mini__head { display: block; font-weight: 700; font-size: 15px; padding-bottom: 10px; border-bottom: 2px solid #26241f; }
.mh-smeta-mini ul { display: grid; }
.mh-smeta-mini li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #d9d5cc; }
.mh-smeta-mini li b { white-space: nowrap; font-weight: 600; }
.mh-smeta-mini li.is-more { color: #77736a; }
.mh-smeta-mini__total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 700; font-size: 16px; }

/* ---------- Просмотрщик примеров ---------- */
.mh-viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0c0c0b; color: var(--mh-text); overflow: hidden;
}
.mh-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
@media (max-width: 599px) { .mh-viewer__title { font-size: 14px; } .mh-viewer__count { font-size: 13px; } .mh-viewer__bar { gap: 8px; } }
.mh-viewer::backdrop { background: #0c0c0b; }
.mh-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 10px clamp(12px, 2vw, 24px); border-bottom: 1px solid var(--mh-line); background: var(--mh-bg); }
.mh-viewer__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-viewer__count { font-size: 14px; color: var(--mh-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh-viewer__btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--mh-line-strong); color: var(--mh-text); transition: border-color .2s;
}
.mh-viewer__btn:hover { border-color: var(--mh-text); }
.mh-viewer__btn svg { width: 20px; height: 20px; }
.mh-viewer__btn[aria-pressed="true"] { border-color: var(--mh-accent); color: var(--mh-accent); }
.mh-viewer__stage { position: relative; overflow: auto; display: grid; place-items: center; padding: 12px; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.mh-viewer__stage img { max-width: 100%; max-height: calc(100dvh - 92px); width: auto; height: auto; background: #fff; cursor: zoom-in; }
.mh-viewer__stage.is-zoom { place-items: start; }
.mh-viewer__stage.is-zoom img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
@media (min-width: 1000px) { .mh-viewer__stage.is-zoom img { width: 160%; } }
.mh-viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mh-muted); font-size: 15px; pointer-events: none; }
.mh-viewer__stage.is-loaded .mh-viewer__loading { display: none; }
.mh-viewer__nav {
  position: fixed; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: rgba(19, 19, 18, .85); color: var(--mh-text);
  border: 1px solid var(--mh-line-strong); transition: border-color .2s, opacity .2s;
}
.mh-viewer__nav:hover { border-color: var(--mh-text); }
.mh-viewer__nav:disabled { opacity: .25; cursor: default; }
.mh-viewer__nav svg { width: 22px; height: 22px; }
.mh-viewer__nav--prev { left: clamp(8px, 2vw, 24px); }
.mh-viewer__nav--next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 599px) { .mh-viewer__nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 0; width: 48px; height: 48px; } }

/* Смета в просмотрщике */
.mh-smeta { overflow: auto; padding: 24px clamp(16px, 4vw, 48px) 48px; }
.mh-smeta > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.mh-smeta__head { display: grid; gap: 16px; padding-bottom: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--mh-line); }
@media (min-width: 800px) { .mh-smeta__head { grid-template-columns: 2fr 1fr 1fr; } }
.mh-smeta__head p:not(.mh-small) { font-weight: 600; margin-top: 4px; }
.mh-smeta__total { color: var(--mh-accent); font-size: 22px; }
.mh-smeta > .mh-small { margin-bottom: 16px; }
.mh-smeta__sec { border-bottom: 1px solid var(--mh-line); }
.mh-smeta__sec summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none; }
.mh-smeta__sec summary::-webkit-details-marker { display: none; }
.mh-smeta__sec summary b { white-space: nowrap; color: var(--mh-accent); }
.mh-smeta__sec[open] summary { color: var(--mh-accent-hi); }
.mh-smeta__scroll { overflow-x: auto; padding-bottom: 16px; }
.mh-smeta table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.mh-smeta th { text-align: left; font-weight: 600; color: var(--mh-muted); padding: 8px; border-bottom: 1px solid var(--mh-line-strong); }
.mh-smeta td { padding: 9px 8px; border-bottom: 1px solid var(--mh-line); color: var(--mh-text-2); vertical-align: top; }
.mh-smeta .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Рейтинг и отзывы ---------- */
.mh-rating { display: grid; gap: 16px 32px; align-items: center; padding: 28px clamp(20px, 3vw, 36px); margin-bottom: 24px; background: var(--mh-surface); border: 1px solid var(--mh-line); }
@media (min-width: 1000px) { .mh-rating { grid-template-columns: auto 1fr auto; } }
.mh-rating__score { display: flex; align-items: center; gap: 14px; }
.mh-rating__score b { font: 500 64px/1 var(--mh-serif); color: var(--mh-accent); }
.mh-rating__text { color: var(--mh-text-2); max-width: 46ch; }
.mh-rating__links { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-stars { color: var(--mh-accent); letter-spacing: 3px; font-size: 16px; line-height: 1; }
.mh-review .mh-stars { margin-bottom: -8px; }

/* ---------- Анимации ---------- */
.mh-js .mh-reveal { opacity: 0; transform: translateY(24px); }
.mh-parallax { overflow: hidden; }
.mh-parallax img { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .mh-js .mh-reveal { opacity: 1; transform: none; }
  .mh-page *, .mh-page *::before, .mh-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mh-cta__btn { margin-top: 32px; min-width: 260px; }


/* ================= Tilda ================= */
/* Фон страницы и сброс отступов блоков T123 */
body.t-body, .t-body { background: #131312 !important; }
.t-records .t123 .t-container_100, .t123 .t-container { padding: 0 !important; max-width: none !important; }

/* Всплывающие формы Tilda (блок «Форма в попапе», ссылки #popup:consult и #popup:catalog) */
.t-popup { background: rgba(8, 8, 7, .82) !important; }
/* В BF502N по умолчанию стоит картинка-заглушка Tilda: прячем её и ставим свою картинку дома */
.t702 .t702__img, .t702 .t702__img-wrapper { display: none !important; }
.t-popup .t-popup__container::before {
  content: ""; display: block; aspect-ratio: 16 / 7; margin: -1px -1px 0;
  background: #1b1b19 url("https://storage.yandexcloud.net/myhomepro-static/assets/img/p02/01-800.webp") center 60% / cover no-repeat;
}
.t-popup[data-tooltip-hook="#popup:catalog"] .t-popup__container::before {
  background-image: url("https://storage.yandexcloud.net/myhomepro-static/assets/img/catalog-collage-800.webp");
  background-position: center;
}
@media (max-width: 640px) { .t-popup .t-popup__container::before { aspect-ratio: 16 / 6; } }
.t-popup .t-popup__container {
  background: #131312 !important; color: #f0ebe3 !important; border: 1px solid #33322d !important;
  border-radius: 0 !important; font-family: "Manrope", Arial, sans-serif !important;
}
.t-popup .t-popup__container .t-title, .t-popup .t-popup__container .t-name {
  font-family: "Cormorant Garamond", serif !important; font-weight: 500 !important; color: #f0ebe3 !important;
}
.t-popup .t-popup__container .t-descr, .t-popup .t-popup__container .t-text { color: #d6d0c6 !important; font-family: "Manrope", Arial, sans-serif !important; }
.t-popup .t-input-title { color: #d6d0c6 !important; font-family: "Manrope", Arial, sans-serif !important; font-size: 14px !important; font-weight: 500 !important; }
.t-popup .t-input {
  background: #131312 !important; color: #f0ebe3 !important; border: 1px solid #4d4b44 !important;
  border-radius: 2px !important; height: 54px !important; font-family: "Manrope", Arial, sans-serif !important; font-size: 17px !important;
}
.t-popup .t-input:focus { border-color: #c7a87a !important; }
/* Телефон с выбором страны: рамка только у обёртки, внутреннее поле без рамки */
.t-popup .t-input-phonemask__wrap { display: flex !important; align-items: center !important; padding: 0 0 0 16px !important; }
.t-popup .t-input-phonemask__wrap:focus-within { border-color: #c7a87a !important; }
.t-popup .t-input-phonemask__wrap .t-input-phonemask { border: 0 !important; height: 52px !important; background: transparent !important; padding-left: 8px !important; }
.t-popup .t-input-phonemask__select-code { color: #f0ebe3 !important; }
.t-popup .t-input-phonemask__select-triangle { border-top-color: #aaa398 !important; }
.t-popup .t-input::placeholder { color: #807a70 !important; }
.t-popup .t-submit {
  background: #c7a87a !important; color: #17140f !important; border-radius: 2px !important; height: 54px !important;
  font-family: "Manrope", Arial, sans-serif !important; font-weight: 600 !important; font-size: 15px !important;
}
.t-popup .t-submit:hover { background: #dcc199 !important; }
.t-popup .t-checkbox__labeltext, .t-popup .t-checkbox__control, .t-popup .t-form__bottom-text { color: #aaa398 !important; font-family: "Manrope", Arial, sans-serif !important; font-size: 14px !important; }
.t-popup .t-checkbox__indicator { border-color: #c7a87a !important; }
.t-popup .t-popup__close-icon g, .t-popup .t-popup__close-icon path { stroke: #f0ebe3 !important; fill: #f0ebe3 !important; }
.t-popup .t-form__successbox { background: #1b1b19 !important; color: #f0ebe3 !important; border: 1px solid #c7a87a !important; }
