/* =========================
   NEWUI — CSS (GROUPED STEP 1)
   Step: GROUPING + SAFE FIXES
   Goal: keep visuals identical (preserve cascade order)
   ========================= */

/* ============================================================
   00) TOKENS / VARIABLES
   - Shared values used by header + glass surfaces
   ============================================================ */
: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: #ec482f;
  --newui-accent-soft: rgba(236,72,47,.12);
  --newui-radius: 14px;
  --newui-radius-lg: 24px;
  --newui-wrap: 1320px;
  --newui-pad-x: 22px;
}

/* ============================================================
   01) HEADER SHELL (single glass surface)
   - Base header container + glass layer
   ============================================================ */
.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;
}

.header input,
.header button,
.header select,
.header textarea{
  font-family: inherit;
}

/* ============================================================
   02) HEADER SERVICE TOP LINE (.header-service)
   - Left links + right pills + socials + dropdown skin
   ============================================================ */
.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: 600;
  color: rgba(11,15,26,.82);
  opacity: .9;
  text-decoration: none;
  letter-spacing: 0;
}

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

/* disable click on items that have dropdown children */
@supports selector(:has(*)){
  .header-service__item:has(.header-service__dropdown) > a{
    pointer-events: none;
    cursor: default;
  }
  .header-service__item:has(.header-service__dropdown) > a:focus{
    outline: 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(236,72,47,.92);
  border: 1px solid rgba(236,72,47,.40);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 14px 30px rgba(236,72,47,.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);
}

/* HEADER-SERVICE DROPDOWN (same glass as main menu) */
.header-service__dropdown{
  background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.58) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px;

  /* keep inside header width */
  max-width: 1300px;
  box-sizing: border-box;
}

.header-service__dropdown .header-service__column,
.header-service__dropdown .header-servic__column{
  padding: 5px;
}

.header-service__dropdown .header-service__list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-service__dropdown .header-service__list a{
  display: block;
  padding: 4px 5px;
  border-radius: 12px;
  color: rgba(11,15,26,.62);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.header-service__dropdown .header-service__list a:hover{
  background: rgba(255,255,255,.62);
  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);
  color: var(--newui-accent);
  text-decoration: none;
}

/* ============================================================
   03) HEADER TOPBAR (.header-top)
   - Logo + search pill + right icons
   ============================================================ */
.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;
}


/* 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;
}

/* ============================================================
   03.1) HEADER RIGHT (search + actions)
   FIX A: merged duplicate .header-right blocks (same values)
   ============================================================ */
.header-right{
  display: flex;
  align-items: center;
  flex-grow: 1;

  justify-content: flex-end;
  gap: 12px;
}

.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;
  font-family: inherit;
}

.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-family: inherit;
  font-size: 14px;
  font-weight: 650;
}

.header-right-search .search-input::placeholder{
  color: rgba(11,15,26,.55);
  font-family: inherit;
  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;
}

.user-interface-icons svg {
  top: 0;
  height: 16px;
  width: 16px;
}


/* hide icon text on all non-mobile contexts (desktop + tablet + small) */
@media (min-width: 1025px), (max-width: 1024px){
  .user-interface-icons .ui-btn-text{
    display: none !important;
  }
}

/* scope SVG styling only to the header icon buttons trigger, not to dropdown contents */
.header-right-nav .user-interface-icons__trigger > svg,
.header-right-nav .user-interface-icons__trigger > span > svg{
  height: 16px;
  width: 16px;
  top: 0;
  transition: fill .18s ease;
}


/* hover fill (real DOM: svg lives inside .user-interface-icons__trigger) */
.header-right-nav a.user-interface-icons:hover .user-interface-icons__trigger > svg,
.header-right-nav a.user-interface-icons:hover .user-interface-icons__trigger > span > svg{
  fill: var(--newui-accent);
}

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

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

/* icon circles — same on all screens */
.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);
}

/* make inner link fill the circle (all screens) */
.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;
}

/* hover styles only on devices that actually hover */
@media (hover: hover){
  .header-right-nav .user-interface-icons:hover{
    border-color: rgba(0,0,0,.16);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
  }
}

/* UI counter position — same on all screens */
.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;
}

/* ============================================================
   04) HEADER ICON BUTTONS — DESKTOP
   ============================================================ */
@media (min-width: 1025px){
  .header-right-nav .user-interface-icons{
    cursor: pointer;
  }
}


/* ============================================================
   05) HEADER CONTAINER WIDTH — DESKTOP
   ============================================================ */
@media (min-width: 1025px){
  .header-service > .inner,
  .header-top > .inner,
  .header-nav .inner{
    max-width: 1300px;
    padding-left: 2.5em;
    padding-right: 2.5em;
  }
}

/* ============================================================
   06) HEADER NAV (.header-nav)
   - Main menu buttons + active/hover
   ============================================================ */
.header-nav{
  background: transparent;
  box-shadow: none;
  border-top: 0;
  padding-top: 0;
}

.header-nav .inner{
  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: 14px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;

  /* FIX A: missing semicolon here was breaking the following properties */
  color: black;
  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,.86);
  border-color: rgba(255,255,255,.88);
  color: var(--newui-text);
  box-shadow:
    0 18px 44px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.85),
    0 0 0 3px var(--newui-accent-soft);
}


/* ============================================================
   07.1) RESPONSIVE — TABLET (769–1024)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px){
  .header-top > .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .header-right-search{
    display: block !important;
    flex: 1 1 auto;
    margin-left: 16px;
    min-width: 220px;
  }

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




/* ============================================================
   07.2) RESPONSIVE — SMALL (<=640)
   ============================================================ */
@media (max-width: 640px){
  .header-search-results{
    height: auto;
  }
}

/* ============================================================
   07.3) RESPONSIVE — MOBILE (<=768)
   ============================================================ */
@media (max-width: 768px){
  /* 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: 108px !important;
    max-height: none !important;
  }

  /* hide top service line only inside the header on mobile (keep it available inside the drawer) */
  .header > .header-service{
    display: none !important;
  }

  .header-service > .inner{
    min-height: 44px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .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;
    min-height: 0;
  }

  .header-right{
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;

    min-width: 0;
  }

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

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

  /* mobile search-form wrapper — glass (so the whole pill stays transparent) */
  .search-form,
  .search-form > form,
  .search-form.search-form-mobile,
  .search-form#search-form-mobile{
    background: transparent !important;
  }

  .search-form{
    border-radius: 999px !important;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.78) 0%,
      rgba(255,255,255,.58) 100%
    ) !important;
    border: 1px solid var(--newui-glass-border) !important;
    box-shadow: var(--newui-glass-shadow) !important;

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }

  /* mobile search input — newui glass pill (real input has ui-autocomplete-input) */
  .search-form input.search-input,
  .search-form .search-input.ui-autocomplete-input,
  .search-form input.search-input.ui-autocomplete-input{
    height: 44px !important;
    border-radius: 999px !important;

    border: 1px solid var(--newui-glass-border) !important;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.78) 0%,
      rgba(255,255,255,.58) 100%
    ) !important;
    box-shadow: var(--newui-glass-shadow) !important;

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    padding: 0 14px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    color: var(--newui-text) !important;
    outline: none !important;
  }

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

  .search-form .search-input:focus{
    border-color: rgba(236,72,47,.28) !important;
    box-shadow:
      0 12px 28px rgba(0,0,0,.08),
      0 0 0 3px var(--newui-accent-soft) !important;
  }

  /* mobile search overlay shell (glass like header) */
  .header-search.hide.visible{
    background: linear-gradient(180deg, var(--newui-glass-bg1) 0%, var(--newui-glass-bg2) 100%) !important;
    border: 1px solid var(--newui-glass-border) !important;
    box-shadow: var(--newui-glass-shadow) !important;
    border-radius: 18px !important;

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }

  /* mobile search close (X) */
  .header-search .search-close{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255,255,255,.90) !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    top: 6px;
    right: 6px;
  }

  .header-search .search-close svg{
    width: 18px;
    height: 18px;
    fill: rgba(11,15,26,.55);
    position: static !important;
    top: 0 !important;
    margin: 0 !important;
  }

  .search-form .search-btn {
    border-radius: 15px;
    width: 32px;
  }

  /* mobile search results: legacy scroll surface is not used (real list is UL.ui-autocomplete) */
  .header-search-results-scroll{
    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;
  }

  /* hide top links only in header top line, keep them inside mobile drawer */
  .header > .header-service > .inner > .header-service__nav{
    display: none;
  }
  .mobile-ui{
    border-top-color: var(--newui-line) !important;
    background: none;
  }
  .mobile-ui-btn:first-child{
    border-color: var(--newui-line) !important;
  }
}

/* mobile search results container — glass like header */
.header-search-results{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.99) 10%,
    rgba(255,255,255,.29) 100%
  ) !important;

  border-radius: 18px !important;
  box-shadow: var(--newui-glass-shadow) !important;

  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  overflow: hidden;
}

.ui-menu-item img {
  border-radius: 15px;
}


/* ============================================================
   07.4) RESPONSIVE — EXTRA SMALL (<480px)
   - fix legacy spacing for header icon circles
   ============================================================ */
@media (max-width: 479px){
  .header-right-nav .user-interface-icons{
    padding: 0 !important;
  }
  .header-right-nav .user-interface-icons:not(:first-child){
    margin-left: 5px !important;
  }
}

/* ============================================================
   07.4a) RESPONSIVE — <=424px (phone tweaks)
   ============================================================ */
@media (max-width: 424px){
  .header-service__phone.call-to{
    margin-right: inherit !important;
    padding: 0 !important;
  }
}

/* ============================================================
   07.5) RESPONSIVE — ULTRA SMALL (<375px)
   - shift header icon group to the right + tighten spacing
   ============================================================ */
@media (max-width: 374px){
  .header-right-nav{
    transform: translateX(5px);
  }
  .header-right-nav .user-interface-icons:not(:first-child){
    margin-left: 3px !important;
  }
}

/* ============================================================
   07.6) RESPONSIVE — ULTRA NARROW (<350px)
   - reduce right shift to avoid clipping
   ============================================================ */
@media (max-width: 349px){
  .header-right-nav{
    transform: translateX(5px);
  }
  .header-right-nav .user-interface-icons:not(:first-child){
    margin-left: 2px !important;
  }
    .header-service__phone.call-to{
    font-size: 12px;
  }

  .header-service__callback,
  a.header-service__callback{
    font-size: 12px;
  }

  .header-top .logo .organization-logo{
    width: 130px;
  }
}

/* ============================================================
   08) MOBILE NAV DRAWER (glass)
   ============================================================ */
@media (max-width: 768px){
  /* 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,.80);
    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,.92) 0%, rgba(255,255,255,.78) 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: 600;
    letter-spacing: .01em;
  }

  /* drawer logo (first item in the list) */
  .nav-scroll .nav-scroll-content > ul > li.mobile-menu-logo{
    border-bottom: 0;
    padding: 14px 12px 10px;
  }

  .nav-scroll .nav-scroll-content > ul > li.mobile-menu-logo > a{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 0;
  }

  .nav-scroll .nav-scroll-content > ul > li.mobile-menu-logo img{
    display: block;
    height: 36px;
    width: auto;
  }

  /* visual divider between top links and category list */

  .nav-scroll .nav-scroll-content > ul > li.mobile-top-divider::before{
    content: "";
    display: block;
    height: 1px;
    background: rgba(0,0,0,.10);
  }

  /* make top links slightly more prominent (but same drawer style) */
  .nav-scroll .nav-scroll-content > ul > li.mobile-top-item > a{
    font-weight: 700;
  }

  .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);
  }
}

/* ============================================================
   09) HEADER — EXTRA OVERRIDES (kept in original order)
   ============================================================ */

/* callback button override */
.header-service__callback,
a.header-service__callback{ 
  font-weight: 500;
}

/* phone inner link */
.header-service__phone.call-to a{
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
/* keep phone + callback typography in sync from 768px and up */
@media (min-width: 768px){
  .header-service__phone.call-to,
  .header-service__callback,
  a.header-service__callback{
    font-size: 15px;
  }
}

/* ============================================================
   10) DROPDOWNS (desktop menu + user dropdown)
   ============================================================ */
@media (min-width: 1025px){
  .header-nav .sub-nav{
    background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.58) 100%);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-radius: 0 0 20px 20px;

    width: min(100%, 1300px);
    max-width: 1300px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
  }

  .header-nav .sub-nav ul li a{
    color: rgba(11,15,26,.62);
    font-weight: 600;
  }

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

  /* divider (если в старом меню есть вертикальный разделитель через :before) */
  .header-nav .sub-nav .subnav-column:first-child:before{
    background: rgba(0,0,0,.08);
  }
}

.user-dropdown,
.user-dropdown.active{
  background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.58) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px;

  box-sizing: border-box;
}

.user-dropdown a{
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(11,15,26,.62);
  font-weight: 600;
  text-decoration: none;
}

.user-dropdown a:hover{
  background: rgba(255,255,255,.62);
  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);
  color: var(--newui-accent);
  text-decoration: none;
}

.user-dropdown .user-preview__info{
  font-size: 15px;
}

/* ============================================================
   11) NON-HEADER RULES
   ============================================================ */
.inner{
  padding-top: 14px;
  max-width: 1320px;
}

.products__premium svg{
  height: 25px;
  width: 25px;
}

.catalogue-banners-slider{
  border-radius: 16px;
  margin: 24px 0 32px;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, .14),
    0 8px 18px rgba(15, 23, 42, .10);
}

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

/* ============================================================
   12) MODALS (feedback + text)
   ============================================================ */
.feedback-modal-frame{
  background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.58) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 20px;

  padding: 60px 36px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
}

.feedback-modal-frame .modal-title{
  font-size: 26px;
  font-weight: 600;
  color: var(--newui-text);
  letter-spacing: -.02em;
}

.feedback-modal-frame .modal-text{
  color: var(--newui-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.feedback-modal-frame input[type="text"],
.feedback-modal-frame input[type="tel"]{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.feedback-modal-frame button,
.feedback-modal-frame .butn,
.feedback-modal-frame .dark-red-butn{
  height: 44px;
  border-radius: 14px;

  /* glassy primary */
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 60%), var(--newui-accent);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: .02em;

  box-shadow:
    0 16px 34px rgba(236,72,47,.28),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

.feedback-modal-frame .modal-close,
.feedback-modal-frame .modal-close-small{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.feedback-modal-frame .modal-close:hover,
.feedback-modal-frame .modal-close-small:hover{
  background: rgba(255,255,255,.95);
}

/* mobile: move modal logo to bottom center (all modals)
   NOTE: use absolute positioning because in some modals `.modal-logo` is not a direct flex-item */
@media (max-width: 768px){
  .modal .feedback-modal-frame{
    position: relative;
    padding-bottom: 45px; /* reserve space for bottom logo */
  }

  .modal .feedback-modal-frame .modal-logo{
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);

    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none; /* logo should not steal taps */
  }

  .modal .feedback-modal-frame .modal-logo a,
  .modal .feedback-modal-frame .modal-logo img{
    pointer-events: none;
  }
}

/* ============================================================
   12.1) MOBILE CONTACT MODAL (new)
   - Used by mobile phone button
   - Keep base feedback modal look, add dedicated layout
   ============================================================ */
.modal-mobile-contact .feedback-modal-frame{
  padding: 28px 24px;
}

.modal-mobile-contact .modal-logo{
  margin-bottom: 12px;
}

.modal-mobile-contact .modal-title{
  text-align: center;
  margin-bottom: 18px;
}

.modal-mobile-contact .mobile-contact-actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* make both actions full-width and equal height */
.modal-mobile-contact .mobile-contact-actions .submit-btn,
.modal-mobile-contact .mobile-contact-actions .low-btn,
.modal-mobile-contact .mobile-contact-actions a,
.modal-mobile-contact .mobile-contact-actions button{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.modal-mobile-contact .mobile-contact-actions .red-butn{
  /* glassy primary */
  background: linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%), var(--newui-accent);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 24px 44px rgba(236,72,47,.28),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

.modal-mobile-contact .mobile-contact-actions .red-butn:hover{
  background: #ec482f;
}

/* secondary: callback (glass) */
.modal-mobile-contact .mobile-contact-actions .low-btn:not(.red-butn){
  /* glassy secondary */
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.70) 100%);

  color: var(--newui-text) !important;

  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  font-size: 18px;
  font-weight: 600;
}

.modal-mobile-contact .mobile-contact-actions .low-btn:not(.red-butn):hover{
  background: rgba(255,255,255,.92);
}

@media (max-width: 768px){
  .modal-mobile-contact .feedback-modal-frame{
    padding: 50px 18px;
    border-radius: 18px;
  }

  .modal-mobile-contact .feedback-modal-frame .modal-title{
    font-size: 26px;
    line-height: 1.15;
  }
}

/* TEXT MODAL */
.text-modal-frame{
  background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.58) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 20px;

  padding: 32px 36px;
  box-sizing: border-box;
}

.text-modal-frame .modal-title{
  font-size: 25px;
  font-weight: 600;
  color: var(--newui-text);
  letter-spacing: -.02em;
}

.text-modal-frame p{
  color: var(--newui-muted);
  font-size: 15px;
  line-height: 1.6;
}

.text-modal-frame .modal-close-small{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.text-modal-frame .modal-close-small:hover{
  background: rgba(255,255,255,.95);
}

/* ============================================================
   13) CART DROPDOWN (header-cart-dropdown)
   ============================================================ */
.header-cart-dropdown,
.header-cart-dropdown.active{
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.30) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px;
  box-sizing: border-box;
}

.new-cart-dropdown__product-price{
  font-size: 16px;
}

.header-cart-dropdown .js-cart{
  padding: 16px 18px;
  box-sizing: border-box;
}

.header-cart-dropdown .cart-dropdown-title{
  font-weight: 800;
  color: var(--newui-text);
  letter-spacing: -.01em;
}

.header-cart-dropdown .ui-spinner.ui-corner-all.ui-widget.ui-widget-content{
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow: hidden;
}

.header-cart-dropdown .ui-spinner input,
.header-cart-dropdown .ui-spinner .ui-spinner-input{
  background: transparent;
  border: 0;
  outline: none;
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--newui-text);
  margin-top: 5px;
}

.header-cart-dropdown .ui-spinner .ui-spinner-button{
  background: rgba(255,255,255,.78);
  border: 0;
}

.header-cart-dropdown .ui-spinner .ui-spinner-button:hover{
  background: rgba(255,255,255,.92);
}

.header-cart-dropdown .cart-table,
.header-cart-dropdown .new-cart-dropdown{
  background: transparent;
}

.header-cart-dropdown .cart-dropdown_products-list,
.header-cart-dropdown .new-cart-dropdown__products-list,
.header-cart-dropdown .cart-table.new-cart-dropdown__products-list{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  margin-bottom: 10px;
}

.header-cart-dropdown .new-cart-dropdown__totals,
.header-cart-dropdown .cart-table__result{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.header-cart-dropdown .cart-close-small,
.header-cart-dropdown .cart-dropdown-close,
.header-cart-dropdown .new-cart-dropdown__close,
.header-cart-dropdown .modal-close{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-cart-dropdown .cart-close-small:hover,
.header-cart-dropdown .cart-dropdown-close:hover,
.header-cart-dropdown .new-cart-dropdown__close:hover,
.header-cart-dropdown .modal-close:hover{
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.14);
}

.header-cart-dropdown .ajax_remove,
.header-cart-dropdown .new-cart-dropdown__product-remove{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.header-cart-dropdown .ajax_remove:hover,
.header-cart-dropdown .new-cart-dropdown__product-remove:hover{
  background: rgba(255,255,255,.90);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

.header-cart-dropdown .dark-red-butn,
.header-cart-dropdown .red-butn{
  height: 42px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  font-size: 14px;
  line-height: 42px;
}

.dark-red-butn{
  line-height: 40px;
}

.help{
  padding-top: 5px;
}

.header-cart-dropdown .dark-red-butn{
  background: var(--newui-accent);
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(236,72,47,.28);
}

.header-cart-dropdown .dark-red-butn:hover{
  background: #ec482f;
}

.header-cart-dropdown .red-butn{
  background: rgba(255,255,255,.82);
  color: var(--newui-text) !important;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.header-cart-dropdown .red-butn:hover{
  background: rgba(255,255,255,.92);
}

.header-cart-dropdown button.red-butn.modal-close,
.header-cart-dropdown button.red-butn.cart-dropdown-close{
  width: auto;
  height: 44px;
  min-width: 140px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.new-cart-dropdown__product-image img{
  border-radius: 15px;
}

.header-cart-dropdown .cart-close-small svg,
.header-cart-dropdown .cart-dropdown-close svg,
.header-cart-dropdown .new-cart-dropdown__close svg,
.header-cart-dropdown .ajax_remove svg,
.header-cart-dropdown .new-cart-dropdown__product-remove svg{
  width: 14px;
  height: 14px;
  top: 0;
  position: static;
}

.new-cart-dropdown__product{
  padding-top: 1em;
}


/* ============================================================
   MOBILE UI — REAL BUTTONS (HTML)
   Order: Search, Telegram, Phone, Burger
   Goal: same visual for all 4, icons only, keep existing JS
   ============================================================ */
@media (max-width: 768px){
  /* container becomes full-width segmented bar */

.mobile-nav-holder {
    height: 100%;
}

  .mobile-ui{
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch; 
    gap: 0;

    width: 100%;
    height: 44px;

    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
    overflow: hidden;
  }

  /* accessibility helper (used in header template) */
  .visually-hidden{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* all 4 buttons become equal segments */
  .mobile-ui .mobile-ui-btn{
    width: 100%;
    height: 44px;
    min-width: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    padding: 0;
    margin: 0;

    color: rgba(11,15,26,.72);
    text-decoration: none;

    /* kill any accidental text rendering */
    font-size: 0;
    line-height: 0;

    position: relative;
  }

  /* vertical dividers between segments */
  .mobile-ui .mobile-ui-btn:not(:first-child){
    border-left: 1px solid rgba(0,0,0,.08);
  }

  /* order: Search, Telegram, Phone, Burger */
  .mobile-ui .search-trigger{ order: 1; }
  .mobile-ui .mobile-ui-btn--telegram{ order: 2; }
  .mobile-ui .mobile-ui-btn--phone{ order: 3; }
  .mobile-ui .mobile-nav-btn{ order: 4; }

  /* ensure icons are visible */
  .mobile-ui .mobile-ui-btn svg{
    width: 18px;
    height: 18px;
    display: block;
  }

  /* telegram/phone inline svg tone */
  .mobile-ui .mobile-ui-btn--telegram svg,
  .mobile-ui .mobile-ui-btn--phone svg{
    fill: rgba(11,15,26,.72);
  }

  /* burger icon (3 lines) */
  .mobile-ui .mobile-nav-icon{
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-block;
  }
  .mobile-ui .mobile-nav-icon > span,
  .mobile-ui .mobile-nav-icon > span:before,
  .mobile-ui .mobile-nav-icon > span:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: rgba(11,15,26,.72);
  }
  .mobile-ui .mobile-nav-icon > span{ top: 5px; }
  .mobile-ui .mobile-nav-icon > span:before{ top: -5px; }
  .mobile-ui .mobile-nav-icon > span:after{ top: 5px; }

  /* subtle active feedback */
  .mobile-ui .mobile-ui-btn:active{
    background: rgba(0,0,0,.04);
  }

  @media (hover: hover){
    .mobile-ui .mobile-ui-btn:hover{
      background: rgba(0,0,0,.03);
    }
  }

}