/* Дополнения к вёрстке для живого сайта (формы, 3D-модели, фильтр). Основные стили — styles.css */
.first_section h1.title { margin: 0; }
.hp_field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form_error { margin-top: 16px; color: #b3261e; font-size: 14px; line-height: 1.4; }
.product_info .models { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 20px; font-size: 14px; }
.product_info .models .label { color: #7a716d; }
.product_info .models a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.product_info .schema { display: flex; flex-wrap: wrap; gap: 12px; }
.products .not_found { padding: 40px 0; font-size: 16px; }
.products .not_found button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.products .product[hidden] { display: none !important; }
.js-search-results ul { margin-top: 24px; }

/* Снимки товаров показываются целиком; поля в цвет их тёмного фона */
.products .product .thumb .image,
.product_info .images .image,
#favorites .product .thumb { background: #232323; }
.products .product .thumb img,
.product_info .images .image img,
#favorites .product .thumb img { object-fit: contain; }
/* Большие плитки каталога держат пропорции обложки и на экранах шире 1280 */
.catalog .big .category .thumb { padding-bottom: 65.8%; }
/* Избранное: длинные названия и размеры переносятся без наложения строк */
#favorites .product .name { line-height: 1.15; }
#favorites .product .size { line-height: 1.35; }
#favorites .product .price { line-height: 1.2; }
#favorites .product .thumb + * { flex: 1 1 0; width: auto; min-width: 0; }

/* Меню, избранное, фильтр: закрытые панели не ловят фокус с клавиатуры; единая скорость 0,35 с */
#menu:not(.show), #favorites:not(.show) { visibility: hidden; }
#menu .catalog_menu { transition: transform .35s cubic-bezier(.4, 0, .2, 1), visibility .35s; }
#menu .catalog_menu:not(.show) { visibility: hidden; }
#menu .menu a { transition: color .35s cubic-bezier(.4, 0, .2, 1); }
#menu .menu a:hover { color: #9e9394; }
/* Избранное в мобильной шапке */
.mob_header .messengers .fav_btn { display: block; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: currentColor; cursor: pointer; }
.mob_header .messengers .fav_btn .icon { width: 100%; height: 100%; }
.mob_header .messengers .fav_btn .icon + .icon, .mob_header .messengers .fav_btn.active > .icon { display: none; }
.mob_header .messengers .fav_btn.active .icon + .icon { display: block; }
/* Высота шапки меряется без анимации */
header.no_tr, header.no_tr *, header.no_tr:before { transition: none !important; }
/* Тёмный градиент над первым экраном гаснет плавно, а не пропадает в первом кадре фиксации */
header.absolute:before { transition: opacity .35s cubic-bezier(.4, 0, .2, 1); }
header.absolute.fixed:before { display: block; opacity: 0; }
/* Появление блоков: сдвиг на 40 px вместо половины высоты — крупные блоки появляются вовремя и без «прилёта» */
.animate.fadeUp { transform: translateY(40px); }
.animate.fadeUp.animated { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.animate, .animate.fadeUp { transform: none !important; opacity: 1 !important; transition: none !important; }
}
/* Видимый фокус для клавиатуры */
a:focus-visible, button:focus-visible, label:focus-within > .box { outline: 2px solid #665c57; outline-offset: 3px; }
.form { --form_focus_color: #9e9394; }
/* Ховеры, у которых не было плавности */
.contacts_info .item .val a { transition: color .35s cubic-bezier(.4, 0, .2, 1); }
.quiz .bottom .next_btn { transition: background .35s cubic-bezier(.4, 0, .2, 1), color .35s cubic-bezier(.4, 0, .2, 1); }
.products .product .thumb img.hover { transition-duration: .35s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.swiper .controls, .swiper .controls * { transition-duration: .35s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
/* Стрелки слайдера, у которого всё помещается, не показываем */
.swiper-button-lock { display: none !important; }
.wrap { overflow: hidden; overflow: clip; }

/* Окно «Поделиться» */
.share_toast { position: fixed; z-index: 10000; bottom: 32px; left: 50%; max-width: calc(100% - 32px); padding: 12px 20px; transform: translate(-50%, 12px); border-radius: 30px; background: #3b2c2e; color: #fff; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1); }
.share_toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Каталог: подписи плиток 18 px как в макете, на телефоне — шире и на градиенте */
@media (min-width: 1024px) { .catalog .category .name { font-size: 18px; } }
@media (max-width: 767px) {
	.catalog .category .name { width: calc(100% - 36px); }
	.catalog .category .thumb:after { height: 65%; }
}
/* Карточки товаров: цена и кнопка прижаты к низу, кнопка без цены — справа */
.products .product .buy { margin-top: auto; padding-top: 16px; }
.products .product .buy_btn { margin-left: auto; }
/* Страница товара */
@media (min-width: 1024px) { .product_info .images { min-height: 620px; } }
@media (min-width: 480px) {
	.product_info .buy { flex-wrap: nowrap; gap: 16px; }
	.product_info .price { white-space: nowrap; }
	.product_info .buy_btn { flex-shrink: 0; padding: 0 32px; }
}
.product_info .prev_next .link.next { margin-left: auto; }
/* «Предыдущий/следующий товар»: в кнопке название товара, длинное переносится — кнопка растёт по высоте
   (в теме height: 40px и перенос иконки на отдельную строку — текст вылезал из кнопки) */
.product_info .prev_next { align-items: stretch; }
.product_info .prev_next .link { height: auto; min-height: 40px; padding: 9px 16px; flex-wrap: nowrap; line-height: 1.35; }
.product_info .prev_next .link span { min-width: 0; }
.product_info .prev_next .link.prev span { text-align: left; }
.product_info .prev_next .link.next span { text-align: right; }
.product_description .text_block { max-width: 1110px; }

/* Текст статей и страниц */
.text_block img { height: auto; }
.text_block figure a { display: block; }
.text_block .gallery figure { margin: 0; }
/* В галерее фото разных пропорций вписываются в одинаковую рамку целиком — подписи стоят на одной высоте */
.text_block .gallery figure img { aspect-ratio: 4 / 3; object-fit: contain; }
.text_block ol { padding-left: 30px; }
.text_block h4 { font-size: 22px; font-weight: 400; line-height: 120%; letter-spacing: 1.2px; text-transform: uppercase; color: #3a3636; }
.text_block h4 + * { margin-top: 16px !important; }
.article_info .author .post { font-size: 14px; }
@media (max-width: 1023px) { .content_flex .content + aside { margin-top: 60px; } }
@media (max-width: 479px) {
	.page_title { overflow-wrap: anywhere; hyphens: auto; }
	.text_block h3 { font-size: 19px; }
	.text_block h4 { font-size: 17px; }
}

/* Контакты: адрес отдельной строкой (не прыгает при загрузке шрифта); без PDF карта и реквизиты на всю ширину */
.contacts_info .item.address { flex-basis: 100%; }
.contacts_info .map.full, .contacts_info .requisite.full { width: 100%; }

/* Первый экран до загрузки видео — тёмный, а не серый */
.first_section { background: #2b2422; }

/* Подвал: шаг пунктов меню как в макете */
footer .menu { gap: 8px; line-height: 16px; }

/* ================= Страницы-разделы из блоков (админка → «Страницы» → «Блоки страницы») ================= */
[id] { scroll-margin-top: 110px; }
.lp_btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp_btn { font-size: 12px; line-height: 120%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 44px; text-decoration: none; letter-spacing: .72px; text-transform: uppercase; color: #fff; border: 1px solid #665c57; border-radius: 45px; background: #665c57; transition: background .35s cubic-bezier(.4, 0, .2, 1), color .35s cubic-bezier(.4, 0, .2, 1), border-color .35s cubic-bezier(.4, 0, .2, 1); }
.lp_btn .icon { display: block; width: 8px; height: 12px; }
.lp_btn:hover { background: #453e3b; border-color: #453e3b; }
.lp_btn.second { color: #382312; background: transparent; border-color: #c9bdb6; }
.lp_btn.second:hover { color: #fff; background: #665c57; border-color: #665c57; }
.lp_btns.light .lp_btn { color: #010000; background: #fff; border-color: #fff; }
.lp_btns.light .lp_btn:hover { background: rgba(255, 255, 255, .8); }
.lp_btns.light .lp_btn.second { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }
.lp_btns.light .lp_btn.second:hover { color: #010000; background: #fff; border-color: #fff; }

/* Первый экран раздела */
.lp_hero__box { position: relative; display: flex; overflow: hidden; align-items: flex-end; min-height: 600px; border-radius: 15px 0; background: #2b2422; color: #fff; }
.lp_hero__bg, .lp_hero__bg img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp_hero__bg img { object-fit: cover; }
.lp_hero__box:after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(0deg, rgba(36, 26, 27, .86) 0%, rgba(36, 26, 27, .5) 38%, rgba(36, 26, 27, 0) 72%); }
.lp_hero__data { position: relative; z-index: 2; max-width: 760px; padding: 60px; }
.lp_hero__title { font-size: 36px; font-weight: 300; line-height: 120%; letter-spacing: 2.16px; text-transform: uppercase; }
.lp_hero__text { font-size: 18px; font-weight: 300; line-height: 145%; margin-top: 18px; color: rgba(255, 255, 255, .88); }
.lp_hero__title + .lp_btns, .lp_hero__text + .lp_btns { margin-top: 34px; }

/* Плитки направлений */
.lp_tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.lp_tiles__grid.n4 { grid-template-columns: repeat(4, 1fr); }
.lp_tiles__grid.n2 { grid-template-columns: repeat(2, 1fr); }
.lp_tiles .category .thumb { padding-bottom: 75%; border-radius: 15px; overflow: hidden; background: #d9cfc8; }
.lp_tiles .category .thumb img { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.lp_tiles a.category:hover .thumb img { transform: scale(1.04); }
.lp_tiles .category:nth-child(1) .thumb { border-top-left-radius: 0; }
.lp_tiles .category:nth-last-child(1) .thumb { border-bottom-right-radius: 0; }
.lp_tiles .category .thumb:after { height: 60%; border-radius: 0 0 15px 15px; background: linear-gradient(0deg, rgba(36, 26, 27, .82) 0%, rgba(36, 26, 27, 0) 100%); }
.lp_tiles .category .name { font-size: 18px; line-height: 125%; }
.lp_tiles .category .name .sub { display: block; margin-top: 6px; font-size: 13px; line-height: 135%; color: rgba(255, 255, 255, .78); }
.lp_tiles a.category .arrow { background: #fff; }
.lp_tiles .category:nth-child(3n) .thumb, .lp_tiles .category:nth-last-child(3) .thumb { border-radius: 15px; }
.lp_tiles .category:nth-child(1) .thumb { border-radius: 0 15px 15px 15px; }
.lp_tiles .category:nth-last-child(1) .thumb { border-radius: 15px 15px 0 15px; }

/* Фото и текст */
.lp_split__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.lp_split.img_left .lp_split__media { order: -1; }
.lp_split.no_media .lp_split__row { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.lp_split__text .block_head { margin-bottom: 28px; }
.lp_split__text .text_block { font-size: 17px; }
.lp_split__text .text_block ul { padding-left: 0; }
.lp_split__media { position: sticky; top: 110px; }
.lp_split__main { position: relative; display: block; overflow: hidden; border-radius: 0 15px; background: #e7e0da; }
.lp_split.img_left .lp_split__main { border-radius: 15px 0; }
.lp_split__main img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.lp_split__main.portrait img { aspect-ratio: 4 / 3; object-fit: contain; }
.lp_split__main:hover img { transform: scale(1.03); }
.lp_split__main .icon { position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #382312; opacity: 0; transition: opacity .35s cubic-bezier(.4, 0, .2, 1); }
.lp_split__main .icon svg { width: 20px; height: 20px; }
.lp_split__main:hover .icon { opacity: 1; }
.lp_split__cap { margin-top: 10px; font-size: 13px; line-height: 135%; color: #7d716d; }
.lp_split__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.lp_split__thumbs a { display: block; overflow: hidden; border-radius: 8px; background: #e7e0da; }
.lp_split__thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .35s cubic-bezier(.4, 0, .2, 1); }
.lp_split__thumbs a:hover img { opacity: .8; }

/* Галерея с подписями */
.lp_gallery .item .cap { margin-top: 8px; font-size: 13px; line-height: 135%; color: #7d716d; }
.lp_gallery .lp_btns { margin-top: 30px; }

/* Карточки */
.lp_cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.lp_cards__grid.n2 { grid-template-columns: repeat(2, 1fr); }
.lp_cards__grid.n4 { grid-template-columns: repeat(4, 1fr); }
.lp_card { display: flex; flex-direction: column; overflow: hidden; border-radius: 0 10px; background: #fff; box-shadow: 0 0 8px 0 #f0e8e0; }
.lp_card:nth-child(2n+1) { border-radius: 10px 0; }
.lp_card__img { display: block; background: #e7e0da; }
.lp_card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lp_card__body { padding: 28px 30px 32px; }
.lp_card__title { font-size: 24px; font-weight: 300; line-height: 120%; color: #000; }
.lp_card__text { margin-top: 14px; font-size: 16px; font-weight: 300; line-height: 145%; color: #6f6460; }

/* Этапы */
.lp_steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.lp_steps__list.n3 { grid-template-columns: repeat(3, 1fr); }
.lp_steps__list.n5 { grid-template-columns: repeat(5, 1fr); }
.lp_step { position: relative; padding-top: 26px; border-top: 1px solid #d6cbc4; }
.lp_step:before { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; content: ''; border-radius: 50%; background: #665c57; }
.lp_step__num { font-size: 44px; font-weight: 200; line-height: 100%; letter-spacing: 1px; color: #b9aca5; }
.lp_step__title { margin-top: 18px; font-size: 20px; font-weight: 400; line-height: 125%; color: #382312; }
.lp_step__text { margin-top: 10px; font-size: 15px; font-weight: 300; line-height: 145%; color: #6f6460; }

/* Баннер с несколькими кнопками */
.lp_banner .link { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp_banner .desc { max-width: 720px; margin: 16px auto 0; font-size: 18px; font-weight: 300; line-height: 140%; }

/* Квиз из блоков: карточки с фото сеткой, шаги ввода и контакты — как на главной */
.lp_quiz .img_grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 15px; }
.lp_quiz .img_grid .service .name { font-size: 11px; }
.lp_quiz .step .form.js-quiz-step .line { margin-bottom: 0; }
.lp_quiz .step .js-lead-form { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.lp_quiz .step .js-lead-form .line { width: calc((100% - 260px) / 2); }
.lp_quiz .step .js-lead-form .line.contacts_method { width: 240px; max-width: 100%; }
.lp_quiz .step .js-lead-form .submit { justify-content: flex-start; width: 100%; padding: 0; }
.lp_quiz .step .js-lead-form .form_error { width: 100%; }

/* Текстовый блок */
.lp_text__body { max-width: 900px; }

/* Отступ формы раздела */
.lp_form .feedback { margin-bottom: 76px; }

/* ---------- Конфигуратор паттерной мозаики ---------- */
.mz, .pz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; padding: 30px; border-radius: 0 15px; background: #fff; box-shadow: 0 0 8px 0 #f0e8e0; }
.mz__stage { position: relative; }
.mz__canvas { overflow: hidden; border-radius: 15px 0; background: #e9e3dc; aspect-ratio: 16 / 9; }
.mz__canvas svg { display: block; width: 100%; height: 100%; }
.mz__canvas.busy svg { opacity: .55; transition: opacity .2s; }
.mz__caption { margin-top: 14px; font-size: 14px; line-height: 140%; color: #6f6460; }
.mz__group + .mz__group { margin-top: 22px; }
.mz__label { margin-bottom: 10px; font-size: 12px; line-height: 120%; letter-spacing: .72px; text-transform: uppercase; color: #665c57; }
.mz__val { margin-left: 6px; text-transform: none; letter-spacing: 0; color: #382312; }
.mz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mz__shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mz__sw .mz__opt[hidden] { display: none; }
.mz__opt { font: inherit; cursor: pointer; transition: border-color .35s cubic-bezier(.4, 0, .2, 1), background .35s cubic-bezier(.4, 0, .2, 1), color .35s cubic-bezier(.4, 0, .2, 1); }
.mz__shapes .mz__opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 5px 7px; font-size: 11px; line-height: 120%; color: #382312; border: 1px solid #e6ddd7; border-radius: 10px; background: #faf8f6; }
.mz__shapes .mz__opt img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #3a393b; }
.mz__shapes .mz__opt:hover { border-color: #c9bdb6; }
.mz__shapes .mz__opt.on { border-color: #665c57; background: #fff; }
.mz__pills .mz__opt { height: 38px; padding: 0 16px; font-size: 13px; color: #382312; border: 1px solid #e0d6d0; border-radius: 30px; background: #faf8f6; }
.mz__pills .mz__opt:hover { border-color: #c9bdb6; }
.mz__pills .mz__opt.on { color: #fff; border-color: #665c57; background: #665c57; }
.mz__sw .mz__opt { position: relative; width: 34px; height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #ddd2cb; }
.mz__sw .mz__opt:hover { box-shadow: 0 0 0 1px #9e9394; }
.mz__sw .mz__opt.on { box-shadow: 0 0 0 2px #382312; }
.mz__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.mz__order { font-size: 12px; line-height: 120%; display: flex; align-items: center; justify-content: center; height: 56px; text-decoration: none; letter-spacing: .72px; text-transform: uppercase; color: #fff; border-radius: 45px; background: #665c57; transition: background .35s cubic-bezier(.4, 0, .2, 1); }
.mz__order:hover { background: #453e3b; }
.mz__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; font-size: 12px; letter-spacing: .72px; text-transform: uppercase; text-decoration: none; color: #382312; border: 1px solid #ddd2cb; border-radius: 45px; transition: border-color .35s cubic-bezier(.4, 0, .2, 1); }
.mz__link .icon { width: 8px; height: 12px; }
.mz__link:hover { border-color: #665c57; }
.mz__note { margin-top: 14px; font-size: 12px; line-height: 140%; color: #9e9394; }

@media (max-width: 1279px) {
	.lp_steps__list, .lp_steps__list.n5 { grid-template-columns: repeat(3, 1fr); }
	.mz, .pz { grid-template-columns: minmax(0, 1fr) 300px; padding: 24px; gap: 24px; }
}
@media (max-width: 1023px) {
	.lp_hero__box { min-height: 520px; }
	.lp_hero__data { padding: 40px; }
	.lp_hero__title { font-size: 30px; }
	.lp_tiles__grid, .lp_tiles__grid.n4 { grid-template-columns: repeat(2, 1fr); }
	.lp_split__row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.lp_split .lp_split__media, .lp_split.img_left .lp_split__media { position: static; order: -1; }
	.lp_cards__grid, .lp_cards__grid.n4 { grid-template-columns: repeat(2, 1fr); }
	.lp_steps__list, .lp_steps__list.n3, .lp_steps__list.n5 { grid-template-columns: repeat(2, 1fr); }
	.lp_quiz .img_grid { grid-template-columns: repeat(var(--cols-t, 3), 1fr); }
	.mz, .pz { grid-template-columns: minmax(0, 1fr); }
	.mz__shapes { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 767px) {
	[id] { scroll-margin-top: 80px; }
	.lp_btn { height: 52px; padding: 0 28px; }
	.lp_hero__box { min-height: 0; flex-direction: column; align-items: stretch; border-radius: 12px 0; }
	.lp_hero__bg { position: relative; inset: auto; aspect-ratio: 4 / 3; height: auto; }
	.lp_hero__bg img { position: absolute; inset: 0; }
	.lp_hero__box:after { display: none; }
	.lp_hero__data { padding: 24px 20px 28px; }
	.lp_hero__title { font-size: 24px; letter-spacing: 1.4px; }
	.lp_hero__text { font-size: 16px; margin-top: 12px; }
	.lp_hero__data .lp_btns { margin-top: 22px; }
	.lp_btns.light .lp_btn { width: 100%; }
	.lp_tiles__grid, .lp_tiles__grid.n2, .lp_tiles__grid.n4 { gap: 10px; }
	.lp_tiles .category .name { font-size: 15px; width: calc(100% - 36px); }
	.lp_tiles .category .info { padding: 14px; }
	.lp_tiles .category .name .sub { display: none; }
	.lp_cards__grid, .lp_cards__grid.n2, .lp_cards__grid.n4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.lp_card__body { padding: 22px 22px 26px; }
	.lp_card__title { font-size: 21px; }
	.lp_steps__list, .lp_steps__list.n3, .lp_steps__list.n5 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.lp_step__num { font-size: 34px; }
	.lp_quiz .img_grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.lp_quiz .step .js-lead-form .line { width: calc(50% - 8px); margin-bottom: 10px; }
	.lp_quiz .step .js-lead-form .line.contacts_method { width: 100%; min-height: 52px; }
	.lp_quiz .step .js-lead-form .submit { padding-top: 30px; gap: 20px; }
	.lp_quiz .step .js-lead-form .submit_btn, .lp_quiz .step .js-lead-form .agree { width: 100%; }
	.mz, .pz { padding: 12px; gap: 18px; border-radius: 0 12px; }
	.mz__canvas { aspect-ratio: 4 / 3; border-radius: 10px 0; }
	.mz__shapes { grid-template-columns: repeat(4, 1fr); }
	.lp_banner .link a { width: 100%; }
}
@media (max-width: 479px) {
	.lp_quiz .step .js-lead-form .line { width: 100%; }
}
/* Текст рядом с фото — с отступом под вертикальную подпись, как заголовок */
.lp_split__text.has_label { padding-left: 63px; }
.lp_split__text.has_label .block_head.pad_l { margin-left: -63px; }
/* Затемнение первого экрана и слева, под текстом */
.lp_hero__box:before { position: absolute; z-index: 1; inset: 0; content: ''; pointer-events: none; background: linear-gradient(90deg, rgba(36, 26, 27, .78) 0%, rgba(36, 26, 27, .5) 38%, rgba(36, 26, 27, 0) 68%); }
.lp_hero__box:after { z-index: 1; }
/* Высота вертикальной подписи: отступ + буквы (12 px шрифт; на телефоне тема уменьшает до 10 px) */
.block_head[style*="--lbl"] { min-height: calc(44px + var(--lbl) * 8.4px); }
@media (max-width: 1023px) {
	.lp_split__text.has_label { padding-left: 30px; }
	.lp_split__text.has_label .block_head.pad_l { margin-left: -30px; }
}
@media (max-width: 767px) {
	.lp_hero__box:before { display: none; }
	.block_head[style*="--lbl"] { min-height: calc(22px + var(--lbl) * 7px); }
	.lp_tiles__grid, .lp_tiles__grid.n2, .lp_tiles__grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lp_tiles .category .name { font-size: 13px; line-height: 125%; width: 100%; }
	.lp_tiles .category .arrow { display: none; }
	.lp_tiles .category .info { padding: 10px 12px; }
}
/* Подзаголовки внутри текста рядом с фото — мельче заголовка блока */
.lp_split__text .text_block h3 { font-size: 22px; font-weight: 400; line-height: 125%; letter-spacing: 1.2px; }
.lp_split__text .text_block h3:not(:first-child) { margin-top: 34px !important; }
@media (max-width: 767px) { .lp_split__text .text_block h3 { font-size: 18px; } }
/* Коллекции мозаики сняты в интерьере на светлом фоне: поля рамки — в цвет сайта, а не тёмные, как у товарных снимков */
.product_info[data-section="patternaya-mozaika"] .images .image { background: #e9e3dc; }
/* Фон баннера заполняет блок с обрезкой, а не растягивается под его пропорции */
.big_banner .bg img { object-fit: cover; }
/* Главное меню блоками: пункт с галочкой «Начало блока» — заголовок блока с отступом перед ним,
   пункты без галочки — подпункты блока: мельче и плотнее */
#menu nav.menu { gap: 0; } /* nav — чтобы перебить gap из response_1279.css, он подключается позже */
#menu .menu > .group_start:not(:first-child) { margin-top: 28px; }
#menu .menu > .sub { margin-top: 10px; font-size: 15px; letter-spacing: .9px; }
#menu .menu > .group_start + .sub { margin-top: 14px; }
@media (max-width: 1279px) {
	#menu .menu > .group_start:not(:first-child) { margin-top: 22px; }
	#menu .menu > .sub { margin-top: 8px; font-size: 14px; }
	#menu .menu > .group_start + .sub { margin-top: 12px; }
}
@media (max-width: 767px) {
	#menu .menu > .group_start:not(:first-child) { margin-top: 20px; }
	#menu .menu > .sub { margin-top: 8px; font-size: 13px; letter-spacing: .8px; }
	#menu .menu > .group_start + .sub { margin-top: 11px; }
}

/* ---------- Конструктор стены из 3D-панелей (/js/panels3d.js); общие стили — у .mz ---------- */
.pz__canvas canvas { display: block; width: 100%; height: 100%; }
.pz__calc { margin-top: 14px; font-size: 16px; line-height: 140%; color: #382312; }
.pz__calc b { font-weight: 500; }
.pz__calc span { font-size: 13px; color: #7d716d; }
.pz .mz__caption { margin-top: 6px; }
.pz__models { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 2px; }
.pz__models .mz__opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px 3px; font-size: 10px; line-height: 110%; color: #382312; border: 1px solid #e6ddd7; border-radius: 8px; background: #faf8f6; }
.pz__models .mz__opt canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 5px; }
.pz__models .mz__opt:hover { border-color: #c9bdb6; }
.pz__models .mz__opt.on { border-color: #665c57; box-shadow: 0 0 0 1px #665c57; background: #fff; }
.pz__size { display: flex; align-items: flex-end; gap: 10px; }
.pz__size label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #7d716d; }
.pz__size input { width: 86px; height: 42px; padding: 0 12px; font: inherit; font-size: 16px; color: #382312; border: 1px solid #ddd2cb; border-radius: 8px; background: #faf8f6; }
.pz__size input:focus { outline: none; border-color: #665c57; background: #fff; }
.pz__size > span { padding-bottom: 12px; color: #7d716d; }
.pz__sofa { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #6f6460; cursor: pointer; }
.pz__sofa input { display: inline-block !important; width: 16px; height: 16px; margin: 0; appearance: auto; -webkit-appearance: checkbox; accent-color: #665c57; }
@media (max-width: 1023px) { .pz__models { grid-template-columns: repeat(11, 1fr); max-height: none; } }
@media (max-width: 767px) { .pz__models { grid-template-columns: repeat(6, 1fr); } }
/* Сетка 4 в ряд с изделием при наведении (3D-панели, паттерная мозаика): второе фото закрывает карточку целиком */
.products .row.hover4 .product .thumb img.hover { left: 0; right: auto; width: 100%; background: #232323; transition: opacity .45s cubic-bezier(.4, 0, .2, 1); }
@media (hover: none) { .products .row.hover4 .product .thumb img.hover { display: none; } }

/* ---------- Квизы на всём сайте (06.10.2026, просьба пользователя) ---------- */
/* Варианты заполняют всю ширину карточки (число колонок — в --cols/--cols-t из шаблона). Картинки — квадратные;
   текстовые — прямоугольные кнопки в 1–2 ряда: тонкий значок сверху справа, кружок выбора и подпись снизу слева
   (src/lib/quizIcons.ts); поле ответа — заметное поле с карандашом, а не линия с подсказкой */
.quiz .step .service .thumb { padding-bottom: 100%; }
.quiz .step .options .row { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 15px; margin: 0; }
.quiz .step .options .row > * { width: auto; margin: 0; }
.quiz .step .option { display: block; height: 100%; }
.quiz .step .option .check { top: auto; bottom: 13px; left: 15px; }
.quiz .step .option .check + div {
	position: relative; overflow: hidden; height: 100%; min-height: 104px; padding: 46px 64px 16px 46px;
	flex-direction: column; flex-wrap: nowrap; justify-content: flex-end; align-items: flex-start; gap: 0;
	font-size: 11px; line-height: 130%; text-align: left;
}
.quiz .step .option:hover .check + div { background: #ebe4e0; }
.quiz .step .option input:checked ~ .check + div { background: #d5cbc6; }
.quiz .step .option .q_icon {
	position: absolute; top: 13px; right: 16px; width: 30px; height: 30px; color: #b3a7a1;
	transition: color .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1);
}
.quiz .step .option:hover .q_icon { color: #8d7f78; transform: translateY(-2px); }
.quiz .step .option input:checked ~ .check + div .q_icon { color: #382312; }

.quiz .step .js-quiz-step .field { position: relative; max-width: 620px; }
.quiz .step .js-quiz-step .input {
	height: 68px; padding: 0 56px 0 22px; font-size: 18px; letter-spacing: 0; text-transform: none;
	background: #f3efed; border: 1px solid transparent; border-radius: 0 10px;
	transition: background .35s cubic-bezier(.4, 0, .2, 1), border-color .35s cubic-bezier(.4, 0, .2, 1);
}
.quiz .step .js-quiz-step .input::placeholder { font-size: 16px; letter-spacing: 0; text-transform: none; color: #9e9394; opacity: 1; }
.quiz .step .js-quiz-step .input:hover { background: #ebe4e0; }
.quiz .step .js-quiz-step .input:focus { background: #fff; border-color: #665c57; outline: none; }
.quiz .step .js-quiz-step .field::after {
	content: ''; position: absolute; top: 50%; right: 22px; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23665c57' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 4.5l4 4L8 20H4v-4z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 1279px) {
	.quiz .step .options .row { grid-template-columns: repeat(var(--cols-t, 3), 1fr); }
}
@media (max-width: 767px) {
	.quiz .step .options .row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.quiz .step .option .check { top: auto; bottom: 10px; left: 12px; }
	.quiz .step .option .check + div { min-height: 92px; padding: 40px 14px 13px 40px; font-size: 10px; }
	.quiz .step .option .q_icon { top: 10px; right: 12px; width: 24px; height: 24px; }
	.quiz .step .js-quiz-step .input { height: 58px; padding: 0 48px 0 18px; font-size: 16px; }
	.quiz .step .js-quiz-step .input::placeholder { font-size: 15px; }
	.quiz .step .js-quiz-step .field::after { right: 18px; }
}

/* ---------- Главная: слайды первого экрана (заголовок, подзаголовок, кнопка) по кругу ----------
   H1 в коде один и не меняется; остальные слайды — отдельные элементы в той же ячейке сетки, поэтому высота блока —
   по самому высокому слайду и ничего не сдвигается. Ключевые кадры по числу слайдов — в index.astro. */
.first_section .hero_rot { display: grid; }
.first_section .hero_rot__item { grid-area: 1 / 1; align-self: end; }
.first_section .hero_rot__item .title { margin: 0; }
/* кнопка — как «каталог 3d панелей» в баннере ниже */
.first_section .hero_btn { margin-top: 28px; }
.first_section .hero_btn a { display: inline-block; padding: 17px 42px; font-size: 12px; line-height: 120%; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; color: #010000; background: #fff; border: 1px solid #f3efed; border-radius: 45px; transition: background .35s cubic-bezier(.4, 0, .2, 1); }
.first_section .hero_btn a:hover { background: rgba(255, 255, 255, .8); }
@media (max-width: 767px) { .first_section .hero_btn { margin-top: 20px; } .first_section .hero_btn a { padding: 14px 28px; } }
.first_section .hero_rot:hover .hero_rot__item { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .first_section .hero_rot__item { animation: none !important; }
  .first_section .hero_rot__item:not(:first-child) { visibility: hidden; }
}

/* ---------- Страница «Реквизиты»: таблица из «Настроек сайта» ---------- */
.text_block.requisites table td { font-size: 16px; }
.text_block.requisites table td:first-child { width: 38%; color: #6f6a67; }
@media (max-width: 767px) {
  .text_block.requisites table td { font-size: 14px; }
  .text_block.requisites table td:first-child { width: 42%; }
}

/* ---------- Статьи: фильтр по тегам (кнопки .page_links из макета) ---------- */
.articles .article[hidden] { display: none !important; }

/* ---------- Мобильная шапка плавающая, как шапка на компьютере ----------
   scripts.js при прокрутке ставит .fixed, место под шапку держит .mob_header_wrap (на главной шапка поверх видео) */
.mob_header { transition: .35s cubic-bezier(.4, 0, .2, 1); transition-property: padding, background; }
.mob_header.fixed { position: fixed; padding: 10px 0; color: var(--text_color); background: #fff; }
.mob_header.fixed:before { display: none; }
.mob_header.no_tr, .mob_header.no_tr *, .mob_header.no_tr:before { transition: none !important; }

/* ---------- Квиз главной, шаг 1: светлые картинки-барельефы (quiz-relief-*) ----------
   на светлом фоне подпись тёмная и без затемнения снизу; кружок выбора с тонкой обводкой */
.quiz .step .service.light .thumb:before { display: none; }
.quiz .step .service.light .name { color: #382312; }
.quiz .step .service.light .check { box-shadow: inset 0 0 0 1px #b3a7a1; }

/* Пункты над списками: переход в услуги и открытие второго уровня каталога. */
#menu .menu a:is([href="/services/"], [data-sub="catalog"]) {
	display: flex;
	align-items: center;
	gap: .55em;
	min-height: 44px;
}
#menu .menu a:is([href="/services/"], [data-sub="catalog"])::after {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	mask: var(--menu-arrow) center / contain no-repeat;
	-webkit-mask: var(--menu-arrow) center / contain no-repeat;
}
#menu .menu a[href="/services/"] {
	--menu-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 10h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
#menu .menu a[data-sub="catalog"] {
	--menu-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 4 6 6-6 6' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
#menu .menu a:is([href="/services/"], [data-sub="catalog"]):is(:hover, :focus-visible) {
	color: #382f2d;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
