/* Shared day/night header. Existing catalogue, search and profile hooks are retained. */
html.dp-public { --dp-header-bg:#fff; --dp-header-text:#17213a; --dp-header-muted:#57627a; --dp-header-line:#e3e8f0; --dp-header-field:#f3f5fa; --dp-header-blue:#2165d8; color-scheme:light; }
html.dp-public.dp-timeweb { --dp-header-bg:var(--dp-bg); --dp-header-text:#f1f4ff; --dp-header-muted:#bac4df; --dp-header-line:#303b5a; --dp-header-field:#1b233e; --dp-header-blue:#75aaff; color-scheme:dark; }
.dp-public .dp-site-header { position:sticky; top:0; z-index:25; padding:0; background:var(--dp-header-bg); color:var(--dp-header-text); border-bottom:1px solid var(--dp-header-line); }
.dp-public .dp-header-inner { display:flex; align-items:center; gap:12px; max-width:1760px; margin:auto; padding:14px 24px; min-height:74px; }
.dp-public .dp-header-start { display:flex; align-items:center; gap:9px; flex:0 0 auto; padding-right:12px; border-right:1px solid var(--dp-header-line); }
.dp-public .dp-header-brand { display:flex; align-items:center; flex:0 0 auto; width:130px; min-width:0; }
.dp-public .dp-header-brand img { display:block; width:100%; height:auto; max-height:38px; object-fit:contain; }
.dp-public:not(.dp-timeweb) .dp-header-logo--dark,.dp-public.dp-timeweb .dp-header-logo--light { display:none; }
.dp-public .dp-header-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:32px; height:36px; padding:0; position:relative; border:0; border-radius:8px; background:transparent; color:var(--dp-header-muted); font:inherit; cursor:pointer; text-decoration:none; }
.dp-public .dp-header-icon>i { font-size:23px; line-height:1; }
.dp-public .dp-header-icon:hover { color:var(--dp-header-text); background:var(--dp-header-field); }
.dp-public .dp-header-start .dp-burger-trigger { width:30px; color:var(--dp-header-text); }
.dp-public .dp-header-discovery { display:flex; align-items:center; gap:8px; flex:1 1 380px; min-width:290px; }
.dp-public .dp-header-catalog { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:0 0 auto; height:38px; padding:0 11px; border:1px solid var(--dp-header-line); border-radius:10px; background:var(--dp-header-field); color:var(--dp-header-text); font:inherit; font-size:13px; font-weight:500; cursor:pointer; }
.dp-public .dp-header-catalog i { font-size:19px; }
.dp-public .dp-header-catalog--mobile { display:none; }
.dp-public .dp-header-search { flex:1 1 auto; min-width:100px; background:transparent; }
.dp-public .dp-header-search form { margin:0; }
.dp-public .dp-header-search .live-search-form-input { height:38px; padding:0 10px 0 36px; border:1px solid var(--dp-header-line); border-radius:10px; background:var(--dp-header-field); color:var(--dp-header-text); font-size:13px; line-height:1.3; }
.dp-public .dp-header-search .live-search-form-input::placeholder { color:var(--dp-header-muted); }
.dp-public .dp-header-search .live-search-form-icon { width:36px; padding:0; color:var(--dp-header-muted); }
.dp-public .dp-header-search .live-search-form-icon i { font-size:19px; }
.dp-public .dp-header-search .live-search-results { top:45px; min-width:260px; }
.dp-public .dp-header-add { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; gap:4px; height:38px; padding:0 12px; border-radius:10px; background:#3565eb; color:#fff; font-size:13px; font-weight:500; text-decoration:none; }
.dp-public .dp-header-add:hover { background:#2454d8; color:#fff; }
.dp-public .dp-header-add i { font-size:19px; }

.dp-public :is(.dp-header-quick,.dp-header-utilities) { display:flex; align-items:center; flex:0 0 auto; gap:4px; }
.dp-public .dp-header-language { font-size:11px; white-space:nowrap; color:var(--dp-header-muted); }
.dp-public .dp-header-language .uni-dropdown-name { color:inherit; }
.dp-public .dp-header-user { flex:0 0 auto; min-width:0; }
.dp-public .dp-site-header .dp-header-account { display:inline-flex; align-items:center; gap:7px; max-width:250px; margin:0; padding:0; border:0; background:transparent; color:var(--dp-header-text); font:inherit; font-size:13px; font-weight:500; line-height:1.25; cursor:pointer; text-align:left; }
.dp-public .dp-site-header .dp-header-account__identity { display:flex; align-items:center; gap:8px; min-width:0; }
.dp-public .dp-site-header .dp-header-account__name { display:block; min-width:0; max-width:84px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--dp-header-text); }
.dp-public .dp-site-header .dp-header-account__balance { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; max-width:145px; padding:6px 10px; border:1px solid var(--dp-header-blue); border-radius:999px; background:transparent; color:var(--dp-header-blue); font-size:13px; line-height:1.2; font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
.dp-public .dp-header-account__balance>span { overflow:hidden; text-overflow:ellipsis; }
.dp-public .dp-site-header .dp-header-account__balance i { font-size:17px; line-height:1; }
.dp-public .dp-site-header .dp-header-account__avatar { display:flex; align-items:center; justify-content:center; flex:0 0 30px; width:30px; height:30px; overflow:hidden; border-radius:50%; background:var(--dp-header-field); box-shadow:0 0 0 1px var(--dp-header-line); }
.dp-public .dp-header-account__avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.dp-public .dp-header-signin { display:flex; align-items:center; justify-content:center; min-height:36px; padding:0 12px; border:1px solid var(--dp-header-line); border-radius:10px; color:var(--dp-header-text); font-size:13px; white-space:nowrap; }
.dp-public .dp-header-catalog-panel { max-width:1712px; margin:auto; }
.dp-public .dp-header-catalog-panel .big-catalog-menu-content { top:0; border-radius:0 0 14px 14px; border:1px solid var(--dp-header-line); border-top:0; }
.dp-public :is(.dp-header-cart--mobile,.dp-header-filter,.dp-header-geo) { display:none; }
.dp-public .dp-theme-toggle .dp-theme-sun { display:none; }
.dp-public.dp-timeweb .dp-theme-toggle .dp-theme-sun { display:inline; }
.dp-public.dp-timeweb .dp-theme-toggle .dp-theme-moon { display:none; }
.dp-public :is(.dp-header-inner button,.dp-header-inner a,.dp-header-inner input):focus-visible { outline:2px solid #5487f5!important; outline-offset:3px; }
.dp-public #profilePopup { top:78px; right:24px; }
.dp-public .profile-menu__action { transform:none; }
.dp-public .profile-menu__wallet:hover { transform:none; }
.dp-public .module-categories-swiper-prev { left:0; }
.dp-public .module-categories-swiper-next { right:0; }
@media(max-width:1599px) {   .dp-public .dp-header-brand { width:116px; } .dp-public .dp-header-inner { gap:9px; padding-inline:18px; } .dp-public .dp-header-discovery { min-width:260px; } }

@media(max-width:991px) {
  .dp-public .dp-header-inner { gap:8px; flex-wrap:wrap; padding:10px 12px; min-height:0; }
  .dp-public .dp-header-start { gap:6px; padding:0; border:0; flex:1 1 auto; min-width:0; }
  .dp-public .dp-header-brand { width:108px; }
  .dp-public :is(.dp-header-quick,.dp-header-language,.dp-header-catalog--desktop) { display:none; }
  .dp-public .dp-header-utilities { order:2; }
  .dp-public .dp-header-user { order:3; }
  .dp-public .dp-header-discovery { order:4; flex:1 0 100%; min-width:0; }
  .dp-public .dp-header-catalog--mobile { display:inline-flex; width:34px; height:38px; padding:0; color:var(--dp-header-text); }
  .dp-public .dp-site-header .dp-header-account { gap:5px; font-size:11px; }
  .dp-public .dp-site-header .dp-header-account__identity { gap:5px; }
  .dp-public .dp-site-header .dp-header-account__name { max-width:58px; }
  .dp-public .dp-site-header .dp-header-account__balance { max-width:110px; padding:5px 7px; gap:4px; font-size:11px; }
  .dp-public .dp-site-header .dp-header-account__balance i { font-size:15px; }
  .dp-public .dp-site-header .dp-header-account__avatar { flex-basis:26px; width:26px; height:26px; }
  .dp-public .dp-header-add { width:34px; padding:0; }
  .dp-public .dp-header-add span { display:none; }
  .dp-public :is(.dp-header-cart--mobile,.dp-header-filter,.dp-header-geo) { display:inline-flex; width:28px; }
  .dp-public .dp-header-catalog-panel { display:none!important; }
  .dp-public #profilePopup { top:auto; right:0; bottom:0; left:0; border-radius:16px 16px 0 0; }
  .dp-public .dp-header-search .live-search-results { min-width:0; max-width:calc(100vw - 24px); }
  .dp-public .main-floating-menu { display:flex!important; flex-wrap:nowrap; padding-bottom:env(safe-area-inset-bottom,0px); }
  .dp-public .main-floating-menu>a { flex:1 1 0; min-width:0; justify-content:center; margin:0; padding:10px 0; }
  .dp-public .main-floating-menu>a span { font-size:10px; white-space:nowrap; }
  .dp-public .main-floating-menu>a span i { font-size:26px; }
}
@media(max-width:360px) { .dp-public .dp-header-inner { gap:6px; padding-inline:10px; } .dp-public .dp-header-brand { width:94px; } .dp-public .dp-header-start { gap:4px; } .dp-public .dp-header-icon { width:28px; } .dp-public .dp-header-start .dp-burger-trigger { width:26px; } .dp-public .dp-site-header .dp-header-account__name { max-width:42px; } .dp-public .dp-site-header .dp-header-account__identity { gap:4px; } .dp-public .dp-header-discovery { gap:6px; } }

/* Entrance/hover movement is independent of the selected palette. */
.dp-public :is(.auth-card-wrapper,.auth-motivation h1,.auth-motivation>p,.benefits-grid,.hero-badge) { animation:none; }

/* Blend the header edge into the page instead of drawing a blue strip. */
.dp-public.dp-timeweb .dp-site-header { border-bottom-color:var(--dp-bg); }

/* Three header zones, with a bounded search beside the catalogue. */
.dp-public .dp-header-inner {
  display:grid;
  grid-template-columns:max-content var(--dp-centered-search-width,320px) minmax(0,1fr);
  align-items:center;gap:16px;max-width:1440px;
}
.dp-public .dp-header-left {display:flex;align-items:center;gap:12px;justify-self:start;min-width:0;width:max-content;}
.dp-public .dp-header-discovery {width:100%;min-width:0;flex:initial;}
.dp-public .dp-header-search {width:100%;min-width:0;}
.dp-public .dp-header-actions {display:flex;align-items:center;justify-self:stretch;gap:8px;width:auto;min-width:0;}
.dp-public .dp-header-actions .dp-header-account {max-width:190px;}
.dp-public .dp-header-add--mobile {display:none;}
/* Short, complete slider rows share the same central axis as the hero. */
.dp-public .dp-centered-row>.swiper-wrapper {justify-content:center;transform:translate3d(0,0,0)!important;}
.dp-public .dp-centered-row>.swiper-wrapper>.swiper-slide:last-child {margin-right:0!important;}
.dp-public .dp-categories-complete :is(.module-categories-swiper-prev,.module-categories-swiper-next) {display:none;}
@media(min-width:992px) and (max-width:1399px) {
  .dp-public .dp-header-actions .dp-header-account {max-width:176px;}
}
@media(min-width:992px) and (max-width:1279px) {
  .dp-public .dp-header-add--desktop {width:38px;padding:0;}
  .dp-public .dp-header-add--desktop span {display:none;}
}
@media(min-width:992px) and (max-width:1199px) {
  .dp-public .dp-header-actions {gap:6px;}
  .dp-public .dp-header-language {display:none;}
  .dp-public .dp-header-quick {gap:2px;}
  .dp-public .dp-header-quick .dp-header-icon {width:28px;}
  .dp-public .dp-header-actions .dp-header-account {max-width:174px;gap:5px;font-size:11px;}
  .dp-public .dp-header-actions .dp-header-account__identity {gap:5px;}
  .dp-public .dp-header-actions .dp-header-account__name {max-width:40px;}
  .dp-public .dp-header-actions .dp-header-account__balance {max-width:96px;padding:5px 7px;font-size:11px;}
  .dp-public .dp-header-actions .dp-header-account__avatar {flex-basis:26px;width:26px;height:26px;}
}
@media(max-width:991px) {
  .dp-public .dp-header-inner {display:flex;gap:8px;max-width:none;}
  .dp-public .dp-header-left {flex:1 1 auto;width:auto;order:1;min-width:0;}
  .dp-public .dp-header-left .dp-header-start {flex:initial;}
  .dp-public .dp-header-actions {display:contents;}
  .dp-public .dp-header-discovery {order:4;flex:1 0 100%;width:auto;min-width:0;}
  .dp-public .dp-header-add--desktop {display:none;}
  .dp-public .dp-header-add--mobile {display:inline-flex;}
}
@media(max-width:360px) {.dp-public .dp-header-inner {gap:6px;}}

@media(min-width:992px) { .dp-public .dp-header-actions .dp-header-quick {margin-left:auto;} }
