/* Карточка проекта /projects/NNNN/ в новом виде (20.10.2026). Подключается из base.html вместе с ml-catalog.css
   (оттуда кнопки .ml-btn, плитки .pcard, блок .ml-own, мозаика .ml-gm и вопросы .ml-q). Шаблоны —
   Projects.ItemCardHero / ItemCardHead / ItemCardBody, данные — блок Projects.ItemCard, скрипт — ml-card.js.
   Стиль сайта: Bodoni без капса, Roboto, #111, красный #EE2329, всё квадратное, блоки различаются белым и #F4F4F4.
   Третья итерация 20.10 (Илья): форма 26 и блок «Спроектируем дом» чёрные, как в каталоге; под H1 полоса между
   двумя линиями — факты слева, кнопка расчёта справа; отступ над крошками равен отступу под полосой.
   Четвёртая итерация 21.10 (Илья: «выглядит как карточка на маркетплейсе»): первый экран — рендер во весь экран
   с подписью и двумя кнопками на нём; планировки — крупные цифры этажей и перетекание планов, как на сайте до правки;
   фасады — большой кадр с миниатюрами рядом; «О проекте» свёрнуто; фото сразу после первого экрана.
   Пятая итерация 21.10 (Илья: блоки — «волки-одиночки», «О проекте» — «портянка», узкий текст некрасив): описание
   разнесено по странице (вступление, архитектура, этажи карточками, «О проекте» блоками с иконками), весь текст
   на ширину контейнера, без колонок 760 px и 34em; серые полосы чередуются с белыми. */
:root {
   --mlc-ink: #111;
   --mlc-text: #333;
   --mlc-muted: #6B6B6B;
   --mlc-red: #EE2329;
   --mlc-gray: #F4F4F4;
   --mlc-line: #E6E6E6;
   --mlc-serif: "BodoniBold", serif;
   --mlc-light: "RobotoLight", Roboto, sans-serif;
   --mlc-regular: "RobotoRegular", Roboto, sans-serif;
   --mlc-medium: "RobotoMedium", Roboto, sans-serif;
   --mlc-head: 70px;       /* видимый низ фиксированной шапки (логотип, кнопки); белая коробка шапки на 10–15 px ниже, но фон тот же */
   --mlc-sec: 56px;        /* вертикальный ритм секций */
   --mlc-gap: 32px;        /* от шапки до крошек и от полосы под H1 до первого раздела — поровну (Илья, третья итерация) */
}
@media (min-width: 1025px) { :root { --mlc-head: 106px; --mlc-sec: 96px; --mlc-gap: 48px; } }

/* style.css рисует у всех ссылок a::after — черту, растущую при наведении; в карточке своё подчёркивание */
.mlc-hero a::after, .mlc-body a::after { display: none; }
.mlc-hero :focus-visible { outline: 2px solid #FFF; outline-offset: 2px; }
.mlc-body :focus-visible { outline: 2px solid var(--mlc-red); outline-offset: 2px; }
.mlc-body [hidden] { display: none !important; }

/* ===== Первый экран (четвёртая итерация 21.10, Илья: «зашёл — и охренел»; каркас — бюро Леонидова) =====
   Первый кадр во всю ширину окна: на компьютере по высоте экрана под шапкой, на телефоне квадратом, и низ кадра
   перетекает в #111. Поверх — строка крошек сверху, внизу H1, слоган, миниатюры и полоса фактов с двумя кнопками.
   Затемнение снизу такое, чтобы заголовок не смешивался с домом. Движение одно: медленный наезд на кадр и проявление
   подписи; при prefers-reduced-motion его нет. */
.mlc-hero { position: relative; margin-top: var(--mlc-head); background: var(--mlc-ink); color: #FFF; overflow: hidden; }
.mlc-hero + .content { margin-top: 0; }
.mlc-bg { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #1C1C1C; }
.mlc-bg::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 42%, rgba(17, 17, 17, .8) 78%, #111 100%); }
.mlc-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; touch-action: pan-y; }
.mlc-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; overflow: hidden; opacity: 0; transition: opacity .6s ease; pointer-events: none; cursor: zoom-in; }
.mlc-slide.on { opacity: 1; z-index: 1; pointer-events: auto; }
.mlc-slide picture, .mlc-slide img { display: block; width: 100%; height: 100%; }
.mlc-slide img { object-fit: cover; }
/* Лупа fancybox из style.css (.link_fancybox:before) на кадре не нужна: курсор уже «увеличить» */
.mlc-slide.link_fancybox::before { display: none; }
.mlc-count { position: absolute; right: 16px; top: 60px; z-index: 3; padding: 6px 10px; background: rgba(17, 17, 17, .55); color: #FFF; font: 13px/1.2 var(--mlc-regular); pointer-events: none; }
.mlc-count b { font-family: var(--mlc-medium); font-weight: normal; }
.mlc-arrow { position: absolute; top: 50%; z-index: 4; width: 48px; height: 72px; margin-top: -36px; border: 0; padding: 0; background: rgba(17, 17, 17, .4); color: #FFF; cursor: pointer; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease, background .2s ease; }
.mlc-arrow:hover { background: var(--mlc-red); }
.mlc-prev { left: 0; }
.mlc-next { right: 0; }
@media (hover: hover) {
   .mlc-arrow { display: flex; }
   .mlc-stage:hover .mlc-arrow, .mlc-arrow:focus-visible { opacity: 1; }
}

/* Строка крошек и соседних проектов — поверх кадра сверху, белым */
.mlc-top { position: absolute; top: 0; right: 0; left: 0; z-index: 4; padding-top: 10px; pointer-events: none; }
.mlc-top > .inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 44px; }
.mlc-top .breadcrumbs, .mlc-pager { pointer-events: auto; }
.mlc-top .breadcrumbs { flex: 1 1 auto; min-width: 0; border-top: 0; padding: 0; }
.mlc-top .breadcrumbs .inner { padding: 0; max-width: none; }
.mlc-top .breadcrumbs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; }
.mlc-top .breadcrumbs li { display: inline-flex; align-items: center; float: none; width: auto; margin: 0; padding: 0; }
.mlc-top .breadcrumbs li::before { display: none; }
.mlc-top .breadcrumbs, .mlc-top .breadcrumbs a, .mlc-top .breadcrumbs span { font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .8) !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.mlc-top .breadcrumbs a:hover { color: #FFF !important; text-decoration: underline; text-underline-offset: 3px; }
.mlc-pager { flex: none; display: flex; gap: 6px; }
.mlc-pager a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(17, 17, 17, .25); color: #FFF !important; text-decoration: none; font: 14px/1 var(--mlc-regular); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.mlc-pager a:hover { background: #FFF; border-color: #FFF; color: var(--mlc-ink) !important; }
.mlc-pager a span { display: none; }
/* Телефон: последний уровень крошек повторяет H1 — скрыт (микроразметка в DOM остаётся), строка в одну линию */
@media (max-width: 599px) {
   .mlc-top .breadcrumbs li:last-child { display: none; }
   .mlc-top .breadcrumbs li:nth-last-child(2) .breadcrumbs__spacer { display: none; }
}

/* Подпись на кадре: H1, слоган, миниатюры, полоса фактов и кнопок */
.mlc-hero-tx { position: relative; z-index: 3; margin-top: -32vw; padding: 0 0 24px; pointer-events: none; }
.mlc-hero-tx .inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.mlc-hero-tx .inner > * { pointer-events: auto; }
.mlc-h1 { display: block; margin: 0; font: 46px/1 var(--mlc-serif); text-transform: none; letter-spacing: -.01em; color: #FFF; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
/* Красная точка после H1 — из style.css сайта (h1:after), здесь только её размер под кегль */
.mlc-h1::after { width: .26em; height: .26em; margin-left: .12em; vertical-align: baseline; }
.mlc-slogan { margin: 12px 0 0; font: 17px/1.45 var(--mlc-light); color: rgba(255, 255, 255, .9); text-wrap: balance; text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }
.mlc-thumbs { display: none; }
.mlc-bar { margin-top: 20px; padding: 14px 0 16px; border-top: 1px solid rgba(255, 255, 255, .28); border-bottom: 1px solid rgba(255, 255, 255, .28); }
.mlc-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 16px/1.4 var(--mlc-regular); color: rgba(255, 255, 255, .75); }
.mlc-area { color: #FFF; white-space: nowrap; }
.mlc-area sup { font-size: .6em; }
.mlc-dot { color: rgba(255, 255, 255, .5); }
.mlc-styles a { color: rgba(255, 255, 255, .78) !important; text-decoration: none; }
.mlc-styles a:hover { color: #FFF !important; text-decoration: underline; text-underline-offset: 3px; }
.mlc-video { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-left: 6px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 0; background: none; color: #FFF; cursor: pointer; font: 12px/1.2 var(--mlc-medium); text-transform: uppercase; letter-spacing: .03em; transition: background .2s ease, border-color .2s ease; }
.mlc-video:hover { background: var(--mlc-red); border-color: var(--mlc-red); }
.mlc-acts { display: grid; gap: 10px; margin-top: 14px; }
.mlc-acts .ml-btn { width: 100%; min-height: 52px; }
/* Красная на тёмном кадре темнеет при наведении: рядом белая контурная, белая заливка её повторяла бы */
.mlc-acts .ml-btn-red:hover { background: #C81D22; border-color: #C81D22; color: #FFF !important; }
.mlc-btn-line { background: transparent; border-color: rgba(255, 255, 255, .85); color: #FFF !important; }
.mlc-btn-line:hover { background: #FFF; border-color: #FFF; color: var(--mlc-ink) !important; }
/* На белом фоне липкая кнопка при наведении чёрная */
.mlc-sticky .ml-btn-red:hover { background: var(--mlc-ink); border-color: var(--mlc-ink); color: #FFF !important; }
.mlc-share { display: flex; align-items: center; gap: 10px; }
.mlc-share > span { font: 14px/1 var(--mlc-regular); color: var(--mlc-muted); }

@media (prefers-reduced-motion: no-preference) {
   .mlc-kb { animation: mlcKb 24s cubic-bezier(.2, .6, .3, 1) forwards; transform-origin: 50% 60%; }
   .mlc-hero-tx .inner > * { animation: mlcUp .8s cubic-bezier(.2, .7, .2, 1) both; }
   .mlc-hero-tx .mlc-slogan, .mlc-hero-tx .mlc-thumbs { animation-delay: .12s; }
   .mlc-hero-tx .mlc-bar { animation-delay: .24s; }
}
@keyframes mlcKb { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes mlcUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
   /* Планшет: кадр на всю секцию, подпись внизу поверх затемнения */
   .mlc-hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 78vh; min-height: 78svh; }
   .mlc-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; aspect-ratio: auto; }
   .mlc-bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .84) 100%); }
   .mlc-hero-tx { margin-top: 0; padding: 140px 0 28px; }
   .mlc-h1 { font-size: 60px; }
   .mlc-slogan { font-size: 19px; }
   .mlc-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 14px 0; }
   .mlc-acts { display: flex; flex: none; gap: 10px; margin-top: 0; }
   .mlc-acts .ml-btn { width: auto; }
   .mlc-pager a span { display: inline; }
   .mlc-pager a { padding: 0 14px; }
   .mlc-top .breadcrumbs, .mlc-top .breadcrumbs a, .mlc-top .breadcrumbs span { font-size: 13px; }
   .mlc-count { top: 64px; right: 20px; }
}
@media (min-width: 600px) and (max-width: 1024px) {
   /* Круглая кнопка Telegram (bottom.html, right 30 px, 64 px) не должна ложиться на кнопки первого экрана */
   .mlc-acts { margin-right: 74px; }
}
@media (min-width: 600px) and (max-width: 899px) {
   /* Две кнопки и факты в одну строку не помещаются: кнопки под фактами */
   .mlc-bar { flex-wrap: wrap; }
   .mlc-acts { width: 100%; }
   .mlc-acts .ml-btn { flex: 1 1 0; }
}
@media (min-width: 1025px) {
   /* Компьютер: секция по высоте окна под шапкой; справа от названия — миниатюры кадров 2–5 */
   .mlc-hero { height: calc(100vh - var(--mlc-head)); height: calc(100svh - var(--mlc-head)); min-height: 640px; max-height: 1100px; }
   .mlc-bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .5) 64%, rgba(0, 0, 0, .82) 100%); }
   .mlc-hero-tx { padding: 0 0 32px; }
   .mlc-hero-tx .inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
   .mlc-h1 { grid-column: 1; font-size: 80px; }
   .mlc-slogan { grid-column: 1; margin-top: 16px; font-size: 21px; }
   .mlc-thumbs { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; gap: 8px; }
   .mlc-bar { grid-column: 1 / -1; margin-top: 28px; padding: 16px 0; }
   .mlc-facts { font-size: 17px; }
   .mlc-acts .ml-btn { min-height: 56px; padding: 0 28px; }
   .mlc-count, .mlc-arrow { display: none !important; }
   /* Круглая кнопка Telegram (bottom.html) висит справа внизу окна, right 30 px, 64 px; на 1024–1480 она ложилась
      на угол кнопок. Отступ справа ровно такой, чтобы между ними было 10 px; от 1488 px он нулевой. */
   .mlc-acts, .mlc-thumbs { margin-right: clamp(0px, calc(744px - 50vw), 74px); }
}
@media (min-width: 1600px) {
   .mlc-h1 { font-size: 96px; }
}
.mlc-thumb { position: relative; display: block; width: 116px; aspect-ratio: 3 / 2; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 0; background: #2A2A2A; overflow: hidden; cursor: zoom-in; transition: border-color .2s ease; }
.mlc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mlc-thumb:hover { border-color: #FFF; }
.mlc-thumb:hover img { transform: scale(1.06); }
.mlc-thumb--all .mlc-all { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(17, 17, 17, .6); color: #FFF; font: 11px/1.1 var(--mlc-medium); text-transform: uppercase; letter-spacing: .04em; transition: background .2s ease; }
.mlc-thumb--all .mlc-all b { font: 22px/1 var(--mlc-serif); letter-spacing: 0; }
.mlc-thumb--all:hover .mlc-all { background: rgba(238, 35, 41, .85); }
@media (min-width: 1600px) { .mlc-thumb { width: 136px; } }

/* ===== Тело страницы ===== */
.mlc-body { color: var(--mlc-ink); }
.mlc-sec { padding: var(--mlc-sec) 0 0; }
.mlc-sec h2, .mlc-faq h2 { font: 30px/1.08 var(--mlc-serif); text-transform: none; letter-spacing: -.005em; color: var(--mlc-ink); margin: 0 0 22px; padding: 0; text-wrap: balance; }
.mlc-sec h3 { text-transform: none; }
.mlc-sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.mlc-sec-head h2 { margin: 0; }
.mlc-head-note { margin: 0; font: 16px/1.6 var(--mlc-light); color: var(--mlc-text); text-wrap: pretty; }
.mlc-head-note a { color: var(--mlc-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mlc-head-note a:hover { color: var(--mlc-red); }
.mlc-sec-note { margin: 18px 0 0; font: 15px/1.6 var(--mlc-light); color: var(--mlc-text); }
.mlc-sec-note a, .mlc-plans-note a, .mlc-more-link { color: var(--mlc-ink) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mlc-sec-note a:hover, .mlc-plans-note a:hover, .mlc-more-link:hover { color: var(--mlc-red) !important; }
.mlc-more-link { font: 15px/1.4 var(--mlc-regular); }
.mlc-nw { white-space: nowrap; }

/* Планировки (четвёртая итерация 21.10): белое на белом, как на сайте до правки. Слева колонка цифр этажей Bodoni
   с черточками между ними, активная красная и крупнее; справа планы стопкой в одной ячейке сетки (.mlc-stack),
   смена — перетекание прозрачности за 0,5 с. На телефоне цифры в строку над планом. */
.mlc-fl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mlc-fl-nums { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; }
.mlc-fl-num { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 64px; padding: 0; border: 0; border-radius: 0; background: none; color: #B4B4B4; cursor: pointer; font: 40px/1 var(--mlc-serif); transition: color .4s ease; }
.mlc-fl-num span { display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mlc-fl-num:hover { color: var(--mlc-ink); }
.mlc-fl-num.is-on { color: var(--mlc-red); }
.mlc-fl-num.is-on span { transform: scale(1.45); }
.mlc-fl-num + .mlc-fl-num::before { content: ""; position: absolute; top: 50%; left: -19px; width: 20px; height: 3px; margin-top: -1px; background: var(--mlc-ink); }
.mlc-fl-cap { flex-basis: 100%; text-align: center; font: 13px/1.2 var(--mlc-regular); color: var(--mlc-muted); }
.mlc-stack { display: grid; }
.mlc-layer { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.mlc-layer.is-on { z-index: 1; opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.mlc-fl .mlc-layer { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mlc-fl .mlc-layer a { display: block; cursor: zoom-in; }
.mlc-fl .mlc-layer img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; }
.mlc-fl figcaption { margin-top: 10px; font: 14px/1.5 var(--mlc-light); color: var(--mlc-text); text-align: center; }
.mlc-plans-note { margin: 22px 0 0; font: 16px/1.6 var(--mlc-light); color: var(--mlc-text); text-align: center; text-wrap: pretty; }

/* Фасады (четвёртая итерация 21.10): большой кадр целиком, без обрезки, и миниатюры рядом; смена — перетекание */
.mlc-fc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* Высота окна — по пропорции первого фасада (style в шаблоне); фасады другой пропорции вписываются целиком на белом */
.mlc-fc .mlc-stack { position: relative; aspect-ratio: 4 / 3; background: #FFF; }
.mlc-fc .mlc-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; cursor: zoom-in; }
.mlc-fc .mlc-layer img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mlc-fc-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mlc-fc-th { position: relative; display: block; aspect-ratio: 280 / 137; padding: 0; border: 0; border-radius: 0; background: var(--mlc-gray); overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .3s ease; }
.mlc-fc-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mlc-fc-th::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s ease; }
.mlc-fc-th:hover { opacity: 1; }
.mlc-fc-th.is-on { opacity: 1; }
.mlc-fc-th.is-on::after { box-shadow: inset 0 0 0 2px var(--mlc-red); }
@media (prefers-reduced-motion: reduce) {
   .mlc-layer, .mlc-layer.is-on, .mlc-fl-num span { transition: none; }
}

/* ===== Описание проекта по частям (пятая итерация 21.10, данные — ml_story блока Projects.ItemCard) =====
   Весь текст на ширину контейнера (.inner, 1280 px): длинную строку держат крупный кегль вступления и заключения
   и короткие абзацы, на которые описание разложено. Кегли, гарнитуры и цвета из визуального редактора и Word
   (span, li, o:p со style) не слушаем. */
.mlc-rich { font: 17px/1.65 var(--mlc-light); color: var(--mlc-text); }
.mlc-rich :not(h2):not(h3):not(h4)[style] { font-size: inherit !important; font-family: inherit !important; line-height: inherit !important; color: inherit !important; background: none !important; }
.mlc-rich p { margin: 0 0 14px; font: inherit; color: inherit; text-wrap: pretty; }
.mlc-rich p:last-child { margin-bottom: 0; }
.mlc-rich .strong, .mlc-rich strong, .mlc-rich b, .mlc-rich .bold { font-family: var(--mlc-medium) !important; font-weight: normal; color: var(--mlc-ink) !important; }
.mlc-rich a { color: var(--mlc-ink); text-decoration: underline; text-underline-offset: 3px; }
.mlc-rich a:hover { color: var(--mlc-red); }
.mlc-rich img { max-width: 100%; height: auto; }
.mlc-rich h3, .mlc-rich h4 { font: 22px/1.2 var(--mlc-serif); text-transform: none; color: var(--mlc-ink); margin: 24px 0 10px; }
/* Ручные переносы из редактора: одиночный <br> — пробел (на всю ширину строки по предложению давали рваный край
   и висяки), двойной — разрыв абзаца. Рядом с каждым <br> в описаниях есть пробел (замер 21.10 по 57 проектам),
   слова не склеиваются */
.mlc-rich br, .mlc-card-tx br, .mlc-list br { display: none; }
.mlc-rich br + br, .mlc-card-tx br + br, .mlc-list br + br { display: block; content: ""; margin-top: 14px; }

/* Вступление — сразу под первым экраном, без заголовка: красная черта и крупный первый абзац */
.mlc-lead::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 24px; background: var(--mlc-red); }
.mlc-lead { font-size: 18px; }
.mlc-lead > p:first-child { font-size: 21px; line-height: 1.5; color: var(--mlc-ink); margin-bottom: 18px; }

/* Серая полоса (архитектура, этажи): отступ снизу равен ритму секций, следующая белая начинается своим отступом */
.mlc-band { margin-top: var(--mlc-sec); padding-bottom: var(--mlc-sec); background: var(--mlc-gray); }

/* Часть описания: строка «иконка + заголовок Bodoni», под ней текст и карточки на всю ширину */
.mlc-st + .mlc-st { margin-top: 40px; }
.mlc-st-h { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 0; font: 24px/1.15 var(--mlc-serif); text-transform: none; letter-spacing: 0; color: var(--mlc-ink); text-wrap: balance; }
.mlc-ico { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--mlc-red); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

/* Пункты списков описания — квадратные карточки; на сером фоне белые, на белом серые */
.mlc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.mlc-card { margin: 0; padding: 22px 22px 24px; background: #FFF; border-top: 2px solid var(--mlc-red); font: 16px/1.6 var(--mlc-light); color: var(--mlc-text); text-wrap: pretty; }
.mlc-card::before { display: none; }
.mlc-about .mlc-card { background: var(--mlc-gray); }
.mlc-card-h { display: block; margin: 0 0 8px; font: 20px/1.2 var(--mlc-serif); color: var(--mlc-ink); }
.mlc-card-tx :not(h2):not(h3)[style] { font-size: inherit !important; font-family: inherit !important; line-height: inherit !important; color: inherit !important; }
.mlc-card-tx .strong, .mlc-card-tx strong, .mlc-card-tx b, .mlc-card-tx .bold { font-family: var(--mlc-medium) !important; font-weight: normal; color: var(--mlc-ink) !important; }
.mlc-cards.is-pairs { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Список внутри карточки этажа и общей «Планировки» — красные черточки, как было в описании */
.mlc-list { margin: 14px 0 0; padding: 0; list-style: none; font: 16px/1.6 var(--mlc-light); color: var(--mlc-text); }
.mlc-list li { position: relative; margin: 0 0 8px; padding: 0 0 0 22px; text-wrap: pretty; }
.mlc-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: var(--mlc-red); }
.mlc-list li :not(h3)[style] { font-size: inherit !important; font-family: inherit !important; color: inherit !important; }
.mlc-list b, .mlc-list strong, .mlc-list .strong, .mlc-list .bold { font-family: var(--mlc-medium) !important; font-weight: normal; color: var(--mlc-ink) !important; }

/* Описание без подзаголовков и списков (1574, 1641, 1642): абзацы строками на всю ширину через тонкую линию */
.mlc-rows { margin-top: 0; border-top: 1px solid var(--mlc-line); font-size: 17px; line-height: 1.65; }
.mlc-rows li { margin: 0; padding: 16px 0 16px 26px; border-bottom: 1px solid var(--mlc-line); }
.mlc-rows li::before { top: calc(16px + .8em); }

/* Этажи: серая полоса, белые карточки с крупной красной цифрой этажа Bodoni, как в планировках */
.mlc-floors { margin-top: var(--mlc-sec); padding-bottom: var(--mlc-sec); background: var(--mlc-gray); }
.mlc-floors .mlc-st { margin-bottom: 28px; }
.mlc-fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.mlc-fcard { position: relative; padding: 26px 24px 28px; background: #FFF; }
.mlc-fcard-num { display: block; margin: 0 0 14px; font: 64px/.9 var(--mlc-serif); color: var(--mlc-red); }
.mlc-fcard-h { margin: 0 0 12px; padding: 0; font: 22px/1.2 var(--mlc-serif); text-transform: none; color: var(--mlc-ink); }
.mlc-fcard .mlc-rich { font-size: 16px; line-height: 1.6; }
.mlc-fcard .mlc-rich p { margin-bottom: 10px; }

/* «О проекте»: заключение крупным текстом с красной чертой */
.mlc-outro { margin-top: 48px; font-size: 18px; }
.mlc-outro::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 24px; background: var(--mlc-red); }
.mlc-outro > p:first-child { font-size: 21px; line-height: 1.5; color: var(--mlc-ink); }

/* Фото и интерьер — мозаика каталога (.ml-gm), свёрнута до 7 плиток на телефоне и 12 на компьютере */
.mlc-photos .ml-gm { margin-top: 0; }
.mlc-photos .ml-gm-tile { cursor: zoom-in; }
.mlc-photos .ml-gm-tile:hover > img { transform: scale(1.03); }

.mlc-video-raw iframe, .mlc-video-raw video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* «Спроектируем дом под ваш участок» — блок каталога .ml-own как есть, чёрный (третья итерация 20.10, Илья) */

/* «Почему с нами надёжно»: светло-серая полоса, белые квадратные карточки с красными значками сайта */
.mlc-why { background: var(--mlc-gray); padding-bottom: var(--mlc-sec); margin-top: var(--mlc-sec); }
.mlc-why-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mlc-why-item { margin: 0; padding: 24px 22px 26px; background: #FFF; }
.mlc-why-item::before { display: none; }
.mlc-why-item svg { display: block; width: 32px; height: 33px; margin-bottom: 18px; }
.mlc-why-item h3 { font: 21px/1.15 var(--mlc-serif); color: var(--mlc-ink); margin: 0 0 10px; text-wrap: balance; }
.mlc-why-item p { font: 15px/1.55 var(--mlc-light); color: #555; margin: 0; text-wrap: pretty; }

/* Похожие проекты: на телефоне лента с прокруткой вбок, на компьютере три в ряд */
.mlc-similar .ml-cat { margin: 0; }
.mlc-sim-row { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
.mlc-sim-row::-webkit-scrollbar { display: none; }
.mlc-sim-row .pcard { scroll-snap-align: start; }
.mlc-sim-row .pc-media { aspect-ratio: 4 / 3; }
.mlc-sim-row .pc-name { font-size: 22px; }
.mlc-sim-row .pc-area { font-size: 17px; }

/* Форма 26 (вторая итерация 20.10): своя обёртка вместо .project_form. Слева панель — заголовок по левому краю,
   поля, кнопка, согласие под кнопкой; справа кадр этого проекта. Инлайн-стили формы из админки (белый текст, рамка
   rgba, 10 px) перебиваются селекторами с #form26. Цель klik_zayavka висит на #form26 .form__submit .btn — не тронута.
   Третья итерация 20.10 (Илья: «фон черный, а не серый»): панель чёрная, текст белый, поля белые; кнопка при наведении
   белая, как на чёрном блоке каталога. */
.mlc-formbox { display: grid; grid-template-columns: 1fr; background: var(--mlc-ink); color: #FFF; }
.mlc-formbox-ph { order: -1; aspect-ratio: 16 / 10; overflow: hidden; background: #222; }
.mlc-formbox-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mlc-formbox-tx { padding: 28px 20px 30px; }
.mlc-sec .mlc-formbox-h { margin: 0; font: 30px/1.1 var(--mlc-serif); text-transform: none; color: #FFF; text-align: left; text-wrap: balance; }
.mlc-formbox-sub { margin: 10px 0 22px; font: 16px/1.5 var(--mlc-light); color: rgba(255, 255, 255, .75); }
.mlc-formbox #form26 { margin: 0; }
.mlc-formbox #form26 .fieldset { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; width: 100%; }
.mlc-formbox #form26 .form__field { margin: 0; width: 100%; }
.mlc-formbox #form26 .form__field input[type="text"], .mlc-formbox #form26 .form__field input[type="tel"] { display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1px solid var(--mlc-line); border-radius: 0; background: #FFF; box-shadow: none; font: 16px/1 var(--mlc-regular); color: var(--mlc-ink); }
.mlc-formbox #form26 .form__field input::placeholder { color: var(--mlc-muted); opacity: 1; }
.mlc-formbox #form26 .form__field input:focus { border-color: var(--mlc-red); box-shadow: inset 0 0 0 1px var(--mlc-red); outline: 0; }
.mlc-formbox #form26 .content-form__bottom { order: 2; margin: 4px 0 0; padding: 0; width: 100%; }
.mlc-formbox #form26 .form__submit { margin: 0; width: 100%; }
.mlc-formbox #form26 .form__submit .btn { display: block; width: 100%; height: 54px; margin: 0; padding: 0 20px; border: 1px solid var(--mlc-red); border-radius: 0; background: var(--mlc-red); color: #FFF; font: 14px/1 var(--mlc-medium); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mlc-formbox #form26 .form__submit .btn:hover { background: #FFF; border-color: #FFF; color: var(--mlc-ink); }
/* Согласие: под кнопкой, 13 px, квадратная галочка 18 px, как в окне заявки (ml-ui.css) */
.mlc-formbox #form26 .form__checkbox { order: 3; display: block; width: 100%; margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.mlc-formbox #form26 .form__checkbox-label { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.mlc-formbox #form26 .form__checkbox-input { position: absolute; top: 0; left: 0; width: 18px; height: 18px; margin: 0; opacity: 0; pointer-events: auto; cursor: pointer; }
.mlc-formbox #form26 .form__checkbox-box { flex: 0 0 18px; width: 18px; min-width: 18px; max-width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #FFF; border-radius: 0; background: transparent; }
.mlc-formbox #form26 .form__checkbox-input:checked + .form__checkbox-box { background: var(--mlc-red); border-color: var(--mlc-red); }
.mlc-formbox #form26 .form__checkbox-input:checked + .form__checkbox-box::after { left: 4.5px; top: 1px; width: 5px; height: 10px; border-width: 0 2px 2px 0; }
.mlc-formbox #form26 .form__checkbox-input:focus-visible + .form__checkbox-box { outline: 2px solid var(--mlc-red); outline-offset: 2px; }
.mlc-formbox #form26 .form__checkbox-text { font: 13px/1.45 var(--mlc-regular); color: rgba(255, 255, 255, .62); text-wrap: pretty; }
.mlc-formbox #form26 .form__checkbox-text a { color: #FFF; text-decoration: underline; text-underline-offset: 2px; }
.mlc-formbox #form26 .form__checkbox-text a:hover { color: var(--mlc-red); opacity: 1; }

/* Конец страницы: соседние проекты и «Поделиться» */
.mlc-end { padding: 0 0 var(--mlc-sec); }
.mlc-end-row { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 24px; border-top: 1px solid var(--mlc-line); }
.mlc-end-prev, .mlc-end-next { display: inline-flex; align-items: center; gap: 12px; color: var(--mlc-ink) !important; text-decoration: none; font: 18px/1.2 var(--mlc-serif); }
.mlc-end-prev small, .mlc-end-next small { display: block; margin-bottom: 4px; font: 13px/1.2 var(--mlc-regular); color: var(--mlc-muted); }
.mlc-end-prev:hover, .mlc-end-next:hover { color: var(--mlc-red) !important; }
.mlc-end-next { justify-content: flex-end; text-align: right; }
.mlc-end-row > .mlc-share { order: 3; }

@media (min-width: 900px) {
   .mlc-fl.has-nums { grid-template-columns: 150px minmax(0, 1fr); gap: 0 48px; align-items: center; }
   .mlc-fl-nums { flex-direction: column; flex-wrap: nowrap; gap: 26px 0; }
   .mlc-fl-num { width: 120px; height: 104px; font-size: 64px; }
   .mlc-fl-num.is-on span { transform: scale(1.7); }
   .mlc-fl-num + .mlc-fl-num::before { top: -15px; left: 50%; width: 38px; height: 4px; margin: 0 0 0 -19px; }
   .mlc-fl-cap { flex-basis: auto; margin-top: 4px; }
   .mlc-formbox.has-photo { grid-template-columns: 1fr 1fr; }
   .mlc-formbox-ph { order: 0; aspect-ratio: auto; min-height: 520px; }
   .mlc-formbox-tx { padding: 56px 56px 52px; align-self: center; }
   .mlc-sec .mlc-formbox-h { font-size: 40px; }
   .mlc-end-row { grid-template-columns: 1fr auto 1fr; align-items: center; }
   .mlc-end-row > .mlc-share { order: 0; }
   .mlc-end-prev, .mlc-end-next { font-size: 22px; }
}
.mlc-faq { padding: var(--mlc-sec) 0; }

/* Липкая кнопка расчёта на телефоне (решение Ильи 20.10): появляется, когда кнопка под заголовком ушла вверх,
   прячется у формы. Пока виден баннер cookie, ml-card.js поднимает её над баннером. */
.mlc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -10px 24px -14px rgba(17, 17, 17, .45); transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.mlc-sticky.is-on { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.mlc-sticky .ml-btn { width: 100%; }
html.mlc-sticky-on .back-top { bottom: 84px; }

/* Окно видео поверх страницы (создаёт ml-card.js) — как окно 3D-панорамы каталога */
.mlc-vbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000001; display: flex; align-items: center; justify-content: center; padding: 72px 16px 16px; background: rgba(0, 0, 0, .92); }
.mlc-vbox[hidden] { display: none; }
.mlc-vbox video, .mlc-vbox iframe { display: block; width: 100%; max-width: 1200px; max-height: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.mlc-vbox-x { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, .94); color: var(--mlc-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mlc-vbox-x:hover { background: var(--mlc-red); color: #FFF; }
html.mlc-vbox-open, html.mlc-vbox-open body { overflow: hidden; }

@media (min-width: 600px) {
   .mlc-why-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
   .mlc-sticky { display: none; }
   .mlc-sim-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1025px) {
   .mlc-fc.has-thumbs { grid-template-columns: minmax(0, 1fr) 240px; gap: 0 16px; align-items: start; }
   .mlc-fc-thumbs { grid-template-columns: 1fr; gap: 10px; }
   .mlc-sec h2, .mlc-faq h2 { font-size: 44px; }
   .mlc-sec-head { margin-bottom: 28px; }
   .mlc-rich { font-size: 18px; }
   .mlc-lead { font-size: 19px; }
   .mlc-lead > p:first-child, .mlc-outro > p:first-child { font-size: 24px; }
   .mlc-st-h { font-size: 30px; gap: 16px; }
   .mlc-ico { width: 40px; height: 40px; }
   .mlc-st + .mlc-st { margin-top: 56px; }
   .mlc-card { padding: 26px 26px 28px; }
   .mlc-fcard { padding: 30px 30px 32px; }
   .mlc-fcard-num { font-size: 80px; }

   .mlc-why-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
   .mlc-why-item { padding: 32px 28px 34px; }
   .mlc-why-item svg { width: 40px; height: 41px; margin-bottom: 24px; }
   .mlc-why-item h3 { font-size: 24px; }
   .mlc-sim-row .pc-name { font-size: 26px; }
   .mlc-vbox-x { top: 22px; right: 22px; width: 60px; height: 60px; }
}
