/* Двери Дзен — основные стили. Чистый CSS3, без препроцессоров. */
/* Шрифт Manrope (OFL) — свой, без Google Fonts: не блокирует отрисовку чужим сервером. Переменный, начертания 200–800 в одном файле. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{
  --ink:#1B1B1B;--ink-2:#262626;--ink-3:#2C2C2C;--paper:#F5F3EF;--white:#fff;
  --accent:#F5A21B;--accent-dk:#E8940D;--muted:#6B665E;--muted-2:#8A857D;--line:#E6E2DB;--line-2:#EEEAE3;
  --ok:#2E8B57;--radius-l:16px;--radius:12px;--radius-s:8px;--radius-xs:6px;--shadow-sm:0 2px 8px rgba(0,0,0,.15);--shadow-md:0 12px 30px rgba(0,0,0,.08);--shadow-lg:0 20px 40px rgba(0,0,0,.12);--shadow-pop:0 12px 30px rgba(0,0,0,.25);--shadow-modal:0 30px 60px rgba(0,0,0,.35);--container:1440px;--gutter:clamp(20px,3vw,40px);
  --font:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent-dk)}
button{font:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;font-weight:800;letter-spacing:-.01em;line-height:1.1;text-wrap:balance}
h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.02em}
h2{font-size:clamp(24px,2.6vw,30px)}
h3{font-size:20px}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
/* Атрибут hidden всегда скрывает элемент — даже если у класса задан display (иначе JS-переключатели «прятали» блок, а он оставался видимым) */
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.container{max-width:var(--container);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--accent);color:var(--ink);padding:8px 12px;border-radius:var(--radius-xs);z-index:100}
.skip-link:focus{left:8px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 24px;border-radius:var(--radius-s);border:1.5px solid transparent;font-weight:800;font-size:15px;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.btn--accent{background:var(--accent);color:#fff}

.btn--dark{background:var(--ink);color:#fff}

.btn--ghost{background:transparent;color:#fff;border-color:#4a4a4a}
.btn--ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn--outline{background:#fff;color:var(--ink);border-color:var(--line)}

.btn--sm{height:40px;padding:0 16px;font-size:13px;font-weight:700}
.btn--block{width:100%}
.link{font-weight:700;color:var(--accent-dk)}

/* Шапка */
.topbar{background:var(--ink);color:#B5B0A8;font-size:12px;border-bottom:1px solid var(--ink-3)}
.topbar .container{display:flex;align-items:center;gap:24px;height:36px}
.topbar__right{margin-left:auto;display:flex;gap:18px}
.topbar a{color:#B5B0A8}
.topbar a:hover{color:#fff}
.header{background:var(--ink);color:#fff}
.header .container{display:flex;align-items:center;gap:24px;height:76px}
.logo{display:flex;align-items:center;gap:12px;color:#fff;min-width:0}
.logo:hover{color:#fff}
.logo__mark{width:26px;height:38px;border:2.5px solid var(--accent);border-radius:4px 8px 8px 4px;position:relative;flex:none}
.logo__mark::after{content:"";position:absolute;right:5px;top:17px;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.logo>span:last-child{min-width:0}
.logo__name{display:block;font-weight:800;font-size:20px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logo__tag{display:block;font-size:11px;color:#B5B0A8;letter-spacing:.06em;text-transform:uppercase;margin-top:5px}
.catalog-btn{height:44px;padding:0 18px;font-size:14px}
.catalog-btn__lines{display:inline-flex;flex-direction:column;gap:3px}
.catalog-btn__lines i{display:block;width:16px;height:2px;background:currentColor}
.search{flex:1;display:flex;align-items:center;gap:10px;background:var(--ink-2);border-radius:var(--radius-s);height:44px;padding:0 16px}
.search input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#fff;font-size:14px}
.search input::placeholder{color:#8a8a8a}
.header__phone{text-align:right;line-height:1.15;color:#fff;white-space:nowrap}
.header__phone b{display:block;font-size:17px}
.header__phone small{font-size:11px;color:#B5B0A8}
.cart-btn{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 16px;background:var(--ink-2);color:#fff;border:0;border-radius:var(--radius-s);font-weight:700;font-size:14px;white-space:nowrap;flex:none}
.cart-btn:hover{color:#fff;background:#333}
.cart-btn__count{background:var(--accent);color:#fff;border-radius:var(--radius-s);padding:1px 7px;font-size:12px;font-weight:800}
.burger{display:none;width:44px;height:44px;background:var(--ink-2);border:0;border-radius:var(--radius-s);color:#fff;transition:background .15s}
.burger:hover{background:var(--ink-3)}
.nav{background:#fff;border-bottom:1px solid var(--line)}
.nav__list{display:flex;flex-wrap:wrap;column-gap:26px;row-gap:0;min-height:48px;align-items:stretch;font-size:14px;font-weight:600}
.nav__list>li{display:flex;align-items:stretch}
.nav__list>li>a{display:flex;align-items:center;position:relative;white-space:nowrap;height:48px}
.nav__list>li>a::after{content:"";position:absolute;left:0;right:0;bottom:12px;height:2px;background:transparent;border-radius:1px}
.nav__list>li>a[aria-current="page"]::after,.nav__list>li>a:hover::after{background:var(--accent)}
.nav__list>li>a[aria-current="page"],.nav__list>li>a:hover{color:var(--ink)}
.nav__more{position:relative}
.nav__more>a::after{display:none!important}.nav__more>a{gap:6px}.nav__chev{flex:none;align-self:center}
.nav__more>a::before{content:"";display:none;margin:-3px 0 0 8px;background:transparent!important;border-radius:0}
.nav__drop{position:absolute;left:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow-lg);padding:10px;display:none;grid-template-columns:repeat(2,200px);gap:2px;z-index:40}
@media (min-width:1100px){
  .nav__more:hover .nav__drop,.nav__more:focus-within .nav__drop{display:grid}
}
.nav__drop a{display:block;padding:8px 12px;border-radius:var(--radius-xs);font-weight:600}
.nav__drop a:hover{background:var(--paper);color:var(--ink)}

/* Хлебные крошки */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted-2);list-style:none;margin:0 auto;padding-top:18px;padding-bottom:0}
.crumbs li{display:flex;gap:8px}
.crumbs a{color:var(--muted-2)}
.crumbs a:hover{color:var(--ink)}
.crumbs li:not(:last-child)::after{content:"/";color:var(--line)}
.crumbs li:last-child{color:var(--ink)}
.pd-page>nav .crumbs{padding-bottom:16px}

/* Секции */
.section{padding-top:56px}
.section--last{padding-bottom:72px}
.section__head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:24px}
.eyebrow{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-weight:700}
.lead{font-size:17px;line-height:1.5;color:#C9C4BB;max-width:520px}
.dark{background:var(--ink);color:#fff}

/* Хиро (главная — подборщик) */

/* Квиз */

/* Сетка категорий */
.badge{position:absolute;top:10px;right:10px;font-size:12px;font-weight:600;color:var(--ink);background:#fff;box-shadow:var(--shadow-sm);border-radius:var(--radius-s);padding:3px 9px;white-space:nowrap;line-height:1.4}

/* Карточки товаров */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.grid--tight{gap:16px}
.product__stage img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain}
.opt select{width:100%;height:46px;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:0 14px;font-size:15px;font-weight:600;background:#fff;color:var(--ink)}
.panel-slider{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;-webkit-overflow-scrolling:touch;touch-action:pan-x;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.panel-slider::-webkit-scrollbar{height:6px}
.panel-slider::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.panel-slider__item{flex:0 0 auto;width:88px;scroll-snap-align:start;border:1.5px solid var(--line);border-radius:var(--radius-s);background:#fff;padding:4px;cursor:pointer;text-align:center}
.panel-slider__item img{width:100%;height:100px;object-fit:cover;border-radius:var(--radius-xs);display:block;background:#ECE8E1}
.panel-slider__item span{display:block;font-size:11px;line-height:1.25;margin-top:4px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.panel-slider__item[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.panel-slider__picked{font-size:13px;color:var(--muted);margin-top:8px}

/* Преимущества */
.why{margin-top:64px;padding:64px 0}
.why .container{display:grid;grid-template-columns:1fr 2fr;gap:48px;align-items:stretch}
.why__intro{display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.why__facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:var(--ink-3);border-radius:var(--radius);overflow:hidden}
.why__facts div{background:var(--ink);padding:18px 20px}
.why__facts dt{font-size:24px;font-weight:800;letter-spacing:-.01em;color:var(--accent)}
.why__facts dd{margin:4px 0 0;font-size:13px;color:#B5B0A8;line-height:1.4}
.why h2{margin-top:14px;font-size:clamp(28px,3vw,36px);line-height:1.1}
.why .btn{margin-top:28px}
.why__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:var(--ink-3);border-radius:var(--radius);overflow:hidden}
.why__item{background:var(--ink);padding:24px}
.why__item span{color:var(--accent);font-weight:800;font-size:13px}
.why__item h3{margin:10px 0 8px;font-size:17px}
.why__item p{font-size:14px;color:#B5B0A8}

/* Этапы */
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;padding:0;margin:0}
.step{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;position:relative}
.step__n{position:absolute;right:20px;top:16px;font-size:44px;font-weight:800;color:#EFEBE3;line-height:1}
.step h3{font-size:17px;margin-bottom:10px;position:relative;padding-right:72px}
.step p{font-size:14px;color:var(--muted)}

/* Промо */
.promos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.promo{display:grid;grid-template-columns:minmax(0,1fr) 280px;background:var(--ink);border-radius:var(--radius);overflow:hidden;color:#fff;min-height:280px}
.promo:hover{color:#fff}
.promo__body{padding:32px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.promo__title{font-size:26px;font-weight:800;line-height:1.1}
.promo__text{font-size:14px;color:#B5B0A8}
.promo__more{margin-top:8px;font-weight:700;color:var(--accent)}
.promo img{width:280px;height:280px;object-fit:cover;background:var(--ink)}

/* Бренды */
.brands{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}
.brand{background:#fff;border:1px solid var(--line);border-radius:var(--radius-s);min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:800;font-size:15px;letter-spacing:.02em;text-align:center;padding:12px}
.brand:hover{border-color:var(--accent);color:var(--ink)}
.brand small{font-size:12px;color:var(--muted-2);font-weight:600}

/* Статьи */
.posts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.posts--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.post{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.post:hover{border-color:var(--accent);color:var(--ink)}
.post img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:var(--ink)}
.post__body{display:block;padding:18px 20px 20px}
.post__cat{display:block;font-size:12px;color:var(--muted-2);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.post h3,.post__heading{margin:8px 0 6px;font-size:17px;line-height:1.3}
.post p{font-size:14px;color:var(--muted)}

/* FAQ */
.faq{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:48px;align-items:stretch}
.faq__intro{display:flex;flex-direction:column}
.faq__card{flex:1;display:flex;flex-direction:column}
.faq__card .btn{margin-top:auto}
.faq__note{background:var(--paper);border-radius:var(--radius-s);padding:14px 16px;font-size:14px;color:var(--muted);line-height:1.5;margin-bottom:20px}
.faq__note b{display:block;color:var(--ink);margin-bottom:4px}
.faq__intro p{margin-top:14px;color:var(--muted)}
.faq__phone{display:flex;align-items:center;gap:12px;font-weight:800;font-size:22px;color:var(--ink)}
.faq__phone::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--accent);flex:none}
.faq__card{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.faq__meta{display:grid;gap:12px;margin:18px 0 20px;padding-top:18px;border-top:1px solid var(--line-2);font-size:14px;color:var(--ink)}
.faq__meta b{display:block;font-size:12px;color:var(--muted-2);font-weight:600;margin-bottom:2px}
.faq__list{display:grid;gap:10px;min-width:0}
.faq__list details{background:#fff;border:1px solid var(--line);border-radius:var(--radius);transition:border-color .15s}
.faq__list details:hover,.faq__list details[open]{border-color:var(--accent)}
.faq__list summary{list-style:none;cursor:pointer;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-weight:700;font-size:16px;line-height:1.35}
.faq__list summary::-webkit-details-marker{display:none}
.faq__list summary::after{content:"+";width:32px;height:32px;border-radius:50%;background:var(--paper);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:400;line-height:1;flex:none;transition:transform .2s,background .15s}
.faq__list details[open] summary::after{content:"−";background:var(--accent)}
.faq__list details p{margin:0;padding:0 64px 24px 24px;color:var(--muted);line-height:1.65;font-size:15px}

/* SEO-текст */
.seo{background:#fff;border:1px solid var(--line);border-radius:var(--radius-l);padding:40px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:40px 56px;align-items:start}
.seo__text{min-width:0}
.seo h2{font-size:24px;margin:0 0 18px}
.seo p+h2,.seo ul+h2{margin-top:32px}
.seo h3{font-size:18px;margin:20px 0 8px}
.seo p,.seo li{color:var(--muted);line-height:1.7;font-size:16px}
.seo ul{padding-left:20px;list-style:disc}
.seo li{margin:4px 0}
.seo p+p{margin-top:14px}
.seo strong{color:var(--ink)}
.seo__aside{display:flex;flex-direction:column;gap:14px;align-self:stretch}
.seo__cities{flex:1}
.seo__fact{background:var(--paper);border-radius:var(--radius);padding:20px 22px}
.seo__fact b{display:block;font-size:26px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.seo__fact span{display:block;font-size:14px;color:var(--muted);margin-top:4px;line-height:1.45}
.seo__fact a{font-weight:700;color:var(--accent-dk)}
.seo__cities{background:var(--ink);color:#fff;border-radius:var(--radius);padding:22px}
.seo__cities b{display:block;font-size:15px;font-weight:800;margin-bottom:8px}
.seo__cities p{color:#B5B0A8;font-size:14px;line-height:1.55}
.seo--single{display:block}
.section--seo .container{padding-left:var(--gutter);padding-right:var(--gutter)}

/* Подвал */
.footer{background:var(--ink);color:#B5B0A8;border-top:4px solid var(--accent);margin-top:72px}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding-top:48px;padding-bottom:28px;font-size:14px}
.footer__about p{margin-top:16px;line-height:1.55;max-width:360px}
.footer__legal{font-size:12px!important;color:#7d786f}
.footer .footer__label{color:#fff;font-weight:800;margin-bottom:14px;font-size:15px}
.footer__col ul{display:grid;gap:9px}
.footer a{color:#B5B0A8}
.footer a:hover{color:#fff}
.footer__phone{color:#fff!important;font-weight:800;font-size:17px}
.footer__bottom{border-top:1px solid var(--ink-3)}
.footer__bottom .container{display:flex;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px;font-size:12px;color:#7d786f;flex-wrap:wrap}
.footer__bottom a{color:#7d786f}

/* Листинг: шапка категории */
.cat-hero{margin-top:20px;background:var(--ink);color:#fff;border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1fr 260px;min-height:260px}
.cat-hero__body{padding:32px 36px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.cat-hero h1{font-size:clamp(28px,3.2vw,38px)}
.cat-hero p{color:#C9C4BB;font-size:15px;max-width:640px}
.cat-hero img{width:260px;height:260px;align-self:center;object-fit:cover;background:var(--ink)}
.quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.quick a{color:#fff;border:1px solid #4a4a4a;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.quick a:hover{border-color:var(--accent);color:var(--accent)}

.empty{background:#fff;border:1px dashed #D9D4CB;border-radius:var(--radius);padding:48px;text-align:center}
.empty[hidden]{display:none}
.empty h3{font-size:22px}
.empty p{margin:10px auto 0;max-width:460px;color:var(--muted)}
.empty__actions{display:flex;gap:10px;justify-content:center;margin-top:22px;flex-wrap:wrap}

/* Страница товара */
.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:stretch;padding-top:32px}
.product__gallery{display:grid;grid-template-columns:88px minmax(0,1fr);gap:24px;align-items:stretch;max-width:100%;align-self:stretch;margin:0;height:100%}
.buy{align-self:start}
.product__gallery--single{grid-template-columns:1fr}
.product__gallery--single .product__stage{height:auto;min-height:0;aspect-ratio:4/5;max-height:560px;align-self:start}
.product__gallery--paired{display:block;width:100%;min-width:0;height:100%}
.product__gallery--paired .product__stages{width:100%;height:100%}
.product__stages .product__stage img{object-position:center}
.product__stage{position:relative;background:#ECE8E1;border-radius:var(--radius);overflow:hidden;margin:0;max-width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;min-height:320px}
.product__stage--entry{background-color:#3A3A3C}
.product__stage::before{content:"";position:absolute;left:0;right:0;bottom:0;height:22%;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.08))}
.product__stage .door{top:7%;bottom:7%;width:36%;max-width:300px;box-shadow:0 20px 50px rgba(0,0,0,.3),inset 0 0 0 1px rgba(0,0,0,.12)}
.product__stage .door::after{height:4px}
.product__caption{position:absolute;left:16px;bottom:14px;font-family:ui-monospace,Menlo,monospace;font-size:11px;color:rgba(0,0,0,.55);background:rgba(255,255,255,.7);padding:3px 8px;border-radius:var(--radius-xs)}
.thumbs{display:flex;flex-direction:column;gap:10px;justify-content:space-between}
.thumbs button{width:88px;flex:1 1 0;min-height:72px;max-height:150px;border-radius:var(--radius-s);background:var(--c);border:2px solid rgba(0,0,0,.1);padding:0}
.thumbs button:only-child{flex:0 0 150px}
.thumbs button[aria-pressed="true"]{border-color:var(--accent)}
/* Входные: две сцены — снаружи (фикс) и внутри (меняется); галерея шире блока покупки */
.product--entry,.product__info--entry{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
.product--entry .product__gallery{grid-template-columns:88px minmax(0,1fr)}
.product__stages{display:grid;grid-template-columns:1fr 1fr;gap:0;height:100%;border-radius:var(--radius);overflow:hidden}
.product__stages .product__stage{min-height:0;height:100%;border-radius:0}
.product__stages .product__stage--inside{border-left:1px solid rgba(0,0,0,.08)}
.product__stages .door{width:64%;max-width:none;height:auto;aspect-ratio:1/2.2;top:50%;bottom:auto;max-height:84%;left:50%;transform:translate(-50%,-50%)}
.product__stage--inside{background-color:#ECE8E1}
.product__stages .product__stage--fixed{background-color:#ECE8E1}
.product__caption--tag{font-family:var(--font);font-weight:700;font-size:12px;color:var(--ink);background:rgba(255,255,255,.9)}
/* Бегущая строка акций */
.ticker{display:block;margin:40px 0;background:var(--ink);color:#fff;border-radius:var(--radius);height:52px;overflow:hidden;position:relative}
.ticker:hover{color:#fff}
.ticker::before,.ticker::after{content:"";position:absolute;top:0;bottom:0;width:60px;z-index:1;pointer-events:none}
.ticker::before{left:0;background:linear-gradient(90deg,var(--ink),rgba(27,27,27,0))}
.ticker::after{right:0;background:linear-gradient(270deg,var(--ink),rgba(27,27,27,0))}
.ticker__track{display:flex;width:max-content;height:100%;align-items:center;animation:ticker 40s linear infinite}
.ticker:hover .ticker__track{animation-play-state:paused}
.ticker__track span{display:flex;align-items:center;gap:14px;padding:0 28px;font-weight:700;font-size:14px;white-space:nowrap}
.ticker__track span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
@keyframes ticker{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker__track{animation:none;flex-wrap:wrap;width:auto}}
.product__info{margin-top:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:stretch}
.product__info>section{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column}
.product__info h2{font-size:20px}
.specs{margin:14px 0 0;flex:1}
.specs div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.specs dt{color:var(--muted)}
.specs dd{margin:0;font-weight:700;text-align:right}
.specs div:last-child{border-bottom:0}
.product__desc p{margin-top:14px;color:var(--muted);line-height:1.65;font-size:15px}
.product__desc h2+p{margin-top:12px}
.product__desc h2{font-size:20px;margin-top:26px}
.product__desc h2:first-child{margin-top:0}
.product__desc h3{font-size:18px;margin-top:22px}
.product__desc ul{padding-left:20px;list-style:disc;margin-top:10px}
.product__desc li{color:var(--muted);line-height:1.6;font-size:15px;margin:4px 0}
.product__desc li::marker{color:var(--accent)}
.buy{position:static;background:#fff;border:1px solid var(--line);border-radius:var(--radius-l);padding:28px;display:flex;flex-direction:column;min-width:0;box-sizing:border-box}
.buy__notes{margin-top:auto!important}
.buy__sub{font-size:13px;color:var(--muted-2);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sku{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--muted-2)}
.buy h1{margin:6px 0 14px;font-size:30px;overflow-wrap:break-word;word-break:break-word}
.buy__price{display:flex;align-items:baseline;gap:14px}
.buy__price .price{font-size:34px}
.buy__price .stock{font-size:15px}
.opt{margin-top:22px;min-width:0}
.opt__label{font-size:13px;font-weight:700;margin-bottom:8px}
.opt__label span{color:var(--muted);font-weight:600}
.colors{display:flex;gap:8px;flex-wrap:wrap}
.colors button{width:34px;height:34px;border-radius:50%;background:var(--c);border:2px solid rgba(0,0,0,.1);box-shadow:inset 0 0 0 2px #fff;padding:0}
.colors button[aria-pressed="true"]{border-color:var(--accent)}
.sizes{display:flex;gap:8px;flex-wrap:wrap}
.sizes button{height:38px;padding:0 14px;border-radius:var(--radius-s);border:1.5px solid var(--line);background:#fff;font-weight:700;font-size:13px}
.sizes button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.opt .link{display:inline-block;margin-top:8px;font-size:13px}
.buy__row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.buy__row .qty{flex:none}
.qty{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:var(--radius-s);height:52px;background:#fff}
.qty button{width:44px;height:100%;border:0;background:transparent;font-size:20px;color:var(--muted);transition:color .15s}
.qty button:hover{color:var(--ink)}
.qty output{width:28px;text-align:center;font-weight:800}
.buy__row .btn{flex:1;height:52px;min-width:0;white-space:normal;line-height:1.2;text-align:center}
.buy .btn--outline{margin-top:12px}
.buy__notes{margin-top:22px;padding-top:18px;border-top:1px solid var(--line-2);display:grid;gap:10px;font-size:13px;color:var(--muted);line-height:1.4}
.buy .btn--outline{margin-bottom:22px}
.buy__notes li{display:flex;gap:10px}
.buy__notes li::before{content:"●";color:var(--accent);font-weight:800}

/* Корзина */
.cart-page{padding-top:28px;padding-bottom:72px}
.cart-page h1{margin-bottom:24px}
.cart-page h1 small{color:var(--muted-2);font-weight:600;font-size:20px}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:32px;align-items:start}
.cart-list{display:flex;flex-direction:column}
.cart-list ul{flex:1}
.cart-note{margin-top:auto}
.cart-layout[hidden]{display:none}
.cart-list{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.cart-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto auto 40px;gap:20px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line-2)}
.cart-item__thumb{width:72px;height:90px;border-radius:var(--radius-xs);background:#ECE8E1;position:relative;overflow:hidden}
.cart-item__thumb--entry{background:#3A3A3C}
.cart-item__thumb img{width:100%;height:100%;object-fit:contain;display:block}
.cart-item__thumb i{position:absolute;left:50%;top:10%;bottom:10%;width:50%;transform:translateX(-50%);background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.cart-item__name{font-weight:700;font-size:15px}
.cart-item__meta{font-size:13px;color:var(--muted);margin-top:4px}
.cart-item .qty{height:40px}
.cart-item .qty button{width:36px;font-size:18px}
.cart-item__sum{font-weight:800;font-size:17px;min-width:96px;text-align:right}
.cart-item__remove{width:36px;height:36px;border:0;background:var(--paper);border-radius:var(--radius-s);color:var(--muted-2);font-size:18px}
.cart-note{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:var(--muted)}
.order{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;position:sticky;top:16px}
.order h2{font-size:20px;margin-bottom:16px}
.form{display:grid;gap:10px}
.form input,.form textarea{height:46px;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:0 14px;font-size:14px;outline:0;background:#fff;width:100%}
.form textarea{height:auto;padding:12px 14px;resize:vertical}
.form input:focus,.form textarea:focus{border-color:var(--ink)}
.check{display:flex;gap:10px;align-items:center;font-size:14px;padding:4px 0;cursor:pointer}
.lead-consent{display:flex;gap:10px;align-items:center;font-size:12px;line-height:1.4;color:var(--muted);padding:4px 0;cursor:pointer}
.lead-consent input[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-width:20px;padding:0;flex:0 0 20px;border:1.5px solid var(--line);border-radius:var(--radius-xs);background:#fff;cursor:pointer;position:relative;margin:0}
.lead-consent input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
.lead-consent input[type=checkbox]:checked::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.lead-consent input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lead-consent span{flex:1;min-width:0}
.lead-consent a{color:var(--muted);text-decoration:underline}
.lead-consent a:hover{color:var(--ink)}
.check input[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;flex:0 0 auto;border:1.5px solid var(--line);border-radius:var(--radius-xs);background:#fff;cursor:pointer;position:relative;margin:0}
.check input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
.check input[type=checkbox]:checked::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.check input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.totals{border-top:1px solid var(--line);margin-top:16px;padding-top:16px;display:grid;gap:8px;font-size:14px}
.totals div{display:flex;justify-content:space-between;color:var(--muted)}
.totals .totals__sum{font-weight:800;font-size:20px;margin-top:6px;color:var(--ink)}
.order .btn{margin-top:18px}
.order__legal{margin-top:12px;font-size:12px;color:var(--muted-2);line-height:1.4;text-align:center}
.cart-empty{background:#fff;border:1px dashed #D9D4CB;border-radius:var(--radius);padding:56px;text-align:center}
.cart-empty p{margin:10px 0 22px;color:var(--muted)}

/* Спасибо */
.thanks{max-width:720px;margin:0 auto;padding:80px var(--gutter) 120px;text-align:center}
.thanks__ok{display:inline-flex;width:72px;height:72px;border-radius:50%;background:var(--accent);align-items:center;justify-content:center}
.thanks__ok::after{content:"";width:26px;height:14px;border-left:4px solid var(--ink);border-bottom:4px solid var(--ink);transform:rotate(-45deg) translate(2px,-4px)}
.thanks{padding-bottom:48px}
.thanks h1{margin:24px 0 12px;font-size:40px}
.thanks p{color:var(--muted);font-size:16px}
.thanks__actions{display:flex;gap:10px;justify-content:center;margin-top:28px;flex-wrap:wrap}

/* Хиро внутренних страниц */
.page-hero .cat-hero__body{padding:40px 44px}
.page-hero img,.cat-hero img{height:100%;min-height:0;align-self:stretch}
.page-hero h1{font-size:clamp(28px,3.2vw,40px)}
.page-hero p{font-size:16px;line-height:1.55;max-width:none}
.page-hero__actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.page-hero .quick a{color:#fff}
.page.page--after-hero{padding-top:40px}
.page--after-hero .tiles,.page--after-hero .posts,.page--after-hero .works,.page--after-hero .calc{margin-top:0}
.page--after-hero .page__grid{margin-top:0}
.page--after-hero .tiles+.page__grid,.page--after-hero .works+.page__grid,.page--after-hero .tiles+.article,.page--after-hero .works+.article,.page--after-hero .tiles+p{margin-top:40px}
.page--after-hero .article>h2:first-child{margin-top:0}
.page>*+*{margin-top:40px}
.page>.visually-hidden+*{margin-top:0}
.cart-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:24px}
.cart-head h1{margin:0}
/* Страницы-текст (сервисные, статьи) */
.page{padding-top:22px;padding-bottom:72px}
.page__grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:48px;align-items:stretch;margin-top:32px}
.page__grid>aside{display:flex;flex-direction:column;gap:20px;align-self:start}
.page__grid>aside .aside-card+.aside-card{margin-top:0}
.page__grid>.article,.page__grid>div>.article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 32px;height:100%}
.page__grid>div:not(.article){display:flex;flex-direction:column;gap:20px}
.page__grid>div>.article{flex:1}
.page__grid>div>.article>h2:first-child,.page__grid>.article>h2:first-child{margin-top:0}
.page__grid .article h2{margin:28px 0 12px}
.page__grid .article ol,.page__grid .article ul{margin-top:8px}
.page h1{margin-top:8px}
.page .lead{color:var(--muted);margin-top:16px;max-width:760px}
.page .tiles+.article,.page .tiles+.seo,.page .tiles+p{margin-top:40px}
.article{min-width:0}
.toc{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-s);padding:20px 24px;margin:24px 0 32px}
.toc__title{margin:0 0 12px;font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--muted-2)}
.toc ol{margin:0;padding-left:20px;display:grid;gap:8px;font-size:15px;font-weight:600}
.toc li ol{margin-top:8px;padding-left:20px;font-weight:500;font-size:14px}
.toc a{color:var(--ink)}
.toc a:hover{text-decoration:underline}
.article h2{scroll-margin-top:90px}
.article h3{scroll-margin-top:90px}
.article h2{font-size:24px;margin:36px 0 14px}
.article h3{font-size:18px;margin:24px 0 10px}
.article p,.article li{color:var(--muted);line-height:1.7;font-size:16px}
.article p{margin-top:14px}
.article ul,.article ol{padding-left:22px;margin:14px 0 0}
.article ul{list-style:disc}
.article ol{list-style:decimal}
.article li{margin:6px 0}
.article li::marker{color:var(--accent);font-weight:700}
.article img{border-radius:var(--radius);margin:28px 0 8px;background:var(--ink);height:auto}
.article__meta{font-size:13px;color:var(--muted-2);margin-top:12px}
.article .eyebrow{margin-bottom:12px}
.aside-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.aside-card+.aside-card{margin-top:20px}
.aside-card h3{font-size:18px;margin-bottom:12px}
.aside-card p{color:var(--muted);font-size:14px}
.aside-card ul{display:grid;gap:8px;font-size:14px}
.aside-card .btn{margin-top:14px}
.aside-card img{border-radius:var(--radius-s);background:var(--ink);height:auto}
.contact-list{display:grid;gap:12px;font-size:15px}
.contact-list b{display:block;font-size:13px;color:var(--muted-2);font-weight:600}
.map{aspect-ratio:16/9;border:0;border-radius:var(--radius);width:100%;background:#ddd}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column}
.tile p:last-child{margin-top:auto}
.tile h3{font-size:17px;margin-bottom:8px}
.tile p{color:var(--muted);font-size:14px}
.review{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.review__head{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted-2)}
.review__stars{color:var(--accent);letter-spacing:2px}
.review p{margin-top:10px;color:var(--muted);font-size:15px}
.sitemap__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sitemap__col{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.sitemap__col h2{margin:0 0 12px!important;font-size:18px}
.sitemap ul{padding-left:18px;list-style:disc;margin:0}
.sitemap li::marker{color:var(--accent)}
.sitemap li{margin:4px 0}


/* Калькулятор */

/* Уведомление */
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:var(--radius-s);font-weight:700;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:80;box-shadow:var(--shadow-pop)}
.toast.is-on{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
.toast a{color:var(--accent);margin-left:10px}

/* Цена под ключ */
.turnkey{margin-top:14px;background:var(--paper);border-radius:var(--radius-s);padding:12px 16px;display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;font-size:13px;color:var(--muted)}
.turnkey b{font-size:18px;font-weight:800;color:var(--ink);grid-column:2;grid-row:1}
.turnkey small{grid-column:1/-1;font-size:12px;color:var(--muted-2)}
/* Модальное окно замера */
.modal{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:16px}
.modal[hidden]{display:none}
.modal__backdrop{position:absolute;inset:0;background:rgba(27,27,27,.6)}
.modal__box{position:relative;background:#fff;border-radius:var(--radius-l);padding:32px;width:100%;max-width:460px;box-shadow:var(--shadow-modal);display:grid;gap:14px}
.modal__box h2{font-size:24px}
.modal__text{color:var(--muted);font-size:15px}
.modal__close{position:absolute;right:12px;top:12px;width:36px;height:36px;border:0;background:var(--paper);border-radius:50%;font-size:20px;color:var(--muted);transition:color .15s,background .15s}
.modal__close:hover{color:var(--ink);background:var(--line-2)}
.footer__lead{background:transparent;border:0;padding:0;color:var(--accent);font-weight:700;font-size:14px}
.footer__lead:hover{color:#fff}
.header__phone small button{cursor:pointer}
.header__phone small button:hover{color:var(--accent)}
/* Полоса замера в каталоге */
.lead-strip{margin-top:20px;background:var(--ink);color:#fff;border-radius:var(--radius);padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.lead-strip b{display:block;font-size:17px;font-weight:800}
.lead-strip span{display:block;font-size:14px;color:#B5B0A8;margin-top:4px}
.lead-strip .btn{flex:none}
/* Мобильная панель покупки */
.buybar{display:none}
/* Портфолио */
.works{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}
.work{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.work img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:var(--ink)}
.work__body{padding:18px 20px 20px;flex:1}
.work h3{font-size:17px;margin-bottom:6px}
.work p{font-size:14px;color:var(--muted)}
.tile .eyebrow{margin-bottom:10px}

/* Адаптив */
@media (min-width:1500px){
  .nav__list{gap:32px;font-size:15px}
}
@media (max-width:1250px){
  .nav__list{font-size:13px;column-gap:18px}
  .nav__list>li{flex:none}
  .header .container{gap:16px}
  .header__phone small{display:none}
}
@media (max-width:1100px){
  .grid,.steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .brands{grid-template-columns:repeat(4,minmax(0,1fr))}
  .why .container,.faq{grid-template-columns:minmax(0,1fr);gap:28px}
  .promos{grid-template-columns:1fr}
  .promo{min-height:240px;grid-template-columns:minmax(0,1fr) 240px}
  .promo img{width:240px;height:100%;align-self:stretch;object-fit:cover}
  .works{grid-template-columns:repeat(2,minmax(0,1fr))}
  .seo__aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .seo{grid-template-columns:1fr;padding:28px}
  .seo__cities{grid-column:1/-1}
  .posts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px}
  .product__stages{gap:0}
  .product__info{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px}
  .product.product--entry,.product__info.product__info--entry{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
  .cart-layout{grid-template-columns:minmax(0,1fr) 340px}
  .nav__list{gap:20px}
  .search{flex:1 1 200px}
  .catalog-btn{padding:0 14px}
}
@media (max-width:1099px){
  .burger{display:inline-flex;align-items:center;justify-content:center}
  .nav{display:none}
  .nav.is-open{display:block}
  .nav__list{flex-direction:column;height:auto;gap:0;padding:8px 0}
  .nav__more{width:100% !important;display:block !important}
  .nav__list>li>a{padding:12px 0;border-bottom:1px solid var(--line-2);width:100%}
  .nav__list>li>a::after{display:none}
  .nav__drop{position:static !important;left:auto !important;top:auto !important;display:none;grid-template-columns:1fr !important;box-shadow:none;border:0;padding:4px 0 8px 12px !important;margin:0 !important;width:100% !important;max-width:100% !important;box-sizing:border-box !important;justify-items:stretch !important;background:transparent !important}
  .nav__more.is-open .nav__drop{display:grid !important}
  .nav__more.is-open .nav__chev{transform:rotate(180deg)}
  .nav__drop a{width:100% !important;max-width:100% !important;display:block !important;text-align:left !important;box-sizing:border-box !important;padding:10px 8px !important}
  .nav__chev{transition:transform .2s}
}
@media (max-width:900px){
  :root{--gutter:20px}
  .topbar{display:none}
  .header .container{gap:12px;height:64px}
  .search,.header__phone{display:none}
  .catalog-btn{display:none}
  .promos,.posts,.product__info,.page__grid,.calc,.tiles,.works,.sitemap__grid{grid-template-columns:1fr}
  .lead-strip{flex-direction:column;align-items:stretch;text-align:center;padding:20px}
  .buybar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);padding:10px var(--gutter);gap:10px;align-items:center;box-shadow:0 -10px 30px rgba(0,0,0,.08)}
  .buybar__price{flex:1;font-weight:800;font-size:17px;line-height:1.1}
  .buybar__price small{display:block;font-size:11px;font-weight:600;color:var(--muted-2)}
  body[data-page="product"]{padding-bottom:72px}
  body[data-page="product"] .toast{bottom:84px}
  .seo__aside{grid-template-columns:1fr}
  .seo{padding:22px}
  .faq__list details p{padding-right:24px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .promo{grid-template-columns:1fr;min-height:0}
  .promo img{width:100%;height:auto;aspect-ratio:1}
  .product{grid-template-columns:minmax(0,1fr)}
  .product__gallery{grid-template-columns:1fr}
  .thumbs{flex-direction:row;flex-wrap:wrap;order:2}
  .thumbs button{width:64px;height:80px;flex:none}
  .product__stages{height:auto}
  .product__stages .product__stage{aspect-ratio:3/4}
  .product__gallery{height:auto}
  .product__stage{height:auto;max-height:none;min-height:0;aspect-ratio:4/5}
  .product__stage img{max-height:100%}
  .buy{position:static;padding:20px}
  .buy__row .btn{flex-basis:100%}
  .buy h1{font-size:22px}
  .product__info>section{padding:20px}
  .cart-layout{grid-template-columns:minmax(0,1fr)}
  .logo__name{font-size:17px}
  .logo__tag{display:none}
  .footer__grid{grid-template-columns:1fr 1fr}
  .cat-hero{grid-template-columns:1fr}
  .cat-hero img{width:100%;height:auto;aspect-ratio:1}
  .why__grid{grid-template-columns:1fr}
  .why__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .cart-item{grid-template-columns:56px auto minmax(0,1fr) auto;gap:10px 12px}
  .cart-item__thumb{width:56px;height:70px;grid-row:1}
  .cart-item>div:not(.qty){grid-column:2/-1;grid-row:1}
  .cart-item .qty{grid-column:1/3;grid-row:2;justify-self:start}
  .cart-item__sum{grid-column:3;grid-row:2;text-align:right;align-self:center}
  .cart-item__remove{grid-column:4;grid-row:2;align-self:center;justify-self:end}

  .grid,.steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .steps{grid-template-columns:1fr}
  .step h3{padding-right:56px}
  .step__n{font-size:36px}
  .section{padding-top:40px}
  .why{padding:40px 0;margin-top:40px}
  .faq__list details p{padding-right:0}
  .cat-hero__body{padding:24px 20px}
  .thanks{padding:56px var(--gutter) 80px}
  .thanks h1{font-size:30px}
  .brands{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* =================== Карточка товара (ТЗ, часть B; значения — из прототипа) =================== */
.pd-page{--pd-ink:#1C1B19;--pd-mute:#6B665E;--pd-mute2:#8A857C;--pd-line:#E9E5DE;--pd-btn:#E3DED5;--pd-div:#EFEBE4;--pd-tile:#F6F4F0;--pd-acc:#F2A21B;--pd-link:#8A6A2E}
.pd-page .container{max-width:var(--container)} /* как у шапки — края совпадают */
.pd{display:flex;flex-wrap:wrap;gap:clamp(16px,2vw,24px);align-items:stretch;margin-bottom:clamp(56px,8vw,112px)}
.pd-gallery{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:16px;padding:clamp(16px,2.4vw,28px);border-radius:24px;background:linear-gradient(180deg,#EEEAE3 0%,#E6E0D6 100%);box-sizing:border-box}
.pd-gallery__top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;min-height:30px}
.pd-badge{background:var(--pd-ink);color:#fff;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.pd-gallery__view{font-size:13px;color:var(--pd-mute)}
.pd-stage{flex:1;min-height:clamp(300px,46vw,600px);display:flex;align-items:center;justify-content:center;gap:6%;padding:8px 0}
.pd-side{margin:0;flex:0 1 62%;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.pd-side img{display:block;width:100%;max-width:330px;height:auto;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(40,30,20,.18))}
.pd-side figcaption{font-size:13px;color:var(--pd-mute);font-weight:500;text-align:center}
.pd-stage--both .pd-side{flex-basis:40%}.pd-stage--both .pd-side img,.pd-stage--both .pd-frame,.pd-stage--both .pd-panel-slot{max-width:270px}
.pd-stage--out .pd-side[data-side="in"],.pd-stage--in .pd-side[data-side="out"]{display:none}
.pd-panel-slot{width:100%;max-width:330px;aspect-ratio:428/842;border:2px dashed #BDB4A6;border-radius:6px;background:rgba(255,255,255,.45);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;box-sizing:border-box;cursor:pointer;font:inherit;color:var(--pd-ink);text-align:center}
.pd-panel-slot:hover{background:rgba(255,255,255,.75)}
.pd-panel-slot__plus{width:44px;height:44px;border-radius:50%;background:var(--pd-ink);color:#fff;font-size:24px;line-height:44px}
.pd-panel-slot b{font-size:15px;font-weight:700}.pd-panel-slot small{font-size:13px;color:var(--pd-mute)}
.pd-frame{width:100%;max-width:330px;aspect-ratio:428/842;background:#1E1E1E;padding:7% 7% 5%;box-sizing:border-box;box-shadow:0 18px 24px rgba(40,30,20,.18)}
.pd-frame[hidden]{display:none}
.pd-frame img{width:100%!important;max-width:none!important;height:100%!important;object-fit:cover;object-position:right center;filter:none!important}
.pd-thumbs{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.pd-thumb{width:76px;height:76px;border-radius:14px;background:#FAF8F5;border:2px solid transparent;padding:8px;display:flex;gap:4px;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box}
.pd-thumb[aria-pressed="true"]{border-color:var(--pd-ink)}
.pd-thumb img{height:100%;width:auto}.pd-thumb img[hidden]{display:none}
.pd-thumb__empty{height:100%;aspect-ratio:1/2;border:1.5px dashed #BDB4A6;border-radius:3px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#8A857C}
.pd-thumb__empty[hidden]{display:none}
.pd-panel{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px;background:#fff;border:1px solid var(--pd-line);border-radius:24px;padding:clamp(20px,2.4vw,32px);box-sizing:border-box}
.pd-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;color:var(--pd-mute2)}
.pd-sku{font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:13px}
.pd-h1--long{font-size:clamp(20px,1.8vw,24px)!important}
.pd-h1{margin:-8px 0 0;font-size:clamp(22px,2.2vw,30px);font-weight:800;letter-spacing:-.02em;line-height:1.12;text-wrap:balance}
.pd-keys{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin:-4px 0 0} /* 2–4 плитки всегда на всю ширину */
.pd-keys div{background:var(--pd-tile);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;min-width:0}
.pd-keys dt{font-size:11.5px;color:#7A756C}
.pd-keys dd{margin:0;font-size:13px;font-weight:700;line-height:1.3;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.pd-keys dt{line-height:1.3}
.pd-price{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;padding:16px 0;border-top:1px solid var(--pd-div);border-bottom:1px solid var(--pd-div)}
.pd-price__col{display:flex;flex-direction:column;gap:4px}
.pd-price__row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.pd-price__now{font-size:clamp(28px,2.6vw,36px);font-weight:800;letter-spacing:-.02em;line-height:1}
.pd-price__old{font-size:16px;color:var(--pd-mute2);text-decoration:line-through}
.pd-price__credit{font-size:13px;color:var(--pd-mute)}.pd-price__credit b{color:var(--pd-ink)}
.pd-stock{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;background:#FBF0DC;color:#7A4C05}
.pd-stock--in{background:#E6F3EA;color:#1F6B3A}
@keyframes dotPulse{0%{box-shadow:0 0 0 0 var(--pc)}70%{box-shadow:0 0 0 6px transparent}100%{box-shadow:0 0 0 0 transparent}}
@keyframes dotGlow{0%,100%{opacity:1}50%{opacity:.55}}
.pd-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#E39A17;--pc:rgba(227,154,23,.55);box-shadow:0 0 6px var(--pc);animation:dotPulse 1.8s ease-out infinite,dotGlow 1.8s ease-in-out infinite}
.pd-stock--in .pd-dot,.pd-note--ok .pd-dot{background:#2E9E57;--pc:rgba(46,158,87,.55)}
.pd-dot--static{animation:none}
.pd-opt{display:flex;flex-direction:column;gap:12px}
.pd-opt__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
.pd-opt__label{font-size:14px;min-width:0;flex:1 1 200px}.pd-opt__label b{font-weight:700}.pd-opt__label>span{color:var(--pd-mute)}
.pd-link{border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:600;color:var(--pd-link);border-bottom:1px dashed #C9B48A;cursor:pointer;line-height:1.3}
.pd-link:hover{color:#C97F0A}.pd-link[hidden]{display:none}
.pd-help{margin:0;font-size:13px;line-height:1.45;color:#4A463F;background:var(--pd-tile);border-radius:12px;padding:10px 14px}
.pd-note{margin:0;font-size:13px;color:var(--pd-mute)}
.pd-note--ok{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;background:#E6F3EA;color:#1F6B3A;border-radius:10px;padding:7px 12px;font-weight:600}
.pd-note--box{margin-top:16px;padding:14px 16px;border-radius:14px;background:var(--pd-tile);font-size:14px;color:#4A463F;line-height:1.45}
.pd-slider{display:flex;align-items:center;gap:6px}.pd-slider[hidden]{display:none}
.pd-arrow{flex:0 0 36px;width:36px;height:36px;border-radius:50%;border:1.5px solid var(--pd-btn);background:#fff;font-size:16px;line-height:1;cursor:pointer;color:var(--pd-ink);display:flex;align-items:center;justify-content:center;padding:0;transition:opacity .15s}
.pd-arrow:hover{border-color:var(--pd-ink)}
.pd-slider.at-start .pd-arrow--l,.pd-slider.at-end .pd-arrow--r{opacity:.35}
.pd-slider.is-fit .pd-arrow{display:none}
.pd-track{flex:1;min-width:0;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%)}
.pd-track::-webkit-scrollbar{display:none}
.pd-slider.at-start .pd-track{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent 100%)}
.pd-slider.at-end .pd-track{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28px);mask-image:linear-gradient(90deg,transparent 0,#000 28px)}
.pd-slider.is-fit .pd-track,.pd-slider.at-start.at-end .pd-track{-webkit-mask-image:none;mask-image:none}
.pd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}.pd-grid[hidden]{display:none}
.pd-grid--wide{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.pd-grid--opts{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.pd-grid .pd-o{white-space:nowrap}
.pd-sw{flex:0 0 40px;width:40px;height:40px;border-radius:50%;padding:3px;border:2px solid transparent;background:none;cursor:pointer;scroll-snap-align:start;box-sizing:border-box}
.pd-sw i{display:block;width:100%;height:100%;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.pd-sw[aria-pressed="true"]{border-color:var(--pd-ink)}
.pd-sw.is-alt i,.pd-o.is-alt{opacity:.55}
.pd-o{min-height:44px;padding:5px 12px;border:1.5px solid var(--pd-btn);border-radius:10px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:var(--pd-ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-sizing:border-box;transition:border-color .15s}
.pd-track .pd-o{flex:0 0 auto;min-width:112px;white-space:nowrap;scroll-snap-align:start}
.pd-o:hover{border-color:#B9B1A4}
.pd-o[aria-pressed="true"]{background:var(--pd-ink);border-color:var(--pd-ink);color:#fff;opacity:1}
.pd-o:disabled{cursor:default}
.pd-o small{font-size:12px;font-weight:500;opacity:.7}
.pd-panel-tile{flex:0 0 84px;width:84px;display:flex;flex-direction:column;gap:5px;padding:4px 4px 6px;border:2px solid var(--pd-div);border-radius:12px;background:#fff;cursor:pointer;font:inherit;scroll-snap-align:start;box-sizing:border-box}
.pd-panel-tile img{width:100%;aspect-ratio:125/162;object-fit:cover;border-radius:7px;background:#F0EDE8;display:block}
.pd-panel-tile span{font-size:11px;line-height:1.25;font-weight:600;text-align:center;color:var(--pd-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pd-panel-tile[aria-pressed="true"]{border-color:var(--pd-ink)}
.pd-buy{display:flex;gap:10px;flex-wrap:wrap}
.pd-qty{flex:0 0 124px;height:50px;display:flex;align-items:center;justify-content:space-between;border:1.5px solid var(--pd-btn);border-radius:12px;padding:0 6px;box-sizing:border-box}
.pd-qty button{width:38px;height:38px;border:0;background:none;font-size:22px;cursor:pointer;color:var(--pd-ink);border-radius:10px}
.pd-qty button:hover{background:var(--pd-tile)}
.pd-qty output{font-weight:700;font-size:16px}
.pd-cart{flex:1 1 200px;min-height:50px;display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;border:0;border-radius:12px;background:var(--pd-acc);color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer;transition:background .2s,transform .15s,box-shadow .2s;padding:0 18px}

.pd-cart:active{transform:scale(.97);box-shadow:none}
.pd-cart.is-in{background:var(--pd-ink)}.pd-cart.is-in:hover{background:#56524B}
.pd-cart__sum{font-weight:700;opacity:.75}
.pd-leads{display:flex;gap:10px;flex-wrap:wrap;margin-top:-10px}
.pd-btn{flex:1 1 140px;height:46px;white-space:nowrap;border-radius:12px;border:1.5px solid var(--pd-btn);background:#fff;font:inherit;font-size:14px;font-weight:700;color:var(--pd-ink);cursor:pointer}
.pd-btn--dark{border-color:var(--pd-ink)}
.pd-perks{list-style:none;margin:auto 0 0;padding:16px 0 0;border-top:1px solid var(--pd-div);display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.pd-perks li{display:flex;flex-direction:column;gap:4px}
.pd-perks b{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.pd-perks b::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:2px;background:var(--pd-acc)}
.pd-perks span{font-size:13px;color:var(--pd-mute);line-height:1.4}
.pd-page button:focus-visible,.pd-modal button:focus-visible,.pd-modal input:focus-visible,.pd-sticky button:focus-visible{outline:2px solid #F2A21B;outline-offset:2px}
/* окна выбора */
.pd-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:32px;background:rgba(28,27,25,.45)}
.pd-modal[hidden]{display:none}
.pd-modal__bg{position:absolute;inset:0}
.pd-modal__box{position:relative;width:100%;max-width:760px;max-height:min(86vh,760px);background:#fff;border-radius:24px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 80px rgba(28,27,25,.25)}
.pd-modal__box--sm{max-width:560px}
.pd-modal__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:22px clamp(16px,3vw,28px) 0}
.pd-modal__head h2{margin:0;font-size:22px;font-weight:800}.pd-modal__head p{margin:4px 0 0;font-size:14px;color:#6B665E}
.pd-modal__x{width:44px;height:44px;flex:0 0 44px;border:1.5px solid #E3DED5;border-radius:50%;background:#fff;font-size:22px;cursor:pointer;color:#1C1B19}
.pd-search{margin:14px clamp(16px,3vw,28px) 0;width:auto;min-height:46px;border:1.5px solid #E3DED5;border-radius:12px;padding:0 14px;font:inherit;font-size:15px;box-sizing:border-box}
.pd-chips{display:flex;gap:8px;flex-wrap:wrap;padding:12px clamp(16px,3vw,28px) 0}.pd-chips:empty{display:none}
.pd-chips button{height:36px;padding:0 14px;border-radius:999px;border:1.5px solid #E3DED5;background:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;color:#1C1B19;white-space:nowrap}
.pd-chips button span{opacity:.55}
.pd-chips button[aria-pressed="true"]{background:#1C1B19;border-color:#1C1B19;color:#fff}
.pd-modal__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;overflow-y:auto;overscroll-behavior:contain;padding:16px clamp(16px,3vw,28px) 24px;margin-top:16px;border-top:1px solid #EFEBE4}
.pd-modal__grid--panels{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.pd-modal__grid--sizes{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.pd-modal__box--sm .pd-note--box{margin:0 clamp(16px,3vw,28px) 24px}
.pd-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 6px;border:1.5px solid transparent;border-radius:14px;background:none;cursor:pointer;font:inherit;text-align:center;color:#1C1B19}
.pd-tile:hover{background:#F6F4F0}
.pd-tile i{width:52px;height:52px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.pd-tile span{font-size:13px;line-height:1.25;font-weight:500}
.pd-tile[aria-pressed="true"]{border-color:#1C1B19;background:#F6F4F0}
.pd-tile--panel{gap:6px;padding:5px 5px 8px;border:2px solid #EFEBE4;background:#fff}
.pd-tile--panel img{width:100%;aspect-ratio:125/162;object-fit:cover;border-radius:9px;background:#F0EDE8;display:block}
.pd-tile--panel span{font-size:12px;line-height:1.3;font-weight:600}
.pd-empty{margin:0;padding:40px 0;text-align:center;color:#6B665E;font-size:15px}
.pd-sticky{display:none}
@media (max-width:640px){
  .pd-page{padding-bottom:120px}
  .pd-keys{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.pd-keys dd{-webkit-line-clamp:6}.pd-keys div:last-child:nth-child(odd){grid-column:1/-1}
  .pd-qty{flex-basis:120px}.pd-cart{flex:1 1 170px;font-size:16px;padding:0 12px;gap:8px}
  .pd-btn{font-size:14px;padding:0 10px}
  .pd-modal{align-items:flex-end;padding:0}
  .pd-modal__box{max-width:none;max-height:92vh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .pd-modal__box::before{content:"";width:40px;height:4px;border-radius:2px;background:#D9D3C9;align-self:center;margin-top:10px;flex:0 0 auto}
  .pd-modal__head{padding-top:12px}
  .pd-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:150;gap:12px;align-items:center;background:#fff;border-top:1px solid #E9E5DE;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 24px rgba(28,27,25,.08);transform:translateY(110%);transition:transform .25s}
  .pd-sticky.is-on{transform:none}.pd-sticky.is-hidden{transform:translateY(110%)}
  .pd-sticky__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
  .pd-sticky__info span{font-size:12px;color:#6B665E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pd-sticky__info b{font-size:20px;font-weight:800}
  .pd-cart--sm{flex:0 0 auto;min-height:52px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){.pd-dot{animation:none}.pd-cart,.pd-sticky,.pd-arrow{transition:none}}

/* =================== Каталог (ТЗ, часть A; значения — из прототипа) =================== */
.ct{--ct-ink:#1C1B19;--ct-mute:#6B665E;--ct-mute2:#8A857C;--ct-line:#E9E5DE;--ct-div:#EFEBE4;--ct-tile:#F4F2EE;--ct-acc:#F2A21B;--ct-red:#D8382B;display:flex;gap:24px;align-items:flex-start;padding-top:24px;padding-bottom:72px}
.ct__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:16px}
:where(.ct) button{font:inherit;color:inherit}
.ct button:focus-visible,.ct input:focus-visible,.ct select:focus-visible,.ct a:focus-visible,.ct-top:focus-visible{outline:2px solid #F2A21B;outline-offset:2px}
/* колонка фильтров: неподвижна, своя прокрутка */
.ct-f{flex:0 0 272px;position:sticky;top:16px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--ct-line);border-radius:16px;overflow:hidden}
.ct-f__head{display:none}
.ct-f__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#CFC9BF transparent;padding:16px 20px 20px;display:flex;flex-direction:column}
.ct-f__scroll::-webkit-scrollbar{width:6px}.ct-f__scroll::-webkit-scrollbar-thumb{background:#CFC9BF;border-radius:3px}
.ct-f__type{display:flex;flex-direction:column;gap:8px;padding-bottom:16px}
.ct-f__q{font-size:15px;font-weight:800}
.ct-seg{display:flex;gap:4px;background:var(--ct-tile);border-radius:12px;padding:4px}
.ct-seg__b{flex:1 1 0;min-width:0;min-height:48px;border:0;border-radius:9px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 2px;cursor:pointer;transition:background .15s}
.ct-seg__b b{font-size:13px;font-weight:700;white-space:nowrap}
.ct-seg__b small{font-size:11px;color:var(--ct-mute2)}
.ct-seg__b[aria-pressed="true"]{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.ct-f__hint{font-size:12px;line-height:1.4;color:var(--ct-mute)}
.ct-f__hint[hidden]{display:none}
.ct-stock{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border:0;border-top:1px solid var(--ct-div);border-bottom:1px solid var(--ct-div);background:none;cursor:pointer;text-align:left;width:100%}
.ct-stock__l{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700}
.ct-stock__l i{width:8px;height:8px;border-radius:50%;background:#2E9E57}
.ct-stock__sw{flex:0 0 40px;height:24px;border-radius:999px;background:#D9D4CB;position:relative;transition:background .2s}
.ct-stock__sw span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:left .2s}
.ct-stock[aria-checked="true"] .ct-stock__sw{background:#2E9E57}
.ct-stock[aria-checked="true"] .ct-stock__sw span{left:19px}
.ct-sec{margin-top:20px;padding:8px 12px;border-radius:10px;background:var(--ct-tile);display:flex;justify-content:space-between;align-items:center;gap:8px}
.ct-sec[hidden]{display:none}
.ct-sec span{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.ct-sec small{font-size:12px;color:var(--ct-mute);white-space:nowrap}
.ct-g{border-bottom:1px solid var(--ct-div);padding:16px 0}
.ct-g[hidden]{display:none}
.ct-g__head{width:100%;min-height:32px;display:flex;justify-content:space-between;align-items:center;gap:8px;border:0;background:none;padding:0;cursor:pointer;font-size:15px;font-weight:800;text-align:left}
.ct-g__head>span{display:flex;align-items:center;gap:8px}
.ct-g__head i{font-style:normal;font-size:18px;color:var(--ct-mute);line-height:1;transition:transform .2s}
.ct-g__head[aria-expanded="false"] i{transform:rotate(-90deg)}
.ct-g__n{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--ct-acc);color:#fff;font-size:12px;line-height:20px;text-align:center;font-weight:800}
.ct-g__n[hidden]{display:none}
.ct-g__body{padding-top:8px}
.ct-g__body[hidden]{display:none}
.ct-g__hint{font-size:12px;line-height:1.4;color:var(--ct-mute2);padding-bottom:4px}
.ct-g__vals{display:flex;flex-direction:column}
/* Цвет — одной колонкой, как остальные группы: в 2 колонки «Под дерево» и счётчик не помещались */
.ct-g--tone .ct-o{gap:10px;min-width:0}
.ct-o__n{flex:none}
.ct-o{display:flex;align-items:center;gap:10px;min-height:40px;font-size:14px;cursor:pointer;position:relative}
.ct-o[hidden]{display:none}
.ct-o input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.ct-o__box{flex:0 0 20px;width:20px;height:20px;border-radius:6px;border:1.5px solid #C9C4BB;background:#fff;display:flex;align-items:center;justify-content:center;transition:border-color .15s,background .15s}
.ct-o input:checked+.ct-o__box{background:var(--ct-ink);border-color:var(--ct-ink)}
.ct-o input:checked+.ct-o__box::after{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.ct-o input:focus-visible+.ct-o__box{outline:2px solid #F2A21B;outline-offset:2px}
.ct-g--tone .ct-o__box{display:none}
.ct-o__dot{flex:0 0 24px;width:24px;height:24px;border-radius:50%;border:1px solid rgba(0,0,0,.14)}
.ct-g--tone .ct-o input:checked~.ct-o__dot{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ct-ink)}
.ct-g--tone .ct-o input:focus-visible~.ct-o__dot{outline:2px solid #F2A21B;outline-offset:4px}
.ct-o__l{flex:1;min-width:0;line-height:1.25}
.ct-o__n{font-size:12px;color:var(--ct-mute2)}
.ct-o.is-zero{opacity:.4;cursor:default}
.ct-o input:checked~.ct-o__l{font-weight:700}
@media (hover:hover){.ct-o:not(.is-zero):hover .ct-o__box{border-color:var(--ct-ink)}}
.ct-g__all{border:0;background:none;padding:6px 0 0;min-height:32px;font-size:13px;font-weight:700;color:#8A6A2E;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ct-price{display:flex;gap:8px}
.ct-price input{flex:1 1 0;min-width:0;height:44px;border:1.5px solid #E3DED5;border-radius:10px;padding:0 12px;font-size:14px;background:#fff}
.ct-price input:focus{border-color:var(--ct-ink);outline:0}
.ct-price__chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ct-pc{min-height:34px;padding:0 12px;border-radius:999px;border:1.5px solid #E3DED5;background:#fff;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.ct-pc[aria-pressed="true"]{background:var(--ct-ink);border-color:var(--ct-ink);color:#fff}
/* «Ещё фильтры ↓» — пока список не долистан */
.ct-f__more{position:absolute;left:0;right:0;bottom:0;height:72px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 70%);pointer-events:none}
.ct-f__more[hidden]{display:none}
.ct-f__more button{pointer-events:auto;height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--ct-ink);color:#fff;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 6px 16px rgba(28,27,25,.2)}
.ct-f:has(.ct-f__reset:not([hidden])) .ct-f__more{bottom:68px}
.ct-f__foot{flex:0 0 auto}
.ct-f__reset{display:block;width:calc(100% - 40px);margin:0 20px 16px;min-height:44px;border:1.5px solid var(--ct-ink);border-radius:12px;background:#fff;font-size:14px;font-weight:700;cursor:pointer}
.ct-f__reset[hidden]{display:none}
.ct-f__mfoot{display:none}
.ct-bd{display:none}
/* над сеткой */
.ct-open{display:none}
.ct-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ct-bar__n{font-size:16px;font-weight:800}
.ct-bar__sort{position:relative;display:flex;align-items:center;gap:10px;min-width:0;font-size:14px;color:var(--ct-mute)}
.ct-bar__sort select{appearance:none;height:44px;min-width:0;max-width:100%;border:1.5px solid #E3DED5;border-radius:10px;padding:0 38px 0 12px;font:inherit;font-size:14px;font-weight:600;color:var(--ct-ink);background:#fff;cursor:pointer}
.ct-bar__sort::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border:solid var(--ct-ink);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg);pointer-events:none}
@media (forced-colors:active){
  .ct-bar__sort select{appearance:auto;padding-right:12px}
  .ct-bar__sort::after{display:none}
}
.ct-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ct-chips[hidden]{display:none}
.ct-chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;border:0;border-radius:999px;background:var(--ct-ink);color:#fff!important;font-size:13px;font-weight:600;cursor:pointer}
.ct-chip i{font-style:normal;font-size:11px;opacity:.8}
.ct-chips__reset{border:0;background:none;min-height:34px;padding:0 6px;font-size:13px;font-weight:700;color:#8A6A2E;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ct-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.ct-grid[hidden]{display:none}
.ct-empty{background:#fff;border:1px solid var(--ct-line,#E9E5DE);border-radius:16px;padding:48px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.ct-empty[hidden]{display:none}
.ct-empty h2{font-size:22px}
.ct-empty p{color:#6B665E;max-width:460px}
.ct-empty__a{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.ct--empty{display:block}
.ct-more{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:8px}
.ct-more[hidden]{display:none}
.ct-more .btn{min-height:48px;min-width:240px}
.ct-more span{font-size:13px;color:#8A857C}
/* «Наверх» */
.ct-top{position:fixed;right:24px;bottom:24px;z-index:60;height:48px;min-width:48px;padding:0 18px;border:0;border-radius:999px;background:#1C1B19;color:#fff;font:inherit;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 24px rgba(28,27,25,.25);cursor:pointer;opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .25s,transform .25s,background .2s}
.ct-top.is-on{opacity:1;transform:none;pointer-events:auto}
.ct-top:hover{background:#F2A21B}

/* Карточка в каталоге (A2) */
.cc{--cc-ink:#1C1B19;position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #E9E5DE;border-radius:16px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.cc[hidden]{display:none}
@media (hover:hover){.cc:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(40,30,20,.10)}}
.cc__media{position:relative;background:linear-gradient(180deg,#EEEAE3 0%,#E6E0D6 100%)}
/* фото: верхний отступ больше — бейджи и ♡ не наезжают на дверь; дверь целиком и по центру */
/* Рамка фото задаётся блоком .cc__media (4:5), фото лежит внутри абсолютно — размер
   исходного снимка не может растянуть карточку ни в одном браузере */
.cc__media{aspect-ratio:4/5;overflow:hidden}
.cc__photo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:56px 16px 24px;box-sizing:border-box;color:inherit}
.cc__img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.cc__noimg{width:52%;height:100%;display:block;border-radius:4px;background:rgba(255,255,255,.55);border:1.5px dashed #C9C0B2}
.cc__badges{position:absolute;left:10px;top:10px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.cc__disc{background:#D8382B;color:#fff;font-size:12px;font-weight:800;line-height:1;padding:6px 8px;border-radius:8px}
.cc__fav{position:absolute;right:8px;top:8px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08);font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--cc-ink)}
.cc__fav.is-on{color:#D8382B}
.cc__flip{position:absolute;left:10px;bottom:10px;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.1);font-size:12px;font-weight:700;display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--cc-ink)}
.cc__body{flex:1;display:flex;flex-direction:column;padding:14px 14px 14px}
.cc__cat{font-size:12px;color:#8A857C;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc__title{margin-top:4px;font-size:16px;font-weight:700;line-height:1.3;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--cc-ink)}
.cc__vars{min-height:52px;margin-top:8px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px}
.cc__sw{display:flex;align-items:center;gap:4px;margin-left:-3px}
.cc__dot{flex:0 0 30px;width:30px;height:30px;border-radius:50%;border:1.5px solid transparent;background:none;padding:3px;cursor:pointer}
.cc__dot i{display:block;width:100%;height:100%;border-radius:50%;border:1px solid rgba(0,0,0,.14)}
.cc__dot.is-on{border-color:var(--cc-ink)}
.cc__more{min-width:30px;height:30px;padding:0 6px;border-radius:999px;background:#F4F2EE;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;color:var(--cc-ink)}
.cc__more[hidden]{display:none}
.cc__panels{display:flex;align-items:center;gap:8px}
.cc__panels>span{display:flex;gap:3px}
.cc__panels img{width:18px;height:26px;object-fit:cover;border-radius:2px;border:1px solid rgba(0,0,0,.1)}
.cc__panels b{font-size:13px;font-weight:700}
.cc__sub{font-size:12px;color:#6B665E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc__foot{margin-top:auto;padding-top:10px}
.cc__price{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px;row-gap:0;min-width:0}
.cc__pn{flex-basis:100%;font-size:12px;font-weight:600;color:#8A857C;white-space:nowrap;line-height:1.3}
.cc__price b{font-size:22px;font-weight:800;color:var(--cc-ink);white-space:nowrap}
.cc__price s{font-size:13px;color:#8A857C;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.cc__stock{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:12px;font-weight:600;color:#9A6A10}
.cc__stock.is-in{color:#1F7A43}
.cc__stock.is-in .pd-dot{background:#2E9E57;--pc:rgba(46,158,87,.55)}
.cc__stock .pd-dot{width:7px;height:7px;flex-basis:7px}
.cc__cart{margin-top:8px;width:100%;min-height:48px;border:0;border-radius:12px;background:#F2A21B;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;transition:background .2s,transform .15s,box-shadow .2s}
.cc__cart:active{transform:scale(.97);box-shadow:none}
.cc__cart.is-in{background:#1C1B19}
.cc__cart-b{display:none}
@media (hover:hover){
  .cc__cart:hover{background:#2B2926;transform:translateY(-2px);box-shadow:0 8px 18px rgba(28,27,25,.22)}
  .cc__cart.is-in:hover{background:#56524B}
  .cc__cart.is-in:hover .cc__cart-a{display:none}
  .cc__cart.is-in:hover .cc__cart-b{display:inline}
}
.cc button:focus-visible,.cc a:focus-visible{outline:2px solid #F2A21B;outline-offset:2px}

@media (max-width:899px){
  .ct{display:block}
  .ct-open{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border:0;border-radius:12px;background:#1C1B19;color:#fff!important;font-size:16px;font-weight:800;cursor:pointer}
  .ct-open__n{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#F2A21B;color:#fff;font-size:12px;line-height:22px;text-align:center}
  .ct-open__n[hidden]{display:none}
  .ct-f{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:200;max-height:90vh;max-height:90dvh;border-radius:20px 20px 0 0;border:0;box-shadow:0 -12px 40px rgba(0,0,0,.2);transform:translateY(105%);visibility:hidden;transition:transform .25s,visibility 0s .25s}
  .ct-f.is-open{transform:none;visibility:visible;transition:transform .25s}
  .ct-f__head{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;gap:10px;padding:10px 16px 12px;border-bottom:1px solid #EFEBE4}
  .ct-f__handle{width:40px;height:4px;border-radius:2px;background:#D9D4CB}
  .ct-f__title{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:20px;font-weight:800}
  .ct-f__x{width:44px;height:44px;border-radius:50%;border:1.5px solid #E3DED5;background:#fff;font-size:18px;cursor:pointer}
  .ct-f__scroll{padding:12px 16px 16px}
  .ct-f__more{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .ct-f:has(.ct-f__reset:not([hidden])) .ct-f__more{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .ct-f__reset{display:none!important}
  .ct-f__mfoot{display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #EFEBE4;background:#fff}
  .ct-f__mreset{flex:0 0 auto;min-height:52px;padding:0 18px;border:1.5px solid #E3DED5;border-radius:12px;background:#fff;font-size:15px;font-weight:700;cursor:pointer}
  .ct-f__show{flex:1;min-height:52px;border:0;border-radius:12px;background:#F2A21B;color:#fff!important;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap}
  .ct-bd{display:block;position:fixed;inset:0;z-index:199;background:rgba(28,27,25,.45)}
  .ct-bd[hidden]{display:none}
  body.ct-lock{overflow:hidden}
  .ct__main{gap:14px}
}
@media (max-width:639px){
  .ct{padding-top:16px;padding-bottom:48px}
  .ct-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ct-bar__sort>span{display:none}
  .ct-bar__sort select{max-width:min(210px, 100%);padding-left:8px;font-size:13px}
  .cc{border-radius:14px}
  .cc__photo{padding:40px 10px 16px}
  .cc__badges{left:8px;top:8px}
  .cc__fav{right:4px;top:3px;width:34px;height:34px;font-size:17px}
  .cc__fav::after{content:"";position:absolute;inset:-5px}
  .cc__flip{left:8px;bottom:8px;padding:0 10px}
  .cc__body{padding:10px 10px 12px}
  .cc__title{font-size:14px}
  .cc__dot{flex-basis:28px;width:28px;height:28px;padding:3px}
  .cc__dot5{display:none}
  .cc__more{min-width:28px;height:28px}
  .cc__panels .cc__p4{display:none}
  .cc__panels b{font-size:12px;white-space:nowrap}
  .cc__price b{font-size:18px}
  .cc__price{column-gap:6px}
  .cc__pn{font-size:11px}
  .cc__price s{font-size:11px}
  .cc__st-x{display:none}
  .cc__cart{min-height:44px;font-size:14px}
  .ct-top{right:12px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:48px;padding:0}
  .ct-top__l{display:none}
}
@media (prefers-reduced-motion:reduce){.cc,.cc__cart,.ct-top,.ct-f{transition:none}.cc__stock .pd-dot{animation:none}}

/* Избранное: кнопка в шапке и страница /izbrannoe/ */
.fav-btn{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:var(--ink-2);color:#fff;border-radius:var(--radius-s);font-size:20px;line-height:1}
.fav-btn:hover{color:#fff;background:#333}
.fav-btn__count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:800;line-height:20px;text-align:center}
.fav-btn__count[hidden]{display:none}
.fav-btn.has-items .fav-btn__i{color:#F2A21B}
.favp{padding-top:8px;padding-bottom:72px;display:flex;flex-direction:column;gap:16px}
.favp__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.favp__n{font-size:16px;font-weight:800}
.favp__clear{border:0;background:none;min-height:44px;padding:0 4px;font:inherit;font-size:14px;font-weight:700;color:#8A6A2E;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.favp__clear[hidden]{display:none}
.cc__open{margin-top:8px;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;border-radius:12px;background:#F2A21B;color:#fff;font-size:15px;font-weight:800}

@media (max-width:639px){.cc__open{min-height:44px;font-size:14px}}
/* Шапка на планшете/телефоне: поиск (он растягивался и разводил блоки) скрыт — логотип
   занимает свободное место, кнопки прижаты вправо; на узких — корзина иконкой */
@media (max-width:900px){.header .logo{flex:1 1 auto}}
@media (max-width:420px){
  .header .container{gap:8px}
  .cart-btn{padding:0 10px;gap:6px}
  .cart-btn [data-cart-label]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .cart-btn::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 0 0 2 1.6h8.1a2 2 0 0 0 2-1.5L22 8H6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 0 0 2 1.6h8.1a2 2 0 0 0 2-1.5L22 8H6'/%3E%3C/svg%3E") center/contain no-repeat}
}
@media (max-width:360px){.header .container{padding-left:14px;padding-right:14px;gap:6px}.header .logo__mark{display:none}.header .logo__name{font-size:16px}}

/* =================== Главная (ТЗ D–E) =================== */
/* D1. Шапка */
.topbar .container{height:40px}
.topbar{font-size:13px}
.topbar,.topbar a{color:rgba(255,255,255,.7)}
.topbar a:hover{color:#fff}
.header .container{height:auto;padding-top:16px;padding-bottom:16px}
.header .logo,.header .logo:hover,.header__phone,.header__phone:hover{color:#fff}
.logo__name{font-size:22px;font-weight:700}
.catalog-btn{height:48px}
.search{height:48px;background:#2B2926;min-width:160px}
.header__phone b{font-size:18px;font-weight:800}
.header__phone small{font-size:12px;color:rgba(255,255,255,.7)}
.fav-btn{width:48px;height:48px;background:#2B2926}
.cart-btn{height:48px;background:#2B2926}
.call-btn{display:none}
.nav__list{column-gap:28px;min-height:52px;font-size:15px;flex-wrap:nowrap}
.nav__list>li>a,.nav__morebtn{height:52px;color:#1C1B19}
.nav__list>li>a::after{display:none}
.nav__list>li>a:hover,.nav__morebtn:hover{color:#C97F0A}
.nav__list>li>a[aria-current="page"]{color:#C97F0A;font-weight:700}
.nav__morebtn{display:flex;align-items:center;gap:6px;border:0;background:none;padding:0;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.nav__morebtn[aria-expanded="true"] .nav__chev{transform:rotate(180deg)}
.nav__m{display:none}
@media (min-width:1100px){.nav__more.is-open .nav__drop{display:grid}}
@media (max-width:1299px){.nav__list{column-gap:20px}}
@media (max-width:1099px){
  .topbar{display:none}
  .header .container{padding-top:10px;padding-bottom:10px;gap:10px}
  .header .catalog-btn,.header .search,.header .header__phone,.header .fav-btn,.header .cart-btn,.logo__tag{display:none!important}
  .header .logo{flex:1 1 auto}
  .header .logo__mark{display:block!important}
  .call-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:12px;background:#2B2926;color:#fff}
  .call-btn:hover{color:#fff;background:#3A3733}
  .burger{position:relative;background:#F2A21B;color:#1C1B19}
  .burger:hover{background:#E0940F}
  .burger__n{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#fff;color:#1C1B19;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px #1C1B19}
  .burger__n[hidden]{display:none}
  /* выезжающая панель меню */
  .nav{display:block!important;position:fixed;top:0;right:0;bottom:0;z-index:300;width:min(380px,88vw);overflow-y:auto;overscroll-behavior:contain;border:0;box-shadow:-16px 0 40px rgba(0,0,0,.25);transform:translateX(105%);visibility:hidden;transition:transform .25s,visibility 0s .25s}
  .nav.is-open{transform:none;visibility:visible;transition:transform .25s}
  .nav .container{padding:0 20px 24px}
  .nav__m{display:flex;flex-direction:column;gap:12px;padding:14px 0 12px;border-bottom:1px solid #EFEBE4}
  .nav__m-top{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:800}
  .nav__x{width:44px;height:44px;border-radius:50%;border:1.5px solid #E3DED5;background:#fff;font-size:18px;cursor:pointer}
  .nav__m .search{display:flex!important;flex:none;height:48px;background:#F4F2EE}
  .nav__m .search input{color:#1C1B19}
  .nav__m-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .nav__m-links a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:12px;background:#F4F2EE;font-weight:700;color:#1C1B19}
  .nav__m-links b{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#F2A21B;font-size:12px;line-height:20px;text-align:center}
  .nav__m-phone{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-weight:800;font-size:18px;color:#1C1B19}
  .nav__m-phone small{font-size:13px;font-weight:600;color:#6B665E}
  .nav__list{flex-direction:column;align-items:stretch;min-height:0;font-size:16px}
  .nav__list>li>a,.nav__morebtn{height:auto;min-height:48px;width:100%;padding:12px 0;border-bottom:1px solid #EFEBE4;justify-content:space-between}
  .nav-bd{position:fixed;inset:0;z-index:299;background:rgba(28,27,25,.5)}
  .nav-bd[hidden]{display:none}
  body.nav-lock{overflow:hidden}
}

/* D2. Первый экран */
.hero2{background:#1C1B19;color:#fff;padding:clamp(40px,6vw,80px) 0}
.hero2__in{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.hero2__txt{flex:1 1 480px;min-width:0}
.hero2__quiz{flex:1 1 440px;max-width:560px;min-width:0}
.hero2__eyebrow{display:block;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#F2A21B;margin-bottom:16px}
.hero2 h1{font-size:clamp(32px,4.6vw,60px);font-weight:800;line-height:1.08;color:#fff;margin:0}
.hero2__lead{margin-top:20px;font-size:18px;line-height:1.55;color:rgba(255,255,255,.75)}
.hero2__act{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.hero2__btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:14px;font:inherit;font-size:16px;font-weight:700;cursor:pointer;white-space:nowrap}
.hero2__btn--ghost{border:1.5px solid rgba(255,255,255,.35);color:#fff;background:transparent}
.hero2__btn--ghost:hover{border-color:#fff;color:#fff}
.hero2__btn--acc{border:0;background:#F2A21B;color:#fff}

.hero2__nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid rgba(255,255,255,.1)}
.hero2__nums b{display:block;font-size:26px;font-weight:800;white-space:nowrap}
.hero2__nums span{display:block;margin-top:4px;font-size:13px;color:rgba(255,255,255,.6)}
.hero2 a:focus-visible,.hero2 button:focus-visible{outline:2px solid #F2A21B;outline-offset:3px}
@media (max-width:1099px){.hero2__quiz{flex-basis:100%;max-width:none}.hero2__in{gap:32px}}
@media (max-width:639px){.hero2{padding:20px 0 40px}.hero2__lead{font-size:16px}.hero2__btn{flex:1 1 auto}}

/* =================== Подбор двери (ТЗ «Подбор двери»; размеры — из прототипа) =================== */
.qz{--qz-ink:#1C1B19;--qz-mute:#6B665E;--qz-mute2:#8A857C;--qz-line:#E9E5DE;--qz-div:#EFEBE4;--qz-tile:#F6F4F0;--qz-acc:#F2A21B;display:flex;background:#fff;color:#1C1B19;border-radius:24px;box-shadow:0 24px 60px rgba(0,0,0,.35);overflow:hidden;text-align:left;font-family:Manrope,system-ui,sans-serif}
.qz--inline{height:610px}
.qz--inline.qz--mob{height:640px;border-radius:20px}
.qz__main{flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column}
.qz__top{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:22px 26px 6px;min-height:40px}
.qz--mob .qz__top{padding:14px 16px 4px}
.qz--modal .qz__top{padding:20px 28px 8px}
.qz--modal.qz--mob .qz__top{padding:12px 16px}
.qz__back,.qz__x{flex:0 0 40px;width:40px;height:40px;border-radius:50%;border:1.5px solid #E3DED5;background:#fff;font-size:17px;line-height:1;color:#1C1B19;cursor:pointer;display:flex;align-items:center;justify-content:center}
.qz__x{border:0;background:#F4F2EE;font-size:16px}
.qz__back:hover{background:#F6F4F0}.qz__x:hover{background:#E9E5DE}
.qz__bars{flex:1;display:flex;gap:6px}
.qz__bars i{flex:1;height:5px;border-radius:3px;background:#E9E5DE;transition:background .3s}
.qz__bars i.is-done{background:#F2A21B}.qz__bars i.is-cur{background:#1C1B19}
.qz__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 26px 20px;display:flex;flex-direction:column;scrollbar-width:thin}
.qz--mob .qz__body{padding:8px 16px 16px}
.qz--modal .qz__body{padding:12px 28px 24px}
.qz--modal.qz--mob .qz__body{padding:8px 16px 20px}
.qz__step{flex:1 0 auto;display:flex;flex-direction:column;gap:18px;box-sizing:border-box}
.qz__step.is-in{animation:qzIn .3s ease both}
@keyframes qzIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
@keyframes qzPop{0%{transform:scale(1)}40%{transform:scale(1.08)}100%{transform:scale(1)}}
.qz__head{display:flex;flex-direction:column;gap:6px}
.qz__eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8A857C}
.qz__h{margin:0;font-size:clamp(22px,3vw,32px);line-height:1.15;font-weight:800;letter-spacing:-.02em;text-wrap:balance;color:#1C1B19}
.qz__hint{font-size:14px;color:#6B665E}
/* Q1 — плитки (форма ≥ 480px): 3 в первом ряду, 2 широкие во втором; подпись 86px */
.qz__place{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.qz--mob .qz__place:not(.qz__place--tiles){grid-template-columns:1fr;flex:1 1 auto;grid-auto-rows:minmax(60px,1fr)}
.qz__place--tiles{flex:1 1 auto;min-height:0;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(150px,1fr))}
.qz__pl{position:relative;display:flex;align-items:stretch;min-height:0;padding:0;text-align:left;border-radius:16px;border:2px solid #E9E5DE;background:#fff;cursor:pointer;overflow:hidden;font:inherit;color:#1C1B19;transition:border-color .15s,box-shadow .2s,transform .15s}
.qz__pl:hover{box-shadow:0 10px 26px rgba(40,30,20,.10);transform:translateY(-2px)}
.qz__pl[aria-pressed="true"]{border-color:#1C1B19}
.qz__pl-img{flex:0 0 64px;align-self:stretch;position:relative;min-height:60px;background:linear-gradient(180deg,#EEEAE3,#E6E0D6);overflow:hidden}
.qz__pl-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.qz__pl-t{flex:1;min-width:0;padding:10px 40px 10px 14px;display:flex;flex-direction:column;justify-content:center;gap:3px}
.qz__pl-t b{font-size:16px;font-weight:800;line-height:1.2}
.qz__pl-t small{font-size:13px;color:#6B665E;line-height:1.35}
.qz__tick{position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:50%;background:#1C1B19;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s}
.qz__pl[aria-pressed="true"] .qz__tick{opacity:1}
.qz__place--tiles .qz__pl{grid-column:span 2;flex-direction:column;border-radius:18px}
.qz__place--tiles .qz__pl:nth-child(n+4){grid-column:span 3}
.qz__place--tiles .qz__pl:hover{box-shadow:0 12px 28px rgba(40,30,20,.12);border-color:#1C1B19}
.qz__place--tiles .qz__pl-img{flex:1 1 auto;min-height:70px;background:linear-gradient(180deg,#F1EDE6,#E4DDD1)}
.qz__place--tiles .qz__pl-t{flex:0 0 86px;height:86px;box-sizing:border-box;padding:10px 12px 12px;gap:2px;border-top:1px solid #EFEBE4;overflow:hidden}
.qz__place--tiles .qz__pl-t b{font-size:15px;text-wrap:balance}
.qz__place--tiles .qz__pl-t small{font-size:12px;line-height:1.3}
.qz__place--tiles .qz__tick{top:10px;right:10px}
/* окно на ПК: плитки-колонки с фото 150px */
.qz--modal:not(.qz--mob) .qz__place--tiles{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));grid-template-rows:none;flex:0 0 auto}
.qz--modal:not(.qz--mob) .qz__place--tiles .qz__pl{grid-column:auto}
.qz--modal:not(.qz--mob) .qz__place--tiles .qz__pl-img{flex:0 0 150px;height:150px}
.qz--modal:not(.qz--mob) .qz__place--tiles .qz__pl-t{flex:1 0 auto;height:auto;min-height:76px}
/* списки ответов */
.qz__list{flex:1 1 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(max(220px,calc(50% - 5px)),1fr));grid-auto-rows:minmax(64px,1fr);align-content:stretch;gap:10px}
.qz__o{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;border-radius:14px;border:2px solid #E9E5DE;background:#fff;cursor:pointer;text-align:left;font:inherit;color:#1C1B19;transition:border-color .15s,background .15s}
.qz__o:hover{border-color:#1C1B19}
.qz__o[aria-pressed="true"]{border-color:#1C1B19;background:#F6F4F0}
.qz__o--full{grid-column:1/-1}
.qz__box{flex:0 0 22px;width:22px;height:22px;border-radius:50%;border:2px solid #CFC9BF;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.qz__list--m .qz__box{border-radius:6px}
.qz__o[aria-pressed="true"] .qz__box{border-color:#1C1B19;background:#1C1B19}
.qz__box svg{width:12px;height:12px}
.qz__o-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.qz__o-t b{font-size:15px;font-weight:700;line-height:1.25}
.qz__o-t small{font-size:13px;color:#6B665E;line-height:1.35}
/* цвет */
.qz__tone{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.qz__tn{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 10px 14px;border-radius:16px;border:2px solid #E9E5DE;background:#fff;cursor:pointer;font:inherit;color:#1C1B19;transition:border-color .15s}
.qz__tn:hover,.qz__tn[aria-pressed="true"]{border-color:#1C1B19}
.qz__tn[aria-pressed="true"]{background:#F6F4F0}
.qz__tn-dot{width:56px;height:56px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.qz__tn b{font-size:14px;font-weight:700;text-align:center}
.qz--mob:not(.qz--wide) .qz__tone{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.qz--mob:not(.qz--wide) .qz__tn{padding:12px 6px 10px;gap:8px}
.qz--mob:not(.qz--wide) .qz__tn-dot{width:44px;height:44px}
.qz--mob:not(.qz--wide) .qz__tn b{font-size:13px}
/* «Уже подходят» */
.qz__pv{margin-top:auto;flex:0 0 auto;display:flex;flex-direction:column;gap:8px}
.qz__pv-l{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8A857C;line-height:16px}
.qz__pv-row{display:grid;gap:8px}
.qz__pv-c{display:flex;align-items:center;gap:10px;min-width:0;height:56px;padding:4px 10px 4px 4px;box-sizing:border-box;border-radius:12px;background:#F6F4F0;color:#1C1B19;overflow:hidden}
.qz__pv-c:hover{color:#1C1B19;box-shadow:inset 0 0 0 1.5px #1C1B19}
.qz__pv-img{flex:0 0 40px;width:40px;height:48px;position:relative;border-radius:8px;background:linear-gradient(180deg,#EEEAE3,#E6E0D6);overflow:hidden}
.qz__pv-img img{position:absolute;inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);object-fit:contain}
.qz__pv-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.qz__pv-t span{font-size:12px;line-height:1.25;color:#6B665E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qz__pv-t b{font-size:14px;font-weight:800;white-space:nowrap}
.qz__pv--big .qz__pv-c{height:104px;gap:12px;padding:8px 12px 8px 8px;border-radius:14px;border:1px solid #EFEBE4}
.qz__pv--big .qz__pv-img{flex:0 0 64px;width:64px;height:88px;border-radius:10px;background:linear-gradient(180deg,#FBF9F6,#ECE6DC)}
.qz__pv--big .qz__pv-img img{inset:6px 4px;width:calc(100% - 8px);height:calc(100% - 12px);filter:drop-shadow(0 3px 6px rgba(40,30,20,.18))}
.qz__pv--big .qz__pv-t{gap:4px}
.qz__pv--big .qz__pv-t span{font-size:13px;line-height:1.3;font-weight:600;color:#1C1B19;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.qz__pv--big .qz__pv-t b{font-size:15px}
/* подвал */
.qz__foot{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 26px;border-top:1px solid #EFEBE4;background:#fff;min-height:52px}
.qz--mob .qz__foot{padding:10px 16px}
.qz--modal .qz__foot{padding:14px 28px}
.qz--modal.qz--mob .qz__foot{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
.qz__sp{flex:1}
.qz__skip{height:44px;padding:0 16px;border-radius:12px;border:1.5px solid #E3DED5;background:#fff;font:inherit;font-size:14px;font-weight:700;color:#6B665E;cursor:pointer;white-space:nowrap;transition:border-color .2s,color .2s}
.qz__skip:hover{border-color:#1C1B19;color:#1C1B19}
.qz__restart{height:48px;padding:0 6px;border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:#6B665E;cursor:pointer;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.qz__cnt{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.qz__cnt--r{align-items:flex-end;text-align:right}
.qz__cnt b{font-size:15px;font-weight:800;white-space:nowrap}
.qz__cnt b.is-pop{animation:qzPop .35s ease}
.qz__cnt small{font-size:12px;color:#6B665E;white-space:nowrap}
.qz__note{display:flex;align-items:center;gap:8px;font-size:13px;color:#6B665E;white-space:nowrap}
.qz__note i{width:8px;height:8px;border-radius:50%;background:#F2A21B}
.qz__next,.qz__all{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 24px;border-radius:14px;border:0;background:#1C1B19;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap;transition:background .2s}
.qz__next.is-idle{background:#8A857C}
.qz__next:hover{background:#2B2926}
.qz__all{background:#F2A21B;padding:0 22px}

.qz--mob .qz__next,.qz--mob .qz__all{padding:0 16px}
.qz--mob .qz__skip{padding:0 12px}
/* результат */
.qz__res{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px}
.qz--resw .qz__res{gap:14px}
.qz__total{margin-top:-6px;font-size:14px;font-weight:700;color:#1F6B3A;line-height:1.35}
.qz__chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.qz__chip{flex:0 1 auto;min-width:0;max-width:100%;height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border-radius:999px;border:1.5px solid #E3DED5;background:#F6F4F0;font:inherit;font-size:12px;font-weight:600;color:#1C1B19;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.qz__chip:hover{border-color:#1C1B19}
.qz__chip span{font-size:12px;color:#8A857C}
.qz__few{align-self:flex-start;max-width:100%;height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:999px;border:1.5px dashed #E39A17;background:#FBF0DC;color:#7A4C05;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;cursor:pointer}
.qz__few:hover{background:#F8E6C4}
.qz__few-p{font-weight:600}
.qz__few-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.qz__rg{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px}
.qz--resw .qz__rg{grid-template-columns:minmax(0,1fr) minmax(300px,340px);grid-template-rows:1fr;gap:14px}
.qz__picks{display:grid;gap:8px;min-height:0}
.qz__pk{display:flex;flex-direction:column;min-height:0;border-radius:16px;border:1.5px solid #E9E5DE;overflow:hidden;color:#1C1B19;transition:border-color .2s,box-shadow .2s}
.qz__pk:hover{color:#1C1B19;border-color:#1C1B19;box-shadow:0 10px 24px rgba(40,30,20,.10)}
.qz__pk-img{flex:1 1 auto;min-height:72px;position:relative;border-radius:10px;background:linear-gradient(180deg,#F1EDE6,#E4DDD1)}
.qz__pk-img img{position:absolute;inset:6px 4px;width:calc(100% - 8px);height:calc(100% - 12px);object-fit:contain;filter:drop-shadow(0 6px 10px rgba(40,30,20,.18))}
.qz__pk-t{flex:0 0 auto;padding:6px 8px 8px;display:flex;flex-direction:column;gap:2px;min-width:0}
.qz--resw .qz__pk-t{padding:10px 12px 12px}
.qz__pk-n{font-size:12px;font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.qz--resw .qz__pk-n{font-size:13px}
.qz__pk-t b{font-size:14px;font-weight:800;white-space:nowrap}
.qz--resw .qz__pk-t b{font-size:16px}
.qz__why{font-size:11px;font-weight:700;color:#1F6B3A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qz__why.is-over{color:#9A5B00}
.qz__nopk{grid-column:1/-1;align-self:center;font-size:14px;color:#6B665E;line-height:1.45}
.qz__lead{display:flex;flex-direction:column;gap:8px;border-radius:18px;background:#FBF0DC;border:1.5px solid #F2D29A;padding:12px 14px;box-sizing:border-box;margin:0}
.qz--resw .qz__lead{padding:16px;gap:10px}
.qz__lead-h{font-size:15px;line-height:1.25;font-weight:800}
.qz--resw .qz__lead-h{font-size:16px}
.qz__lead-p{margin:0;font-size:12px;color:#6B665E;line-height:1.4}
.qz__ch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#fff;border-radius:12px;padding:3px}
.qz__chb{height:32px;padding:0 4px;border-radius:9px;border:0;background:#fff;color:#1C1B19;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qz__chb.is-on{background:#1C1B19;color:#fff}
.qz__lead-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.qz--resw .qz__lead-row{grid-template-columns:1fr}
.qz__lead-row input{height:48px;min-width:0;width:100%;border-radius:12px;border:1.5px solid #E3DED5;padding:0 14px;font:inherit;font-size:16px;outline:none;box-sizing:border-box;background:#fff;color:#1C1B19}
.qz__lead-row input:focus{border-color:#1C1B19}
.qz__lead-row input.is-err{border-color:#D8382B}
.qz__send{height:48px;padding:0 16px;border-radius:12px;border:0;background:#F2A21B;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap;transition:background .2s}

.qz__err{margin-top:-4px;font-size:12px;color:#B8322A}
.qz__ms{display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;min-height:28px;cursor:pointer;text-align:left;font:inherit;font-size:13px;font-weight:600;color:#1C1B19}
.qz__ms-b{flex:0 0 20px;width:20px;height:20px;border-radius:6px;border:2px solid #1C1B19;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.qz__ms[aria-pressed="true"] .qz__ms-b{background:#1C1B19}
.qz__ms-b svg{width:11px;height:11px}
.qz__consent{font-size:11px;line-height:1.35;color:#8A857C}
.qz__consent a{color:#8A857C;text-decoration:underline;text-underline-offset:2px}
.qz--resw .qz__consent{margin-top:auto}
.qz__lead--ok{align-items:center;justify-content:center;text-align:center;gap:8px}
.qz__lead--ok p{margin:0;font-size:13px;color:#6B665E;line-height:1.4}
.qz__lead--ok b{font-size:17px;font-weight:800}
.qz__ok{width:44px;height:44px;border-radius:50%;background:#2E9E57;color:#fff;display:flex;align-items:center;justify-content:center;animation:qzPop .4s ease}
.qz__ok svg{width:20px;height:20px}
.qz__maxbtn{height:36px;padding:0 14px;border-radius:10px;background:#1C1B19;color:#fff;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:8px}

/* результат в окне на ПК — списком */
.qz__res--list{gap:18px}
.qz__res--list .qz__chip{height:34px;padding:0 12px;font-size:13px}
.qz__res--list .qz__lead{padding:18px;gap:12px}
.qz__res--list .qz__lead-h{font-size:17px}
.qz__res--list .qz__lead-p{font-size:13px}
.qz__res--list .qz__lead-row{grid-template-columns:minmax(0,1fr) auto}
.qz__res--list .qz__lead-row input,.qz__res--list .qz__send{height:52px}
.qz__best{display:flex;flex-direction:column;gap:8px}
.qz__best-h{font-size:14px;font-weight:800}
.qz__row{display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;border-radius:14px;border:1px solid #E9E5DE;color:#1C1B19;transition:border-color .2s}
.qz__row:hover{color:#1C1B19;border-color:#1C1B19}
.qz__row-img{flex:0 0 56px;width:56px;height:64px;border-radius:10px;position:relative;background:linear-gradient(180deg,#EEEAE3,#E6E0D6);overflow:hidden}
.qz__row-img img{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);object-fit:contain}
.qz__row-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.qz__row-t b{font-size:14px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qz__row-t .qz__why{font-size:12px;font-weight:600}
.qz__row-p{flex:0 0 auto;font-size:15px;font-weight:800;white-space:nowrap}
.qz button:focus-visible,.qz a:focus-visible,.qz input:focus-visible{outline:2px solid #F2A21B;outline-offset:2px}
/* окно */
.qzm{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(28,27,25,.55)}
.qzm[hidden]{display:none}
.qzm__bd{position:absolute;inset:0}
.qzm__win{position:relative;width:100%;max-width:1000px}
.qz--modal{height:640px;max-height:calc(100vh - 48px);box-shadow:0 30px 80px rgba(0,0,0,.35)}
.qz__side{flex:0 0 300px;background:#1C1B19;color:#fff;padding:28px 24px;display:flex;flex-direction:column;gap:18px;box-sizing:border-box}
.qz__side>div:nth-child(2){display:flex;flex-direction:column;gap:2px}
.qz__side-l{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#F2A21B}
.qz__side-n{font-size:48px;line-height:1;font-weight:800;letter-spacing:-.03em}
.qz__side-n.is-pop{animation:qzPop .35s ease}
.qz__side-s{font-size:15px;color:rgba(255,255,255,.8)}
.qz__side-th{display:flex;gap:6px}
.qz__side-th span{flex:1;aspect-ratio:3/4;border-radius:10px;background:#2B2926;position:relative;overflow:hidden}
.qz__side-th img{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);object-fit:contain}
.qz__side-a{display:flex;flex-direction:column;gap:8px;border-top:1px solid rgba(255,255,255,.12);padding-top:16px}
.qz__side-a span{display:flex;gap:8px;font-size:13px;color:rgba(255,255,255,.85);line-height:1.35}
.qz__side-a i{font-style:normal;color:#F2A21B}
.qz__side-a .qz__side-e{color:rgba(255,255,255,.6);display:block}
.qz__side-f{margin-top:auto;font-size:12px;color:rgba(255,255,255,.55);line-height:1.4}
body.qz-lock{overflow:hidden}
@media (max-width:759px){
  .qzm{padding:0;align-items:stretch}
  .qzm__win{max-width:none;height:100%}
  .qz--modal{height:100%;max-height:none;border-radius:0}
  .qz__side{display:none}
}
@media (prefers-reduced-motion:reduce){.qz *{animation:none!important;transition:none!important}.nav{transition:none}}

/* D3. «Каталог дверей» */
.hc__head,.hp__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.hc__head h2,.hp__head h2{font-size:clamp(24px,3.2vw,40px);font-weight:800;line-height:1.1}
.hc__all{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:#1C1B19;white-space:nowrap}
.hc__all:hover{color:#C97F0A}
.hc__circ{width:32px;height:32px;border-radius:50%;background:#F2A21B;color:#fff;display:flex;align-items:center;justify-content:center}
.hc__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(max(150px,calc((100% - 48px)/4)),1fr));gap:16px}
.hc__card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid #E9E5DE;border-radius:20px;overflow:hidden;color:#1C1B19;transition:box-shadow .3s}
.hc__card:hover{color:#1C1B19;box-shadow:0 16px 40px rgba(40,30,20,.12)}
.hc__media{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:linear-gradient(180deg,#EEEAE3,#E6E0D6)}
.hc__blur{position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;filter:blur(24px);opacity:.35;transform:scale(1.1)}
.hc__img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:10%;box-sizing:border-box;transition:transform .5s}
.hc__card:hover .hc__img{transform:scale(1.03)}
.hc__bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px}
.hc__txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.hc__name{font-size:clamp(15px,1.5vw,20px);font-weight:800;line-height:1.2}
.hc__cnt{font-size:13px;color:#6B665E}
.hc__go{flex:none;width:40px;height:40px;border-radius:50%;background:#F4F2EE;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
.hc__card:hover .hc__go{background:#F2A21B;color:#fff}
.hs{margin-top:32px}
.hs__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.hs__head h3{font-size:clamp(18px,2vw,24px);font-weight:800}
.hs__arrows{display:flex;gap:8px}
.hs__arrows[hidden]{display:none}
.hs__arr{width:44px;height:44px;border-radius:50%;border:1.5px solid #E3DED5;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#1C1B19;transition:background .2s,color .2s}
.hs__arr:hover:not(:disabled){background:#1C1B19;color:#fff;border-color:#1C1B19}
.hs__arr:disabled{opacity:.35;cursor:default}
.hs__track,.hp__track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding:2px 0 6px}
.hs__track::-webkit-scrollbar,.hp__track::-webkit-scrollbar{display:none}
.hs__card{flex:0 0 max(300px,calc((100% - 48px)/4));scroll-snap-align:start;display:flex;align-items:center;gap:12px;height:96px;padding:6px 14px 6px 6px;background:#fff;border:1px solid #E9E5DE;border-radius:16px;color:#1C1B19;transition:border-color .2s}
.hs__card:hover{color:#1C1B19;border-color:#D8D1C5}
.hs__card:hover .hs__go{background:#F2A21B;color:#fff} /* тень на ленте обрезалась снизу — выделяем рамкой и кнопкой */
.hs__img{flex:0 0 84px;height:84px;border-radius:12px;background:linear-gradient(180deg,#EEEAE3,#E6E0D6);display:flex;align-items:center;justify-content:center;overflow:hidden}
.hs__img img{max-width:100%;max-height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.hs__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hs__name{font-size:15px;font-weight:800;line-height:1.2;overflow-wrap:normal;word-break:normal;hyphens:manual}
.hs__cnt{font-size:13px;color:#6B665E}
.hs__go{flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#FBF0DC;color:#A8650A;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
.hs__go svg{width:14px;height:14px}
.hs__prog{position:relative;height:3px;border-radius:2px;background:#E9E5DE;margin-top:10px;display:none}
.hs__prog i{position:absolute;top:0;height:100%;border-radius:2px;background:#1C1B19}
/* D4. «Популярные модели» */
.hp__sub{margin-top:6px;font-size:15px;color:#6B665E}
.hp__head{margin-bottom:16px}
.hp__bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.hp__tabs{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.hp__tab{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:1.5px solid #E3DED5;border-radius:999px;background:#fff;font:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;color:#1C1B19}
.hp__tab small{font-size:12px;opacity:.65}
.hp__tab[aria-selected="true"]{background:#1C1B19;border-color:#1C1B19;color:#fff}
.hp__track>.cc{flex:0 0 max(240px,calc((100% - 48px)/4));scroll-snap-align:start}
.hp__more{display:flex;justify-content:center;margin-top:20px}
.hp__all{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 24px;border:1.5px solid #1C1B19;border-radius:999px;font-weight:800;color:#1C1B19;white-space:nowrap}
.hp__all small{font-size:13px;font-weight:700;opacity:.6}
.hp__all:hover{background:#1C1B19;color:#fff}
@media (max-width:1099px){.hs__arrows{display:none}}
@media (max-width:639px){
  .hc__grid{gap:10px}
  .hc__card{border-radius:16px}
  .hc__bar{padding:10px 12px}
  .hc__go{flex-basis:32px;width:32px;height:32px}
  .hs__track,.hp__track{margin:0 calc(-1 * clamp(16px,3vw,40px));padding-left:clamp(16px,3vw,40px);padding-right:clamp(16px,3vw,40px);scroll-padding-left:clamp(16px,3vw,40px);gap:10px}
  .hs__card{flex-basis:300px}
  .hp__track>.cc{flex-basis:72%}
  .hs__prog{display:block}
  .hp__tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * clamp(16px,3vw,40px));padding:0 clamp(16px,3vw,40px)}
  .hp__tabs::-webkit-scrollbar{display:none}
}

/* Свои картинки разделов (квадратные, с текстом) — на всю площадь, без полей и размытия */
.hc__media--own .hc__img{padding:0;object-fit:cover}
.hs__img--own img{width:100%;height:100%;padding:0;object-fit:cover}

/* Подсказки поиска */
.sg-host{position:relative}
.sg{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:250;max-height:min(70vh,520px);overflow-y:auto;background:#fff;color:#1C1B19;border:1px solid #E9E5DE;border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,.22);padding:6px;text-align:left}
.sg[hidden]{display:none}
.sg__h{padding:8px 10px 4px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8A857C}
.sg__fix{padding:8px 10px;font-size:13px;color:#6B665E;border-bottom:1px solid #EFEBE4;margin-bottom:4px}
.sg__i{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:10px;color:#1C1B19;font-size:14px}
.sg__i:hover,.sg__i.is-act{background:#F4F2EE;color:#1C1B19}
.sg__sec{justify-content:space-between;font-weight:700}
.sg__sec span{color:#A8650A}
.sg__img{flex:0 0 36px;height:44px;border-radius:6px;background:linear-gradient(180deg,#EEEAE3,#E6E0D6);display:flex;align-items:center;justify-content:center;overflow:hidden}
.sg__img img{max-width:100%;max-height:100%;object-fit:contain}
.sg__t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.sg__t b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg__t small{font-size:12px;color:#8A857C;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg__p{flex:none;font-size:14px;font-weight:800;white-space:nowrap}
.sg__all{justify-content:center;margin-top:4px;border-top:1px solid #EFEBE4;border-radius:0 0 10px 10px;font-weight:800;color:#A8650A}
.sg__none{padding:12px 10px;font-size:14px;color:#6B665E;line-height:1.45}
.sg__quiz{border:0;background:none;padding:0;font:inherit;color:#A8650A;font-weight:700;text-decoration:underline;cursor:pointer}
@media (max-width:1099px){.nav__m .sg{position:static;margin-top:6px;box-shadow:none;max-height:none}}
/* подбор: плотность под фиксированную высоту формы (ТЗ 4.1 — без прокрутки внутри) */
.qz:not(.qz--prow) .qz__hint{display:none}
.qz:not(.qz--resw) .qz__step[data-step="result"] .qz__h{font-size:22px}
.qz:not(.qz--resw) .qz__step[data-step="result"]{gap:12px}
.qz:not(.qz--resw) .qz__pk-img{min-height:44px}
.qz--resw .qz__pk-img{min-height:80px}
.qz:not(.qz--resw) .qz__res:not(.qz__res--list) .qz__lead{gap:6px;padding:10px 12px}
.qz:not(.qz--resw) .qz__res:not(.qz__res--list) .qz__lead-row input,.qz:not(.qz--resw) .qz__res:not(.qz__res--list) .qz__send{height:44px}
.qz:not(.qz--resw) .qz__res:not(.qz__res--list) .qz__ms{min-height:22px}
.qz:not(.qz--resw) .qz__res:not(.qz__res--list) .qz__chb{height:30px}
.qz--mob .qz__place:not(.qz__place--tiles){gap:8px;grid-auto-rows:minmax(56px,1fr)}
.qz--mob .qz__place:not(.qz__place--tiles) .qz__pl-t{padding:8px 38px 8px 12px;gap:2px}
.qz--mob .qz__place:not(.qz__place--tiles) .qz__pl-t b{font-size:15px}
.qz--mob .qz__place:not(.qz__place--tiles) .qz__pl-t small{font-size:12px;line-height:1.3}
.qz:not(.qz--prow) .qz__list{gap:8px;grid-auto-rows:minmax(52px,1fr)}
.qz:not(.qz--prow) .qz__o{min-height:52px;padding:8px 12px;gap:10px}
.qz:not(.qz--prow) .qz__o-t b{font-size:14px}
.qz:not(.qz--prow) .qz__o-t small{font-size:12px;line-height:1.3}
.qz:not(.qz--prow) .qz__step{gap:14px}
.qz:not(.qz--prow) .qz__chb{font-size:11px;padding:0 2px}
.qz:not(.qz--resw) .qz__res{gap:8px}
.qz:not(.qz--resw) .qz__rg{gap:8px}
/* результат: ступени уплотнения, если не помещается (длинные ответы, «Мало вариантов?», итог) */
.qz--t1 .qz__step[data-step="result"]{gap:8px}
.qz--t1 .qz__res{gap:6px}
.qz--t1 .qz__pk-img{min-height:30px}
.qz--t1 .qz__total{font-size:13px;margin-top:-4px}
.qz--t1 .qz__lead{gap:5px}
.qz--t1 .qz__lead-h{font-size:14px}
.qz--t2 .qz__pk-img{display:none}
.qz--t2 .qz__pk{border-radius:12px}
.qz:not(.qz--prow) .qz__place:not(.qz__place--tiles) .qz__pl-img{flex-basis:56px}
.qz:not(.qz--prow) .qz__place:not(.qz__place--tiles) .qz__pl-t{padding:6px 32px 6px 10px}
.qz:not(.qz--prow) .qz__place:not(.qz__place--tiles) .qz__pl-t b{font-size:14px}
.qz:not(.qz--prow) .qz__place:not(.qz__place--tiles) .qz__tick{width:22px;height:22px;top:6px;right:6px}
.qz--resw .qz__pk .qz__why{white-space:normal;line-height:1.3}
.fm-trap{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}

/* ---------- Калькулятор размера двери ---------- */
.calc{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:48px;align-items:stretch}
.calc__form{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 32px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,280px);gap:24px 32px;align-items:center;align-content:space-between;min-width:0}
.calc__col{display:grid;gap:18px;min-width:0}
.calc__head h2{font-size:24px}
.calc__head p{margin-top:8px;color:var(--muted);font-size:14px;line-height:1.55}
.calc__type{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0;border:0;background:var(--paper);border-radius:10px}
.calc__type label{position:relative;cursor:pointer}
.calc__type input{position:absolute;opacity:0;pointer-events:none}
.calc__type span{display:flex;align-items:center;justify-content:center;height:42px;border-radius:8px;font-size:15px;font-weight:700;color:var(--muted);transition:background .15s,color .15s,box-shadow .15s}
.calc__type input:checked+span{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.calc__type input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.calc__fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.calc__f{display:grid;gap:6px;align-content:start;min-width:0}
.calc__l{font-size:13px;font-weight:700}
.calc__in{position:relative;display:block}
.calc__in input{width:100%;height:50px;border:1.5px solid var(--line);border-radius:var(--radius-s);padding:0 44px 0 14px;font-size:18px;font-weight:700;background:#fff;-moz-appearance:textfield;appearance:textfield;transition:border-color .15s}
.calc__in input::-webkit-outer-spin-button,.calc__in input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.calc__in input:focus{outline:0;border-color:var(--accent)}
.calc__in i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-size:14px;color:var(--muted-2);pointer-events:none}
.calc__f small{font-size:12px;color:var(--muted-2);line-height:1.35}
.calc__f.is-err input{border-color:#D33}
.calc__f.is-err small{color:#D33}
.calc__scheme{margin:0;display:grid;gap:10px;justify-items:center}
.calc__scheme svg{width:100%;max-width:300px;height:auto;display:block}
.calc__scheme figcaption{font-size:13px;color:var(--muted);text-align:center}
.calc__scheme figcaption b{color:var(--ink);font-weight:700}
.calc__t{font:800 13px var(--font);fill:#1B1B1B}
.calc__t--leaf{font-size:14px}
.calc__t--sm{font-size:11px;font-weight:600;fill:#8A857D}
.calc__result{background:var(--ink);color:#fff;border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;min-width:0}
.calc__badge{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 12px;border-radius:99px;font-size:12px;font-weight:800;background:rgba(46,139,87,.18);color:#6FD39B}
.calc__badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.calc__result[data-level=warn] .calc__badge{background:rgba(245,162,27,.18);color:var(--accent)}
.calc__result[data-level=bad] .calc__badge{background:rgba(221,51,51,.2);color:#FF7A7A}
.calc__k{margin-top:18px;font-size:14px;color:#B5B0A8}
.calc__big{margin-top:4px;font-size:30px;font-weight:800;letter-spacing:-.01em;line-height:1.15;color:#fff}
.calc__dl{margin:18px 0 0;display:grid}
.calc__dl div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-top:1px solid var(--ink-3);font-size:14px;color:#B5B0A8}
.calc__dl dd{margin:0;color:#fff;font-weight:700;text-align:right}
.calc__how{grid-column:1/-1;padding:16px 20px;border-radius:var(--radius-s);background:var(--paper)}
.calc__how b{font-size:14px}
.calc__how ul{margin-top:8px;display:grid;gap:6px}
.calc__how li{position:relative;padding-left:16px;font-size:14px;line-height:1.5;color:var(--muted)}
.calc__how li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.calc__note{margin-top:14px;font-size:13px;line-height:1.55;color:#E7E3DC}
.calc__result[data-level=ok] .calc__note{color:#B5B0A8}
.calc__actions{margin-top:auto;padding-top:20px;display:grid;gap:10px}
.calc+.page__grid{margin-top:40px}
.calc-table{margin-top:16px;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-s)}
.calc-table table{width:100%;border-collapse:collapse;font-size:15px;min-width:460px}
.calc-table th,.calc-table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--line-2)}
.calc-table th{background:var(--paper);font-size:13px;font-weight:700;color:var(--muted)}
.calc-table td{color:var(--ink)}
.calc-table td:last-child{font-weight:700}
.calc-table tr:last-child td{border-bottom:0}
.article .calc-table+h2{margin-top:36px}
@media (max-width:1200px){

  .calc__form{grid-template-columns:1fr;padding:24px}
  .calc__scheme{display:none}
}
@media (max-width:900px){
  .calc{grid-template-columns:1fr;gap:20px}
  .calc__form{grid-template-columns:minmax(0,1fr) 220px}
  .calc__scheme{display:grid}
}
@media (max-width:640px){
  .calc__form{grid-template-columns:1fr;padding:20px 16px;gap:20px}
  .calc__fields{grid-template-columns:1fr 1fr;gap:12px}
  .calc__fields .calc__f:last-child{grid-column:1/-1}
  .calc__scheme{display:none}
  .calc__result{padding:22px 18px}
  .calc__big{font-size:26px}
  .calc+.page__grid{margin-top:24px}
}

/* ---------- Плавающая кнопка связи (все экраны) ---------- */
.fab{--fab-lift:0px;display:flex;flex-direction:column;align-items:flex-end;gap:10px;position:fixed;right:14px;bottom:calc(16px + var(--fab-lift) + env(safe-area-inset-bottom,0px));z-index:55}
.fab__btn{width:56px;height:56px;border-radius:50%;border:0;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(0,0,0,.22);transition:background .15s,transform .15s}
.fab__btn:active{transform:scale(.95)}
.fab__btn svg{width:26px;height:26px}
.fab__open,.fab__close{display:flex}
.fab__close,.fab.is-open .fab__open{display:none}
.fab.is-open .fab__close{display:flex}
.fab.is-open .fab__btn{background:var(--ink)}
.fab__menu{display:flex;flex-direction:column;align-items:flex-end;gap:8px;animation:fab-in .16s ease-out}
.fab__i{display:flex;align-items:center;gap:10px;color:var(--ink)}
.fab__i span{background:#fff;padding:8px 12px;border-radius:10px;font-size:14px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.14);white-space:nowrap}
.fab__i i{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--ink);color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.fab__i--max i{background:#5A45F5}
.fab__i--tg i{background:#2AABEE}
.fab__i--call i{background:var(--ok)}
.fab__i:hover,.fab__i:active{color:var(--ink)}
.ct-top{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
@media (min-width:768px){.fab{right:24px;bottom:24px}.fab__btn{width:60px;height:60px}.fab__btn:hover{background:var(--accent-dk)}.fab.is-open .fab__btn:hover{background:#000}.fab__i:hover span{color:var(--accent-dk)}}
@media (max-width:767px){.ct-top{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
.fab.is-open{z-index:65}
.fab{transition:opacity .2s,transform .2s}
.fab.is-away{opacity:0;transform:translateY(12px);pointer-events:none}
.fab-open .ct-top{opacity:0!important;pointer-events:none!important;transform:translateY(8px)!important}
@keyframes fab-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fab__menu{animation:none}}

/* Пульсирующая кнопка «Сразу в каталог» на главной — лёгкое белое свечение */
.hero2__btn--pulse{position:relative;animation:hero-pulse 2.6s ease-in-out infinite}
.hero2__btn--pulse:hover{animation:none}
@keyframes hero-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,0);border-color:rgba(255,255,255,.35)}50%{box-shadow:0 0 18px 2px rgba(255,255,255,.28);border-color:rgba(255,255,255,.85)}}
@media (prefers-reduced-motion:reduce){.hero2__btn--pulse{animation:none}}

/* ---------- «Вы смотрели» ---------- */
.rv .section__head{align-items:center}
.rv__clear{border:0;background:none;padding:0;font:inherit;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer}
.rv__clear:hover{color:var(--accent-dk)}
.rv__row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 5 * 16px) / 6);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.rv__c{scroll-snap-align:start;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px 10px 14px;color:var(--ink);transition:border-color .15s,box-shadow .15s;min-width:0}
.rv__c:hover{color:var(--ink);border-color:#D6D0C6;box-shadow:var(--shadow-md)}
.rv__img{position:relative;display:block;aspect-ratio:4/5;border-radius:var(--radius-s);background:var(--paper);overflow:hidden}
.rv__img img{position:absolute;inset:14% 14% 6%;width:72%;height:80%;object-fit:contain}
.rv__d{position:absolute;left:8px;top:8px;background:#D33;color:#fff;font-size:11px;font-weight:800;padding:3px 6px;border-radius:6px}
.rv__cat{margin-top:10px;font-size:11px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv__n{margin-top:2px;font-size:14px;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.rv__p{margin-top:8px;font-size:16px;font-weight:800}
.rv__s{margin-top:2px;font-size:12px;color:var(--muted-2);display:flex;align-items:center;gap:6px}
.rv__s::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}
.rv__s.is-on::before{background:var(--ok)}
@media (max-width:1100px){.rv__row{grid-auto-columns:calc((100% - 3 * 16px) / 4)}}
@media (max-width:767px){.rv__row{grid-auto-columns:42%;gap:12px;margin-right:calc(-1 * var(--gutter));padding-right:var(--gutter)}}


/* Рейтинг в Яндекс Картах — свой, без iframe */
.yr{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none}
.yr:hover{color:#fff}
.yr b{font-weight:800}
.yr__stars{position:relative;display:inline-block;line-height:0;vertical-align:middle}
.yr__stars svg{width:16px;height:16px;margin-right:2px}
.yr__bg svg{fill:rgba(255,255,255,.22)}
.yr__fg{position:absolute;left:0;top:0;width:var(--r);overflow:hidden;white-space:nowrap}
.yr__fg svg{fill:#F5A21B}
.yr--stat{display:block}
.yr--stat b{display:flex;align-items:center;gap:8px;font-size:26px;white-space:nowrap}
.yr--stat .yr__stars svg{width:15px;height:15px}
.yr--stat span:last-child{display:block;margin-top:4px;font-size:13px;color:rgba(255,255,255,.6)}
.yr--stat:hover span:last-child{color:#fff}

/* Подбор: вариант, при котором моделей не останется, — неактивен */
.qz__o.is-off,.qz__tn.is-off{opacity:.45;cursor:not-allowed;pointer-events:none}
.qz__o.is-off small{color:#B0442F}

.qz__side-w{display:block;margin-top:10px;font-size:14px;line-height:1.45;color:rgba(255,255,255,.7)}

/* <picture> с WebP-версиями не должна менять раскладку: картинка ведёт себя как раньше */
picture{display:contents}
picture>source{display:none}
.crumbs--bar{padding-bottom:16px}

/* Панель оплачивается отдельно: подпись под ценой и цена на плитке панели */
.pd-price__pn{font-size:13px;font-weight:600;color:#6B665E;margin:2px 0 4px}
.pd-panel-tile__p{display:block;font-size:11px;font-weight:700;color:#8A857C;margin-top:1px;white-space:nowrap}
.pd-panel-tile[aria-pressed="true"] .pd-panel-tile__p,.pd-tile[aria-pressed="true"] .pd-panel-tile__p{color:inherit}
.pd-tile--panel .pd-panel-tile__p{text-align:center}

/* «Без панели» — первая плитка и ссылка «Убрать панель» */
.pd-panel-tile__none{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:125/162;border-radius:7px;background:repeating-linear-gradient(135deg,#F4F1EC 0 8px,#ECE8E1 8px 16px);color:#8A857C;font-style:normal;font-size:20px;font-weight:700}
.pd-panel-tile--none[aria-pressed="true"] .pd-panel-tile__none{color:var(--pd-ink)}
.pd-link--rm{margin-left:auto;margin-right:14px;color:#B4532A;border-bottom-color:rgba(180,83,42,.4)}
.pd-link--rm[hidden]{display:none}
/* «Без панели» всегда на виду: прилипает к левому краю ленты при прокрутке */
.pd-panel-tile--none{position:sticky;left:0;z-index:2;box-shadow:8px 0 10px -6px rgba(0,0,0,.18)}

/* ===== Отклик кнопок: нажатие, отправка, «добавлено» ===== */
.btn,.pd-btn,.hero2__btn,.qz__send,.qz__next,.ct-f__show,.footer__lead,.call-btn,.cart-btn,.fav-btn,.cc__fav,.pd-panel-tile,.pd-o,.ct-pc,.hp__tab{transition:transform .12s ease,background-color .2s,border-color .2s,box-shadow .2s,color .2s}
:is(.btn,.pd-btn,.hero2__btn,.qz__send,.qz__next,.ct-f__show,.footer__lead,.call-btn,.cart-btn,.pd-panel-tile,.pd-o,.ct-pc,.hp__tab):active:not(:disabled){transform:scale(.96)}
.cc__fav:active{transform:scale(.88)}
/* идёт отправка: кружок-загрузка перед текстом, кнопку нельзя нажать второй раз */
.is-loading{pointer-events:none;cursor:progress;opacity:.92}
.is-loading::before{content:'';display:inline-block;flex:0 0 auto;width:16px;height:16px;margin-right:8px;border:2.5px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-3px;animation:dz-spin .7s linear infinite}
.is-done{background:#1F9D55!important;border-color:#1F9D55!important;color:#fff!important;animation:dz-pop .4s ease}
@keyframes dz-spin{to{transform:rotate(360deg)}}
@keyframes dz-pop{0%{transform:scale(1)}40%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes dz-bump{0%{transform:scale(1)}30%{transform:scale(1.35)}60%{transform:scale(.9)}100%{transform:scale(1)}}
@keyframes dz-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@keyframes dz-heart{0%{transform:scale(1)}30%{transform:scale(1.4)}60%{transform:scale(.9)}100%{transform:scale(1)}}
.is-added{animation:dz-pop .45s ease}
.dz-bump{display:inline-block;animation:dz-bump .5s ease}
.cart-btn.dz-bump,.fav-btn.dz-bump{display:inline-flex}
.dz-shake{animation:dz-shake .4s ease}
.cc__fav.dz-heart{animation:dz-heart .45s ease}
/* «летящий» кружок от кнопки к корзине в шапке */
.dz-fly{position:fixed;z-index:9999;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:#F2A21B;box-shadow:0 2px 8px rgba(0,0,0,.25);pointer-events:none}
/* ошибка в поле: красная рамка и подсказка под полем */
.dz-err{border-color:#D33!important;box-shadow:0 0 0 3px rgba(221,51,51,.12)!important}
.dz-err-msg{display:block;margin-top:4px;font-size:12.5px;font-weight:600;color:#C62828}
@media (prefers-reduced-motion:reduce){.is-loading::before{animation-duration:1.6s}.is-added,.dz-bump,.dz-shake,.cc__fav.dz-heart,.is-done{animation:none}.dz-fly{display:none}}
/* входная дверь без фото изнутри: одно фото крупно */
.pd-stage.pd-stage--solo .pd-side[data-side="in"]{display:none}.pd-stage.pd-stage--solo .pd-side[data-side="out"]{display:flex;flex-basis:62%}.pd-stage.pd-stage--solo .pd-side img{max-width:330px}.pd-stage.pd-stage--solo .pd-side figcaption{display:none}
.pd-stage--one .pd-side,.pd-stage.pd-stage--solo .pd-side[data-side="out"]{flex-basis:90%}.pd-stage--one .pd-side img,.pd-stage.pd-stage--solo .pd-side img{width:auto;max-width:100%;max-height:min(560px,70vh)}

.pd-side img[hidden],.pd-photo-note[hidden]{display:none}
.pd-photo-note{margin:0;color:var(--pd-ink);text-align:center;font-weight:600}

.header__phone a{color:inherit}
.header__phone small button{border:0;padding:0;background:transparent;color:inherit}
.cc__heading{margin:0}

/* Keep fixed contact shortcuts off the narrow buying and checkout layouts. */
@media (max-width: 760px) {
  body:is([data-page="product"], [data-page="cart"]) .fab { display: none; }
}
.pd-cart__sum { opacity: 1; }

/* Keep both columns clear on narrow catalog screens. */
@media (max-width: 767px) {
  body[data-page="listing"] .fab { display: none; }
  body[data-page="listing"] .ct-top {
    position: static;
    width: auto;
    margin: 16px auto 0;
    padding: 0 18px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  body[data-page="listing"] .ct-top__l { display: inline; }
}

/* Keep hover, physical press, keyboard focus and persistent selection distinct. */
:root {
  --action-hover: #2B2926;
  --action-press: #1C1B19;
  --action-neutral: #F0F0F0;
  --action-neutral-press: #E2E2E2;
  --action-outline: #626262;
  --action-size: 50px;
  --action-radius: 12px;
  --action-inset: 20px;
  --action-gap: 8px;
  --action-font: 15px;
  --action-compact: 44px;
}

.article h1 { overflow-wrap: anywhere; }
.ct-g__head { padding-inline: 8px; border-radius: 8px; }
.ct-g__head i { flex: 0 0 18px; block-size: 18px; text-align: center; }

@media (max-width: 639px) {
  :root {
    --action-size: 48px;
    --action-inset: 14px;
  }
}

:is(.btn:not(.btn--sm), .hero2__btn, .pd-cart, .pd-btn, .cc__cart, .cc__open,
    .qz__all, .qz__send, .qz__next, .qz--mob .qz__all, .qz--mob .qz__next, .qz__res--list .qz__send,
    .ct-f__show, .ct-open) {
  height: auto;
  min-height: var(--action-size);
  padding-inline: var(--action-inset);
  border-radius: var(--action-radius);
  gap: var(--action-gap);
  font-size: var(--action-font);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}
.qz:not(.qz--resw) .qz__res:not(.qz__res--list) .qz__send { height: auto; }
:is(.header .fav-btn, .header .cart-btn, .header .call-btn, .header .burger) {
  height: var(--action-compact);
  border-radius: var(--action-radius);
}
:is(.header .fav-btn, .header .call-btn, .header .burger) { width: var(--action-compact); }
.header .cart-btn { gap: var(--action-gap); }

:is(.pd-btn, .pd-qty button, .qty button, .cart-item__remove, .pd-arrow, .pd-modal__x,
    .modal__close, .qz__back, .qz__x, .qz__chb, .ct-seg__b, .ct-g__head, .ct-bar__sort select,
    .ct-f__reset, .ct-f__mreset, .qz__skip,
    .cc__open, .qz__all, .fab__i span, .pd-chips button) {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

@media (hover: hover) and (pointer: fine) {
  :is(.btn--accent, .pd-cart:not(.is-in), .cc__cart:not(.is-in), .cc__open,
      .hero2__btn--acc, .qz__send, .qz__all, .qz__maxbtn, .ct-f__show):hover:not(:disabled, .is-loading, .is-done) {
    background-color: var(--action-hover);
    color: #fff;
    transform: none;
    box-shadow: 0 3px 9px rgb(0 0 0 / .17);
  }
  :is(.btn--outline, .pd-btn, .pd-panel-slot, .pd-arrow, .pd-modal__x, .modal__close, .qz__back, .qz__x,
      .pd-o, .pd-panel-tile, .pd-tile, .pd-chips button, .ct-pc, .ct-seg__b, .ct-f__reset, .ct-f__mreset, .qz__skip,
      .ct-bar__sort select, .hp__tab, .qz__pl, .qz__o, .qz__tn, .qz__chb):hover:not(:disabled, .is-loading, .is-done,
      .is-on, [aria-pressed="true"], [aria-selected="true"], [aria-checked="true"]) {
    background-color: var(--action-neutral);
    border-color: var(--action-outline);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--action-outline);
  }
  :is(.pd-qty button, .qty button, .ct-g__head):hover:not(:disabled) {
    background-color: var(--action-neutral);
    color: var(--ink);
  }
  .cart-item__remove:hover { background-color: #F8E3DF; color: #8B221E; }
  .cc__fav:hover:not(.is-on) { color: #952C25; background-color: #FBEDEA; }
  :is(.pd-link, .qz__restart, .rv__clear):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
  .faq__list details:not([open]) summary:hover::after { background-color: var(--action-neutral-press); }
  .fab__i:hover span { background-color: var(--action-neutral); color: var(--ink); }
  .calc__type label:hover input:not(:checked) + span { background-color: var(--action-neutral); color: var(--ink); }
  :is(.nav__drop a, .sg__i):hover { background-color: var(--action-neutral); color: var(--ink); }
  .btn--dark:hover { background-color: #414141; color: #fff; }
}

:is(.btn--accent, .pd-cart:not(.is-in), .cc__cart:not(.is-in), .cc__open,
    .hero2__btn--acc, .qz__send, .qz__all, .qz__maxbtn, .ct-f__show):active:not(:disabled, .is-loading, .is-done) {
  background-color: var(--action-press);
  color: #fff;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .32);
  transform: scale(.98);
}
:is(.btn--outline, .pd-btn, .pd-qty button, .qty button, .pd-panel-slot, .pd-arrow, .pd-modal__x, .modal__close, .qz__back, .qz__x,
    .pd-o, .pd-panel-tile, .pd-tile, .pd-chips button, .ct-pc, .ct-seg__b, .ct-g__head,
    .ct-f__reset, .ct-f__mreset, .qz__skip, .hp__tab, .qz__pl, .qz__o, .qz__tn, .qz__chb):active:not(:disabled, .is-loading, .is-done, .is-on,
    [aria-pressed="true"], [aria-selected="true"], [aria-checked="true"]) {
  background-color: var(--action-neutral-press);
  border-color: var(--action-outline);
  color: var(--ink);
  box-shadow: inset 0 2px 3px rgb(0 0 0 / .20);
}
:is(.pd-qty button, .qty button, .cart-item__remove, .pd-arrow, .pd-modal__x, .modal__close,
    .qz__back, .qz__x, .qz__pl, .qz__o, .qz__tn, .qz__chb, .pd-tile, .ct-seg__b,
    .ct-f__reset, .ct-f__mreset, .qz__skip, .pd-link, .qz__restart, .rv__clear, .faq__list summary,
    .ct-g__head, .nav__list>li>a, .nav__drop a, .sg__i, .fab__i, .hc__card, .hs__card,
    .brand, .post, .rv__c):active:not(:disabled, .is-loading, .is-done) { transform: translateY(1px); }
.cart-item__remove:active { background-color: #F2CFC9; color: #6E1B18; }

:is(.pd-page button, .pd-modal button, .pd-modal input, .pd-sticky button,
    .ct button, .ct input, .ct select, .ct a, .qz button, .qz a, .qz input,
    .hero2 a, .hero2 button, .btn, .fab__btn, .fab__i, .nav a, .nav button,
    .header button, .cart-item button, .modal__box button, .faq__list summary):focus-visible {
  outline: 2px solid #474747;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

/* The hero quiz is a light panel, so the hero rule stops at its action row. */
@media (hover: hover) and (pointer: fine) {
  :is(.header, .footer, .cat-hero, .lead-strip, .hero2__act, .dark, .calc__result)
    :is(.btn--accent, .hero2__btn--acc):hover:not(:disabled, .is-loading, .is-done) {
    background-color: var(--accent);
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff, 0 2px 8px rgb(0 0 0 / .28);
  }
}
:is(.header, .footer, .cat-hero, .lead-strip, .hero2__act, .dark, .calc__result)
  :is(.btn, .hero2__btn, .cart-btn, .fav-btn, .call-btn, .burger, .footer__lead, .header__phone button):active
  :is(.cart-btn__count, .fav-btn__count, .fav-btn__i) { color: inherit; }
:is(.header, .footer, .cat-hero, .lead-strip, .hero2__act, .dark, .calc__result)
  :is(.btn, .hero2__btn, .cart-btn, .fav-btn, .call-btn, .burger, .footer__lead, .header__phone button):active:not(:disabled, .is-loading, .is-done) {
  background-color: #fff;
  border-color: #fff;
  color: #171717;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .16);
  transform: scale(.98);
}
:is(.header, .footer, .cat-hero, .lead-strip, .hero2__act, .dark, .calc__result)
  :is(.btn, .hero2__btn, .cart-btn, .fav-btn, .call-btn, .burger, .footer__lead, .header__phone button):focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 3px #1C1B19;
}

@media (prefers-reduced-motion: reduce) {
  :is(.btn, .pd-btn, .pd-cart, .pd-o, .pd-panel-tile, .pd-tile, .pd-qty button,
      .cc, .cc__cart, .cc__open, .cc__fav, .ct-seg__b, .ct-pc, .ct-g__head,
      .ct-f__show, .qz__pl, .qz__o, .qz__tn, .qz__chb, .qz__send, .qz__next, .qz__all,
      .hero2__btn, .hp__tab, .fab__btn, .fab__i, .hc__card, .hs__card,
      .cart-btn, .fav-btn, .call-btn, .burger, .footer__lead, .header__phone button,
      .nav a, .qty button, .cart-item__remove, .modal__close, .pd-modal__x, .pd-arrow,
      .ct-f__reset, .ct-f__mreset, .qz__skip, .pd-link, .qz__restart, .rv__clear,
      .faq__list summary):is(:hover, :active) { transform: none !important; }
}

.analytics-choice {
  position: fixed;
  z-index: 70;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  width: min(390px, calc(100% - 24px));
  padding: 14px 16px;
  color: #1c1b19;
  background: #fff;
  border: 1px solid #e6e2db;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgb(28 27 25 / 16%);
  font-size: 14px;
}
.analytics-choice p { margin: 0 0 10px; }
.analytics-choice div { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-choice button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #1c1b19;
  border-radius: 8px;
  background: #fff;
  color: #1c1b19;
  cursor: pointer;
}
.analytics-choice [data-analytics-allow] { background: #1c1b19; color: #fff; }
.analytics-settings {
  padding: 4px;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.analytics-choice--initial {
  box-sizing: border-box;
}
