.site-header,
.site-header ~ * {
  --site-link-color: var(--brand, #176b4b);
}

/* Prevent Safari and embedded browsers from applying their default blue tint. */
:where(a:any-link) {
  color: inherit;
}

:where(button, input, select, textarea) {
  color: inherit;
  font: inherit;
}

.site-header {
  --site-header-height: 76px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  height: var(--site-header-height);
  align-items: center;
  gap: 36px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid #dce2dc;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 22px rgba(17, 24, 20, .035);
  color: #111814;
  font: 13px/1.2 Manrope, Inter, Arial, sans-serif;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-header__logo img {
  display: block;
  width: 124px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.site-header__logo > strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
}

.site-header__logo > span {
  padding-left: 12px;
  border-left: 1px solid #dce2dc;
  color: #526159;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .18em;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__nav a {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s, color .18s;
}

.site-header__nav a:hover {
  background: #f2f6f3;
  color: var(--brand, #176b4b);
}

.site-header__nav a.is-current {
  background: #e8f2ec;
  color: var(--brand, #176b4b);
  font-weight: 800;
}

.site-header__services {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-header__service {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 12px;
  transition: background-color .18s, color .18s;
}

.site-header__service:hover {
  background: #f2f7f4;
  color: var(--brand, #176b4b);
}

.site-header__service svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand, #176b4b);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__service span,
.site-header__service small,
.site-header__service strong {
  display: block;
  min-width: 0;
}

.site-header__service small,
.site-header__city small {
  margin-bottom: 3px;
  color: #647068;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.site-header__service strong,
.site-header__city strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.site-header .header-phone strong {
  font-size: 15px;
  letter-spacing: -.015em;
}

.site-header .header-warranty {
  padding: 0 13px;
  border: 1px solid #dce2dc;
  border-radius: 14px;
}

.site-header .header-warranty:hover {
  border-color: color-mix(in srgb, var(--brand, #176b4b) 40%, #dce2dc);
  background: #f6faf7;
}

.site-header .header-warranty svg {
  width: 16px;
  height: 16px;
}

.site-header__city {
  display: grid;
  min-width: 0;
  min-height: 46px;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #dce2dc;
  border-radius: 14px;
  background: #f8faf8;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}

.site-header__city:hover {
  border-color: color-mix(in srgb, var(--brand, #176b4b) 40%, #dce2dc);
  background: #f2f7f4;
}

.site-header__city > span {
  display: flex;
  min-width: 0;
  align-items: center;
}

.site-header__city svg {
  display: block;
  fill: none;
  stroke: var(--brand, #176b4b);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__city .header-city-pin {
  width: 18px;
  height: 18px;
}

.site-header__city .header-city-chevron {
  width: 14px;
  height: 14px;
}

.site-header__city strong {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--brand, #176b4b);
  outline-offset: 3px;
}

.site-header__menu-toggle,
.site-header__nav-city,
.site-header .site-header__nav-warranty,
.site-header .site-header__office-label-mobile {
  display: none;
}

@media (max-width: 1260px) {
  .site-header .header-warranty {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-header {
    --site-header-height: 68px;
    gap: 14px;
    padding: 0 16px;
  }

  .site-header__logo > span {
    padding-left: 8px;
    font-size: 9px;
    letter-spacing: .14em;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    z-index: 2;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 4px;
    padding: 8px;
    border: 1px solid #dce2dc;
    border-radius: 18px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 18px 50px rgba(17, 35, 25, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s, visibility .18s, transform .18s;
  }

  .site-header.is-menu-open .site-header__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header__nav a {
    min-height: 46px;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .site-header__nav a.is-current {
    background: #edf4ef;
  }

  .site-header__nav .site-header__nav-city {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    border: 0;
    border-top: 1px solid #e1e6e2;
    border-radius: 0;
    background: transparent;
    color: #111814;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .site-header__nav-city svg { width: 20px; height: 20px; fill: none; stroke: var(--brand, #176b4b); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .site-header__nav-city span, .site-header__nav-city small, .site-header__nav-city strong { display: block; min-width: 0; }
  .site-header__nav-city small { margin-bottom: 4px; color: #68746d; font-size: 10px; font-weight: 650; }
  .site-header__nav-city strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .site-header__nav-city b { color: var(--brand, #176b4b); font-size: 12px; }

  .site-header__nav .site-header__nav-warranty {
    display: flex;
    margin-top: 4px;
    border-top: 1px solid #e1e6e2;
    border-radius: 0 0 12px 12px;
    color: var(--brand, #176b4b);
  }

  .site-header__logo img {
    width: 105px;
    height: 30px;
  }

  .site-header__service {
    min-height: 44px;
    padding-inline: 6px;
  }

  .site-header__service small {
    display: none;
  }

  .site-header__city {
    min-height: 40px;
    grid-template-columns: 17px minmax(0, 1fr) 0;
    gap: 6px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }

  .site-header__services > .site-header__city { display: none; }

  .site-header__city:hover {
    border-color: transparent;
    background: transparent;
    color: var(--brand, #176b4b);
  }

  .site-header__city .header-city-pin {
    width: 17px;
    height: 17px;
  }

  .site-header__city .header-city-chevron {
    display: none;
  }

  .site-header__city strong {
    max-width: 125px;
    font-size: 12px;
  }

  .site-header__menu-toggle {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #dce2dc;
    border-radius: 13px;
    background: #fff;
    color: #111814;
    cursor: pointer;
  }

  .site-header__menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transform-origin: center;
    transition: transform .18s, opacity .18s;
  }

  .site-header.is-menu-open .site-header__menu-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-header.is-menu-open .site-header__menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .site-header__menu-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (min-width: 641px) and (max-width: 1040px) {
  .site-header.is-condensed .header-phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header.has-phone {
    --site-header-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    grid-template-rows: 63px;
    gap: 0 8px;
    padding: 0 12px;
  }

  .site-header.has-phone .site-header__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header.has-phone .site-header__services {
    display: contents;
  }

  .site-header.has-phone .site-header__menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header.has-phone .header-phone {
    width: max-content;
    max-width: 100%;
    min-height: 40px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 0 2px;
    overflow: hidden;
  }

  .site-header.has-phone .header-phone svg,
  .site-header.has-phone .header-phone small {
    display: none;
  }

  .site-header.has-phone .header-phone strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header__nav {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 360px) {
  .site-header__logo {
    gap: 7px;
  }

  .site-header__logo img {
    width: 88px;
  }

  .site-header__logo > span {
    padding-left: 7px;
    font-size: 8px;
  }

  .site-header.has-phone .header-phone { max-width: 100%; }
}

@media (max-width: 320px) {
  .site-header__logo img {
    width: 82px;
  }

  .site-header.has-phone {
    grid-template-columns: auto minmax(0, 1fr) 40px;
    gap: 0 6px;
  }

  .site-header__menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header a,
  .site-header button {
    transition: none;
  }
}
