/* Главная (index.html, build_pages build_home): вариант B «Тёмная витрина» — выбор владельца 04.11.
   Палитра: чёрный #111211, молочный #f6f4ee, винный акцент #6b333f. Своя шапка .hx (только главная), первый экран на фото,
   блок «Актуально» (тексты home.offer* в редакторе), разделы строками, меню «Каталог» (.hx-mm: компьютер — панель, телефон — весь экран). */
.hm-body{--hx-ink:#111211;--hx-milk:#f6f4ee;--hx-wine:#6b333f;--hx-paper:#fffdf8;--hx-sand:#ebe7dc;--hx-line:rgba(17,18,17,.12);--hx-mute:#6d6c66;background:var(--hx-milk);color:var(--hx-ink)}
.hm-body main{background:var(--hx-milk)}
.hx svg,.hx-sec svg,.hx-hero svg,.hx-offer svg{flex:none}

/* шапка */
.hx{position:sticky;top:0;z-index:70;color:var(--hx-milk)}
.hx__bar{background:var(--hx-ink)}
.hx__in{display:flex;align-items:center;gap:18px;height:76px;max-width:1320px}
.hx__logo{display:flex;align-items:center;gap:11px;flex:none;color:var(--hx-milk);text-decoration:none}
.hx__logo i{width:38px;height:38px;border-radius:10px;background:var(--hx-wine);display:grid;place-items:center}
.hx__logo b{display:block;font:600 19px/1.05 var(--head);letter-spacing:-.2px}
.hx__logo small{display:block;font-size:11.5px;color:rgba(246,244,238,.55)}
.hx__cat{display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 20px 0 16px;border:0;border-radius:12px;background:var(--hx-milk);color:var(--hx-ink);font:600 15px/1 var(--head);cursor:pointer;flex:none}
.hx__sr{flex:1;min-width:0;display:flex;align-items:center;height:46px;border-radius:12px;background:rgba(246,244,238,.09);border:1px solid rgba(246,244,238,.16);padding:0 5px 0 15px}
.hx__sr label{flex:1;min-width:0;display:flex;align-items:center;gap:10px;color:rgba(246,244,238,.6)}
.hx__sr input{flex:1;min-width:0;height:44px;border:0;background:transparent;color:var(--hx-milk);font:400 15px var(--body);outline:none}
.hx__sr input::placeholder{color:rgba(246,244,238,.55)}
.hx__sr button{height:36px;padding:0 16px;border:0;border-radius:9px;background:var(--hx-wine);color:var(--hx-milk);font:500 14px var(--head);cursor:pointer}
.hx__sr:focus-within{border-color:rgba(246,244,238,.45)}
.hx__ph{flex:none;font-size:14px;color:rgba(246,244,238,.85);text-decoration:none;white-space:nowrap}
.hx__acts{display:flex;align-items:center;gap:2px;flex:none}
.hx__ic{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 9px;font-size:12px;color:rgba(246,244,238,.82);text-decoration:none}
.hx__ic b{position:absolute;top:0;right:6px;min-width:17px;height:17px;border-radius:9px;background:var(--hx-wine);color:#fff;font:600 10.5px/17px var(--head);text-align:center;padding:0 4px}
.hx__ic b:empty{display:none}
.hx__tel,.hx__mrow{display:none}
.hx__dirs{background:var(--hx-paper);border-bottom:1px solid var(--hx-line);color:var(--hx-ink)}
.hx__dirs .lp-container{max-width:1320px;display:flex;align-items:center;gap:28px;height:50px;font:500 14.5px var(--head)}
.hx__dirs a{color:#2b2c2a;text-decoration:none;white-space:nowrap}
.hx__dirs a:hover{color:var(--hx-wine)}
.hx__pj{margin-left:auto;display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:var(--hx-wine);font:500 14.5px var(--head);cursor:pointer;white-space:nowrap}
@media (max-width:1240px){.hx__ph{display:none}.hx__dirs .lp-container{gap:20px;font-size:14px}}
@media (max-width:1060px){.hx__logo small{display:none}.hx__dirs .lp-container{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.hx__dirs .lp-container::-webkit-scrollbar{display:none}}

/* кнопки */
.hx-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:54px;padding:0 26px;border-radius:14px;font:600 16px/1 var(--head);white-space:nowrap;text-decoration:none;border:0;cursor:pointer}
.hx-btn--ink{background:var(--hx-ink);color:var(--hx-milk)}
.hx-btn--milk{background:var(--hx-milk);color:var(--hx-ink)}
.hx-btn--line{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px currentColor}
.hx-btn--wine{background:var(--hx-wine);color:var(--hx-milk)}
.hx-eyebrow{font:500 12.5px var(--head);letter-spacing:1.6px;text-transform:uppercase;color:var(--hx-mute)}
.hx-h2{font:500 40px/1.08 var(--head);letter-spacing:-.8px;margin:8px 0 0;color:inherit}
.hx-lbl{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;opacity:.75}
.hx-lbl:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}

/* первый экран */
.hx-hero{position:relative;isolation:isolate;min-height:640px;color:var(--hx-milk);background:var(--hx-ink);display:flex;flex-direction:column;justify-content:center;overflow:hidden}
.hx-hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 40%;z-index:-2}
.hx-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(17,18,17,.9) 0%,rgba(17,18,17,.64) 42%,rgba(17,18,17,.06) 76%),linear-gradient(0deg,rgba(17,18,17,.6),transparent 42%)}
.hx-hero__in{max-width:1320px;width:100%;padding-top:56px;padding-bottom:120px}
.hx-kick{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:rgba(246,244,238,.72)}
.hx-kick:before{content:"";width:7px;height:7px;border-radius:50%;background:#c79aa4}
.hx-hero h1{font:700 92px/.96 var(--head);letter-spacing:-3.4px;max-width:820px;margin:22px 0 26px;color:var(--hx-milk)}
.hx-lead{font-size:19px;line-height:1.5;max-width:520px;color:rgba(246,244,238,.8);margin:0}
.hx-acts{display:flex;gap:12px;margin-top:36px}
.hx-facts{position:absolute;left:0;right:0;bottom:30px}
.hx-facts .lp-container{max-width:1320px;display:flex;gap:44px;font-size:14px;color:rgba(246,244,238,.7)}
.hx-facts b{display:block;font:500 24px var(--head);color:var(--hx-milk)}

/* «Актуально» — меняется в редакторе (home.offerTag, home.offerTitle, home.offerText, home.offerLink) */
.hx-offer{background:var(--hx-paper);border-bottom:1px solid var(--hx-line)}
.hx-offer__in{max-width:1320px;display:flex;align-items:center;gap:22px;min-height:92px;padding-top:14px;padding-bottom:14px}
.hx-offer__tag{flex:none;font:600 12px var(--head);letter-spacing:1.4px;text-transform:uppercase;color:var(--hx-paper);background:var(--hx-wine);padding:6px 11px;border-radius:7px}
.hx-offer__t b{display:block;font:600 18px/1.3 var(--head)}
.hx-offer__t span{display:block;font-size:14.5px;color:var(--hx-mute)}
.hx-offer .hx-btn{margin-left:auto;height:46px;padding:0 20px;font-size:15px}

/* разделы строками */
.hx-sec{padding-top:100px}
.hx-sec .lp-container{max-width:1320px}
.hx-sec__h{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:30px}
.hx-sec__h .hm-assortment>span{white-space:nowrap}.hx-sec__h .hm-assortment__note{margin:10px 0 0;font-size:17px;color:var(--hx-mute)}
.hx-sec__h>p{justify-self:end;max-width:430px;color:var(--hx-mute);font-size:16px;margin:0}
.hx-row{display:grid;grid-template-columns:70px 1.15fr 1fr 230px 40px;gap:26px;align-items:center;padding:20px 0;border-top:1px solid var(--hx-line);color:var(--hx-ink);text-decoration:none;transition:background .2s,padding .2s}
.hx-row:last-child{border-bottom:1px solid var(--hx-line)}
.hx-row i{font:normal 500 15px var(--head);color:var(--hx-wine)}
.hx-row b{font:500 34px/1.05 var(--head);letter-spacing:-.8px}
.hx-row__d span{display:block;color:#3b3c38;font-size:15px}
.hx-row__d em{display:block;font-style:normal;color:var(--hx-wine);font-weight:600;font-size:14.5px;margin-top:4px}
.hx-row__im{display:block;height:130px;border-radius:14px;overflow:hidden;background:var(--hx-sand)}
.hx-row__im img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}
.hx-row__ar{width:40px;height:40px;border-radius:50%;border:1px solid var(--hx-line);display:grid;place-items:center}
.hx-row--on,.hx-row:hover{background:var(--hx-ink);color:var(--hx-milk);border-radius:20px;padding:20px;margin:0 -20px;border-color:transparent}
.hx-row--on+.hx-row,.hx-row:hover+.hx-row{border-top-color:transparent}
.hx-row--on .hx-row__d span,.hx-row:hover .hx-row__d span{color:rgba(246,244,238,.75)}
.hx-row--on .hx-row__ar,.hx-row:hover .hx-row__ar{background:var(--hx-milk);color:var(--hx-ink);border-color:transparent}
.hx-row--on i,.hx-row:hover i{color:#c79aa4}
.hx-row--on .hx-row__d em,.hx-row:hover .hx-row__d em{color:#d9b3bb}
.hx-rows:hover .hx-row--on:not(:hover){background:none;color:var(--hx-ink);padding:20px 0;margin:0;border-radius:0;border-top-color:var(--hx-line)}
.hx-rows:hover .hx-row--on:not(:hover) .hx-row__d span{color:#3b3c38}
.hx-rows:hover .hx-row--on:not(:hover) .hx-row__ar{background:none;color:inherit;border-color:var(--hx-line)}
.hx-rows:hover .hx-row--on:not(:hover) i,.hx-rows:hover .hx-row--on:not(:hover) .hx-row__d em{color:var(--hx-wine)}
.hx-row:hover .hx-row__im img{transform:scale(1.04)}
.hx-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}
.hx-quick a{font-size:14px;padding:8px 14px;border-radius:20px;background:var(--hx-paper);border:1px solid var(--hx-line);color:var(--hx-ink);text-decoration:none}
.hx-quick a:hover{border-color:var(--hx-wine);color:var(--hx-wine)}

/* расчёт по проекту + Мира */
.hx-duo{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:80px}
.hx-duo>div{border-radius:26px;padding:44px;min-height:330px;display:flex;flex-direction:column;align-items:flex-start}
.hx-duo p{font-size:16px;line-height:1.5;margin:14px 0 26px;max-width:430px}
.hx-duo .hx-h2{font-size:34px;margin-top:12px}
.hx-duo__a{background:var(--hx-wine);color:var(--hx-milk)}.hx-duo__a p{color:rgba(246,244,238,.82)}
.hx-duo__b{background:var(--hx-sand)}.hx-duo__b p{color:#3b3c38}
.hx-duo .hx-btn,.hx-duo__btns{margin-top:auto}
.hx-duo__btns{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.hx-duo__btns a{font-size:14.5px;color:var(--hx-ink);text-decoration:underline;text-underline-offset:3px}

/* как работаем, почему, вопросы */
.hx-st{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--hx-line);border-bottom:1px solid var(--hx-line)}
.hx-st li{padding:30px 26px 32px 0}
.hx-st li+li{padding-left:26px;border-left:1px solid var(--hx-line)}
.hx-st i{font:normal 15px var(--head);color:var(--hx-wine)}
.hx-st b{display:block;font:500 21px var(--head);margin:14px 0 6px}
.hx-st span{color:var(--hx-mute);font-size:14.5px}
.hx-wy{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:26px}
.hx-wy div{background:var(--hx-paper);border:1px solid var(--hx-line);border-radius:18px;padding:22px}
.hx-wy b{display:block;font:600 17px/1.3 var(--head);margin-bottom:8px}
.hx-wy span{font-size:14.5px;color:var(--hx-mute)}
.hx-faq .hx-h2{margin-bottom:20px}
.hx-faq .sk-faq__i{border-bottom:1px solid var(--hx-line);padding:14px 0}.hx-faq summary{cursor:pointer;font:600 16px/1.35 var(--head)}.hx-faq p{margin:10px 0 0;color:var(--hx-mute);line-height:1.55}
.hm-body .mktr,.hm-body .lp-section{background:transparent}

/* меню «Каталог» */
.hx-mm{position:absolute;left:0;right:0;top:76px;z-index:80;color:var(--hx-ink)}
.hx-mm[hidden]{display:none}
html.hx-open body:after{content:"";position:fixed;inset:0;background:rgba(17,18,17,.45);z-index:65}
.hx-mm__in{max-width:1320px}
.hx-mm__box{background:#1b1c1b;color:var(--hx-milk);border-radius:0 0 22px 22px;box-shadow:0 30px 60px rgba(17,18,17,.35);display:grid;grid-template-columns:300px 1fr 300px;min-height:460px;overflow:hidden}
.hx-mm__top,.hx-mm__sr,.hx-mm__mob,.hx-mm__f{display:none}
.hx-mm__l{background:var(--hx-ink);padding:18px 12px;border-right:1px solid rgba(246,244,238,.1)}
.hx-mm__l a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;font:500 15px var(--head);color:var(--hx-milk);text-decoration:none}
.hx-mm__l a img{width:40px;height:40px;border-radius:9px;object-fit:cover}
.hx-mm__l a svg{margin-left:auto;opacity:.5}
.hx-mm__l a.on{background:var(--hx-wine)}
.hx-mm__c{padding:30px 34px}
.hx-mm__h{display:inline-flex;align-items:center;gap:10px;font:500 26px var(--head);letter-spacing:-.4px;color:var(--hx-milk);text-decoration:none}
.hx-mm__p p{color:rgba(246,244,238,.6);font-size:14.5px;margin:4px 0 22px}
.hx-mm__g{display:grid;grid-template-columns:1fr 1fr;gap:4px 26px}
.hx-mm__g a{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid rgba(246,244,238,.12);font-size:15.5px;color:var(--hx-milk);text-decoration:none}
.hx-mm__g a svg{opacity:.4}
.hx-mm__g a:hover{color:#e2c3ca}
.hx-mm__promo{position:relative;margin:18px 18px 18px 0;border-radius:16px;overflow:hidden;color:var(--hx-milk);text-decoration:none}
.hx-mm__promo img{width:100%;height:100%;object-fit:cover}
.hx-mm__promo span{position:absolute;left:0;right:0;bottom:0;padding:20px;background:linear-gradient(transparent,rgba(17,18,17,.85))}
.hx-mm__promo small{display:block;font-size:12px;opacity:.75}
.hx-mm__promo b{display:block;font:600 17px/1.3 var(--head)}

/* телефон и планшет */
@media (max-width:900px){
 .hx__in{flex-wrap:wrap;height:auto;gap:6px;padding-top:10px;padding-bottom:12px}
 .hx__in>.hx__cat,.hx__sr,.hx__ph,.hx__ic span{display:none}
 .hx__logo i{width:34px;height:34px;border-radius:9px}.hx__logo b{font-size:17px}
 .hx__acts{margin-left:auto}
 .hx__ic{width:42px;height:42px;padding:0;justify-content:center;border-radius:11px}
 .hx__ic b{top:3px;right:2px}
 .hx__tel{display:flex}
 .hx__mrow{display:flex;gap:8px;width:100%;margin-top:4px}
 .hx__mrow .hx__cat{height:44px;padding:0 14px 0 12px;font-size:14.5px;border-radius:11px}
 .hx__msr{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:44px;border-radius:11px;background:rgba(246,244,238,.09);border:1px solid rgba(246,244,238,.16);color:rgba(246,244,238,.65);font:400 14.5px var(--body);padding:0 14px;cursor:pointer;text-align:left}
 .hx__msr span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .hx__dirs{display:none}
 .hx-mm{position:fixed;inset:0;top:0;z-index:120;background:var(--hx-ink);overflow-y:auto;-webkit-overflow-scrolling:touch}
 html.hx-open body:after{display:none}
 html.hx-open{overflow:hidden}
 .hx-mm__in{padding:0}
 .hx-mm__box{display:block;border-radius:0;min-height:100%;box-shadow:none;background:var(--hx-ink);padding:12px 16px calc(20px + env(safe-area-inset-bottom))}
 .hx-mm__l,.hx-mm__c,.hx-mm__promo{display:none}
 .hx-mm__top{display:flex;align-items:center;justify-content:space-between;height:44px}
 .hx-mm__top b{font:500 22px var(--head)}
 .hx-mm__top button{width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:11px;background:rgba(246,244,238,.1);color:var(--hx-milk);cursor:pointer}
 .hx-mm__sr{display:flex;margin-top:10px;width:100%}
 .hx-mm__mob{display:block;margin-top:8px}
 .hx-mm__mob a{display:flex;align-items:center;gap:13px;padding:9px 0;border-bottom:1px solid rgba(246,244,238,.12);color:var(--hx-milk);text-decoration:none}
 .hx-mm__mob img{width:52px;height:52px;border-radius:11px;object-fit:cover;flex:none}
 .hx-mm__mob b{display:block;font:600 16px var(--head)}
 .hx-mm__mob small{display:block;font-size:12.5px;line-height:1.35;color:rgba(246,244,238,.55)}
 .hx-mm__mob svg{margin-left:auto;opacity:.4}
 .hx-mm__f{display:flex;gap:8px;margin-top:16px}
 .hx-mm__f .hx-btn{flex:1;height:48px;padding:0 10px;font-size:14.5px;border-radius:12px}
 .hx-mm__f .hx-btn--ink{background:var(--hx-wine)}
 .hx-mm__f .hx-btn--line{color:var(--hx-milk)}

 .hx-hero{min-height:0;display:block}
 .hx-hero__bg{position:relative;height:300px;z-index:0}
 .hx-hero:before{display:none}
 .hx-hero__in{padding-top:26px;padding-bottom:22px}
 .hx-hero h1{font-size:48px;letter-spacing:-1.8px;margin:12px 0 14px}
 .hx-lead{font-size:16px}
 .hx-acts{flex-direction:column;margin-top:24px}
 .hx-facts{position:static;padding-bottom:26px}
 .hx-facts .lp-container{gap:24px}
 .hx-facts b{font-size:20px}
 .hx-offer__in{flex-wrap:wrap;gap:8px 12px;padding-top:18px;padding-bottom:18px}
 .hx-offer .hx-btn{margin-left:0}
 .hx-sec{padding-top:56px}
 .hx-sec__h{grid-template-columns:1fr;gap:8px}.hx-sec__h>p{justify-self:start;font-size:15px}
 .hx-h2{font-size:29px;letter-spacing:-.5px}
 .hx-row{grid-template-columns:96px 1fr 24px;gap:4px 14px;padding:14px 0}
 .hx-row i{display:none}
 .hx-row__im{grid-column:1;grid-row:1/3;height:96px;border-radius:12px}
 .hx-row b{grid-column:2;font-size:20px;letter-spacing:-.3px}
 .hx-row__d{grid-column:2}.hx-row__d span{font-size:13px;line-height:1.35}.hx-row__d em{font-size:13px}
 .hx-row__ar{grid-column:3;grid-row:1/3;width:24px;height:24px;border:0}
 .hx-row--on,.hx-row:hover{margin:0 -12px;padding:14px 12px;border-radius:16px}
 .hx-rows:hover .hx-row--on:not(:hover){padding:14px 0}
 .hx-quick{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin-right:-20px;padding-right:20px}
 .hx-quick a{flex:none}
 .hx-duo{grid-template-columns:1fr;margin-top:48px;gap:14px}
 .hx-duo>div{padding:28px 22px;min-height:0;border-radius:20px}
 .hx-duo .hx-h2{font-size:26px}
 .hx-st{grid-template-columns:1fr;border:0}.hx-st li,.hx-st li+li{padding:18px 0;border:0;border-bottom:1px solid var(--hx-line)}
 .hx-wy{grid-template-columns:1fr 1fr;gap:10px}.hx-wy div{padding:16px}
}
@media (max-width:420px){.hx-hero h1{font-size:44px}.hx-wy{grid-template-columns:1fr}.hx-facts .lp-container{gap:18px;font-size:12.5px}}

/* Twelve departments remain reachable on short desktop screens. */
@media(min-width:981px){.hx-mm__box{max-height:calc(100dvh - 100px)}.hx-mm__l,.hx-mm__c{overflow-y:auto}.hx__dirs a,.hx__dirs button{flex-shrink:0}}

/* Extra catalogue departments remain reachable within the viewport. */
.hx__dirs .lp-container{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
