/* MyHomePro v3 — блоки главной по ТЗ от 28.10.2026. Поверх main.css, те же токены. */

[data-flag][hidden], [data-flag-any][hidden] { display: none !important; }

/* ---------- Шапка: 8 пунктов меню ---------- */
.v3-nav { gap: clamp(14px, 1.4vw, 24px); }
.v3-nav a { white-space: nowrap; }
@media (min-width: 1100px) {
  .mh-header .v3-nav { position: static; transform: none; margin-left: auto; }
  .mh-header .mh-header__phone { margin-left: 0; }
}
.mh-header .mh-header__phone, .mh-header .mh-header__cta { white-space: nowrap; flex-shrink: 0; }
/* Ноутбуки: плотнее меню, чтобы телефон помещался в одну строку; уже 1360 px телефон убираем, остаётся кнопка */
@media (min-width: 1100px) { .mh-header .mh-header__in { gap: 24px; } .mh-header .v3-nav { gap: 16px; } }
@media (min-width: 1100px) and (max-width: 1439px) {
  .mh-header .v3-nav { gap: 14px; } .v3-nav a { font-size: 13px; }
  .mh-header .mh-header__cta { padding: 0 14px; }
}
@media (max-width: 1359px) { .mh-header .mh-header__phone { display: none; } }
@media (max-width: 1199px) { .mh-header .mh-header__cta { margin-left: auto; } }
/* 1100–1199 px: восемь пунктов меню не помещаются — меню в бургер, кнопка остаётся */
@media (min-width: 1100px) and (max-width: 1199px) {
  .mh-header .v3-nav { display: none; }
  .mh-header .mh-burger { display: grid; margin-left: 0; }
}

/* ---------- Первый экран ---------- */
.v3-h1 { margin: 0; font: inherit; }
/* Надпись над заголовком видна сразу: без своей анимации прозрачности, чтобы не спорить с анимацией первого экрана */
html.mh-motion .v3-hero .v3-hero-label { opacity: 1; transition: none; }
.v3-hero .mh-label { display: inline-flex; margin-bottom: 22px; white-space: normal; }
.v3-hero .mh-hero__in { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .v3-hero .mh-hero__in { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 599px) { .v3-cta { flex: 1 1 100%; } .v3-cta .mh-btn { width: 100%; } }
.v3-hero .mh-hero__title { display: block; margin: 0; max-width: 24ch; font-size: calc(clamp(30px, 3.4vw, 58px) * var(--mh-dscale, 1)); line-height: 1.05; }
.mh-page .v3-hero .mh-hero__lead { margin-top: clamp(18px, 2vw, 28px); }
/* Панель «Проекты наших клиентов» на первом экране телефона: фото слева сменяются, подпись справа */
.v3-hero-works { display: none; }
@media (max-width: 899px) {
  .v3-hero-works {
    display: flex; flex: 1 1 100%; align-items: center; gap: 14px; min-height: 84px; padding-right: 12px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 12, 11, .78); text-decoration: none; color: #fff;
  }
  .v3-hero-works__img { position: relative; flex: 0 0 132px; align-self: stretch; overflow: hidden; background: #0c0c0b; }
  .v3-hero-works__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s ease; }
  .v3-hero-works__t { flex: 1; display: grid; gap: 3px; padding: 10px 0; min-width: 0; }
  .v3-hero-works__t b { font: 600 15px/1.25 var(--mh-sans); }
  .v3-hero-works__t span { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .78); }
  .v3-hero-works__go { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mh-accent); color: var(--mh-on-accent); }
  .v3-hero-works__go svg { width: 16px; height: 16px; }
}
.v3-hero__note { margin: 12px 0 0; max-width: 52ch; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); text-shadow: var(--mh-shadow-text); }
.v3-hero__actions { align-items: flex-start; }
.v3-cta { display: flex; flex-direction: column; gap: 10px; }
.v3-cta__note { font-size: 14px; color: rgba(255, 255, 255, .82); text-shadow: var(--mh-shadow-text); }
/* На телефоне подпись под кнопкой убираем, чтобы панель с проектами помещалась на первом экране над панелью связи */
@media (max-width: 599px) {
  .v3-cta__note { display: none; }
  .v3-hero .mh-label { margin-bottom: 14px; }
  .mh-page .v3-hero .mh-hero__actions { margin-top: 20px; }
  .v3-hero-works { min-height: 76px; }
  .v3-hero-works__img { flex-basis: 120px; }
}
.v3-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.v3-facts li { position: relative; padding: 14px 0 13px; font-size: 16px; line-height: 1.4; color: #f3efe8; text-shadow: var(--mh-shadow-text); }
.v3-facts li::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 1px; background: rgba(255, 255, 255, .55); }
.v3-facts li b { display: block; margin-bottom: 4px; font: 300 clamp(36px, 3.2vw, 48px)/1 var(--mh-display, var(--mh-serif)); color: #fff; letter-spacing: -.02em; }
@media (min-width: 1000px) { .v3-facts { grid-template-columns: 1fr; align-self: end; padding-bottom: 8px; } }
@media (max-width: 599px) { .v3-facts { gap: 0 16px; } .v3-facts li { font-size: 14px; } .v3-facts li b { font-size: 32px; } }

/* ---------- Общие для новых блоков ---------- */
.mh-page .v3-sub { font: 600 15px/1.3 var(--mh-sans); letter-spacing: .02em; color: var(--mh-muted); margin: clamp(48px, 6vw, 72px) 0 18px; }
.v3-cards { display: grid; gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); }
@media (min-width: 760px) { .v3-cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .v3-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.v3-card { background: var(--mh-bg); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.mh-section--surface .v3-card { background: var(--mh-surface); }
.v3-card h3, .v3-risk h3 { font: 500 clamp(21px, 1.8vw, 25px)/1.22 var(--mh-serif); }
.v3-card p, .v3-risk p { color: var(--mh-text-2); font-size: 16px; line-height: 1.6; }
.v3-fix { position: relative; margin-top: auto !important; padding-top: 16px; border-top: 1px solid var(--mh-line); color: var(--mh-text) !important; }
.v3-fix::before { content: "→ "; color: var(--mh-accent); }
.v3-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }

/* ---------- 2. Бюджет по этапам ---------- */
.mh-page .v3-budget { margin-top: clamp(40px, 5vw, 64px); }
.v3-budget__bar { display: flex; width: 100%; min-height: 96px; border: 1px solid var(--mh-line); }
.v3-budget__seg { width: var(--w); padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 13px; line-height: 1.3; color: var(--mh-text-2); border-right: 1px solid var(--mh-line); min-width: 0; }
.v3-budget__seg:last-child { border-right: 0; }
.v3-budget__seg b { font: 500 clamp(18px, 1.8vw, 26px)/1 var(--mh-serif); color: var(--mh-text); }
.v3-budget__seg.is-box { background: var(--mh-accent); color: var(--mh-on-accent); }
.v3-budget__seg.is-box b { color: var(--mh-on-accent); }
.v3-budget__seg.is-warm { background: rgba(199, 168, 122, .28); }
.v3-budget__seg.is-rough { background: rgba(199, 168, 122, .12); }
.v3-budget figcaption { margin-top: 12px; font-size: 14px; color: var(--mh-muted); }
@media (max-width: 699px) {
  .v3-budget__bar { flex-direction: column; min-height: 0; }
  .v3-budget__seg { width: 100%; flex-direction: row; align-items: baseline; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--mh-line); padding: 14px 14px; }
  .v3-budget__seg:last-child { border-bottom: 0; }
  .v3-budget__seg b { order: 2; font-size: 20px; }
}

.v3-report { display: grid; gap: clamp(40px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
@media (min-width: 1000px) { .v3-report { grid-template-columns: 1.1fr .9fr; } }
.mh-page .v3-report__what .mh-list { margin: 22px 0 32px; }
.v3-report__card { border: 1px solid var(--mh-line); background: var(--mh-surface); }
.v3-report__img { display: block; width: 100%; padding: 0; border: 0; background: var(--mh-paper); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.v3-report__img img { width: 100%; height: auto; transition: transform 1s var(--mh-ease); }
.v3-report__img:hover img { transform: scale(1.03); }
.v3-report__body { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 14px; justify-items: start; }
.v3-report__body p:not(.mh-label) { color: var(--mh-text-2); }
.mh-page .v3-quote { display: grid; grid-template-columns: 64px 1fr; gap: 18px; margin-top: clamp(36px, 4vw, 52px); padding-top: 28px; border-top: 1px solid var(--mh-line); }
.v3-quote img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.v3-quote p { font: 400 clamp(19px, 1.6vw, 22px)/1.45 var(--mh-serif); color: var(--mh-text); }
.v3-quote footer { margin-top: 12px; font-size: 14px; color: var(--mh-muted); }

/* ---------- 3. Сожаления ---------- */
.mh-page .v3-source { margin-top: 16px; font-size: 13px; color: var(--mh-muted); }
.mh-page .v3-punch { margin-top: clamp(48px, 6vw, 80px); font: 400 clamp(26px, 3vw, 40px)/1.25 var(--mh-serif); max-width: 30ch; color: var(--mh-text); }

/* ---------- 4. Каменный дом не переделать ---------- */
.v3-risks { display: grid; border-top: 1px solid var(--mh-line); }
.v3-risk { display: grid; gap: 10px 48px; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--mh-line); }
.v3-risk__src { font-size: 13px !important; color: var(--mh-muted) !important; letter-spacing: .02em; }
@media (min-width: 900px) {
  .v3-risk { grid-template-columns: 1.1fr 1fr 1.3fr; grid-template-rows: auto 1fr; align-items: start; }
  .v3-risk__src { grid-column: 1; grid-row: 1; }
  .v3-risk h3 { grid-column: 1; grid-row: 2; }
  .v3-risk > p:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 2; }
  .v3-risk .v3-fix { grid-column: 3; grid-row: 1 / span 2; margin-top: 0 !important; padding-top: 0; border-top: 0; padding-left: 24px; border-left: 1px solid var(--mh-accent); }
  .v3-risk .v3-fix::before { content: none; }
}

/* ---------- 5. Проекты: фильтр и история ---------- */
.v3-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 clamp(28px, 3vw, 40px); }
.v3-filter__chip { padding: 10px 16px; border: 1px solid var(--mh-line-strong); background: transparent; color: var(--mh-text); font: 500 14px/1 var(--mh-sans); cursor: pointer; min-height: 40px; }
.v3-filter__chip:hover { border-color: var(--mh-text); }
.v3-filter__chip.is-on { background: var(--mh-accent); border-color: var(--mh-accent); color: var(--mh-on-accent); }
.mh-work.is-filtered { display: none; }
.mh-page .v3-story { margin-top: 8px; color: var(--mh-text-2); font-size: 15px; line-height: 1.5; max-width: 44ch; }

/* ---------- 6. Чек-лист ---------- */
.v3-check { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--mh-line); }
.v3-check__list { display: grid; gap: 0 48px; counter-reset: none; }
@media (min-width: 900px) { .v3-check__list { grid-template-columns: 1fr 1fr; } }
.v3-check__list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--mh-line); }
.v3-check__n { font: 500 22px/1.2 var(--mh-serif); color: var(--mh-accent); }
.v3-check__list p { color: var(--mh-text-2); }
.v3-check__ex { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--mh-accent); font: 500 14px/1.4 var(--mh-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.v3-check__ex:hover { color: var(--mh-accent-hi); }

/* ---------- 7. Калькулятор ---------- */
.v3-calc { display: grid; gap: 1px; background: var(--mh-line); border: 1px solid var(--mh-line); margin-bottom: clamp(48px, 6vw, 72px); }
@media (min-width: 1000px) { .v3-calc { grid-template-columns: 1.15fr .85fr; } }
.v3-calc__form, .v3-calc__sum { background: var(--mh-surface); padding: clamp(22px, 3vw, 40px); }
.v3-calc__sum { background: var(--mh-raise); display: flex; flex-direction: column; gap: 14px; }
.v3-range { margin-bottom: 26px; }
.v3-range > label { display: block; font: 600 15px/1.3 var(--mh-sans); margin-bottom: 10px; }
.v3-range__row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.v3-range input[type=range] { width: 100%; accent-color: var(--mh-accent); height: 28px; }
.v3-num { min-width: 128px; justify-content: flex-end; display: inline-flex; align-items: center; gap: 6px; color: var(--mh-muted); font-size: 15px; }
.v3-num input { width: 84px; padding: 9px 10px; background: var(--mh-bg); border: 1px solid var(--mh-line-strong); color: var(--mh-text); font: 600 16px/1 var(--mh-sans); text-align: right; }
.v3-secs { border: 0; margin: 8px 0 0; padding: 0; display: grid; }
.v3-secs legend { font: 600 15px/1.3 var(--mh-sans); margin-bottom: 8px; padding: 0; }
.v3-sec { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--mh-line); cursor: pointer; }
.v3-sec input { width: 20px; height: 20px; accent-color: var(--mh-accent); margin: 0; }
.v3-sec small { color: var(--mh-muted); font-size: 14px; text-align: right; }
.v3-sec.is-locked { cursor: default; }
.v3-sec.is-locked span { color: var(--mh-muted); }
.v3-calc__lines { display: grid; gap: 0; }
.v3-calc__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--mh-line); font-size: 15px; color: var(--mh-text-2); }
.v3-calc__lines li b { font-weight: 600; color: var(--mh-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.v3-calc__lines li.is-discount b { color: var(--mh-accent); }
.v3-calc__hint { font-size: 14px; color: var(--mh-accent); line-height: 1.5; }
.v3-calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 4px; }
.v3-calc__total span { font-size: 15px; color: var(--mh-muted); }
.v3-calc__total b { font: 500 clamp(34px, 3.4vw, 48px)/1 var(--mh-serif); color: var(--mh-accent); white-space: nowrap; }
.v3-calc__meta, .v3-calc__fix, .v3-calc__first { font-size: 14px; color: var(--mh-text-2); line-height: 1.55; }
.v3-calc__btns { display: grid; gap: 10px; margin-top: 6px; }
.v3-calc__ref { font-size: 13px; color: var(--mh-muted); line-height: 1.5; }
.v3-plans .mh-plan__inc { font-size: 14px; color: var(--mh-accent); }

/* ---------- 8. Работа и регионы ---------- */
.v3-plaque { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--mh-accent); display: grid; gap: 12px; }
@media (min-width: 900px) { .v3-plaque { grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; } }
.v3-plaque p { color: var(--mh-text-2); }
.v3-regions { margin-top: clamp(40px, 5vw, 64px); }
.v3-regions > p { color: var(--mh-text-2); max-width: 70ch; }
.mh-page .v3-regions__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v3-regions__chips a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border: 1px solid var(--mh-line-strong); text-decoration: none; font-weight: 600; font-size: 15px; }
.v3-regions__chips a:hover { border-color: var(--mh-accent); }
.v3-regions__chips small { font-weight: 400; font-size: 13px; color: var(--mh-muted); }
.v3-steps .mh-step__n { font-variant-numeric: tabular-nums; }

/* ---------- 9. Гарантии + сравнение ---------- */
@media (min-width: 760px) { .v3-guarantees { grid-template-columns: repeat(2, 1fr); } }
#guarantees .mh-compare { margin-top: clamp(80px, 10vw, 140px); }

/* ---------- 11. Письмо Анастасии ---------- */
.v3-letter .mh-h2 { margin-bottom: 28px; }
.v3-letter__text { display: grid; gap: 18px; max-width: 58ch; }
.v3-letter__text p { font-size: clamp(17px, 1.3vw, 19px); color: var(--mh-text-2); line-height: 1.7; }
.v3-docs-head { margin-top: clamp(80px, 10vw, 140px); }

/* ---------- 13. FAQ ---------- */
@media (min-width: 1000px) { .v3-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .v3-faq .mh-head { position: sticky; top: 110px; } }
.v3-faq__list .mh-fear__body p { max-width: 64ch; }

/* ---------- 14. Финальная заявка + формы ---------- */
.v3-final { display: grid; gap: clamp(40px, 5vw, 80px); align-items: start; }
@media (min-width: 1000px) { .v3-final { grid-template-columns: 1fr 1fr; } }
.v3-final__text .mh-label { margin-bottom: 24px; }
.v3-final__form { background: var(--mh-surface); border: 1px solid var(--mh-line); padding: clamp(22px, 3vw, 40px); }
.v3-form { display: grid; gap: 18px; }
.v3-field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.v3-field > label, .v3-field legend { font: 600 14px/1.3 var(--mh-sans); color: var(--mh-text); padding: 0; margin-bottom: 0; }
.v3-chips legend { margin-bottom: 8px; }
.v3-field input[type=text], .v3-field input[type=tel], .v3-field input[type=number] {
  width: 100%; padding: 13px 14px; background: var(--mh-bg); border: 1px solid var(--mh-line-strong); color: var(--mh-text); font: 400 16px/1.3 var(--mh-sans); border-radius: 0;
}
.v3-field input:focus { outline: none; border-color: var(--mh-accent); }
.v3-req { color: var(--mh-accent); }
.v3-hint { font-size: 13px; color: var(--mh-muted); }
.v3-chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-chip { position: relative; cursor: pointer; }
.v3-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v3-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px; border: 1px solid var(--mh-line-strong); font-size: 14px; line-height: 1.2; transition: border-color .2s, background .2s; }
.v3-chip:hover span { border-color: var(--mh-text); }
.v3-chip input:checked + span { background: var(--mh-accent); border-color: var(--mh-accent); color: var(--mh-on-accent); }
.v3-chip input:focus-visible + span { outline: 2px solid var(--mh-accent-hi); outline-offset: 2px; }
.v3-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--mh-muted); cursor: pointer; }
.v3-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--mh-accent); }
.v3-consent a { color: var(--mh-accent); text-underline-offset: 3px; }
.v3-err { display: none; font-size: 13px; color: #e08a7a; }
.is-error > .v3-err, .v3-field.is-error .v3-err, .v3-err--consent.is-on { display: block; }
.v3-field.is-error input[type=text], .v3-field.is-error input[type=tel] { border-color: #e08a7a; }
.mh-page .v3-note { font-size: 13px; color: var(--mh-muted); text-align: center; margin-top: -6px; }
.v3-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v3-done { display: grid; gap: 16px; }
.v3-done p { color: var(--mh-text-2); }
.v3-link { padding: 0; border: 0; background: none; color: var(--mh-accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.v3-modal .mh-modal__in { max-height: calc(100dvh - 32px); overflow-y: auto; }
.v3-modal { width: min(560px, calc(100vw - 24px)); }

/* ---------- Квиз ---------- */
.v3-quiz__bar { height: 3px; background: var(--mh-line); margin: 4px 40px 14px 0; }
.v3-quiz__bar span { display: block; height: 100%; width: 20%; background: var(--mh-accent); transition: width .4s var(--mh-ease); }
.v3-quiz__count { font-size: 13px; color: var(--mh-muted); margin-bottom: 10px; }
.v3-quiz__step { display: grid; gap: 18px; }
.v3-quiz [hidden] { display: none !important; }
.v3-quiz__secs { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-quiz__sum { font-size: 15px; color: var(--mh-text-2); }
.v3-quiz__sum b { color: var(--mh-accent); font-weight: 600; }
.v3-quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.v3-quiz__nav [data-q-back][disabled] { visibility: hidden; }

/* Квиз расчёта: ответы карточками с картинками */
.v3-rq { width: min(820px, calc(100vw - 24px)); }
.v3-rq .v3-quiz__step { gap: 14px; }
.v3-rq .v3-quiz__step > .mh-muted { margin-top: -6px; }
.v3-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .v3-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 640px) { .v3-rq [data-step="5"] .v3-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v3-opt { position: relative; display: flex; flex-direction: column; border: 1px solid var(--mh-line-strong); background: var(--mh-bg); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.v3-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v3-opt:hover { border-color: var(--mh-text-2); }
.v3-opt__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mh-surface); }
.v3-opt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--mh-ease); }
.v3-opt:hover .v3-opt__img img { transform: scale(1.04); }
.v3-opt__img--none { display: grid; place-items: center; font: 300 40px/1 var(--mh-display, serif); color: var(--mh-muted); }
.v3-opt__t { display: grid; gap: 2px; padding: 10px 12px 12px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.v3-opt__t small { font-size: 12px; font-weight: 400; color: var(--mh-muted); }
.v3-opt:has(input:checked) { border-color: var(--mh-accent); box-shadow: inset 0 0 0 1px var(--mh-accent); }
.v3-opt:has(input:checked) .v3-opt__t { color: var(--mh-accent); }
.v3-opt:has(input:checked)::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mh-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317140f' stroke-width='2.5'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.v3-opt:has(input:focus-visible) { outline: 2px solid var(--mh-accent-hi); outline-offset: 2px; }
.v3-opts--text .v3-opt__t { min-height: 56px; align-content: center; padding: 14px 16px; font-size: 15px; }
.v3-opts--text .v3-opt:has(input:checked)::after { top: 50%; margin-top: -12px; }
.v3-field textarea { width: 100%; padding: 13px 14px; background: var(--mh-bg); border: 1px solid var(--mh-line-strong); color: var(--mh-text); font: 400 16px/1.45 var(--mh-sans); border-radius: 0; resize: vertical; }
.v3-field textarea:focus { outline: none; border-color: var(--mh-accent); }
.v3-field input:disabled { opacity: .45; }
.v3-field.is-error input[type=number] { border-color: #e08a7a; }
.v3-rq .v3-note { margin-top: 12px; }
.v3-start { display: grid; gap: 18px; }
.v3-start .mh-muted { margin-top: -8px; }

/* ---------- Пример расчёта ---------- */
.v3-report-viewer__body { overflow-y: auto; padding: 20px clamp(12px, 3vw, 40px) 40px; display: grid; gap: 36px; justify-items: center; }
.v3-report-viewer__body figure { width: min(1100px, 100%); }
.v3-report-viewer__body figcaption { font-size: 14px; color: var(--mh-muted); margin-bottom: 10px; }
.v3-report-viewer__body img { width: 100%; height: auto; background: #fff; }
.v3-report-viewer__pdf { margin-left: auto; padding: 10px 16px; min-height: 0; font-size: 14px; }
.v3-report-viewer .mh-viewer__bar { gap: 12px; }

/* Тарифы: пункты списка идут плотно, без растяжки по высоте карточки */
.mh-page .v3-plans .mh-plan ul { align-content: start; }

/* ---------- Формы Tilda на новой главной: встроенная форма и окна расчёта/квиза ---------- */
.v3-final__form .v3-tilda-form { padding: 0 !important; background: none !important; }
.v3-tilda-form .t-container, .v3-tilda-form .t-col, .v3-tilda-form .t-form__inputsbox, .v3-tilda-form .t678__wrapper { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.v3-tilda-form .t-section__topwrapper, .v3-tilda-form .t678__title, .v3-tilda-form .t678__descr { display: none !important; }
.v3-tilda-form .t-input-group, .t-popup .t-input-group { margin-bottom: 18px !important; }
.v3-tilda-form .t-input-title, .t-popup .t-input-title { color: #f0ebe3 !important; font: 600 14px/1.3 "Golos Text", Arial, sans-serif !important; padding-bottom: 8px !important; }
.v3-tilda-form .t-input {
  background: #131312 !important; color: #f0ebe3 !important; border: 1px solid #4d4b44 !important; border-radius: 0 !important;
  height: 50px !important; font: 400 16px/1.3 "Golos Text", Arial, sans-serif !important;
}
.v3-tilda-form .t-input:focus { border-color: #c7a87a !important; }
.v3-tilda-form .t-input::placeholder { color: #807a70 !important; }
.v3-tilda-form .t-input-phonemask__wrap { display: flex !important; align-items: center !important; padding: 0 0 0 16px !important; }
.v3-tilda-form .t-input-phonemask__wrap .t-input-phonemask { border: 0 !important; height: 48px !important; background: transparent !important; padding-left: 8px !important; }
.v3-tilda-form .t-input-phonemask__select-code { color: #f0ebe3 !important; }
/* Варианты ответа — чипы */
.v3-tilda-form .t-radio__wrapper_button, .t-popup .t-radio__wrapper_button { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.v3-tilda-form .t-radio__wrapper_button .t-radio__control, .t-popup .t-radio__wrapper_button .t-radio__control {
  margin: 0 !important; padding: 9px 14px !important; min-height: 40px; display: inline-flex !important; align-items: center !important;
  border: 1px solid #4d4b44 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  color: #f0ebe3 !important; font: 400 14px/1.2 "Golos Text", Arial, sans-serif !important; cursor: pointer; transition: border-color .2s, background .2s;
}
.v3-tilda-form .t-radio__wrapper_button .t-radio__control:hover, .t-popup .t-radio__wrapper_button .t-radio__control:hover { border-color: #f0ebe3 !important; }
.v3-tilda-form .t-radio__wrapper_button .t-radio__indicator, .t-popup .t-radio__wrapper_button .t-radio__indicator { display: none !important; }
.v3-tilda-form .t-radio__wrapper_button .t-radio__control:has(input:checked), .t-popup .t-radio__wrapper_button .t-radio__control:has(input:checked) {
  background: #c7a87a !important; border-color: #c7a87a !important; color: #17140f !important;
}
.v3-tilda-form .t-radio__wrapper_button .t-radio__control:has(input:focus-visible), .t-popup .t-radio__wrapper_button .t-radio__control:has(input:focus-visible) { outline: 2px solid #dcc199; outline-offset: 2px; }
.v3-tilda-form .t-checkbox__control, .v3-tilda-form .t-checkbox__labeltext { color: #aaa398 !important; font: 400 13px/1.45 "Golos Text", Arial, sans-serif !important; }
.v3-tilda-form .t-checkbox__indicator { border-color: #c7a87a !important; }
.v3-tilda-form .t-input-error, .t-popup .t-input-error { color: #e08a7a !important; font-size: 13px !important; }
.v3-tilda-form .t-submit {
  width: 100% !important; background: #c7a87a !important; color: #17140f !important; border-radius: 0 !important; height: 54px !important;
  font: 500 13px/1 "Golos Text", Arial, sans-serif !important; letter-spacing: .08em !important; text-transform: uppercase !important;
}
.v3-tilda-form .t-submit:hover { background: #dcc199 !important; }
.v3-tilda-form .t-form__submit { width: 100% !important; margin-top: 6px !important; }
.v3-tilda-form .t-form__bottom-text, .t-popup[data-tooltip-hook="#popup:raschet"] .t-form__bottom-text {
  display: block !important; color: #aaa398 !important; font: 400 13px/1.5 "Golos Text", Arial, sans-serif !important; text-align: center !important; margin-top: 12px !important;
}
.v3-tilda-form .t-form__successbox { background: #1b1b19 !important; color: #f0ebe3 !important; border: 1px solid #c7a87a !important; }
/* Окно расчёта длинное: без картинки сверху */
.t-popup[data-tooltip-hook="#popup:raschet"] .t-popup__container::before { display: none !important; }

/* ================= Взгляд заказчика: короче страница, меньше сплошного текста ================= */
/* Отступы между блоками на треть меньше */
.mh-page { --mh-section: clamp(64px, 7.5vw, 112px); }

/* Проекты на компьютере: сеткой по 2–3 в ряд вместо одного в строке */
@media (min-width: 900px) {
  #projects .mh-works { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: clamp(36px, 3.4vw, 52px) clamp(20px, 2vw, 32px); }
  #projects .mh-work { grid-template-columns: 1fr; gap: 16px; }
  #projects .mh-work__meta { padding-top: 0; gap: 10px; }
  #projects .mh-work__meta .mh-h3 { font-size: calc(clamp(18px, 1.45vw, 22px) * var(--mh-dscale)); }
}
@media (min-width: 1200px) { #projects .mh-works { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* Телефон: проекты, «О чём жалеют» и «Ошибки на чертеже» — лентой, которая листается пальцем вбок */
.v3-swipe { display: none; }
@media (max-width: 899px) {
  .v3-swipe { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: var(--mh-muted); }
  .v3-swipe::after { content: ""; width: 28px; height: 1px; background: var(--mh-accent); }
  .v3-swipe-row {
    display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--mh-gutter) * -1); padding: 0 var(--mh-gutter) 6px; scroll-padding: 0 var(--mh-gutter);
    background: none !important; border: 0 !important; scrollbar-width: none;
  }
  .v3-swipe-row::-webkit-scrollbar { display: none; }
  .v3-swipe-row > * { flex: 0 0 84%; scroll-snap-align: start; }
  /* карточки в ленте — отдельными рамками */
  .v3-swipe-row > .v3-card { border: 1px solid var(--mh-line); }
  .v3-swipe-row > .v3-risk { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--mh-line); background: var(--mh-bg); }
  .mh-section--surface .v3-swipe-row > .v3-risk { background: var(--mh-surface); }
  .v3-swipe-row > .v3-risk .v3-fix { margin-top: auto !important; }
  #projects .v3-swipe-row > .mh-work { flex-basis: 86%; }
  #projects .mh-work__meta .mh-h3 { font-size: 19px; }
}

/* «Показать все»: на телефоне чек-лист — первые 4 пункта; документы везде — первые 5 */
.v3-more-btn { margin-top: 24px; }
.v3-more-btn--mob { display: none; }
/* сколько документов видно до «Показать все»: целый ряд при 2, 3 и 5 колонках */
#v3-docs:not(.is-open) > :nth-child(n+5) { display: none; }
@media (min-width: 700px) { #v3-docs:not(.is-open) > :nth-child(-n+6) { display: flex; } }
@media (min-width: 1100px) { #v3-docs:not(.is-open) > :nth-child(6) { display: none; } }
@media (max-width: 899px) {
  .v3-more-btn--mob { display: inline-flex; }
  #v3-check-list:not(.is-open) > li:nth-child(n+5) { display: none; }
}
/* Пять карточек в три колонки: последняя растягивается на две, без пустой клетки */
@media (min-width: 1100px) { .v3-cards--3 > :last-child:nth-child(3n+2) { grid-column: span 2; } }
@media (min-width: 760px) and (max-width: 1099px) { .v3-cards--3 > :last-child:nth-child(odd) { grid-column: span 2; } }

/* Короткая главная: «Ошибки на чертеже» — карточки с фрагментом чертежа */
.v3-mistakes { display: grid; gap: 16px; }
@media (min-width: 760px) { .v3-mistakes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .v3-mistakes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.v3-mistake { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--mh-line); background: var(--mh-surface); padding: 0 0 18px; }
.v3-mistake__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f4f2ee; }
.v3-mistake__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.v3-mistake h3 { padding: 6px 16px 0; font: 500 19px/1.25 var(--mh-serif); }
.v3-mistake p { padding: 0 16px; font-size: 15px; line-height: 1.55; color: var(--mh-text-2); }
@media (max-width: 899px) { .v3-swipe-row--team > * { flex-basis: 62% !important; } }
/* Короткая главная на телефоне: фото Анастасии кружком рядом с цитатой, а не на весь экран */
@media (max-width: 899px) {
  body:has(.v3-mistakes) .v3-letter { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; }
  body:has(.v3-mistakes) .v3-letter figure .mh-figure { aspect-ratio: 1; border-radius: 50%; }
  body:has(.v3-mistakes) .v3-letter .mh-h2 { font-size: 22px; }
  body:has(.v3-mistakes) .v3-letter .v3-letter__text p { font-size: 16px; }
}

/* Вариант Б: «Что вы узнаете на разборе» — четыре карточки и кто ведёт разбор */
@media (min-width: 1200px) { .v3-mistakes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1199px) { .v3-mistakes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v3-host { display: grid; grid-template-columns: 72px 1fr; gap: 14px 18px; align-items: center; margin-top: clamp(28px, 3vw, 40px); padding: 18px; border: 1px solid var(--mh-line); background: var(--mh-surface); }
.v3-host img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.v3-host p { display: grid; gap: 4px; }
.v3-host b { font-weight: 600; }
.v3-host span { color: var(--mh-text-2); font-size: 15px; }
.v3-host .mh-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 900px) { .v3-host { grid-template-columns: 72px 1fr auto; } .v3-host .mh-btn { grid-column: auto; } }
/* Вариант Б на телефоне: «Смотреть проекты» дублирует панель «Наши проекты» под ней */
@media (max-width: 899px) { body:has(#razbor-info) .v3-hero__actions > a.mh-btn--light { display: none; } }
/* Вариант Б, «Что вы узнаете»: на компьютере одна сетка 4×2 — главная карточка и Анастасия по две колонки */
.v3-learn .v3-host { margin-top: 20px; }
@media (min-width: 900px) {
  .v3-learn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .v3-learn__cards { display: contents; }
  .v3-learn .v3-swipe { display: none; }
  .v3-learn .v3-mistake--main { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .v3-learn .v3-mistake--main .v3-mistake__img { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
  .v3-learn .v3-mistake--main h3 { padding: 22px 20px 0; font-size: 23px; }
  .v3-learn .v3-mistake--main p { padding: 0 20px 20px; font-size: 16px; }
  .v3-learn .v3-host { grid-column: span 2; margin-top: 0; align-content: center; grid-template-columns: 88px 1fr; padding: 24px; }
  .v3-learn .v3-host img { width: 88px; height: 88px; }
  .v3-learn .v3-host .mh-btn { grid-column: 1 / -1; }
}
.v3-mistake--main h3 { color: var(--mh-accent-hi); }

/* Экран «Спасибо» не виден, пока заявка не отправлена */
.v3-done[hidden] { display: none !important; }

/* ================= Вариант Б: плотнее, без пустых мест ================= */
body:has(#razbor-info) .mh-page { --mh-section: clamp(44px, 5vw, 80px); }
body:has(#razbor-info) .mh-head { margin-bottom: clamp(24px, 3vw, 44px); }
body:has(#razbor-info) .mh-head .mh-label { margin-bottom: clamp(18px, 2.4vw, 32px); }
/* главная карточка: заголовок и текст сразу друг под другом */
.v3-learn .v3-mistake--main { grid-template-rows: auto 1fr; align-content: start; }
/* письмо: фото меньше, текст по центру фото — без пустоты сверху */
@media (min-width: 900px) {
  body:has(#razbor-info) .v3-letter { grid-template-columns: minmax(0, 360px) 1fr; align-items: center; gap: clamp(32px, 4vw, 64px); }
}
/* картинки-заполнители */
.v3-fill { margin: 0; overflow: hidden; background: var(--mh-surface); }
.v3-fill img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; display: block; }
@media (min-width: 1000px) { .v3-fill--svc { grid-column: 2; grid-row: 7; margin-top: 24px; } }
.v3-fill--faq { margin-top: 28px; }
.v3-fill--final { margin-top: 32px; }
@media (max-width: 999px) { .v3-fill--svc, .v3-fill--faq, .v3-fill--final { display: none; } }
/* двенадцатая клетка проектов — приглашение на разбор */
.v3-work-cta { display: flex !important; flex-direction: column; text-decoration: none; color: inherit; background: var(--mh-bg); border: 1px solid var(--mh-line); }
.v3-work-cta__img { display: block; aspect-ratio: 1920 / 1072; overflow: hidden; }
.v3-work-cta__img img { width: 100%; height: 100%; object-fit: cover; }
.v3-work-cta__t { display: grid; gap: 10px; padding: 18px; }
.v3-work-cta__t b { font: 400 21px/1.25 var(--mh-serif); text-transform: uppercase; color: var(--mh-accent-hi); }
.v3-work-cta__t > span:not(.mh-btn) { color: var(--mh-text-2); font-size: 15px; }
.v3-work-cta .mh-btn { justify-self: start; }
/* восьмая клетка команды — интерьер */
.v3-person-fill { text-decoration: none; color: inherit; }
.v3-person-fill img { width: 100%; height: 100%; object-fit: cover; }
/* подвал на телефоне: разделы и контакты в две колонки */
@media (max-width: 899px) {
  body:has(#razbor-info) .mh-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  body:has(#razbor-info) .mh-footer__grid > :first-child, body:has(#razbor-info) .mh-footer__grid > :last-child { grid-column: 1 / -1; }
}
.v3-fill--faq { grid-column: 1 / -1; }
/* Анастасия в сетке «Что вы узнаете»: крупное фото во всю высоту карточки */
@media (min-width: 900px) {
  .v3-learn .v3-host { grid-template-columns: minmax(0, 0.9fr) 1fr; grid-template-rows: 1fr auto; padding: 0; gap: 0 22px; align-items: stretch; }
  .v3-learn .v3-host img { grid-row: 1 / span 2; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 25%; }
  .v3-learn .v3-host p { align-self: end; padding: 24px 22px 0 0; }
  .v3-learn .v3-host p b { font: 500 22px/1.25 var(--mh-serif); }
  .v3-learn .v3-host .mh-btn { grid-column: 2; align-self: start; margin: 18px 22px 24px 0; }
}

/* Первый экран главной: два пути — разбор с архитектором и расчёт стройки без звонка (03.11.2026) */
.v3-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 12px; flex: 1 1 100%; }
.v3-path { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--mh-line-strong);
  background: rgba(18, 18, 17, .8); color: var(--mh-text); }
.v3-path--main { border-color: var(--mh-gold); }
.v3-path__tag { font-size: 12.5px; color: var(--mh-gold); }
.v3-path__t { font: 500 21px/1.25 var(--mh-serif); }
.v3-path__d { font-size: 14px; line-height: 1.45; color: var(--mh-muted); }
.v3-path__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 10px; }
.v3-path__go { display: inline-block; padding: 10px 16px; border: 1px solid var(--mh-gold); color: var(--mh-gold); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s var(--mh-ease), color .2s var(--mh-ease); }
.v3-path__go:hover { background: var(--mh-gold); color: var(--mh-ink); }
.v3-path--main .v3-path__go { background: var(--mh-gold); color: var(--mh-ink); }
.v3-path--main .v3-path__go:hover { background: var(--mh-gold-hi); border-color: var(--mh-gold-hi); }
.v3-path__more { font-size: 13.5px; color: var(--mh-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mh-gold); }
.v3-path__more:hover { color: var(--mh-gold); }
.v3-paths__note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: rgba(242, 240, 235, .82); text-shadow: var(--mh-shadow-text); }
@media (max-width: 599px) {
  .v3-paths { grid-template-columns: 1fr; gap: 8px; }
  .v3-path { padding: 12px 14px; gap: 4px; }
  .v3-path__t { font-size: 18px; }
  .v3-path__d { font-size: 13px; }
  .v3-path__x { display: none; }
  .v3-path__acts { gap: 6px 14px; padding-top: 6px; }
  .v3-path__go { flex: 1 1 100%; text-align: center; padding: 9px; }
  .v3-path__more { width: 100%; text-align: center; }
}
.v3-final__alt { margin-top: 16px; font-size: 14px; color: var(--mh-muted); }
.v3-final__alt a { color: var(--mh-gold); text-decoration: underline; text-underline-offset: 3px; }

/* 04.11: подпись под кнопкой встроенной формы Tilda (у t678 по умолчанию чёрная) */
.v3-tilda-form .t-form__bottom-text, .v3-tilda-form .t678__form-bottom-text { color: #aaa398 !important; font: 400 14px/1.45 "Golos Text", Arial, sans-serif !important; text-align: center !important; margin-top: 12px !important; }
/* Пояснение в окнах Tilda («Последний шаг…») на телефоне было 12px */
.t-popup .t702__descr { font-size: 15px !important; line-height: 1.5 !important; }
/* Состав проекта: цвет текста меняется вместе с фоном, без вспышки светлого на светлом */
.mh-svc__name, .mh-svc__short { transition: color .6s var(--mh-ease); }

/* Окно «Бесплатный гайд» */
.v3-gid__top { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start; margin-bottom: 20px; }
.v3-gid__cover { width: 112px; height: auto; display: block; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.v3-gid__kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mh-gold); margin-bottom: 8px; }
.v3-gid__list { margin-top: 12px; display: grid; gap: 6px; }
.v3-gid__list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--mh-text-2); }
.v3-gid__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--mh-gold); }
@media (max-width: 480px) { .v3-gid__top { grid-template-columns: 84px 1fr; gap: 14px; } .v3-gid__cover { width: 84px; } }
.v3-form[hidden] { display: none !important; }

/* Плашка «Статьи архитектора» под частыми вопросами */
.v3-stati { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--mh-line); }
.v3-stati__kicker { font: 400 15px/1 var(--mh-display); letter-spacing: .04em; text-transform: uppercase; color: var(--mh-text); }
.v3-stati__kicker::before { content: "[ "; color: var(--mh-gold); }
.v3-stati__kicker::after { content: " ]"; color: var(--mh-gold); }
.v3-stati__lead { margin-top: 12px; color: var(--mh-text-2); max-width: 60ch; }
.v3-stati__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.v3-stati__links a { font-size: 14px; color: var(--mh-gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(199,168,122,.4); }
.v3-stati__links a:hover { text-decoration-color: var(--mh-gold); }
.v3-stati__btn { flex: none; }
@media (max-width: 699px) {
  .v3-stati { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; padding-top: 20px; }
  .v3-stati__links { display: none; }
  .v3-stati__btn { width: 100%; }
}
