/* =========================
   NEWUI — HEADER (FINAL)
   Scope: prod classes only
   Touches: header-service + header-top + header-nav
   ========================= */

/* NEWUI variables (header-only) */
:root{
  --newui-glass-bg1: rgba(255,255,255,.78);
  --newui-glass-bg2: rgba(255,255,255,.58);
  --newui-glass-border: rgba(255,255,255,.45);
  --newui-glass-shadow: 0 12px 34px rgba(0,0,0,.10);
  --newui-text: #0b0f1a;
  --newui-muted: rgba(11,15,26,.82);
  --newui-muted2: rgba(11,15,26,.55);
  --newui-line: rgba(0,0,0,.06);
  --newui-pill-border: rgba(0,0,0,.10);
  --newui-accent: rgba(239,68,68,1);
  --newui-accent-soft: rgba(239,68,68,.12);
  --newui-radius: 14px;
  --newui-radius-lg: 24px;
  --newui-wrap: 1320px;
  --newui-pad-x: 24px;
}

/* ====== HEADER: single glass surface (one source of truth) ====== */
.header{
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  /* safety: prevent full-viewport stretch on mobile (some legacy rules may set bottom/height) */
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: auto;
  max-height: none;
}

.header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--newui-glass-bg1) 0%, var(--newui-glass-bg2) 100%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--newui-glass-border);
  box-shadow: var(--newui-glass-shadow);
  border-radius: 0 0 var(--newui-radius-lg) var(--newui-radius-lg);
  pointer-events: none;
  z-index: 0;
}

/* global header typography */
.header,
.header *{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

/* ====== SERVICE TOP LINE (.header-service) ====== */
.header-service{
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--newui-text);
  font-size: 13px;
  line-height: 1.15;
}

/* no own glass (the whole header has it) */
.header-service::before{ content: none; }

.header-service > .inner{
  max-width: var(--newui-wrap);
  margin: 0 auto;
  padding: 8px var(--newui-pad-x);
  min-height: 46px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--newui-line);
}

/* left links */
.header-service__nav{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}

.header-service__item{
  margin-right: 0;
}

.header-service__item > a,
.header-service__item > span{
  font-size: 15px;
  font-weight: 700;
  color: var(--newui-muted);
  text-decoration: none;
  letter-spacing: 0;
}

.header-service__item:hover > a,
.header-service__item:hover > span{
  color: var(--newui-text);
  text-decoration: none;
}

/* right cluster */
.header-service__right{
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* phone pill */
.header-service__phone.call-to{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  margin-right: 10px;
  border-radius: var(--newui-radius);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--newui-pill-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  color: var(--newui-text);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* callback pill */
.header-service__callback,
a.header-service__callback{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--newui-radius);
  background: rgba(239,68,68,.92);
  border: 1px solid rgba(239,68,68,.35);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 14px 30px rgba(239,68,68,.28);
  line-height: 1;
}

.header-service__callback:hover,
a.header-service__callback:hover{
  background: var(--newui-accent);
}

/* socials as small glass icon pills */
.header-service__socials{
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-service__socials a{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--newui-pill-border);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  text-decoration: none;
}

.header-service__socials a:hover{
  background: rgba(255,255,255,.90);
}

.header-service__socials svg{
  width: 14px;
  height: 14px;
  fill: rgba(11,15,26,.75);
}

/* ====== MAIN TOPBAR (.header-top) ====== */
.header-top{
  position: relative;
  background: transparent;
  padding-top: 8px;
}

.header-top > .inner{
  max-width: var(--newui-wrap);
  margin: 0 auto;
  padding: 8px var(--newui-pad-x);
  min-height: 0;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 5px;
}

/* logo */
.header-top .logo{
  position: relative;
  background: transparent;
}

.header-top .logo .organization-logo{
  width: auto;
  height: 36px;
}

.header-top .logo img{
  width: auto;
  height: 36px;
  display: block;
}

/* search glass pill */
.header-right{
  display: flex;
  align-items: center;
  flex-grow: 1;
}


.header-right-search .search-form{
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--newui-pill-border);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  height: 44px;
}

.header-right-search .search-form > form{
  display: flex;
  align-items: center;
}

.header-right-search .search-input{
  height: 44px;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.header-right-search .search-input::placeholder{
  color: rgba(11,15,26,.55);
  font-weight: 650;
}

.header-right-search .search-btn{
  width: 40px;
  height: 40px;
margin-right: 20px;
margin-bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);

  cursor: pointer;
  border-radius: 999px;
  padding: 0;
}

.header-right-search .search-btn svg{
  position: static !important;
  margin: 0 !important;
  width: 20px;
  height: 20px;
  fill: rgba(11,15,26,.68);
  transition: fill .18s ease;
}

/* right actions (icons) */
.header-right{
  justify-content: flex-end;
  gap: 12px;
}

.user-interface-icons{
  min-width: 40px;
  transition: color .18s ease;
}

.user-interface-icons svg{
  height: 22px;
  width: 22px;
  transition: fill .18s ease;
}

.user-interface-icons:hover{
  color: var(--newui-accent);
  text-decoration: none;
}

.user-interface-icons:hover svg{
  fill: var(--newui-accent);
}

/* counters stay readable on glass */
.user-interface-icons .ui-counter{
  background: var(--newui-accent);
}

/* BLOCK 4 — DESKTOP ICON BUTTONS (search/fav/account/cart) */
@media (min-width: 1025px){
  .header-right-nav .user-interface-icons{
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.90);
    box-shadow: 0 10px 22px rgba(0,0,0,.06);

    cursor: pointer;
  }

  /* make inner link fill the circle */
  .header-right-nav .user-interface-icons > a,
  .header-right-nav .user-interface-icons > span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }

  .header-right-nav .user-interface-icons svg{
    width: 18px;
    height: 18px;
    top: 0;
    fill: rgba(11,15,26,.72);
  }

  .header-right-nav .user-interface-icons:hover{
    border-color: rgba(0,0,0,.16);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
  }

  .header-right-nav .user-interface-icons:hover svg{
    fill: var(--newui-accent);
  }

  /* counter position inside circle */
  .header-right-nav .user-interface-icons .ui-counter{
    top: 2px;
    left: 22px;
  }

  .header-right-nav .user-interface-icons.header-right-cart .ui-counter{
    left: 18px;
  }
}

/* ====== MAIN NAV (.header-nav) ====== */
.header-nav{
  background: transparent;
  box-shadow: none;
  border-top: 0;
  padding-top: 0;
}

.header-nav .inner{
  max-width: var(--newui-wrap);
  margin: 0 auto;
  padding: 0 var(--newui-pad-x);
  border-top: 1px solid var(--newui-line);
}

.header-nav .inner > ul{
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  justify-content: flex-start;
}

/* glass menu buttons */
.header-nav .inner > ul > li{
  white-space: nowrap;
}

.header-nav .inner > ul > li > a{
  position: relative;
  display: inline-block;

  height: 38px;
  line-height: 38px;
  padding: 0 14px;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;

  color: var(--newui-text);
  background: linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.38) 100%);
  border: 1px solid var(--newui-pill-border);
  border-radius: var(--newui-radius);

  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    0 10px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(0,0,0,.06);

  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
}

.header-nav .inner > ul > li > a:hover{
  background: rgba(255,255,255,.62);
  border-color: rgba(255,255,255,.70);
  box-shadow:
    0 14px 34px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.75),
    0 0 0 3px var(--newui-accent-soft);
  text-decoration: none;
  color: var(--newui-accent);
}

/* active */
.header-nav .inner > ul > li > a.active{
  background: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.85);
  color: var(--newui-text);
  box-shadow:
    0 18px 44px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.85);
}

/* ====== RESPONSIVE ====== */
/* MOBILE LAYOUT (as old header): mobile search/menu buttons under logo */
@media (max-width: 1024px){

  /* show mobile buttons row; keep it visually glass */
  .mobile-ui{
    display: flex !important;
    background: transparent;
    border-top: 1px solid var(--newui-line);
    box-shadow: none;
  }

  .mobile-ui-btn{
    background: transparent;
    border: 0;
    color: var(--newui-text);
    font-weight: 800;
    letter-spacing: .02em;
  }

  .mobile-ui-btn svg{
    fill: var(--newui-text);
  }

  .mobile-ui-btn:hover{
    color: var(--newui-accent);
  }

  .mobile-ui-btn:hover svg{
    fill: var(--newui-accent);
  }
}
@media (max-width: 1024px){
  .header-top > .inner{
    grid-template-columns: 200px 1fr auto;
    gap: 16px;
  }
  .header-service > .inner,
  .header-top > .inner,
  .header-nav .inner{
    padding-left: 16px;
    padding-right: 16px;
  }

  /* mobile (as in old header): show mobile-ui, hide desktop search + main nav */
  .mobile-ui{
    display: flex !important;
  }

  .header-right-search{
    display: none !important;
  }

  .header-nav{
    display: none !important;
  }

  .header-right-nav{
    margin-left: auto !important;
  }
}

@media (max-width: 640px){
  .user-interface-icons .ui-btn-text{
    display: none !important;
  }
  .header-search-results {
    height:auto
  }
  .nav-scroll .nav-scroll-content>ul>li ul>li a {
    font-size: 20px;
    color: black;
  }
  .nav-scroll .nav-scroll-content>ul>li>a {
    font-size: 18px;
  }
}

@media (max-width: 900px){
  /* iOS/mobile fix: backdrop-filter on fixed header can blur the whole page */
  .header::before{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.92);
  }
  /* extra safety: if any legacy mobile rules force the fixed header to fill the viewport */
  .header{
    height: 160px !important;
    max-height: none !important;
  }
  .header-service > .inner{
    min-height: 44px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-service__phone.call-to{
    height: 28px;
    font-size: 14px;
    margin-right: auto;
  }
  .header-service__callback,
  a.header-service__callback{
    height: 28px;
    font-size: 14px;
  }
  .header-service__socials a{
    width: 28px;
    height: 28px;
  }

  .header-top > .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-right{
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
  }

  .header-right-nav{
    margin-left: auto;
    order: 1;
    display: flex;
    align-items: center;
  }

  .header-right-search{
    display: none !important;
  }

  .header-nav .inner > ul{
    gap: 10px;
    height: 52px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav .inner > ul::-webkit-scrollbar{
    height: 0;
  }

  /* mobile: header became taller, so compensate fixed header overlap */
  .page-holder{
    padding-top: 176px;
  }

  /* mobile <=768: hide service navigation to reduce header height */
  @media (max-width: 768px){
    .header-service__nav{
      display: none;
    }
  }
}

/* ====== MOBILE DROPDOWN MENU (glass) ====== */
@media (max-width: 1024px){
  /* side drawer */
  .mobile-nav{
    /* make drawer actually render (display: contents breaks width/transform) */
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;

    z-index: 650;
    width: 0;
    overflow: hidden;

    background: rgba(255,255,255,.92);
    border-left: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    transform: translate3d(280px, 0, 0);
    transition: transform .35s, width .35s;
  }

  .mobile-nav.active{
    width: 280px; /* comfortable touch width */
    transform: translate3d(0, 0, 0);
    border-top-left-radius: 18px;

    /* match header glass */
    background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.58) 100%);
  }

  /* dark overlay behind drawer */
  .mobile-nav-close{
    position: fixed;
    inset: 0;
    z-index: 640;
    display: none;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .mobile-nav-close.active{
    display: block;
  }

  /* inner scroll area */
  .nav-scroll{
    border-top: 1px solid rgba(0,0,0,.08);
  }

  .nav-scroll .nav-scroll-content > ul > li{
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .nav-scroll .nav-scroll-content > ul > li > a{
    color: var(--newui-text);
    font-weight: 800;
    letter-spacing: .01em;
  }

  .nav-scroll .nav-scroll-content > ul > li > a:hover{
    color: var(--newui-accent);
    text-decoration: none;
  }

  /* chevron trigger */
  .nav-scroll .nav-scroll-content > ul > li .sub-nav-trigger:before{
    border-right: 2px solid rgba(11,15,26,.75);
    border-bottom: 2px solid rgba(11,15,26,.75);
  }

  .nav-scroll .nav-scroll-content > ul > li .sub-nav-trigger.active:before{
    border-right-color: var(--newui-accent);
    border-bottom-color: var(--newui-accent);
  }
}

/* BLOCK N — DESKTOP ICONS: hide labels + top service typography like design */

/* 1) Десктоп: скрыть подписи у иконок (ui-btn-text) */
@media (min-width: 1025px){
  .header-right-nav .user-interface-icons .ui-btn-text{
    display: none !important;
  }
}

/* 2) Верхняя сервис-панель: шрифты/вес как в дизайне */
.header-service__item > a,
.header-service__item > span{
  font-weight: 600;
  color: rgba(11,15,26,.82);
  opacity: .9;
}

.header-service__item:hover > a,
.header-service__item:hover > span{
  color: rgba(11,15,26,.82);
  opacity: 1;
  text-decoration: none;
}

/* Кнопка "заказать звонок" — как callbtn в дизайне */
.header-service__callback,
a.header-service__callback{
  font-weight: 500;
  font-size: 15px;
}

/* Телефон: если внутри есть <a>, делаем вес как в дизайне */
.header-service__phone.call-to a{
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}


/* Не хедер*/

.inner {
  padding-top: 14px;
  max-width: 1320px;
}
.products__premium svg {
  height: 25px;
  width: 25px;
}

.catalogue-banners-slider {
  border-radius: 16px;
  margin: 24px 0 32px;
}

@media (max-width: 768px){
  .breadcrumbs {
    padding-top: 0;
  }
  .page-holder {
    padding-top: 150px;
  }
}