/* Canonical navigation styles shared by every public page. */
body:not(.admin-body) .catalog-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #15181d;
}
body:not(.admin-body) :is(.site-header, .catalog-header-inner) {
  box-sizing: border-box;
  row-gap: 20px;
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0;
  color: #fff;
}
body:not(.admin-body) :is(.brand-link, .catalog-brand) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  transform: none;
  transform-origin: center;
  transition: transform 220ms ease;
}
body:not(.admin-body) :is(.brand-link, .catalog-brand):is(:hover, :focus-visible) {
  transform: scale(1.05);
}
body:not(.admin-body) :is(.brand-link, .catalog-brand):active { transform: scale(.95); }
body:not(.admin-body) :is(.brand-link, .catalog-brand) img {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border-radius: 999px;
}
body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > .product-nav { font-size: 16px; }

/* Shared height keeps anchor destinations aligned with the sticky navigation. */
:root {
  --site-header-height: 80px;
}

/* Full-width sticky navigation. This final block supersedes legacy floating-header rules. */
body:not(.admin-body) :is(.site-header, .catalog-header-inner) {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 999;
  display: grid;
  width: 100% !important;
  max-width: none !important;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  margin: 0;
  padding: 0 max(4vw, calc((100vw - 1600px) / 2));
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(18px, 2.2vw, 34px);
  overflow: visible !important;
  border: 0;
  border-radius: 0;
  background: #15181d;
  box-shadow: none;
  backdrop-filter: none;
  font-family: Arial, sans-serif;
}

body:not(.admin-body) :is(.site-header, .catalog-header-inner)::before {
  display: none;
}

body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) {
  min-width: 0;
  overflow: visible;
  flex: 0 0 auto;
}

body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
  width: auto;
  max-width: 255px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
}

body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
}

body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a {
  min-height: 0;
  padding: 10px 0;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: color 250ms ease;
}

body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a:hover,
body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a:focus-visible,
body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a.active {
  color: #f26c22;
  background: transparent;
}

body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
  display: inline-flex;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  min-height: 0;
  padding: 12px 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: #f26c22;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 250ms ease;
}

@media (max-width: 1500px) and (min-width: 1025px) {
  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    max-width: 215px;
    height: 46px;
  }

  body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
    gap: 22px;
  }

  body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  body:not(.admin-body) .language-toggle {
    font-size: 16px;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
    padding-inline: 24px;
    font-size: 17px;
  }
}

@media (min-width: 1025px) {
  html[lang="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner),
  html[data-language="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) {
    column-gap: clamp(12px, 1.4vw, 22px);
  }

  html[lang="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav),
  html[data-language="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
    gap: clamp(12px, 1.55vw, 22px);
  }

  html[lang="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  html[data-language="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  html[lang="ru"] body:not(.admin-body) .language-toggle,
  html[data-language="ru"] body:not(.admin-body) .language-toggle {
    font-size: clamp(13px, 0.98vw, 14px);
  }

  html[lang="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button),
  html[data-language="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
    padding-inline: 22px;
    font-size: 16px;
  }

  html[lang="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner),
  html[data-language="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) {
    column-gap: clamp(14px, 1.6vw, 24px);
  }

  html[lang="ar"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav),
  html[data-language="ar"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
    gap: clamp(14px, 1.65vw, 24px);
  }
}

@media (max-width: 1500px) and (min-width: 1025px) {
  html[lang="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img,
  html[data-language="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img,
  html[lang="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img,
  html[data-language="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    max-width: 200px;
  }

  html[lang="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  html[data-language="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  html[lang="ru"] body:not(.admin-body) .language-toggle,
  html[data-language="ru"] body:not(.admin-body) .language-toggle {
    font-size: 14px;
  }

  html[lang="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button),
  html[data-language="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button),
  html[lang="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button),
  html[data-language="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
    padding-inline: 18px;
    font-size: 15px;
  }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  html[lang="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img,
  html[data-language="ru"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img,
  html[lang="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img,
  html[data-language="ar"] body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    max-width: 185px;
  }

  html[lang="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav),
  html[data-language="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
    gap: 12px;
  }

  html[lang="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  html[data-language="ru"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  html[lang="ru"] body:not(.admin-body) .language-toggle,
  html[data-language="ru"] body:not(.admin-body) .language-toggle {
    font-size: 13px;
  }

  html[lang="ar"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav),
  html[data-language="ar"] body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
    gap: 14px;
  }
}

body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button):hover,
body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button):focus-visible {
  color: #fff;
  opacity: 0.85;
  transform: none;
}

body:not(.admin-body) :is(.header-language-slot, .catalog-language-slot) {
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.admin-body) .language-switcher {
  position: relative;
  z-index: 1001;
  direction: ltr;
  font-family: Arial, sans-serif;
}

body:not(.admin-body) .language-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 250ms ease;
}

body:not(.admin-body) .language-toggle:hover,
body:not(.admin-body) .language-toggle:focus-visible,
body:not(.admin-body) .language-switcher.open .language-toggle {
  color: #f26c22;
}

body:not(.admin-body) .language-toggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.55;
}

body:not(.admin-body) .language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 176px;
  padding: 8px;
  border: 1px solid rgba(222, 202, 168, 0.78);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  background: rgba(239, 226, 197, 0.96);
  box-shadow: 0 16px 32px rgba(92, 70, 42, 0.16);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

body:not(.admin-body) .language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

body:not(.admin-body) .language-option {
  min-height: 38px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #15181d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

body:not(.admin-body) .language-option:hover,
body:not(.admin-body) .language-option:focus-visible,
body:not(.admin-body) .language-option.active {
  color: #f26c22;
  background: rgba(250, 214, 190, 0.84);
}

body:not(.admin-body) .language-code {
  color: inherit;
  font-weight: 800;
}

body:not(.admin-body) .language-name {
  color: #5f6670;
  font-weight: 600;
  text-align: left;
}

body:not(.admin-body) .language-option:hover .language-name,
body:not(.admin-body) .language-option:focus-visible .language-name,
body:not(.admin-body) .language-option.active .language-name {
  color: #a84111;
}

body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.menu-button, .catalog-menu-button) {
  display: none;
  font: 700 13px Arial, sans-serif;
}

body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body) :is(.brand-link, .catalog-brand) { transition: none; }
}

body:not(.admin-body) .hero-section {
  padding-top: 0 !important;
}

body:not(.admin-body) main section[id],
body:not(.admin-body) footer[id] {
  scroll-margin-top: 112px;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  body:not(.admin-body) :is(.site-header, .catalog-header-inner) {
    column-gap: 20px;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    max-width: 205px;
    height: 44px;
  }

  body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) {
    gap: 18px;
  }

  body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav) > a,
  body:not(.admin-body) .language-toggle {
    font-size: 15px;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
    padding-inline: 22px;
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  body:not(.admin-body) :is(.site-header, .catalog-header-inner) {
    height: 80px;
    min-height: 80px;
    padding: 0 4vw;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 20px;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    width: auto;
    max-width: 190px;
    height: 40px;
  }

  body:not(.admin-body) :is(.desktop-nav, .catalog-desktop-nav),
  body:not(.admin-body) :is(.header-language-slot, .catalog-language-slot),
  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
    display: none;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) > :is(.menu-button, .catalog-menu-button) {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    display: inline-flex !important;
    width: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 0;
    border-radius: 50%;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) > :is(.menu-button, .catalog-menu-button) span {
    display: none !important;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) > :is(.menu-button, .catalog-menu-button) svg {
    width: 28px;
    height: 28px;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    z-index: 998;
    display: flex;
    width: 100%;
    max-height: 0;
    padding: 0 4vw;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #15181d;
    box-shadow: 0 18px 40px rgba(21, 24, 29, 0.22);
    backdrop-filter: none;
    transition:
      max-height 350ms ease-out,
      opacity 250ms ease,
      visibility 0s linear 350ms,
      padding-bottom 350ms ease-out;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu).open {
    max-height: 720px;
    padding-bottom: 20px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      max-height 350ms ease-out,
      opacity 250ms ease,
      visibility 0s linear 0s,
      padding-bottom 350ms ease-out;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .mobile-nav-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #2c3036;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    text-decoration: none;
    transition: color 250ms ease;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-switcher-mobile {
    width: 100%;
    margin: 4px 0 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2c3036;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-toggle {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding: 0;
    color: #fff;
    font-size: 17px;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-toggle svg:first-child {
    margin-right: 8px;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-toggle span {
    margin-right: auto;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transition: max-height 240ms ease, margin-top 240ms ease, padding 240ms ease;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-switcher.open .language-menu {
    max-height: 220px;
    margin-top: 8px;
    padding: 8px;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option {
    color: #fff;
    background: transparent;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option:hover,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option:focus-visible,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option.active {
    color: #f26c22;
    background: rgba(242, 108, 34, 0.16);
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-name {
    color: #b4b9c0;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option:hover .language-name,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option:focus-visible .language-name,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .language-option.active .language-name {
    color: #ffd2bb;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .mobile-nav-link:hover,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .mobile-nav-link:focus-visible,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) .mobile-nav-link.active {
    color: #f26c22;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) :is(.mobile-quote-button, .catalog-mobile-quote) {
    display: block;
    width: 100%;
    margin: 20px 0 0;
    padding: 14px 32px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: #f26c22;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: opacity 250ms ease;
  }

  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) :is(.mobile-quote-button, .catalog-mobile-quote):hover,
  body:not(.admin-body) :is(.mobile-menu, .catalog-mobile-menu) :is(.mobile-quote-button, .catalog-mobile-quote):focus-visible {
    color: #fff;
    opacity: 0.85;
  }

  body:not(.admin-body) main section[id],
  body:not(.admin-body) footer[id] {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 480px) {
  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    max-width: 160px;
    height: 36px;
  }
}

@media (min-width: 1025px) {
  :root {
    --site-header-height: 76px;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.brand-link, .catalog-brand) img {
    max-width: 204px;
    height: 42px;
  }

  body:not(.admin-body) :is(.site-header, .catalog-header-inner) :is(.quote-button, .catalog-quote-button) {
    padding: 10px 26px;
    font-size: 16px;
  }

  body:not(.admin-body) .language-toggle {
    font-size: 16px;
  }

  body:not(.admin-body) main section[id],
  body:not(.admin-body) footer[id] {
    scroll-margin-top: calc(var(--site-header-height) + 16px);
  }
}
