/* SUNWARD: separate overrides; include AFTER style.min.css. */
.sw-region-trigger {
  appearance: none; background: transparent; border: 0; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 7px; color: #222;
  font: 600 15px/1.2 'Myriad Pro', sans-serif; cursor: pointer;
  max-width: 185px; text-align: left;
}
.sw-region-trigger svg { flex: none; width: 19px; height: 22px; stroke: #008d84; fill: none; stroke-width: 2; }
.sw-region-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-region-trigger:hover, .sw-region-trigger:focus-visible { color: #008d84; }
.sw-region-trigger--top { display: none; }
.sw-callback-block { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; min-width: 150px; }
.sw-callback-phone { color: #111; font-size: 19px; font-weight: 600; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.sw-callback-block .header__callback { display: block; }
.sw-callback-block .btn.btn-callback,
.sw-callback-block .sw-callback-link,
.sw-b24-click .sw-callback-link {
  display: inline; width: auto; height: auto; background: none; border: 0; border-radius: 0;
  padding: 0; margin: 0; color: #333; font: 400 14px/1.3 'Myriad Pro', sans-serif;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sw-callback-block .btn.btn-callback:hover,
.sw-callback-block .sw-callback-link:hover,
.sw-b24-click .sw-callback-link:hover { background: none; color: #008d84; }
.sw-region-mobile-actions { display: none; }

/* Dialog */
body.sw-city-dialog-open { overflow: hidden !important; }
.sw-city-modal { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.55);
  align-items: center; justify-content: center; padding: 18px; }
.sw-city-modal.is-open { display: flex; }
.sw-city-panel { background: #fff; width: min(630px, 100%); max-height: min(790px, calc(100dvh - 36px)); overflow-y: auto;
  border-radius: 8px; padding: 30px; box-shadow: 0 14px 50px rgba(0,0,0,.23); }
.sw-city-panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sw-city-panel h2 { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 700; }
.sw-city-close { padding: 0 6px; border: 0; background: none; cursor: pointer; font-size: 31px; line-height: 1; color: #777; }
.sw-city-close[hidden] { display: none; }
.sw-city-hint { font-size: 16px; line-height: 1.4; margin: 15px 0 22px; }
.sw-city-search-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.sw-city-search { width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 13px 15px;
  color: #111; font-size: 16px; background: #f8f8f8; }
.sw-city-search:focus-visible { outline: 2px solid #008d84; outline-offset: 1px; }
.sw-city-lists { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; margin-top: 16px; }
.sw-city-group { display: contents; }
.sw-city-option { display: block; color: #222; font-size: 16px; padding: 9px 8px; line-height: 1.2; text-decoration: none; border-radius: 4px; }
.sw-city-option[hidden] { display: none; }
.sw-city-option.sw-is-current { color: #008d84; }
.sw-city-option:hover,.sw-city-option:focus-visible { background: #ecf8f7; color: #008d84; }
.sw-city-empty { margin: 22px 0 0; font-size: 15px; }
.sw-city-empty[hidden] { display: none; }

@media (max-width:1599px) and (min-width:992px) {
  .header__right { gap: 14px; }
  .sw-region-trigger { font-size: 13px; max-width: 126px; }
  .sw-callback-phone { font-size: 16px; }
  .sw-callback-block { min-width: 120px; }
  .header__menu { gap: 16px; }
}
@media (max-width:991px) {
  .sw-region-trigger--top { display: inline-flex; margin-left: auto; max-width: 155px; font-size: 14px; }
  .sw-region-mobile-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 18px; padding: 15px 0; border-bottom: 1px solid #ececec; }
  .sw-region-mobile-actions .sw-region-trigger { max-width: 100%; }
  .sw-region-mobile-actions .sw-callback-block { align-items: flex-start; }
  .sw-region-mobile-actions .sw-callback-phone { font-size: 20px; }
  .header__cont .sw-mobile-legacy-phone { display: none; }
}
@media (max-width:575px) {
  .sw-region-trigger--top { max-width: 108px; font-size: 12px; }
  .sw-region-trigger--top svg { width: 16px; height: 19px; }
  .sw-city-panel { padding: 22px 17px; }
  .sw-city-panel h2 { font-size: 24px; }
  .sw-city-lists { grid-template-columns: 1fr; }
  .sw-city-option { padding: 11px 6px; }
}


/* ===== v1.2: adaptive header (desktop / tablet / phone) ===== */
/* The dealer mark is a separate brand block; city and callback are shown independently. */
.header__wrap > .header__logo { flex: 0 0 auto; }
.header__cont2 { flex: 0 0 auto; width: 146px; text-align: center; min-width: 0; }
.header__cont2 img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.header__cont2 small { display: block; font-size: 10px; line-height: 1.15; color: #008d84; }
.sw-header-mobile-tools { display: none; }
.menu .sw-mobile-legacy-phone { display: none !important; }
.sw-header-mobile-callback { display: none; }

/* At intermediate widths, collapse only the navigation; keep desktop contact elements. */
@media (min-width: 992px) and (max-width: 1439px) {
  .header__wrap { min-height: 86px; padding: 10px 23px; gap: 16px; }
  .header__wrap > .header__logo { width: 164px; }
  .header__wrap > .header__menu { display: none !important; }
  .header__right { display: flex; align-items: center; gap: 20px; min-width: 0; margin-left: auto; }
  .header__search-top { padding: 10px 0; }
  .header__right .sw-region-trigger { max-width: 160px; font-size: 14px; }
  .header__right .sw-callback-block { min-width: 0; }
  .header__right .sw-callback-phone { font-size: 18px; }
  .header__cont2 { width: 142px; }
  .sw-header-mobile-tools { display: flex; align-items: center; flex: 0 0 auto; }
  .sw-header-mobile-tools > .sw-region-trigger,
  .sw-header-mobile-tools > .sw-header-mobile-callback { display: none; }
}

/* Burger and slide-out navigation: tablet AND phone. */
@media (max-width: 1439px) {
  .sw-header-mobile-tools .header__burg {
    display: block; position: relative; width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 4px; text-decoration: none; cursor: pointer; transition: background .2s;
  }
  .sw-header-mobile-tools .header__burg span,
  .sw-header-mobile-tools .header__burg span::before,
  .sw-header-mobile-tools .header__burg span::after {
    position: absolute; width: 30px; height: 4px; background: #008d84; border-radius: 2px;
    content: ''; display: block; transition: transform .2s, top .2s, width .2s, background .2s;
  }
  .sw-header-mobile-tools .header__burg span { left: 5px; top: 18px; }
  .sw-header-mobile-tools .header__burg span::before { top: -9px; left: 0; }
  .sw-header-mobile-tools .header__burg span::after { top: 9px; left: 0; }
  .sw-header-mobile-tools .header__burg.active { background: #f39a2e; }
  .sw-header-mobile-tools .header__burg.active span { width: 0; }
  .sw-header-mobile-tools .header__burg.active span::before {
    top: 0; transform: rotate(45deg); background: #fff;
  }
  .sw-header-mobile-tools .header__burg.active span::after {
    top: 0; transform: rotate(-45deg); background: #fff;
  }
  .menu {
    display: block; position: fixed; top: var(--sw-header-height, 86px);
    left: -100vw; width: min(430px, 100vw);
    height: calc(100vh - var(--sw-header-height, 86px));
    height: calc(100dvh - var(--sw-header-height, 86px));
    padding: 24px 22px 38px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; z-index: 12; transition: left .25s ease; box-shadow: 4px 8px 20px rgba(0,0,0,.08);
  }
  .menu.active { left: 0; }
  .menu > .header__menu { display: block; padding: 0; margin: 0 0 20px; list-style: none; }
  .menu .header__menu > li { position: relative; }
  .menu .header__menu > li > a {
    display: block; padding: 8px 22px 8px 0; margin: 0; font-size: 19px;
    line-height: 1.25; border-bottom: 0; color: #111; text-decoration: none;
  }
  .menu .header__menu > li > ul {
    position: static; display: none; width: 100%; padding: 0 0 8px; margin: 0;
    border: 0; max-height: none; background: none;
  }
  .menu .header__menu > li.active > ul { display: block; }
  .menu .header__menu > li > ul a { font-size: 16px; padding: 7px 0 7px 18px; }
  .menu .header__mobsearch { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
  .menu .header__mobsearch form { flex: 1; min-width: 0; position: relative; }
  .menu .header__mobsearch form input { width: 100%; padding: 12px 48px 12px 13px; }
  .menu .header__mobsearch form button { position: absolute; right: 0; top: 0; height: 100%; }
  .menu .header__mobsearch > svg { width: 24px; height: 24px; flex: 0 0 24px; }
  .menu .sw-region-mobile-actions {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-top: 1px solid #ececec;
  }
  .menu .sw-region-mobile-actions .sw-callback-block { align-items: flex-start; }
}

/* Phone layout: two lines, logos on top; location/phone/burger on the second line. */
@media (max-width: 991px) {
  .header__wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'logo dealer' 'tools tools';
    align-items: center; gap: 8px 12px; min-height: 0; padding: 12px 16px 10px;
  }
  .header__wrap > .header__logo {
    grid-area: logo; width: clamp(116px, 33vw, 168px); max-width: 100%; min-width: 0;
  }
  .header__wrap > .header__logo img { display: block; width: 100%; height: auto; }
  .header__wrap > .header__menu, .header__right { display: none !important; }
  .header__cont2 { grid-area: dealer; width: clamp(107px, 32vw, 138px); }
  .header__cont2 small { font-size: 9px; line-height: 1.1; }
  .sw-header-mobile-tools {
    grid-area: tools; display: grid; width: 100%; min-width: 0;
    grid-template-columns: minmax(70px, 1fr) auto 40px;
    align-items: center; gap: 10px; padding-top: 7px; border-top: 1px solid #eee;
  }
  .sw-header-mobile-tools > .sw-region-trigger--top {
    display: inline-flex; margin: 0; max-width: 100%; min-width: 0;
    padding: 5px 0; gap: 5px; font-size: 13px;
  }
  .sw-header-mobile-tools > .sw-region-trigger--top svg { width: 16px; height: 19px; }
  .sw-header-mobile-tools > .sw-header-mobile-callback {
    display: flex; align-items: flex-end; flex-direction: column; gap: 2px;
    min-width: 0; line-height: 1.1;
  }
  .sw-header-mobile-phone { color: #151515; font-size: 17px; font-weight: 600; line-height: 1.05; white-space: nowrap; text-decoration: none; }
  .sw-header-mobile-phone:hover { color: #008d84; }
  .sw-header-mobile-callback > .sw-callback-link {
    display: block; background: none; border: 0; padding: 0; margin: 0;
    font: 400 12px/1.2 'Myriad Pro', sans-serif; text-align: right;
    color: #333; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
  }
  .menu { width: min(430px, 100vw); padding: 23px 20px 40px; }
}

@media (max-width: 575px) {
  .header__wrap { gap: 7px 8px; padding: 10px 12px 9px; }
  .header__wrap > .header__logo { width: min(35vw, 142px); }
  .header__cont2 { width: min(35vw, 130px); }
  .header__cont2 small { font-size: 8px; }
  .sw-header-mobile-tools { grid-template-columns: minmax(55px, 1fr) auto 36px; gap: 7px; }
  .sw-header-mobile-tools > .sw-region-trigger--top { font-size: 12px; gap: 3px; }
  .sw-header-mobile-phone { font-size: 15px; }
  .sw-header-mobile-callback > .sw-callback-link { font-size: 11px; }
  .sw-header-mobile-tools .header__burg { width: 36px; height: 36px; flex-basis: 36px; }
  .sw-header-mobile-tools .header__burg span { left: 3px; top: 16px; }
  .menu { padding: 20px 16px 36px; }
}
@media (min-width: 1440px) { .menu.active { left: -100vw; } }
@media (max-width: 359px) {
  .sw-header-mobile-phone { font-size: 14px; }
  .sw-header-mobile-tools { column-gap: 5px; }
  .sw-header-mobile-tools > .sw-region-trigger--top { font-size: 11px; }
}
