/*! Розовый Zorro — pz-desktop-header.css (2026-10-16). ТОЛЬКО десктоп (подключается из pz_desktop_head.tpl после polish).
 * 1) Плашка шапки 84 px (сжатая 68): все элементы по вертикальному центру, ровная сетка, равные промежутки иконок.
 * 2) Подпись «с 2013 года» под логотипом.
 * 3) Логотип: маска делает один 3D-поворот (rotateY 360°) при загрузке и при наведении, надпись неподвижна.
 * 4) Кнопка «Каталог»: блик раз в ~7 с и при наведении. Только transform/opacity; reduced-motion — без анимаций.
 * Откат — удалить подключение в pz_desktop_head.tpl. */
@media (min-width:1024px){
html:not(.pzd-off){ --pz-main-h:84px; --pz-head-h:132px; }
/* CLS при прокрутке (2026-10-21, замер layout-shift): тема (abt__ut2.js) при прокрутке ставит body.fixed-header и padding-top = меню + крошки (82 px на карточке),
   рассчитывая, что они станут fixed. У нашей шапки они остаются на месте — вся страница прыгала на 82 px вниз и обратно (2 × 0,057). На главной крошек нет → NaN → 0, там и не прыгало. */
html:not(.pzd-off) body.fixed-header{ padding-top:0!important; }

/* ── 1. вертикальный центр ── */
html:not(.pzd-off) .tygh-header .header-grid > .container-fluid-row:first-child > .row-fluid{ grid-template-rows:100%; align-items:center; }
html:not(.pzd-off) .tygh-header .header-grid > .container-fluid-row:first-child > .row-fluid > *{ align-self:center; min-height:0!important; }
html:not(.pzd-off) .tygh-header .header-grid > .container-fluid-row:first-child > .row-fluid > [class*="span"]{ height:100%!important; display:flex; align-items:center; }
html:not(.pzd-off) .tygh-header .top-buttons-grid{ gap:4px; align-items:center; }
html:not(.pzd-off) .tygh-header .top-buttons-grid > div{ height:56px!important; width:auto!important; min-width:0!important; display:flex; align-items:center; border:0!important; background:transparent!important; box-shadow:none!important; }
html:not(.pzd-off) .tygh-header .account-cart-grid{ gap:4px; }
html:not(.pzd-off) .tygh-header .search-grid .ty-search-block{ display:flex; align-items:center; }
html:not(.pzd-off) .tygh-header .search-grid .ty-search-block form{ width:100%; }
html:not(.pzd-off) .tygh-header .ty-search-magnifier{ top:50%!important; margin-top:-19px!important; }
html:not(.pzd-off) .pzd-cat-btn{ align-self:center; height:50px; margin:0; }  /* та же высота, что у поля поиска */
html:not(.pzd-off).pzd-stuck .pzd-cat-btn{ height:44px; align-self:center; margin:0; }
html:not(.pzd-off).pzd-stuck .tygh-header .header-grid > .container-fluid-row:first-child > .row-fluid{ align-items:center; padding:12px 0; box-sizing:border-box; grid-template-rows:100%; }
/* логотип + 18+ — одна линия по центру */
html:not(.pzd-off) .tygh-header .top-logo-grid .top-logo{ position:relative; display:flex!important; align-items:center; gap:6px; height:44px; }
html:not(.pzd-off) .tygh-header .top-logo-grid .top-logo .pz-18, html:not(.pzd-off) .tygh-header .top-logo-grid .top-logo .pzd-18, html:not(.pzd-off) .tygh-header .top-logo-grid .top-logo .itm-adult-main{ align-self:center!important; margin:0!important; }
/* сжатая плашка: 68 px, подпись скрыта */
html:not(.pzd-off).pzd-stuck .tygh-header .top-logo-grid .top-logo{ height:36px; }
html:not(.pzd-off).pzd-stuck .tygh-header .search-grid .ty-search-block{ height:44px; }
html:not(.pzd-off).pzd-stuck .tygh-header .ty-search-magnifier{ margin-top:-17px!important; top:50%!important; }

/* ── 2. подпись о стаже ── */
html:not(.pzd-off) .tygh-header .top-logo-grid .top-logo::after{
  content:"С 2013 года"!important; display:block!important; position:absolute; left:3px; top:calc(100% + 1px); white-space:nowrap;
  font:400 13px/16px var(--pz-font, -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif); letter-spacing:.01em; color:#6E6E73; pointer-events:none;
}
html:not(.pzd-off).pzd-stuck .tygh-header .top-logo-grid .top-logo::after{ display:none!important; }

/* ── 3. логотип: поворот маски ── */
html:not(.pzd-off) .tygh-header .top-logo-grid .ty-logo-container{ position:relative; }
html:not(.pzd-off) .tygh-header .top-logo-grid .ty-logo-container > a{ position:relative; display:inline-flex; }
html:not(.pzd-off) .tygh-header .top-logo-grid .ty-logo-container > a::before{
  content:""; position:absolute; left:0; top:0; width:54%; height:100%; pointer-events:none;
  background:url("/images/logos/20/logo-zorro.png") left center / auto 100% no-repeat;
  transform-origin:50% 50%;
}
html:not(.pzd-off) .tygh-header .top-logo-grid .ty-logo-container img{ clip-path:inset(0 0 0 54%); }
html:not(.pzd-off) .tygh-header .top-logo-grid .ty-logo-container > a.pzd-spin::before{ animation:pzd-mask-spin 1.2s cubic-bezier(.65,0,.35,1) 1 both; will-change:transform; }
@keyframes pzd-mask-spin{ from{ transform:perspective(520px) rotateY(0); } to{ transform:perspective(520px) rotateY(360deg); } }

/* ── 4. блик на «Каталог» ── */
html:not(.pzd-off) .pzd-cat-btn{ position:relative; overflow:hidden; isolation:isolate; }
html:not(.pzd-off) .pzd-cat-btn::after{
  content:""; position:absolute; top:-10%; bottom:-10%; left:0; width:42%; pointer-events:none; z-index:1; opacity:0;
  background:linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
  transform:translateX(-140%) skewX(-20deg);
}
html:not(.pzd-off) .pzd-cat-btn.pzd-shine::after{ animation:pzd-shine 1s cubic-bezier(.4,0,.2,1) 1 both; will-change:transform,opacity; }
@keyframes pzd-shine{ 0%{ opacity:1; transform:translateX(-140%) skewX(-20deg); } 85%{ opacity:1; } 100%{ opacity:0; transform:translateX(380%) skewX(-20deg); } }

@media (prefers-reduced-motion:reduce){
  html:not(.pzd-off) .tygh-header .top-logo-grid .ty-logo-container > a.pzd-spin::before, html:not(.pzd-off) .pzd-cat-btn.pzd-shine::after{ animation:none!important; }
}
}

/* Тестеры 20.10 №5: выпадашки верхней строки («Информация» и др.) поверх шапки. Было: .tygh-top-panel z-index:12 < .tygh-header z-index:900 (соседи в одном контексте) — меню уходило под ряд категорий и пилюли. */
@media (min-width:1024px){ html:not(.pzd-off) .tygh-top-panel{ z-index:950!important; } }
/* 🧹 27.10: сравнение убрано — «Избранное» один в своей колонке шапки: прижат вправо к «Аккаунту»: от «Избранного» до «Аккаунта» те же 91 px между центрами, что были со сравнением (без прижима — дыра 37 px). */
html:not(.pzd-off) .tygh-header .top-phones, html:not(.pzd-off) .tygh-header .top-buttons-grid{ justify-content:flex-end; }
