.hd{--hd-bg:#141416;--hd-panel:#1b1b1e;--hd-line:#2a2a2e;--hd-text:#f2f2f2;--hd-muted:#a8a8ae;--hd-yellow:#ffd91a;--hd-ink:#16130a;
  background:var(--hd-bg);color:var(--hd-text);border-bottom:1px solid var(--hd-line);font-family:'Montserrat',system-ui,sans-serif;position:relative;z-index:50}
.hd *{box-sizing:border-box}
.hd img{display:block}
.hd a{color:inherit;text-decoration:none}
.hd button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.hd :focus-visible{outline:2px solid var(--hd-yellow);outline-offset:2px}
.hd-wrap{max-width:1680px;margin:0 auto;padding:0 32px}

/* SVG-иконки: размер задаётся здесь, цвет берётся от текста (currentColor) */
.ic{flex-shrink:0;width:1em;height:1em;font-size:22px}
.ic-img{width:1em;height:1em;font-size:22px;object-fit:contain}

/* верхняя строка */
.hd-top{display:flex;justify-content:space-between;align-items:center;height:56px;font-size:14px}
.hd-chips{display:flex;gap:10px}
.hd .hd-chip{display:flex;align-items:center;gap:7px;height:30px;padding:0 13px;border-radius:15px;background:#26262a;font-size:13px;font-weight:700;
  transition:background .2s,color .2s,border-color .2s}
.hd .hd-chip:hover{color:var(--hd-yellow)}
.hd .hd-chip--city{background:none;border:1px solid var(--hd-line)}
.hd .hd-chip--city:hover{border-color:var(--hd-yellow)}
.hd-chip .ic{font-size:15px}
.hd-chip--city .ic-pin{color:var(--hd-yellow)}
.hd-chip--city .ic-chevron-down{font-size:14px;color:var(--hd-muted)}
.hd-links{display:flex;align-items:center;gap:34px;color:var(--hd-muted);font-weight:500}
.hd-links__item{transition:color .2s}
.hd-links__item:hover{color:var(--hd-text)}
.hd .hd-help{display:flex;align-items:center;gap:8px;color:var(--hd-yellow);font-weight:700}
.hd-help .ic{font-size:18px}
.hd-help:hover{filter:brightness(1.15)}

/* выбор города */
.hd-city{position:relative}
.hd-chip--city[aria-expanded="true"]{border-color:var(--hd-yellow)}
.hd-chip--city .ic-chevron-down{transition:transform .2s}
.hd-chip--city[aria-expanded="true"] .ic-chevron-down{transform:rotate(180deg)}
.hd-citylist{position:absolute;top:calc(100% + 8px);left:0;z-index:70;width:250px;padding:8px;
  background:var(--hd-panel);border:1px solid var(--hd-line);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.55);animation:hd-drop .18s ease both}
.hd-citylist[hidden]{display:none}
.hd-citylist__head{padding:6px 10px 8px;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--hd-muted)}
.hd-citylist__items{display:flex;flex-direction:column;max-height:300px;overflow:auto}
.hd .hd-citylist__items button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:9px 12px;border-radius:10px;text-align:left;font-size:14px;font-weight:500;transition:background .15s,color .15s}
.hd .hd-citylist__items button:hover{background:#26262a}
.hd .hd-citylist__items button.is-on{color:var(--hd-yellow);font-weight:700}
.hd-citylist__items button.is-on::after{content:"✓";font-weight:800}
.hd-citylist__own{display:flex;gap:6px;margin-top:6px;padding-top:8px;border-top:1px solid var(--hd-line)}
.hd-citylist__own input{flex:1;min-width:0;height:36px;padding:0 12px;border-radius:10px;background:#0b0b0d;border:1px solid var(--hd-line);color:var(--hd-text);font:inherit;font-size:14px;outline:0}
.hd-citylist__own input:focus{border-color:var(--hd-yellow)}
.hd-citylist__own input.is-bad{border-color:#ff6b5b}
.hd .hd-citylist__own button{height:36px;padding:0 14px;border-radius:10px;background:var(--hd-yellow);color:var(--hd-ink);font-weight:800;font-size:13px}

/* основная строка */
.hd-main{display:flex;align-items:center;gap:20px;padding-top:8px;padding-bottom:24px}
.hd-logo{display:flex;align-items:center;gap:12px;flex-shrink:0;margin-right:12px}
.hd-logo img{width:48px;height:48px}
.hd-logo b{display:block;font-size:32px;font-weight:800;font-style:italic;letter-spacing:-1px;line-height:1}
.hd-logo small{font-size:11px;color:var(--hd-muted)}

.hd-cat{position:relative;flex-shrink:0}
.hd .hd-cat__btn{display:flex;align-items:center;gap:10px;height:54px;padding:0 20px 0 22px;border-radius:14px;
  background:var(--hd-yellow);color:var(--hd-ink);font-weight:800;font-size:17px;
  box-shadow:0 6px 20px rgba(255,217,26,.18);transition:transform .15s,box-shadow .2s,filter .2s}
.hd .hd-cat__btn:hover{filter:brightness(1.05);box-shadow:0 8px 26px rgba(255,217,26,.3)}
.hd-cat__btn .ic{font-size:22px}
.hd-cat__btn .hd-cat__arrow{font-size:18px;margin-left:2px;transition:transform .25s}
.hd-cat__btn[aria-expanded="true"] .hd-cat__arrow{transform:rotate(180deg)}

.hd-catalog{position:absolute;top:calc(100% + 10px);left:0;z-index:60;width:350px;padding:8px;
  background:var(--hd-panel);border:1px solid var(--hd-line);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.55);
  animation:hd-drop .18s ease both}
.hd-catalog[hidden]{display:none}
.hd-catalog a{display:flex;align-items:center;gap:14px;padding:9px 12px;border-radius:11px;font-size:15px;font-weight:500;
  transition:background .15s}
.hd-ci{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:10px;
  background:#26262a;color:var(--hd-yellow);transition:background .15s,color .15s}
.hd-ci .ic,.hd-ci .ic-img{font-size:22px}
.hd-catalog a>span:nth-child(2){flex:1}
.hd-catalog .hd-catalog__go{font-size:16px;color:var(--hd-muted);opacity:0;transform:translateX(-4px);transition:.18s}
.hd-catalog a:hover{background:#26262a}
.hd-catalog a:hover .hd-ci{background:var(--hd-yellow);color:var(--hd-ink)}
.hd-catalog a:hover .hd-catalog__go{opacity:1;transform:none;color:var(--hd-yellow)}
@keyframes hd-drop{from{opacity:0;transform:translateY(-6px)}}

.hd-search{flex:1;display:flex;align-items:center;height:54px;min-width:0;overflow:hidden;
  background:#0b0b0d;border:2px solid var(--hd-yellow);border-radius:14px;transition:box-shadow .2s}
.hd-search:focus-within{box-shadow:0 0 0 4px rgba(255,217,26,.14)}
.hd-search input{flex:1;min-width:0;height:100%;padding:0 20px;background:none;border:0;outline:0;color:var(--hd-text);font:inherit;font-size:16px}
.hd-search input::placeholder{color:#6d6d74}
.hd .hd-find{display:flex;align-items:center;gap:9px;height:100%;padding:0 26px;background:var(--hd-yellow);color:var(--hd-ink);
  font-weight:800;font-size:16px;transition:filter .2s}
.hd .hd-find:hover{filter:brightness(1.06)}
.hd-find .ic{font-size:20px}

.hd-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.hd-act{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:92px;height:58px;padding:0 12px;
  border:1.5px solid transparent;border-radius:13px;font-size:12.5px;font-weight:600;white-space:nowrap;color:var(--hd-text);
  transition:background .2s,color .2s,border-color .2s}
.hd-act .ic{font-size:24px;transition:transform .2s,color .2s}
.hd-act:hover{background:#1f1f22;color:var(--hd-yellow)}
.hd-act:hover .ic{transform:translateY(-1px)}
.hd .hd-act--boxed{border-color:#3a3a40}
.hd .hd-act--boxed:hover{border-color:var(--hd-yellow)}
.hd-ava{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--hd-yellow);color:var(--hd-ink);font-weight:800;font-size:14px}
.hd .hd-cart{position:relative;display:flex;align-items:center;gap:10px;height:54px;margin-left:8px;padding:0 26px;
  border:2px solid var(--hd-yellow);border-radius:14px;color:var(--hd-yellow);font-weight:800;font-size:17px;
  transition:background .2s,color .2s,box-shadow .2s}
.hd-cart .ic{font-size:24px}
.hd-cart:hover{background:var(--hd-yellow);color:var(--hd-ink);box-shadow:0 8px 24px rgba(255,217,26,.25)}
.hd-cart b{position:absolute;top:-10px;right:-10px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;
  background:var(--hd-yellow);color:var(--hd-ink);font-size:12px;display:grid;place-items:center;border:2px solid var(--hd-bg)}
.hd-cart:hover b{background:var(--hd-ink);color:var(--hd-yellow);border-color:var(--hd-yellow)}

@media (max-width:1280px){
  .hd-links__item{display:none}
  .hd-act{min-width:56px}
  .hd-act span:not(.hd-ava){display:none}
  .hd-act{height:52px}
}
@media (max-width:820px){
  .hd-wrap{padding:0 14px}
  .hd-main{flex-wrap:wrap;gap:12px}
  .hd-logo img{width:40px;height:40px}.hd-logo b{font-size:26px}
  .hd-search{order:5;flex-basis:100%}
  .hd-find span{display:none}.hd .hd-find{padding:0 20px}
  .hd-actions{margin-left:auto;gap:2px}
  .hd-cart span{display:none}.hd-cart{padding:0 14px}
  .hd-act:nth-child(n+3){display:none}
  .hd-catalog{width:min(350px,calc(100vw - 28px))}
}
@media (prefers-reduced-motion:reduce){.hd *{animation:none!important;transition:none!important}}
