/* Новый каталог /projects/ (20.10.2026). Прототип — «Каталог — редизайн/прототип».
   Подключается из base.html на странице 150 (/projects/) и из projects.html на подборках /projects/<подборка>/.
   Шрифты BodoniBold и Roboto* объявлены в общем style.css, здесь не повторяются.
   Все селекторы под .ml-cat*, чтобы не задеть style.css, который правили Демис. */

/* Заголовок вместо баннера. Отступ сверху — как у .content других страниц (под шапку) */
.ml-cat-intro { padding-top: 136px; }
.ml-cat-intro + .content { margin-top: 0; }
.ml-cat-intro .breadcrumbs { border-top: 0; padding: 0 0 14px; }
.ml-cat-intro .breadcrumbs .inner { padding: 0; }
.ml-cat-h1 { font: 34px/1.05 "BodoniBold", serif; text-transform: none; letter-spacing: -0.01em; color: #111; margin: 0 0 12px; }
.ml-cat-h1 span { font: inherit; text-transform: none; color: inherit; }
/* Лид и вводный текст — на всю ширину контейнера (21.10.2026, Илья: узкие колонки текста некрасивы, везде убрать) */
.ml-cat-lead { font: 16px/1.5 "RobotoLight", Roboto, sans-serif; color: #111; margin: 0; }

/* Верхняя строка чипсов из текста страницы 150. С выкладкой catalog-bottom.html (20.10) её в разметке нет;
   правило оставлено, чтобы стили можно было залить раньше шаблонов. Убрать при следующей правке. */
#proekt + .inner > .tags-list { display: none; }

.ml-cat { margin: 28px 0 0; color: #111; }
.ml-cat a { color: inherit; }
.ml-cat img { display: block; max-width: 100%; }
.ml-cat :focus-visible { outline: 2px solid #EE2329; outline-offset: 2px; }

/* Выбор стиля */
.ml-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ml-cat h2 { font: 24px/1.1 "BodoniBold", serif; text-transform: none; letter-spacing: 0; margin: 0; color: #111; }
.ml-reset { white-space: nowrap; color: #EE2329 !important; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.ml-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; color: #FFF !important; background: #111; }
.ml-tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s ease, transform .6s ease; }
/* style.css рисует у всех ссылок a::after — черту 0×1 px, которая растёт при наведении.
   В каталоге она не нужна, а затемнению плитки стиля сужала размер до нуля. */
.ml-cat a::after { display: none; }
.ml-cat .ml-tile::after { content: ""; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75) 100%); }
.ml-tile img { position: relative; z-index: 0; }
.ml-tile-name { position: absolute; left: 10px; right: 8px; bottom: 32px; z-index: 2; font: 17px/1.1 "BodoniBold", serif; overflow-wrap: anywhere; }
.ml-tile-count { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 13px; opacity: .85; }
.ml-tiles.has-active .ml-tile:not(.is-active) img { filter: grayscale(1) brightness(.85); }
.ml-tile.is-active { box-shadow: inset 0 0 0 3px #EE2329; }
.ml-tile.is-active::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #EE2329; z-index: 3; }

/* Подборки одной строкой с прокруткой */
.ml-chips { margin: 18px -20px 0; padding: 0 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.ml-chips::-webkit-scrollbar { display: none; }
.ml-chips a { flex: none; padding: 9px 14px; background: #F4F4F4; text-decoration: none; font-size: 14px; white-space: nowrap; border-radius: 999px; }
.ml-chips a:hover { background: #111; color: #FFF; }
.ml-chips-label { flex: none; align-self: center; font-size: 14px; color: #6B6B6B; padding-right: 4px; }

/* Строка результата */
.ml-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #E6E6E6; margin-top: 22px; padding: 16px 0; scroll-margin-top: 100px; }
.ml-result h2 { font-size: 20px; line-height: 1.2; }
.ml-count { display: block; font: 14px/1.2 "RobotoRegular", Roboto, sans-serif; color: #6B6B6B; margin-top: 4px; }
.ml-tools { display: flex; align-items: center; gap: 16px; }
.ml-search { display: flex; align-items: center; border: 1px solid #E6E6E6; height: 40px; width: 40px; overflow: hidden; transition: width .25s ease; margin: 0; }
.ml-search input[type="search"] { border: 0; outline: 0; font: 14px "RobotoRegular", Roboto, sans-serif; width: 0; padding: 0; height: 38px; background: transparent; }
.ml-search button { flex: none; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; color: #111; display: flex; align-items: center; justify-content: center; padding: 0; }
.ml-search.is-open { width: 210px; }
.ml-search.is-open input[type="search"] { width: 160px; padding: 0 10px; }

/* Список: ряды мозаики, карточка целиком ведёт на проект, кнопок на карточке нет */
.ml-grid { display: grid; grid-template-columns: 1fr; row-gap: 44px; }
.mrow { display: grid; grid-template-columns: 1fr; gap: 44px; }
.pcard { position: relative; min-width: 0; }
/* Кадры лежат стопкой и сменяются на месте перетеканием: соседний кадр не виден
   ни при наведении, ни при переключении. Увеличивается только видимый кадр. */
.pc-media { position: relative; overflow: hidden; background: #F4F4F4; aspect-ratio: 4 / 3; touch-action: pan-y; }
.pc-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.pc-slide.on { opacity: 1; z-index: 1; pointer-events: auto; }
.pc-slide img, .pc-slide picture { display: block; width: 100%; height: 100%; }
.pc-slide img { object-fit: cover; transition: transform .8s ease; }
.pcard:hover .pc-slide.on img { transform: scale(1.03); }
.pc-bars { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.pc-bars i { flex: 1; height: 2px; background: rgba(255, 255, 255, .45); transition: background .2s ease; }
.pc-bars i.on { background: #FFF; }
.pc-arrow { position: absolute; top: 50%; z-index: 4; width: 44px; height: 64px; margin-top: -32px; border: 0; padding: 0; background: rgba(17, 17, 17, .45); color: #FFF; cursor: pointer; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease, background .2s ease; }
.pc-arrow:hover { background: #EE2329; }
.pc-prev { left: 0; }
.pc-next { right: 0; }
.pc-arrow[disabled] { visibility: hidden; }
@media (hover: hover) {
   .pc-arrow { display: flex; }
   .pcard:hover .pc-arrow, .pc-arrow:focus-visible { opacity: 1; }
}
.pc-cap { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; margin-top: 16px; }
.pc-name { font: 26px/1.05 "BodoniBold", serif; text-decoration: none; }
.pc-name:hover { color: #EE2329 !important; }
.pc-area { font: 19px/1 "RobotoLight", Roboto, sans-serif; color: #EE2329; white-space: nowrap; }
.pc-area sup { font-size: .6em; }
.pc-styles { font-size: 14px; color: #6B6B6B; }
.pc-more { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; justify-self: end; }

/* Блок «Спроектируем дом под ваш участок» — единственная красная кнопка в списке */
.ml-own { background: #111; color: #FFF; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.ml-own-ph { aspect-ratio: 16 / 9; }
.ml-own-ph img { width: 100%; height: 100%; object-fit: cover; }
.ml-own-tx { padding: 24px 20px 28px; }
.ml-own h3 { font: 28px/1.1 "BodoniBold", serif; text-transform: none; margin: 0 0 12px; color: #FFF; }
.ml-own p { font: 16px/1.55 "RobotoLight", Roboto, sans-serif; margin: 0 0 20px; max-width: 32em; opacity: .9; color: #FFF; }
.ml-own-acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.ml-link { color: #FFF !important; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.ml-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid #111; background: #FFF; color: #111 !important; text-decoration: none; cursor: pointer; font: 13px/1.2 "RobotoMedium", Roboto, sans-serif; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.ml-btn:hover { background: #111; color: #FFF !important; }
.ml-btn-red { background: #EE2329; border-color: #EE2329; color: #FFF !important; }
.ml-btn-red:hover { background: #FFF; border-color: #FFF; color: #111 !important; }

/* Ещё */
.ml-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 0 16px; }
.ml-shown { font-size: 14px; color: #6B6B6B; }
.ml-more .ml-btn { min-width: 260px; }
.ml-more.is-loading .ml-btn { opacity: .5; pointer-events: none; }
.ml-empty { font-size: 16px; padding: 8px 0 24px; }
.ml-empty a { color: #EE2329; text-decoration: underline; }

@media (min-width: 768px) {
   .ml-chips { margin-left: -30px; margin-right: -30px; padding: 0 30px; }
}
@media (min-width: 900px) {
   .ml-tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; }
   /* Плитки горизонтальные, как у старой страницы: фото стилей 630×438, дома не обрезаются (Илья 20.10) */
   .ml-tile { aspect-ratio: 630 / 438; }
   .ml-tile-name { font-size: 24px; left: 16px; bottom: 38px; }
   .ml-tile-count { left: 16px; bottom: 14px; font-size: 14px; }
   .ml-tile:hover img { transform: scale(1.03); }
   .ml-tiles.has-active .ml-tile:not(.is-active):hover img { filter: none; }
   .ml-grid { row-gap: 32px; }
   .pc-media { aspect-ratio: 3 / 2; }
   .pc-name { font-size: 32px; }
   .pc-area { font-size: 21px; }
   /* Подпись поверх кадра у всех плиток мозаики */
   .pcard.is-over .pc-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 65%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .78)); z-index: 2; pointer-events: none; }
   .pcard.is-over .pc-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 0 28px 34px; color: #FFF; pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
   .pcard.is-over .pc-cap a { pointer-events: auto; color: #FFF !important; }
   .pcard.is-over .pc-area { color: #FFF; }
   .pcard.is-over .pc-styles { color: rgba(255, 255, 255, .85); }
   .pcard.is-over .pc-bars { left: 28px; right: 28px; bottom: 16px; }
   .pcard.is-over .pc-name { font-size: 28px; }
   /* Широкая плитка: кадр top1 1792×832 */
   .pcard.is-feature .pc-media { aspect-ratio: 1792 / 832; }
   .pcard.is-feature .pc-cap { padding: 0 48px 44px; }
   .pcard.is-feature .pc-name { font-size: 60px; }
   .pcard.is-feature .pc-area { font-size: 26px; }
   .pcard.is-feature .pc-styles { font-size: 15px; }
   .pcard.is-feature .pc-bars { left: 48px; right: 48px; bottom: 20px; }
   /* Ряды мозаики делятся ровно по центру, разделитель совпадает от ряда к ряду */
   .mrow { gap: 32px; }
   .mrow--tl, .mrow--tr, .mrow--p11 { grid-template-columns: 1fr 1fr; }
   .mrow--tl .is-tall { grid-row: 1 / 3; }
   .mrow--tr .pcard { grid-column: 1; }
   .mrow--tr .is-tall { grid-column: 2; grid-row: 1 / 3; }
   .mrow--tl .pcard:not(.is-tall) .pc-media, .mrow--tr .pcard:not(.is-tall) .pc-media { aspect-ratio: 16 / 10; }
   .is-tall { display: flex; flex-direction: column; }
   .is-tall .pc-media { aspect-ratio: auto; flex: 1; }
   .pcard.is-over.is-tall .pc-name { font-size: 44px; }
   .pcard.is-over.is-tall .pc-area { font-size: 23px; }
   .ml-own { grid-template-columns: 1.15fr 1fr; }
   .ml-own-ph { aspect-ratio: auto; min-height: 460px; }
   .ml-own-tx { padding: 48px 44px; align-self: center; }
   .ml-own h3 { font-size: 36px; }
   .ml-result { scroll-margin-top: 130px; }
}
@media (min-width: 1100px) {
   /* H1 сверху, лид под ним на всю ширину; до 21.10 лид стоял правой половиной сетки 1.1fr / 1fr */
   .ml-cat-h1 { font-size: 64px; margin: 0 0 16px; }
   .ml-cat-lead { font-size: 18px; }
   .ml-cat { margin-top: 44px; }
   .ml-cat h2 { font-size: 30px; }
   .ml-chips { margin-left: 0; margin-right: 0; padding: 0; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
   .ml-chips a { padding: 8px 12px; font-size: 13px; }
   .ml-result h2 { font-size: 24px; }
   .ml-count { display: inline; margin: 0 0 0 8px; font-size: 15px; }
}

/* Низ страницы (catalog-bottom.html): услуги, галерея с 3D-панорамой, вопросы, текст о каталоге.
   style.css задаёт h2 капсом 46px, красные ссылки с чертой a::after и маркеры у ul li — здесь всё сброшено. */
.ml-bot { margin-top: 56px; color: #111; }
.ml-bot a { color: inherit; }
.ml-bot a::after { display: none; }
.ml-bot ul { margin: 0; padding: 0; list-style: none; }
.ml-bot ul li { margin: 0; padding: 0; }
.ml-bot ul li::before { display: none; }
.ml-bot h2 { font: 30px/1.08 "BodoniBold", serif; text-transform: none; letter-spacing: -0.005em; margin: 0; padding: 0; color: inherit; }
.ml-bot p { margin: 0; }
.ml-bot img { max-width: none; }
.ml-bot :focus-visible { outline: 2px solid #EE2329; outline-offset: 2px; }

/* Без висяков (правило Ильи, ADR-0018 дизайн-системы AMCH): в коротких текстах до четырёх строк
   строки выравниваются по длине, у абзацев последняя строка не остаётся из одного слова.
   У текста нет своей ширины уже его блока. Где браузер этого не умеет, текст переносится как раньше. */
.ml-cat-h1, .ml-cat-lead, .ml-cat h2, .ml-own h3, .ml-own p, .pc-name, .pc-styles, .ml-empty,
.ml-btn, .ml-bot h2, .ml-sv-cap p, .ml-sv-name, .ml-sv-desc, .ml-sv-note, .ml-tour-h, .ml-tour-p, .ml-tour-cta, .ml-q summary { text-wrap: balance; }
.ml-a p, .ml-about p { text-wrap: pretty; }

/* Проектирование (светлая) и стройка (тёмная полоса): широкий кадр с подписью, на его край заходят карточки услуг.
   Иконки услуг — картинки сайта как есть (красные объёмные, PNG внутри SVG), без перекраски. */
.ml-sv { padding-bottom: 56px; }
/* Стройка — светло-серая полоса, как серые блоки сайта; резкий чёрный переход Илья снял 20.10 */
.ml-sv--gray { background: #F4F4F4; padding: 56px 0 64px; }
.ml-sv--gray .ml-sv-card { background: #FFF; }
.ml-sv-hero { position: relative; }
.ml-sv-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #222; }
.ml-sv-note { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 10px; background: rgba(17, 17, 17, .45); color: rgba(255, 255, 255, .9); font: 12px/1.3 "RobotoRegular", Roboto, sans-serif; }
.ml-sv-cap { padding-top: 22px; }
.ml-sv-cap p { font: 16px/1.6 "RobotoLight", Roboto, sans-serif; margin-top: 12px; }
/* .ml-bot ul сбрасывает отступы списков, поэтому у сетки карточек селектор с .ml-bot */
.ml-bot .ml-sv-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 24px 0 0; position: relative; z-index: 3; }
.ml-sv-cards li { display: flex; }
.ml-sv-card { position: relative; flex: 1; display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; align-items: start; padding: 20px 18px; background: #F4F4F4; text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.ml-sv-ic { grid-row: 1 / 3; display: block; width: 48px; height: 48px; object-fit: contain; transition: transform .3s ease; }
.ml-sv-name { font: 20px/1.15 "BodoniBold", serif; color: #111; }
.ml-sv-desc { font: 14px/1.5 "RobotoLight", Roboto, sans-serif; color: #555; }
.ml-sv-go { display: none; }
.ml-sv-card:hover .ml-sv-ic { transform: translateY(-3px); }

/* Галерея работ: лента с прокруткой вбок, крупно открывает fancybox сайта */
.ml-gal-sec { padding-top: 64px; }
.ml-gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.ml-gal-head h2 { flex: 1 1 100%; }
.ml-gal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ml-gal-links a { font: 15px/1.3 "RobotoRegular", Roboto, sans-serif; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ml-gal-links a:hover { color: #EE2329; }

/* 3D-панорама — первая большая плитка мозаики галереи. Круговая развёртка тура едет по кругу без шва
   (две копии кадра, сдвиг на половину ленты), справа квадратный значок «360°», по рамке которого бежит градиент */
.ml-bot .ml-tour { position: relative; display: block; overflow: hidden; background: #111; color: #FFF; text-decoration: none; isolation: isolate; }
.ml-tour-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; width: max-content; animation: ml-pan 120s linear infinite; will-change: transform; }
.ml-tour-track img { display: block; flex: none; height: 100%; width: auto; }
@keyframes ml-pan { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ml-bot .ml-tour::after { content: ""; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; width: auto; height: auto; background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .15) 100%); transition: none; }
.ml-tour-tx { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ml-tour-h { font: 30px/1.05 "BodoniBold", serif; }
.ml-tour-p { font: 15px/1.5 "RobotoLight", Roboto, sans-serif; opacity: .92; }
.ml-tour-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .75); font: 13px/1.2 "RobotoMedium", Roboto, sans-serif; text-transform: uppercase; letter-spacing: .02em; transition: background .25s ease, color .25s ease; }
.ml-tour:hover .ml-tour-cta { background: #FFF; color: #111; }
/* «360°» в левом верхнем углу плитки, по одной вертикали с заголовком и кнопкой (Илья 20.10: справа «висел в воздухе») */
.ml-tour-btn { position: absolute; top: 20px; left: 20px; z-index: 2; width: 84px; height: 84px; }
/* Рамка 3 px: два слоя маски (content-box и весь блок) вычитаются, остаётся только рамка.
   Бежит угол градиента (@property), сам квадрат стоит. Без @property рамка без движения. */
@property --ml-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ml-tour-ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 3px; background: conic-gradient(from var(--ml-a), rgba(238, 35, 41, 0) 0deg, rgba(238, 35, 41, .15) 120deg, #EE2329 330deg, rgba(238, 35, 41, 0) 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: ml-ring 3.2s linear infinite; }
@keyframes ml-ring { to { --ml-a: 360deg; } }
.ml-tour-360 { position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; display: flex; align-items: center; justify-content: center; background: rgba(17, 17, 17, .55); font: 22px/1 "BodoniBold", serif; color: #FFF; transition: background .3s ease, transform .3s ease; }
.ml-tour:hover .ml-tour-360 { background: #EE2329; transform: scale(1.05); }

/* Галерея — мозаика (Илья 20.10, образец — коллажи «Ели Estate» и мозаика каталога): первая большая плитка —
   3D-панорама. Телефон: две колонки, каждая третья плитка на всю ширину. Свёрнуто 7 плиток на телефоне
   и 12 на компьютере, кнопка «Показать все фото» (ml-catalog.js) снимает ограничение. */
.ml-gm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 22px; }
.ml-gm-tile { position: relative; display: block; overflow: hidden; background: #F4F4F4; aspect-ratio: 1 / 1; }
.ml-gm-tile:nth-child(3n+1), .ml-gm-tile:nth-child(3n+2):last-child { grid-column: span 2; aspect-ratio: 3 / 2; }
.ml-gm-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ml-gm > a:not(.ml-tour) { cursor: zoom-in; }
.ml-bot .ml-gm .ml-tour { aspect-ratio: auto; min-height: 360px; }
.ml-gm:not(.is-open) > :nth-child(n+8) { display: none; }
.ml-gm-more { display: flex; justify-content: center; margin-top: 28px; }
.ml-gm-more .ml-btn { min-width: 260px; }

/* Окно с туром поверх страницы (создаёт ml-catalog.js): крестик, Esc и «Назад» закрывают.
   Выше баннера cookie (999999) и его окна (1000000): пока тур открыт, баннер под ним, после закрытия снова виден. */
.ml-tourbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000001; background: #000; }
.ml-tourbox[hidden] { display: none; }
.ml-tourbox iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.ml-tourbox.is-loaded .ml-tourbox-load { display: none; }
.ml-tourbox-load { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font: 15px/1.4 "RobotoRegular", Roboto, sans-serif; pointer-events: none; }
.ml-tourbox-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 0; background: rgba(255, 255, 255, .94); color: #111; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: background .2s ease, color .2s ease; }
.ml-tourbox-x:hover { background: #EE2329; color: #FFF; }
.ml-tourbox-x:focus-visible { outline: 2px solid #EE2329; outline-offset: 3px; }
html.ml-tour-open, html.ml-tour-open body { overflow: hidden; }

/* Вопросы: раскрывашки без JS, микроразметка FAQPage в шаблоне */
.ml-faq { padding: 64px 0; }
.ml-faq-list { margin-top: 22px; border-top: 1px solid #111; }
.ml-q { border-bottom: 1px solid #DADADA; }
.ml-q summary { list-style: none; position: relative; cursor: pointer; padding: 18px 40px 18px 0; font: 17px/1.35 "RobotoMedium", Roboto, sans-serif; color: #111; transition: color .2s ease; }
.ml-q summary::-webkit-details-marker { display: none; }
.ml-q summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat; transition: transform .25s ease; }
.ml-q[open] summary::after { background: linear-gradient(#EE2329, #EE2329) center / 16px 1.5px no-repeat; transform: rotate(180deg); }
.ml-q summary:hover { color: #EE2329; }
.ml-a p { font: 16px/1.6 "RobotoLight", Roboto, sans-serif; color: #333; padding: 0 40px 22px 0; }

/* Текст о каталоге на серой полосе перед подвалом, первый абзац крупнее. С 21.10.2026 на всю ширину контейнера
   и по левому краю (Илья: узкая колонка 760 px некрасива) */
.ml-about { background: #F4F4F4; padding: 64px 0 72px; }
.ml-about h2 { text-align: left; }
.ml-about h2::after { content: ""; display: block; width: 48px; height: 2px; margin: 20px 0 28px; background: #EE2329; }
.ml-about p { font: 17px/1.65 "RobotoLight", Roboto, sans-serif; color: #333; margin: 0 0 16px; text-wrap: pretty; }
.ml-about p.ml-about-lead { font-size: 21px; line-height: 1.5; color: #111; margin-bottom: 22px; }
.ml-about p:last-child { margin-bottom: 0; }
.ml-about a { color: #111; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ml-about a:hover { color: #EE2329; }

@media (min-width: 600px) {
   .ml-bot .ml-sv-cards { grid-template-columns: 1fr 1fr; }
   .ml-sv-card { display: flex; flex-direction: column; gap: 0; padding: 26px 24px 30px; }
   .ml-sv-ic { width: 56px; height: 56px; margin-bottom: 22px; }
   .ml-sv-name { margin-bottom: 10px; }
}
@media (min-width: 768px) {
}
@media (min-width: 900px) {
   .ml-bot { margin-top: 72px; }
   .ml-bot h2 { font-size: 44px; }
   .ml-sv { padding-bottom: 104px; }
   .ml-sv--gray { padding: 104px 0 112px; }
   .ml-sv-hero { overflow: hidden; }
   .ml-sv-hero img { aspect-ratio: 21 / 9; }
   /* Затемнение слева и снизу: подпись должна читаться и на светлом фасаде (фото Медисон-парка) */
   .ml-sv-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(to right, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .15) 75%), linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 50%); }
   .ml-sv-note { top: 20px; right: 24px; }
   /* Подпись по центру видимой части кадра: от верха до края карточек (они заходят на кадр на 112 px) */
   .ml-sv-cap { position: absolute; left: 48px; top: 0; bottom: 112px; z-index: 2; display: flex; flex-direction: column; justify-content: center; max-width: 680px; padding: 0; color: #FFF; }
   .ml-sv-cap h2 { font-size: 52px; color: #FFF; }
   .ml-sv-cap p { font-size: 18px; margin-top: 16px; opacity: .92; }
   .ml-bot .ml-sv-cards { margin: -112px 32px 0; gap: 16px; }
   /* Четыре карточки бюро в ряд — только от 1200 px: на 1024 описания растягивались на 5–7 строк */
   .ml-bot .ml-sv-cards--4 { grid-template-columns: 1fr 1fr; }
   .ml-bot .ml-sv-cards--6 { grid-template-columns: repeat(3, 1fr); }
   .ml-sv-card { min-height: 300px; padding: 32px 28px 92px; background: #FFF; box-shadow: 0 24px 48px -28px rgba(17, 17, 17, .45); }
   .ml-sv-card::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: #EE2329; transition: width .4s ease; }
   .ml-sv-card:hover { transform: translateY(-6px); }
   .ml-sv-card:hover::before { width: 100%; }
   .ml-sv-ic { width: 64px; height: 64px; margin-bottom: 28px; }
   .ml-sv-name { font-size: 24px; margin-bottom: 12px; }
   .ml-sv-desc { font-size: 15px; line-height: 1.55; }
   .ml-sv-go { display: flex; position: absolute; left: 28px; bottom: 26px; width: 44px; height: 44px; border: 1px solid #111; align-items: center; justify-content: center; color: #111; transition: background .3s ease, border-color .3s ease, color .3s ease; }
   .ml-sv-card:hover .ml-sv-go { background: #EE2329; border-color: #EE2329; color: #FFF; }
   .ml-gal-sec { padding-top: 96px; }
   /* Мозаика: 12 колонок, цикл из шести плиток — большая 8×4 и две 4×2 рядом, затем три 4×2;
      следующий цикл зеркальный. Последняя плитка, оставшаяся одна в начале цикла, — на всю ширину. */
   .ml-gm { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 132px; grid-auto-flow: dense; gap: 10px; margin-top: 28px; }
   .ml-gm-tile, .ml-gm-tile:nth-child(3n+1), .ml-gm-tile:nth-child(3n+2):last-child { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
   .ml-gm-tile:nth-child(6n+1) { grid-column: 1 / span 8; grid-row: span 4; }
   .ml-gm-tile:nth-child(12n+7) { grid-column: 5 / span 8; }
   .ml-gm-tile:nth-child(12n+8), .ml-gm-tile:nth-child(12n+9) { grid-column: 1 / span 4; }
   .ml-gm-tile:nth-child(6n+1):last-child { grid-column: 1 / -1; }
   .ml-bot .ml-gm .ml-tour { min-height: 0; }
   .ml-gm:not(.is-open) > :nth-child(n+8) { display: block; }
   .ml-gm:not(.is-open) > :nth-child(n+13) { display: none; }
   .ml-gm-tile:hover > img { transform: scale(1.03); }
   .ml-gm-more { margin-top: 36px; }
   .ml-gal-head h2 { flex: 1 1 auto; }
   .ml-gal-links { padding-bottom: 12px; }
   .ml-bot .ml-tour::after { background: linear-gradient(to right, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .1) 100%); }
   .ml-tour-tx { left: 48px; right: auto; bottom: 48px; max-width: 520px; gap: 12px; }
   .ml-tour-h { font-size: 48px; }
   .ml-tour-p { font-size: 17px; }
   .ml-tour-cta { margin-top: 10px; min-height: 48px; padding: 0 22px; }
   .ml-tour-btn { top: 48px; left: 48px; width: 120px; height: 120px; }
   .ml-tour-360 { top: 9px; right: 9px; bottom: 9px; left: 9px; font-size: 34px; }
   .ml-tourbox-x { top: 22px; right: 22px; width: 60px; height: 60px; }
   .ml-faq { padding: 96px 0; }
   /* Вопросы под заголовком на всю ширину; до 21.10.2026 заголовок стоял слева, ответы справа (1fr / 1.5fr) */
   .ml-faq-list { margin-top: 28px; }
   .ml-q summary { font-size: 19px; padding: 24px 48px 24px 0; }
   .ml-a p { font-size: 17px; padding-bottom: 26px; }
   .ml-about { padding: 104px 0 112px; }
   .ml-about p { font-size: 17px; }
   .ml-about p.ml-about-lead { font-size: 21px; }
}
@media (min-width: 1100px) {
}
@media (min-width: 1200px) {
   .ml-bot .ml-sv-cards--4 { grid-template-columns: repeat(4, 1fr); }
}
/* ===== Подборки /projects/<подборка>/ (20.10.2026, шаблон projects.html) =====
   Вид каталога: компактный заголовок, плитки стилей, строка подборок с выделенной текущей, мозаика.
   Под H1 — строка с числом проектов (Projects.CollectionLead.html) и вводный текст подборки из админки. */
.ml-coll-text { margin-top: 14px; font: 16px/1.6 "RobotoLight", Roboto, sans-serif; color: #333; }
.ml-coll-text p { margin: 0 0 10px; }
.ml-coll-text p:last-child { margin-bottom: 0; }
.ml-coll-text a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.ml-coll-intro a::after { display: none; }
/* style.css делает h1 строчным (display: inline), а text-wrap: balance работает только у блоков: без этого длинный H1 подборки
   оставлял на второй строке «250 м2» (замер 20.10, 768 px). У каталога H1 короткий, его не трогаем. */
.ml-coll-intro .ml-cat-h1 { display: block; }
/* Ссылки на вложенные подборки (площадь, этажность) во вводном тексте и в тексте внизу — строками чипсов. Разделители « | » из текста админки
   скрыты нулевым кеглем строки, у самих ссылок кегль свой. */
.ml-coll-text div[style*="text-align: center"], .ml-ctext > div[style*="text-align: center"] { font-size: 0 !important; font-weight: normal !important; text-align: left !important; padding: 0 !important; margin: 0; }
.ml-coll-text div[style*="text-align: center"] + div[style*="text-align: center"], .ml-ctext > div[style*="text-align: center"] + div[style*="text-align: center"] { margin-top: 2px; }
.ml-coll-text div[style*="text-align: center"] a, .ml-ctext > div[style*="text-align: center"] a { display: inline-block; margin: 0 6px 6px 0; padding: 7px 11px; background: #F4F4F4; border-radius: 999px; font: 13px/1.2 "RobotoRegular", Roboto, sans-serif; color: #111; text-decoration: none; }
.ml-coll-text div[style*="text-align: center"] a:hover, .ml-ctext > div[style*="text-align: center"] a:hover { background: #111; color: #FFF; }
/* Примечание «кирпич и блоки взаимозаменяемы»: розовая скруглённая плашка из админки — серая и квадратная */
.ml-coll-text p[style*="background"], .ml-ctext p[style*="background"] { background: #F4F4F4 !important; border: 0 !important; border-radius: 0 !important; padding: 14px 16px !important; font: 14px/1.55 "RobotoLight", Roboto, sans-serif !important; color: #333; overflow: hidden; }
.ml-coll-text p[style*="background"] img, .ml-ctext p[style*="background"] img { margin: 2px 12px 4px 0 !important; }
.ml-chips a.is-active, .ml-chips a.is-active:hover { background: #111; color: #FFF; }
.ml-coll-h2 { margin-top: 36px; }
/* Подборка без готовых проектов («Одноэтажные»): блок «Спроектируем дом» на месте списка */
.ml-own--solo { margin-top: 28px; }

/* Текст подборки (seo_text из админки) в новом виде: абзацы, списки и таблицы — средней колонкой сетки шириной
   с контейнер .inner (1280 px, поля 20 px, от 1366 px — 30 px; до 21.10.2026 была колонка 760 px по центру),
   секции (услуги, галерея, видео, форма, вопросы) — во всю ширину. Слова текста не меняются, только оформление. */
.ml-ctext { display: grid; grid-template-columns: minmax(20px, 1fr) minmax(0, 1280px) minmax(20px, 1fr); padding-bottom: 24px; }
@media (min-width: 1366px) { .ml-ctext { grid-template-columns: minmax(30px, 1fr) minmax(0, 1280px) minmax(30px, 1fr); } }
.ml-ctext > * { grid-column: 2; min-width: 0; }
.ml-ctext > section { grid-column: 1 / -1; }
.ml-ctext > h2, .ml-ctext > p.h2 { margin: 56px 0 18px; text-align: left !important; }
.ml-ctext > p.h2 { font: 30px/1.08 "BodoniBold", serif; text-transform: none; color: #111; }
.ml-ctext > h3[style] { text-align: left !important; }
.ml-ctext > div[style*="text-align: center"] { margin-bottom: 4px; }
.ml-ctext > h2:first-child { margin-top: 0; }
.ml-ctext > h3, .ml-ctext .grey-pl h3 { font: 22px/1.2 "BodoniBold", serif; text-transform: none; letter-spacing: 0; color: #111; margin: 32px 0 12px; }
.ml-ctext > p, .ml-ctext > noindex > p, .ml-ctext .hidden_text p { font: 16px/1.7 "RobotoLight", Roboto, sans-serif; color: #333; margin: 0 0 14px; }
.ml-ctext > ul, .ml-ctext > ol, .ml-ctext .hidden_text ul, .ml-ctext .grey-pl ul { margin: 0 0 18px; padding: 0; }
.ml-ctext > ul > li, .ml-ctext .hidden_text ul > li, .ml-ctext .grey-pl li, .ml-ctext .faq-block__item-text li { position: relative; padding: 0 0 0 22px; margin: 0 0 8px; font: 16px/1.6 "RobotoLight", Roboto, sans-serif; color: #333; }
.ml-ctext > ul > li::before, .ml-ctext .hidden_text ul > li::before, .ml-ctext .grey-pl li::before, .ml-ctext .faq-block__item-text li::before { content: ""; display: block; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: #EE2329; border: 0; border-radius: 0; }
.ml-ctext > ol { padding-left: 22px; list-style: decimal; }
.ml-ctext > ol > li { font: 16px/1.6 "RobotoLight", Roboto, sans-serif; color: #333; margin: 0 0 8px; padding-left: 4px; }
/* Пункт списка начинается с жирного заголовка — он отдельной строкой (в «Современных» заголовок и текст в админке без пробела) */
.ml-ctext > ol > li > span[style*="bold"]:first-child { display: block; margin-bottom: 2px; }
.ml-ctext > ol > li { margin-bottom: 14px; }
/* Ссылки в тексте подчёркнуты; карточки услуг и плитки галереи внутри текста — нет (у них свои стили) */
.ml-ctext > p a, .ml-ctext > ul a, .ml-ctext > ol a, .ml-ctext .hidden_text a, .ml-ctext .grey-pl a, .ml-ctext td a, .ml-ctext .faq-block__item-text a { color: #111; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ml-ctext > p a:hover, .ml-ctext > ul a:hover, .ml-ctext > ol a:hover, .ml-ctext .hidden_text a:hover, .ml-ctext .grey-pl a:hover, .ml-ctext td a:hover, .ml-ctext .faq-block__item-text a:hover { color: #EE2329; }
.ml-ctext .bold, .ml-ctext b, .ml-ctext strong, .ml-ctext span[style*="bold"] { font-family: "RobotoMedium", Roboto, sans-serif; font-weight: normal !important; color: #111; }
/* Картинки, которые в старом тексте стояли обтеканием: в колонке — отдельной строкой */
.ml-ctext > a.images-static-list-item__in, .ml-ctext > img { justify-self: start; margin: 4px 0 16px; }
.ml-ctext > a.images-static-list-item__in img, .ml-ctext > img { float: none !important; display: block; max-width: 100%; height: auto; }
/* Таблицы стоимости */
.ml-ctext > .table-box { margin: 4px 0 24px; overflow-x: auto; }
.ml-ctext table { width: 100%; border-collapse: collapse; border: 0; background: none; font: 15px/1.5 "RobotoLight", Roboto, sans-serif; color: #333; }
.ml-ctext th, .ml-ctext td { border: 0 !important; border-bottom: 1px solid #E6E6E6 !important; background: none; padding: 12px 12px 12px 0; text-align: left; vertical-align: top; }
.ml-ctext th { font: 14px/1.3 "RobotoMedium", Roboto, sans-serif; color: #111; border-bottom-color: #111 !important; }
.ml-ctext td p { margin: 0; font: inherit; color: inherit; }
/* Итоговая строка: style.css заливает её красным с !important, здесь — серая, как остальные плашки */
.ml-ctext tr.tr-total td { background: #F4F4F4 !important; padding: 14px 16px !important; text-align: left !important; color: #111; font-family: "RobotoRegular", Roboto, sans-serif; }
/* «Проект включает в себя» — серая плашка */
.ml-ctext > .pr-type { margin: 8px 0 24px; }
.ml-ctext .grey-pl { width: auto !important; background: #F4F4F4; padding: 24px 24px 12px; }
.ml-ctext .grey-pl h3 { margin-top: 0; }
/* «Читать далее» — ссылкой, раскрывает site.js */
.ml-ctext > .show_hidden_text { justify-self: start; margin: 0 0 18px; font: 15px/1.4 "RobotoRegular", Roboto, sans-serif; color: #111; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ml-ctext > .show_hidden_text:hover { color: #EE2329; }
/* Секции каталога внутри текста (услуги, галерея): отступы между текстом и секцией */
.ml-ctext > .ml-sv { margin-top: 40px; }
.ml-ctext > .ml-gal-sec { padding-bottom: 24px; }
/* Видео (vip): квадратная кнопка воспроизведения */
.ml-ctext > .content-video { margin-top: 56px; }
.ml-ctext .content-video .title_border h2 { margin-bottom: 22px; padding-bottom: 0; }
.ml-ctext .title_border h2::after { display: none; }
.ml-ctext .content-video .title_border h2 br { display: none; }
.ml-ctext .video__play div { border-radius: 0; }
/* Форма 21 «Связаться с нами»: тёмная карточка, как блок «Спроектируем дом» в каталоге; поля и отправка прежние */
.ml-ctext > .content-form { margin-top: 56px; }
.ml-ctext .content-form__in { padding: 36px 22px 32px; }
.ml-ctext .content-form .title_form h2 { font: 32px/1.1 "BodoniBold", serif; text-transform: none; color: #FFF; }
.ml-ctext .content-form .title_form h2 span { font: inherit; white-space: normal; display: inline; }
.ml-ctext .content-form .title_point h2 span::after { border-radius: 0; }
.ml-ctext .content-form__top { margin-bottom: 28px; }
/* Вопросы (старый faq-block с микроразметкой FAQPage в тексте) — как раскрывашки каталога; раскрывает site.js */
.ml-ctext > .faq-block { display: block; margin: 0; padding: 64px 0 40px; }
.ml-ctext .faq-block__heading { font: 30px/1.08 "BodoniBold", serif; font-weight: normal; text-transform: none; letter-spacing: -0.005em; color: #111; }
.ml-ctext .faq-block__items { margin-top: 22px; border-top: 1px solid #111; }
.ml-ctext .faq-block__item { padding: 0; border-bottom: 1px solid #DADADA; }
.ml-ctext .faq-block__item-title { position: relative; padding: 18px 40px 18px 0; border-left: 0; font: 17px/1.35 "RobotoMedium", Roboto, sans-serif; font-weight: normal; color: #111; cursor: pointer; transition: color .2s ease; }
.ml-ctext .faq-block__item-title::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat; transition: transform .25s ease; }
.ml-ctext .faq-block__item:has(.faq-block__item-text.active) .faq-block__item-title::after { background: linear-gradient(#EE2329, #EE2329) center / 16px 1.5px no-repeat; transform: rotate(180deg); }
.ml-ctext .faq-block__item-title:hover { color: #EE2329; }
.ml-ctext .faq-block__item-text, .ml-ctext .faq-block__item-text p { font: 16px/1.6 "RobotoLight", Roboto, sans-serif; color: #333; }
.ml-ctext .faq-block__item-text p { margin: 0 0 10px; }
.ml-ctext .faq-block__item-text.active { padding: 0 40px 22px 0; }
.ml-ctext .faq-block__item-text ul { margin: 6px 0 10px; padding: 0; }
/* Лента логотипов поставщиков («Коттеджи»): на телефоне без стрелок — у сайта они там чёрной полосой во всю ширину, лента листается пальцем */
@media (max-width: 899px) {
   .ml-ctext .logo-slider .slick-arrow { display: none !important; }
   .ml-ctext .logo-slider { padding: 0; }
}
/* Без висяков: короткие тексты — balance, абзацы — pretty */
.ml-coll-text, .ml-ctext > h2, .ml-ctext > h3, .ml-ctext > p.h2, .ml-ctext .grey-pl h3, .ml-ctext .faq-block__heading, .ml-ctext .faq-block__item-title, .ml-ctext .content-form .title_form h2 { text-wrap: balance; }
.ml-ctext > p, .ml-ctext li, .ml-ctext .faq-block__item-text, .ml-coll-text p { text-wrap: pretty; }

@media (min-width: 900px) {
   .ml-ctext > h2, .ml-ctext > p.h2 { margin-top: 72px; }
   .ml-ctext > p.h2 { font-size: 44px; }
   .ml-ctext > p, .ml-ctext > noindex > p, .ml-ctext .hidden_text p { font-size: 17px; }
   .ml-ctext > .ml-sv { margin-top: 56px; }
   .ml-ctext .content-form__in { padding: 56px 64px 52px; }
   .ml-ctext .content-form .title_form h2 { font-size: 44px; }
   .ml-ctext > .faq-block { padding: 96px 0 64px; }
   .ml-ctext .faq-block__heading { font-size: 44px; }
   .ml-ctext .faq-block__items { margin-top: 28px; }
   .ml-ctext .faq-block__item-title { font-size: 19px; padding: 24px 48px 24px 0; }
   .ml-ctext .faq-block__item-text, .ml-ctext .faq-block__item-text p { font-size: 17px; }
   .ml-ctext .faq-block__item-text.active { padding-bottom: 26px; }
}
/* Узкие телефоны: длинные слова Bodoni («керамических», «строительства») в 30–34 px не помещаются в 320 px колонки */
@media (max-width: 767px) {
   /* H1 длиннее 60 знаков («Современный дизайнерский дом: пространство для жизни, которое вдохновляет») на телефоне
      шёл в пять строк, последним одним словом */
   .ml-coll-intro .ml-cat-h1--long { font-size: 28px; }
}
@media (max-width: 400px) {
   .ml-coll-intro .ml-cat-h1 { font-size: 30px; }
   .ml-coll-intro .ml-cat-h1--long { font-size: 26px; }
   .ml-ctext > h2, .ml-ctext > p.h2 { font-size: 26px; }
}
@media (min-width: 1100px) {
   .ml-coll-intro .ml-cat-h1 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
   .ml-cat *, .ml-cat-intro *, .ml-bot * { transition: none !important; }
   .ml-tour-track, .ml-tour-ring { animation: none; }
}
