/* Keep the catalogue dropdown attached to its trigger in the centered menu. */
body .site-header.hh-header {
  --hh-inset: clamp(24px, 4vw, 80px);
  --hh-gap: clamp(16px, 1.65vw, 32px);
  display: block;
  height: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
}
body:is([data-design="factory"],[data-design="gallery"]) .site-header.hh-header {
  color: #f6f7f3;
  background: #171a17;
  border-color: #404740;
}
.hh-top, .hh-nav {
  padding-inline: var(--hh-inset);
}
.hh-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.5vw, 48px);
  padding-block: 9px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.hh-header .hh-top .brand { width: auto; padding: 0; justify-self: start; }
.hh-header .hh-top .logo-frame { width: 101px; height: auto; transform: none; }
body:is([data-design="factory"],[data-design="gallery"]) .hh-top .brand { background: #f6f5f1; padding-inline: 5px; }
.hh-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.hh-local {
  display: grid;
  justify-items: start;
  margin-right: .5em;
}
.hh-city {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.hh-city::after {
  content: '';
  position: absolute;
  right: 3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.hh-header .hh-city select {
  appearance: none;
  display: block;
  width: auto;
  min-height: 25px;
  margin: 0;
  padding: 1px 20px 1px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.hh-city select option { background: Canvas; color: CanvasText; }
.hh-header .hh-city select:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.hh-catalog:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hh-phone {
  padding-block: 2px;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 600;
  letter-spacing: -.025em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hh-chat, .hh-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
}
.hh-chat {
  min-height: 37px;
  padding: 5px 13px;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
}
.hh-project {
  min-height: 44px;
  padding: 9px 24px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
body[data-design="factory"] .hh-project { background: #8cd854; color: #172411; }
body[data-design="gallery"] .hh-project { background: #d4e9a2; color: #1a2318; }
body[data-design="showroom"] .hh-project { background: #a83f2c; color: #fff; }
.hh-project:hover, .hh-chat:hover { filter: brightness(.91); }
.hh-phone:hover { text-decoration: underline; }
.hh-header .hh-nav, .hh-mobile {
  --hh-menu-size: clamp(1.1875rem, 1.4vw, 1.375rem);
  --hh-menu-weight: 500;
}
body .site-header.hh-header .hh-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hh-gap);
  justify-content: center;
  margin: 0;
  min-height: 53px;
  line-height: 1.35;
}
.hh-header .hh-nav > a, .hh-header .hh-nav .hh-catalog, .hh-mobile > a {
  font-size: var(--hh-menu-size);
  font-weight: var(--hh-menu-weight);
}
.hh-header .hh-nav .hh-catalog, .hh-mobile > .hh-catalog {
  font-size: calc(var(--hh-menu-size) + 4px);
}
.hh-nav > a, .hh-nav .hh-catalog { white-space: nowrap; }
.hh-nav .nav-catalog, .hh-nav > .hh-catalog { margin-right: var(--hh-gap); }
body .hh-nav .hh-catalog, .hh-mobile .hh-catalog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border: 0;
}
.hh-catalog::before {
  content: '';
  width: 13px;
  height: 8px;
  border-block: 1.5px solid currentColor;
  background: linear-gradient(currentColor,currentColor) center/100% 1px no-repeat;
}
.hh-header .hh-editor-nav > a { padding-block: 10px; }
@media (max-width: 1350px) {
  body .site-header.hh-header { --hh-gap: 13px; --hh-inset: 24px; }
}
@media (max-width: 1199px) {
  body .site-header.hh-header .desktop-nav { display: none; }
  .hh-top { grid-template-columns: auto 1fr auto auto; gap: 15px; border-bottom: 0; }
  .hh-header .menu-toggle { display: flex; width: 40px; height: 40px; color: inherit; border-color: currentColor; }
  .hh-header .menu-toggle span { background: currentColor; }
  .hh-mobile:not([hidden]) { display: grid; }
  .hh-mobile .hh-catalog { justify-self: start; margin-bottom: 6px; }
  .ed-page .hh-header .hh-nav { flex-wrap: wrap; padding-block: 7px; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  body .site-header.hh-header { --hh-inset: 16px; }
  .hh-header .hh-top { grid-template-columns: auto 1fr auto; gap: 6px 12px; padding-block: 7px; }
  .hh-header .hh-top .logo-frame { width: 72px; }
  .hh-header .hh-project { justify-self: end; padding-inline: 12px; min-height: 39px; font-size: 13px; }
  .hh-header .hh-contacts { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; padding-top: 5px; gap: 6px; }
  .hh-header .hh-contacts:empty { display: none; }
  .hh-phone { font-size: 15px; }
  .hh-local { margin-right: auto; }
  .hh-chat { min-height: 34px; padding: 4px 9px; font-size: 13px; }
  .ed-page .hh-header .hh-nav { gap: 4px 13px; }
}
@media (max-width: 350px) {
  body .site-header.hh-header { --hh-inset: 12px; }
  .hh-header .hh-top { column-gap: 6px; }
  .hh-header .hh-project { padding-inline: 9px; }
}
body .hh-header .hh-top {grid-template-columns:auto 1fr auto auto}
.hh-search {display:grid;place-items:center;min-width:40px;min-height:44px;color:inherit}
.smart-search {padding-block:clamp(34px,6vw,90px);min-height:60vh}
.smart-search label,.smart-search input,.smart-search small {display:block}
.smart-search input {width:100%;max-width:800px;margin:8px 0 20px;padding:15px;font:inherit;color:inherit;border:1px solid var(--line);background:white}
.smart-search article {max-width:800px;padding:15px 0;border-top:1px solid var(--line)}
.smart-search article a {display:block;padding:4px 0}
.smart-search small {margin-top:3px}
@media(max-width:1199px){body .hh-header .hh-top{grid-template-columns:auto 1fr auto auto auto}}
@media(max-width:700px){body .hh-header .hh-top{grid-template-columns:auto 1fr auto auto;column-gap:6px}.hh-search{justify-self:end}}
.approach-navigation {display:flex;flex-wrap:wrap;gap:4px 24px;margin:20px 0 8px;border-bottom:1px solid var(--line)}
.approach-navigation a {display:inline-flex;align-items:center;min-height:44px;color:inherit;font-size:1rem;text-decoration:none}
.approach-navigation a:hover {text-decoration:underline}
.approach-navigation a[aria-current="page"] {box-shadow:inset 0 -2px currentColor;font-weight:600}
@media(max-width:600px){.approach-navigation {column-gap:16px}}

.messenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}
.messenger-icon img { display: block; width: 32px; height: 32px; }
.messenger-icon:focus-visible { outline: 2px solid currentColor; }

/* Accosto showroom picker */
.hh-header .hh-city {
  max-inline-size: 100%;
  color: inherit;
}
.hh-header .hh-city select {
  box-sizing: border-box;
  width: auto;
  max-inline-size: 100%;
  min-height: 34px;
  padding: 5px 34px 5px 33px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  background-color: color-mix(in srgb, currentColor 4%, transparent);
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.hh-header .hh-city::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset-inline-start: 12px;
  top: 50%;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 50% 50% 50% 1px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.4px);
  transform: translateY(-62%) rotate(-45deg);
  opacity: .78;
  pointer-events: none;
}
.hh-header .hh-city::after {
  inset-inline-end: 15px;
  top: 50%;
  transform: translateY(-70%) rotate(45deg);
  opacity: .8;
}
.hh-header .hh-city select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  text-decoration: none;
}
@media (hover: hover) {
  .hh-header .hh-city select:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
    border-color: color-mix(in srgb, currentColor 38%, transparent);
  }
}
@media (max-width: 700px), (pointer: coarse) {
  .hh-header .hh-city select { min-height: 44px; }
}
@supports (appearance: base-select) and selector(::picker(select)) {
  .hh-header .hh-city select,
  .hh-header .hh-city select::picker(select) { appearance: base-select; }
  .hh-header .hh-city select {
    display: inline-flex;
    align-items: center;
  }
  .hh-header .hh-city select::picker-icon { display: none; }
  .hh-header .hh-city:has(select:open)::after {
    transform: translateY(-25%) rotate(225deg);
  }
  .hh-header .hh-city select::picker(select) {
    box-sizing: border-box;
    min-inline-size: 195px;
    max-inline-size: calc(100vw - 24px);
    max-block-size: min(18rem, 60dvh);
    margin-block: 5px;
    padding: 5px;
    overflow: auto;
    border: 1px solid #d9d8d0;
    border-radius: 14px;
    background: #fffefa;
    color: #262720;
    box-shadow: 0 8px 24px rgb(31 32 24 / 14%);
  }
  .hh-header .hh-city option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-block-size: 38px;
    padding: 7px 12px;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    cursor: pointer;
  }
  .hh-header .hh-city option::checkmark {
    order: 1;
    margin-inline-start: auto;
    color: #39523e;
  }
  .hh-header .hh-city option:checked {
    background: #e9eee6;
    font-weight: 600;
  }
  .hh-header .hh-city option:focus-visible {
    outline: 2px solid #48674e;
    outline-offset: -2px;
  }
  @media (hover: hover) {
    .hh-header .hh-city option:hover { background: #f1f1e9; }
  }
  @media (pointer: coarse) {
    .hh-header .hh-city option { min-block-size: 44px; }
  }
}
@media (forced-colors: active) {
  .hh-header .hh-city select { border-color: ButtonText; }
  .hh-header .hh-city option:checked { color: HighlightText; background: Highlight; }
}
