/* Acasă — Macheta-acasa (1440) și Macheta-acasa-telefon (390). Doar pe ruta „home” (inc/mod-home.php). Prefix .hm-.
   Componentele comune vin din plac-ds.css (.ds-btn, .ds-chip, .ds-badge, .ds-price, cardul .dc). Telefon: ≤ 1023 px. */
body.plac-route-home{background:#fff}
body.plac-route-home main.hm{display:flex;flex-direction:column;gap:64px;padding-top:28px;padding-bottom:72px;color:var(--ds-ink);font-size:15px;line-height:22px}
.hm a{text-decoration:none}
.hm-k{color:var(--ds-muted)}
.hm-h2{margin:0;font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.015em}
.hm-h3{margin:0;font-size:24px;line-height:30px;font-weight:700;letter-spacing:-.01em}
.hm-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.hm-more{display:inline-flex;align-items:center;gap:4px;color:var(--ds-blue);font-weight:600;font-size:15px;white-space:nowrap}
@media (hover:hover){.hm-more:hover{text-decoration:underline;text-underline-offset:3px}}
.hm-sec{display:flex;flex-direction:column;gap:20px;min-width:0}
.hm-phone{display:none}
.hm-ic{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:var(--ds-blue-50);color:var(--ds-blue)}
.hm-ic .icon{width:24px;height:24px}
.hm-actions{display:flex;flex-wrap:wrap;gap:12px}
.hm-thumb{display:grid;place-items:center;flex:none;width:56px;height:56px;overflow:hidden;border-radius:14px;background:var(--ds-panel)}
.hm-thumb img{max-width:84%;max-height:84%;object-fit:contain;mix-blend-mode:multiply}
.hm-min30{margin:-4px 0 0;color:var(--ds-muted);font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}

/* ---------- Bannere ---------- */
.hm-top{display:grid;grid-template-columns:2fr 1fr;gap:20px;height:440px}
.hm-top--solo{grid-template-columns:1fr}
.hm-hero{position:relative;min-width:0;overflow:hidden;border-radius:28px;background:var(--ds-blue);color:#fff}
.hm-hero-track{display:flex;align-items:stretch;height:100%;transition:transform var(--ds-slow) var(--ds-ease);touch-action:pan-y}
/* calculator: clicul pe punct/săgeată (mouse-ul sau focusul e pe carusel) = 280 ms, curba de sertar; rotirea automată
   (rulează doar fără mouse deasupra și fără focus, vezi inc/mod-home.php) = 600 ms, lină, ca să nu „biciuie” */
@media (hover:hover){.hm-hero:hover .hm-hero-track{transition-timing-function:var(--ease-drawer)}}
.hm-hero:focus-within .hm-hero-track{transition-timing-function:var(--ease-drawer)}
@media (hover:hover){.hm-hero:not(:hover):not(:focus-within) .hm-hero-track{transition-duration:600ms;transition-timing-function:var(--ease-move)}}
@media (hover:none){.hm-hero:not(:focus-within) .hm-hero-track{transition-duration:600ms;transition-timing-function:var(--ease-move)}}
@media (min-width:1024px) and (prefers-reduced-motion:no-preference){
  /* textul slide-ului nou urcă puțin după ce slide-ul pornește (doar textul, nu imaginea) */
  .hm-slide .hm-slide-copy{transition:opacity var(--dur-3) var(--ease-out) 60ms,transform var(--dur-3) var(--ease-out) 60ms}
  .hm-slide[inert] .hm-slide-copy{opacity:0;transform:translateY(8px);transition-duration:var(--dur-2);transition-delay:0s}
}
.hm-slide{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:28px;flex:0 0 100%;height:auto;min-height:100%;padding:28px 28px 28px 0;background:radial-gradient(circle at 75% 55%,#1a4aa8 0,var(--ds-blue) 38%)}
.hm-slide--text{grid-template-columns:1fr;padding:0;background:var(--ds-blue)}
.hm-slide-copy{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:20px 0 24px 48px;min-width:0}
.hm-slide--text .hm-slide-copy{max-width:760px;padding-right:48px}
.hm-kicker{margin:0;color:var(--ds-yellow);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.hm-slide-title{margin:0;color:#fff;font-size:36px;line-height:41px;font-weight:700;letter-spacing:-.022em;text-wrap:balance}
/* titlurile lungi micșorează fontul, nu se taie cu „…” (clasa vine din șablon: peste 52 de caractere „long”, peste 64 „xl”) */
.hm-slide-title--long{font-size:31px;line-height:36px}
.hm-slide-title--xl{font-size:27px;line-height:32px}
.hm-slide-title mark{background:none;color:var(--ds-yellow)}
.hm-slide-text{display:-webkit-box;overflow:hidden;margin:0;font-size:16px;line-height:23px;opacity:.85;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hm-slide-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:4px 0 0;font-size:16px}
.hm-slide-price>span:first-child{opacity:.85}
.hm-slide-price .ds-price{color:#fff;font-size:34px;line-height:38px;font-weight:700;letter-spacing:-.015em}
.hm-slide-price .ds-price small{font-size:.55em;font-weight:600}
.hm-slide-rate{align-self:center;padding:3px 10px;border:1px solid rgb(255 255 255 / .35);border-radius:999px;font-size:13px;line-height:18px;font-weight:600}
.hm-slide-btn{align-self:flex-start;margin-top:8px}
.hm-slide-img{position:relative;display:grid;place-items:center;min-width:0;padding:24px;overflow:hidden;border-radius:24px;background:#fff}
.hm-slide-img img{position:absolute;inset:24px;width:calc(100% - 48px);height:calc(100% - 48px);object-fit:contain}
.hm-dots{position:absolute;left:48px;bottom:12px;display:flex;gap:0}
.hm-dots button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hm-dots button:focus-visible{outline:2px solid #fff;outline-offset:-3px}
/* pilula are mereu 22 px; bulina e aceeași pilulă decupată la 6 px (scaleX i-ar turti capetele rotunde) */
.hm-dots button::before{content:"";width:22px;height:6px;border-radius:999px;background:#fff;opacity:.4;clip-path:inset(0 8px round 3px);transition:clip-path var(--ds-base) var(--ds-ease),opacity var(--ds-base) var(--ds-ease)}
.hm-dots button[aria-current=true]::before{clip-path:inset(0 round 3px);opacity:1}
.hm-tiles{display:grid;grid-template-rows:1fr 1fr;gap:20px;min-width:0}
.hm-tile{display:grid;grid-template-columns:1fr 120px;align-items:center;gap:10px;padding:26px;border-radius:28px;background:var(--ds-panel);color:var(--ds-ink);transition:transform var(--ds-base) var(--ds-ease)}
.hm-tile-rates{position:relative}
.hm-tile-rates svg{width:96px;height:96px}
.hm-rates-plate{position:absolute;right:-6px;bottom:6px;padding:4px 9px;border-radius:999px;background:var(--ds-ink);color:#fff;font-size:12px;line-height:16px;white-space:nowrap;font-variant-numeric:tabular-nums;box-shadow:var(--ds-sh-1)}
.hm-tile-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.hm-tile-copy b{font-size:21px;line-height:26px;letter-spacing:-.01em}
.hm-tile-kicker{color:var(--ds-warn);font-size:13px;font-weight:600;text-transform:uppercase}
.hm-tile-text{color:var(--ds-muted);font-size:14px;line-height:20px}
.hm-tile-img{display:grid;place-items:center;height:120px;overflow:hidden;border-radius:18px;background:#fff}
.hm-tile-img img{width:100%;height:100%;object-fit:cover}
/* Banner cu ilustrație (28.10, Maxim): fără cutie albă — ilustrația ocupă toată partea dreaptă, întreagă, contopită cu fundalul bannerului */
.hm-tile:not(.hm-tile--rates){grid-template-columns:1fr 46%;gap:0;padding-right:0;align-items:stretch;overflow:hidden}
.hm-tile:not(.hm-tile--rates) .hm-tile-copy{padding-right:12px;align-self:center}
.hm-tile:not(.hm-tile--rates) .hm-tile-img{height:auto;min-height:150px;margin:-26px 0;border-radius:0;background:transparent;place-items:stretch}
.hm-tile:not(.hm-tile--rates) .hm-tile-img img{object-fit:contain;object-position:right center;-webkit-mask-image:linear-gradient(to right,transparent,#000 18%);mask-image:linear-gradient(to right,transparent,#000 18%)}
.hm-tile-img.hm-tile-rates svg{max-width:82%;max-height:82%}
@media (hover:hover){.hm-tile:hover .hm-more{text-decoration:underline;text-underline-offset:3px}}

/* ---------- Ce lucrare ai? ---------- */
.hm-jobs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.hm-job{display:flex;flex-direction:column;gap:14px;padding:20px;border:1px solid var(--ds-line-2);border-radius:24px;background:#fff;color:var(--ds-ink);transition:border-color var(--ds-base) var(--ds-ease),transform var(--ds-base) var(--ds-ease)}
.hm-job b{font-size:16px;line-height:21px}
.hm-job-sub{color:var(--ds-muted);font-size:13px;line-height:18px}
@media (hover:hover){.hm-job:hover{border-color:var(--ds-line-strong)}}

/* ---------- Departamente ---------- */
/* Departamente ca capsule cu icoană (28.10, Maxim: varianta a) — același limbaj ca mega-meniul și „Ce lucrare ai?” */
.hm-depts{display:flex;flex-wrap:wrap;gap:10px}
.hm-dept{display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 18px 0 8px;border:1px solid var(--ds-line-2);border-radius:999px;background:#fff;color:var(--ds-ink);transition:transform var(--ds-fast) var(--ds-ease),border-color var(--ds-base) var(--ds-ease),background-color var(--ds-base) var(--ds-ease)}
.hm-dept-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:var(--ds-blue-50,#EEF2FA);color:var(--ds-blue)}
.hm-dept-ic .icon{width:20px;height:20px}
.hm-dept b{font-size:15px;line-height:20px;font-weight:600;white-space:nowrap}
.hm-dept small{font-size:12px;color:var(--ds-muted);font-variant-numeric:tabular-nums}
.hm-dept-ic{transition:background-color var(--ds-base) var(--ds-ease),color var(--ds-base) var(--ds-ease)}
@media (hover:hover){.hm-dept:hover{border-color:var(--ds-blue);background:var(--ds-panel)}.hm-dept:hover .hm-dept-ic{background:var(--ds-blue);color:#fff}}
@media (max-width:1023px){.hm-depts{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 4px}.hm-depts::-webkit-scrollbar{display:none}.hm-dept{flex:none;height:48px}.hm-dept-ic{width:34px;height:34px}.hm-dept small{display:none}}

/* ---------- Recomandat ---------- */
.hm-feat{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:40px;padding:36px;border-radius:32px;background:var(--ds-panel)}
.hm-feat-img{position:relative;min-height:380px;overflow:hidden;border-radius:24px;background:#fff}
.hm-feat-img img{position:absolute;inset:24px;width:calc(100% - 48px);height:calc(100% - 48px);object-fit:contain}
.hm-feat-copy{align-self:center}
.hm-feat-img .dc-fav,.hm-feat-img .dc-cmp{border:1px solid var(--ds-line-2)}
.hm-feat-img .dc-cmp[aria-pressed=true]{border-color:var(--ds-blue)}
.hm-feat-sale{position:absolute;top:10px;left:10px}
.hm-feat-copy{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.hm-feat-brand{color:var(--ds-muted);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.hm-feat-title{margin:0;font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.02em}
.hm-feat-title a{display:-webkit-box;overflow:hidden;color:var(--ds-ink);-webkit-line-clamp:3;-webkit-box-orient:vertical}
@media (hover:hover){.hm-feat-title a:hover{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}}
.hm-feat-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;font-size:15px}
.hm-feat-list li{display:flex;gap:10px}
.hm-feat-list .icon{width:18px;height:18px;margin-top:2px;color:var(--ds-green);stroke-width:2.5}
.hm-feat-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-top:6px}
.hm-feat-price .ds-price{font-size:40px;line-height:1;font-weight:700;letter-spacing:-.01em}
.hm-feat-price .ds-price small{font-size:.55em;font-weight:600}
.hm-feat-price .ds-price--sale{color:var(--ds-red)}
.hm-feat-rate{color:var(--ds-blue);font-weight:600}
.hm-feat-stock{margin:0;color:var(--ds-green);font-size:14px;font-weight:500}
.hm-feat-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.hm-feat-actions .added_to_cart{display:none}

/* ---------- Cele mai cumpărate / Reduceri (cardul D) ---------- */
.hm-best .hm-head{flex-wrap:wrap}
.hm-best .hm-h2{margin-right:auto}
.hm-tabs{display:flex;gap:8px}
.hm-tabs .ds-chip{height:38px}
.hm-tabs .ds-chip[aria-selected=true]{border-color:var(--ds-ink);background:var(--ds-ink);color:#fff}
.hm-best .hm-head>.hm-more{margin-left:2px}
.hm-grid5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}/* liniile dintre carduri vin din plac-ds (28.10) */
.hm-grid5[hidden]{display:none}
.hm-grid5[role=tabpanel]:not([hidden]){animation:plac-in-up var(--dur-3) var(--ease-out)}

/* ---------- Sfat + generator ---------- */
.hm-help{display:grid;grid-template-columns:5fr 7fr;gap:20px}
.hm-help--solo{grid-template-columns:1fr}
.hm-advice,.hm-gen{margin:0;padding:32px;border-radius:32px}
.hm-advice p,.hm-gen p{margin:0}
.hm-advice{display:flex;border:1px solid var(--ds-line-2);background:#fff;box-shadow:var(--ds-sh-1)}
.hm-advice-copy{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:14px;min-width:0}
.hm-advice-art{width:96px;height:96px;margin:0 0 4px -8px}
.hm-advice-art svg{width:100%;height:100%}
.hm-advice-why{color:var(--ds-ink);font-size:16px;line-height:24px;font-weight:600}
.hm-advice-acts{display:flex;flex-wrap:wrap;gap:12px;padding-top:10px}
.hm-advice-acts .ds-btn{height:52px}
.hm-write .icon{width:18px;height:18px}

.hm-gen{display:flex;flex-direction:column;gap:20px;border:0;background:var(--ds-panel)}
.hm-gen-head{display:flex;flex-direction:column;gap:6px}
.hm-gen-body{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:stretch}
.hm-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:10px;border:0;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px var(--ds-line-2)}
.hm-fuse{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px 12px;border:1px solid var(--ds-line-2);border-radius:14px;background:#fff;text-align:center;cursor:pointer;transition:border-color var(--ds-base) var(--ds-ease)}
.hm-fuse input{position:absolute;opacity:0;pointer-events:none}
.hm-fuse b{margin-top:6px;color:var(--ds-muted);font-size:14px;line-height:18px;font-weight:600;transition:color var(--ds-base) var(--ds-ease)}
.hm-fuse small{color:var(--ds-muted);font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.hm-fuse .hm-fuse-start{margin-top:-4px;font-size:12px}
/* Întrerupătorul: bila urcă la „pornit”, carcasa se face albastră. */
.hm-sw{position:relative;display:block;width:24px;height:40px;border-radius:999px;background:#E9EDF3;box-shadow:inset 0 1px 2px rgba(16,24,40,.12);transition:background-color var(--ds-base) var(--ds-ease)}
.hm-sw span{position:absolute;left:3px;top:19px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.25);transition:transform var(--ds-base) var(--ds-ease)}
@media (hover:hover){.hm-fuse:hover{border-color:var(--ds-line-strong)}}
.hm-fuse:has(input:checked){border-color:var(--ds-blue)}
.hm-fuse:has(input:checked) b{color:var(--ds-ink)}
.hm-fuse:has(input:checked) .hm-sw{background:var(--ds-blue)}
.hm-fuse:has(input:checked) .hm-sw span{transform:translateY(-16px)}
/* Inelul rămâne în celulă: tabla generatorului are spații înguste între siguranțe. */
.hm-fuse:has(input:focus-visible){outline:3px solid var(--ds-focus);outline-offset:-3px}
.hm-meter{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:20px 16px 16px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px var(--ds-line-2);text-align:center}
.hm-gauge{width:100%;max-width:168px;overflow:visible}
.hm-gauge path{fill:none;stroke-width:12}
.hm-g-tick{stroke:var(--ds-line-strong);stroke-width:2!important;stroke-linecap:round}
.hm-g-bg{stroke:var(--ds-line-2)}
.hm-g-peak{stroke:var(--ds-yellow);stroke-dasharray:0 100;transition:stroke-dasharray var(--ds-slow) var(--ds-ease)}
.hm-g-run{stroke:var(--ds-blue);stroke-dasharray:0 100;transition:stroke-dasharray var(--ds-slow) var(--ds-ease)}
.hm-meter-k{margin-top:6px;color:var(--ds-muted);font-size:13px}
.hm-need{font-size:15px;font-weight:600}
.hm-need b{font-size:40px;line-height:44px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.hm-legend{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:8px;padding-top:10px;border-top:1px solid var(--ds-line-2);color:var(--ds-muted);font-size:12px;line-height:16px}
.hm-legend>span{display:inline-flex;align-items:center;gap:8px}
.hm-legend b{color:var(--ds-ink);font-weight:600}
.hm-legend i{width:14px;height:4px;border-radius:2px}
.hm-l-run{background:var(--ds-blue)}
.hm-l-peak{background:var(--ds-yellow)}
.hm-gen-go{align-self:flex-start}
.hm-gen-go .icon{width:18px;height:18px}
@media (prefers-reduced-motion:reduce){.hm-g-peak,.hm-g-run,.hm-sw span{transition:none}}

/* Sub primul ecran: browserul poate amâna style/layout/paint, iar mărimea de rezervă
   păstrează poziția documentului până când secțiunea intră în viewport. */
@media (max-width:1023px){@supports (content-visibility:auto){
  .hm-feat,.hm-best,.hm-help,.hm-mine,.hm-b2b,.hm-sec.prose{content-visibility:auto;contain-intrinsic-size:auto 560px}
  .hm-sec:has(.hm-grid5),.hm-sec:has(.hm-brands){content-visibility:auto;contain-intrinsic-size:auto 500px}
}}

/* ---------- Coșul lăsat + Văzute recent ---------- */
.hm-mine{display:flex;flex-direction:column;gap:24px}
.hm-mine[hidden],.hm-cart[hidden],.hm-recent[hidden]{display:none}
.hm-cart{display:flex;align-items:center;gap:18px;padding:18px 24px;border:1.5px dashed var(--ds-line-strong);border-radius:24px}
.hm-cart-t{font-size:17px}
.hm-cart-imgs{display:flex;gap:10px}
.hm-cart-what{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Văzute recent (28.10, Maxim: „se dezbate din stil”): același titlu ca rafturile, mini-carduri despărțite de liniile care se sting */
.hm-recent{display:flex;flex-direction:column;gap:0}
.hm-recent-t{margin:0}
.hm-recent-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;clip-path:inset(0 0 0 1px)}
.hm-rec{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px;border:0;border-radius:0;color:var(--ds-ink);transition:background-color var(--ds-base) var(--ds-ease)}
.hm-rec::before{content:"";position:absolute;top:0;bottom:0;left:0;width:1px;background:linear-gradient(to bottom,transparent,rgba(16,24,39,.09) 18%,rgba(16,24,39,.09) 82%,transparent);pointer-events:none}
@media (hover:hover){.hm-rec:hover{background:var(--ds-panel)}}
.hm-rec-img{display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border-radius:16px;background:var(--ds-panel)}
.hm-rec-img img{width:78%;height:78%;object-fit:contain;mix-blend-mode:multiply;transition:transform var(--ds-slow) var(--ds-ease)}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.hm-rec:hover .hm-rec-img img{transform:scale(1.04)}}
.hm-rec .ds-price{margin-top:4px;font-size:17px}
.hm-rec-n{display:-webkit-box;overflow:hidden;color:var(--ds-text);font-size:13px;line-height:17px;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ---------- Mărci ---------- */
/* Mărcile: bandă continuă. Pista = lista de 2 ori, alunecă -50% (exact o listă), deci bucla nu sare.
   Plăcile au lățime fixă (--w + --g), așa că durata = n·(w+g)/viteză, fără JS.
   ponytail: 168+14 și 132+10 din durate repetă --w/--g (calc nu împarte px la px); le schimbi împreună. */
.hm-brands{--w:168px;--g:0px;overflow-x:auto;scrollbar-width:none;padding-block:0;background:#fff;-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}/* capetele se estompează și când banda stă pe loc *//* varianta B (28.10): bandă continuă cu linii între logo-uri */
.hm-brands::-webkit-scrollbar{display:none}
.hm-brands-track{display:flex;width:max-content}
.hm-brands-set{display:flex;margin:0;padding:0;list-style:none}
.hm-brands-set li{flex:none;width:var(--w);margin-right:var(--g)}
.hm-brand{display:flex;align-items:center;justify-content:center;height:88px;padding:0 16px;position:relative;border:0;border-radius:0;background:#fff;color:var(--ds-text);transition:background-color var(--ds-base) var(--ds-ease)}
.hm-brand b{font-size:17px;letter-spacing:-.01em;text-align:center;line-height:21px}
/* zonă fixă: late → mai joase, pătrate → mai înalte (înălțime optică egală) */
.hm-brands .hm-brand img{--logo-area:2900;width:auto;height:auto;max-width:128px;max-height:46px;object-fit:contain;transition:transform var(--ds-base) var(--ds-ease)}
@media (hover:hover){.hm-brand:hover{background:var(--ds-panel)}}
.hm-brand::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(to bottom,transparent,rgba(16,24,39,.09) 25%,rgba(16,24,39,.09) 75%,transparent)}/* linie care se stinge spre capete */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.hm-brand:hover img{transform:scale(1.05)}}
@media (prefers-reduced-motion:no-preference){
  .hm-brands.is-run{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
  .hm-brands.is-run .hm-brands-track{padding-inline:0;animation:hm-marquee calc(var(--n) * (168 + 0) / var(--speed) * 1s) linear infinite}
  .hm-brands.is-run:focus-within .hm-brands-track{animation-play-state:paused}
  @media (hover:hover){.hm-brands.is-run:hover .hm-brands-track{animation-play-state:paused}}
}
@media (prefers-reduced-motion:reduce){.hm-brands-set[aria-hidden]{display:none}}
@keyframes hm-marquee{to{transform:translateX(-50%)}}

/* ---------- Pentru firme ---------- */
/* Pentru firme (28.10, Maxim: „arată sărac”): kicker, puncte cu icoane în plăcuțe, ilustrație 3D pe albastru */
.hm-b2b{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 400px;align-items:center;gap:24px;min-height:300px;padding:44px 28px 44px 48px;border-radius:32px;background:var(--ds-blue);color:#fff;overflow:hidden}
.hm-b2b:not(.has-img){grid-template-columns:1fr;padding-right:48px}
.hm-b2b-copy{position:relative;z-index:1;max-width:620px}
.hm-b2b-k{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px 0 10px;border-radius:999px;background:rgb(255 255 255 / .12);font-size:13px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.hm-b2b-k .icon{width:15px;height:15px;color:var(--ds-yellow,#FCD116)}
.hm-b2b-t{margin:16px 0 20px;color:#fff;font-size:34px;line-height:40px;font-weight:700;letter-spacing:-.02em}
.hm-b2b-pts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px;padding:0;list-style:none}
.hm-b2b-pts li{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 16px 0 6px;border:1px solid rgb(255 255 255 / .16);border-radius:999px;background:rgb(255 255 255 / .08);font-size:15px;font-weight:500}
.hm-b2b-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:999px;background:#fff;color:var(--ds-blue)}
.hm-b2b-ic .icon{width:17px;height:17px}
.hm-b2b .hm-actions{display:flex;gap:10px}
.hm-b2b .ds-btn{height:52px}
.hm-b2b-offer{border-color:var(--ds-yellow,#FCD116);background:var(--ds-yellow,#FCD116);color:var(--ds-ink)}
@media (hover:hover){.hm-b2b-offer:hover{filter:brightness(.96)}}
.hm-b2b-img{align-self:stretch;display:grid;place-items:end center;margin:-44px 0}
.hm-b2b-img img{display:block;width:100%;max-width:400px;height:auto;object-fit:contain;-webkit-mask-image:linear-gradient(to right,transparent,#000 14%);mask-image:linear-gradient(to right,transparent,#000 14%)}
.hm-b2b :focus-visible{outline-color:#fff}
/* culorile butoanelor bat regulile vechi pentru linkurile din <main> */
body.plac-route-home .hm a.ds-btn--secondary{color:#fff}
body.plac-route-home .hm a.ds-btn--primary,body.plac-route-home .hm a.ds-btn--outline,body.plac-route-home .hm a.hm-b2b-offer{color:var(--ds-ink)}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  :is(.hm-job,.hm-tile,.hm-dept):hover{transform:translateY(-2px)}
}
:is(.hm-job,.hm-tile,.hm-dept):active{transform:scale(.97);transition-duration:var(--dur-press)}

/* ---------- Calculator îngust ---------- */
@media (max-width:1279px) and (min-width:1024px){
  .hm-slide-title{font-size:32px;line-height:37px}
  .hm-slide-title--long{font-size:28px;line-height:33px}
  .hm-slide-title--xl{font-size:25px;line-height:30px}
  .hm-help{grid-template-columns:1fr}
  .hm-jobs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hm-recent-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ---------- Telefon (≤ 1023) ---------- */
@media (max-width:1023px){
  body.plac-route-home main.hm{gap:36px;padding-top:16px;padding-bottom:48px}
  .hm-desk{display:none!important}
  .hm-phone{display:revert}
  .ds-btn.hm-phone,.ds-badge.hm-phone{display:inline-flex}
  .hm-h2{font-size:21px;line-height:26px}
  .hm-h3{font-size:19px;line-height:24px}
  .hm-more{font-size:14px;padding-block:11px;margin-block:-11px}/* zonă de atingere 44 px, aspect neschimbat */
  .hm-head{align-items:baseline}
  /* lista glisantă de la margine la margine */
  .hm-depts,.hm-tabs,.hm-scroll{display:flex;gap:10px;margin-inline:-16px;padding-inline:16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;scroll-padding-inline:16px;overscroll-behavior-x:contain}/* glisarea la capăt nu mai declanșează „Înapoi” în browser */
  :is(.hm-depts,.hm-tabs,.hm-scroll)::-webkit-scrollbar{display:none}
  :is(.hm-depts,.hm-tabs)>*{scroll-snap-align:start}

  .hm-top{display:block;height:auto}
  /* bannerele 2 și 3: sub bannerul 1, pe un rând, doar titlu și imagine */
  .hm-tiles{grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
  .hm-tile,.hm-tile:not(.hm-tile--rates){display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:10px;padding:14px;border-radius:20px;overflow:hidden}
  .hm-tile-kicker,.hm-tile-text,.hm-tile .hm-more{display:none}
  .hm-tile:not(.hm-tile--rates) .hm-tile-copy{padding:0;align-self:auto}
  .hm-tile-copy b{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:15px;line-height:20px}
  .hm-tile .hm-tile-img,.hm-tile:not(.hm-tile--rates) .hm-tile-img{display:grid;height:100px;min-height:0;margin:0;border-radius:12px;background:#fff;place-items:center}
  .hm-tile:not(.hm-tile--rates) .hm-tile-img img{object-fit:contain;object-position:center;-webkit-mask-image:none;mask-image:none}
  .hm-tile .hm-tile-img img{max-height:100px}/* pe telefoanele late imaginea ar ieși din cadru și s-ar tăia jos */
  .hm-tile:not(.hm-tile--rates) .hm-tile-img{background:transparent}/* pozele au fundal deschis: cadrul alb lăsa dungi pe laterale */
  .hm-hero{border-radius:24px}
  .hm-slide,.hm-slide--text{display:flex;flex-direction:column;gap:12px;padding:22px 20px 20px;background:var(--ds-blue)}
  .hm-slide-img img{inset:12px;width:calc(100% - 24px);height:calc(100% - 24px)}
  .hm-slide-copy{display:contents}
  .hm-kicker{order:0;font-size:12px}
  .hm-slide-title,.hm-slide-title--long,.hm-slide-title--xl{order:1;font-size:24px;line-height:29px;letter-spacing:-.02em}
  .hm-slide-text{order:2;font-size:15px;line-height:21px}
  /* slide-urile au aceeași înălțime (a celui mai înalt); poza ia spațiul rămas, deci nu rămâne albastru gol sub buton */
  .hm-slide-img{order:3;flex:1 0 170px;width:auto;height:auto;padding:0;border-radius:18px}
  .hm-slide-price{order:4;margin:0;font-size:15px}
  .hm-slide-price .ds-price{font-size:28px;line-height:32px}
  .hm-slide-btn{order:5;align-self:stretch;margin-top:0}
  .hm-dots{position:static;justify-content:center;padding:0 0 2px;margin-top:-16px}
  .hm-dots button{width:44px;height:44px}/* bulina rămâne de 6 px; zona e de 44 */

  .hm-jobs{grid-template-columns:1fr 1fr;gap:10px}
  .hm-job{gap:10px;padding:14px;border-radius:20px}
  .hm-job b{font-size:15px;line-height:20px}
  .hm-job-sub{display:none}
  .hm-ic{width:40px;height:40px}
  .hm-ic .icon{width:20px;height:20px}


  .hm-feat{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px;border-radius:24px}
  .hm-feat-img{height:220px;min-height:0;border-radius:16px}
  .hm-feat-img img{inset:12px;width:calc(100% - 24px);height:calc(100% - 24px)}
  .hm-feat-img .hm-phone{position:absolute;top:10px;left:10px}
  .hm-feat-sale{top:44px}
  .hm-feat-copy{gap:10px}
  .hm-feat-brand{display:none}
  .hm-feat-title{font-size:18px;line-height:23px;letter-spacing:0}
  .hm-feat-list{font-size:14px}
  .hm-feat-list li:nth-child(n+2){display:none}
  .hm-feat-price{margin-top:0}
  .hm-feat-price .ds-price{font-size:30px}
  .hm-feat-stock{font-size:13px}
  .hm-feat-actions,.hm-feat-actions .ds-btn{width:100%}

  .hm-best .hm-head{display:grid;grid-template-columns:1fr auto;row-gap:14px}
  .hm-tabs{grid-column:1/-1;grid-row:2;gap:8px}
  .hm-tabs .ds-chip{flex:none;height:44px;padding:0 14px}
  .hm-grid5{grid-template-columns:1fr 1fr}
  .hm-best .hm-grid5>.dc:nth-child(n+5){display:none}
  .hm-scroll{gap:12px}
  .hm-scroll>.dc{flex:0 0 160px;scroll-snap-align:start}
  .hm-scroll>.dc .dc-img{border-radius:16px}

  .hm-help{display:block}
  .hm-advice{padding:20px;border-radius:24px}
  .hm-advice-copy{gap:10px}
  .hm-advice-art{width:56px;height:56px}
  .hm-advice-acts{align-self:stretch;flex-direction:column;gap:10px;padding-top:6px}
  .hm-advice-acts .ds-btn{width:100%;height:48px}

  .hm-cart{gap:10px;padding:12px;border-radius:18px}
  .hm-cart-t{order:1;flex:1;font-size:14px;font-weight:600}
  .hm-cart-imgs{order:0}
  .hm-cart-imgs .hm-thumb{width:44px;height:44px;border-radius:10px}
  .hm-cart-imgs .hm-thumb:nth-child(n+2){display:none}
  .hm-cart-what{display:none}
  .hm-cart-go{order:2;height:44px;padding:0 14px;font-size:14px}
  .hm-recent{display:none!important}

  /* telefon: plăci mai mici, banda la 3/4 din viteză (durata calculată pe 132+10) */
  .hm-brands{--w:132px;--g:10px;margin-inline:-16px}
  .hm-brands-track{padding-inline:16px}
  .hm-brand{height:64px;padding:0 14px;border-radius:18px}
  .hm-brand b{font-size:15px}
  .hm-brands .hm-brand img{--logo-area:1700;max-width:100px;max-height:36px}
  .hm-brands{-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
  .hm-brands.is-run .hm-brands-track{animation-duration:calc(var(--n) * (132 + 0) / (var(--speed) * .75) * 1s)}
  .hm-tile-rates{display:none}

  .hm-b2b{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:0;padding:22px 20px;border-radius:24px}
  .hm-b2b-t{margin:12px 0 14px;font-size:23px;line-height:28px}
  .hm-b2b-pts{gap:8px;margin-bottom:18px}
  .hm-b2b-pts li{height:40px;font-size:14px}
  .hm-b2b-ic{width:30px;height:30px}
  .hm-b2b-img{order:-1;margin:-22px -20px 6px}
  .hm-b2b-img img{max-width:100%;max-height:200px;object-fit:contain;-webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent);mask-image:linear-gradient(to bottom,#000 70%,transparent)}
  .hm-b2b .hm-actions .ds-btn{width:100%;height:48px}
}

/* Caruselul care urmărește degetul: banda devine derulare nativă cu scroll-snap (ca galeria produsului).
   Se aplică doar când scriptul caruselului pune .is-snap pe bandă (cerere către inc/mod-home.php, faza 3). */
.hm-hero-track.is-snap{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;transform:none!important;transition:none;touch-action:auto}
.hm-hero-track.is-snap::-webkit-scrollbar{display:none}
.hm-hero-track.is-snap>.hm-slide{scroll-snap-align:start;scroll-snap-stop:always}

/* ---------- Tabletă în portret (700–1023): bannerul pe două coloane, mai multe plăci pe rând ---------- */
@media (min-width:700px) and (max-width:1023px){
  .hm-slide,.hm-slide--text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;min-height:340px;padding:28px}
  .hm-slide--text{grid-template-columns:1fr}
  .hm-slide-copy{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:0}
  .hm-slide-img{order:0;height:auto;min-height:280px}
  .hm-slide-btn{align-self:flex-start}
  .hm-jobs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hm-grid5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hm-best .hm-grid5>.dc:nth-child(n+5){display:flex}
  .hm-best .hm-grid5>.dc:nth-child(n+7){display:none}
}