/* Header layout (colors: tenet-theme.css) */
.sm-header-wrap,
.masthead.sm-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9000;
  color: var(--tenet-ink) !important;
  background: var(--tenet-bg) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid var(--tenet-border);
  transition: box-shadow 0.3s;
}

.sm-header-wrap.sm-header--scrolled,
.masthead.sm-header.sm-header--scrolled {
  background: var(--tenet-bg) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.sm-header-top {
  border-bottom: 1px solid var(--tenet-border);
  background: var(--tenet-bg-muted);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  line-height: 18px;
}

@media (min-width: 640px) {
  .sm-header-top {
    padding: 0 24px;
    font-size: 12px;
  }
}

.sm-header-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  background: var(--tenet-btn) !important;
  border: 2px solid var(--tenet-btn) !important;
  color: var(--tenet-on-dark) !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s;
  font-family: Montserrat, "Open Sans", sans-serif;
}

@media (min-width: 640px) {
  .sm-header-callback {
    padding: 0 12px;
    font-size: 12px;
  }
}

.sm-header-callback:hover {
  background: var(--tenet-btn-hover) !important;
  border-color: var(--tenet-btn-hover) !important;
  opacity: 0.92 !important;
}

.sm-header-top__right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--tenet-ink-muted);
}

@media (min-width: 768px) {
  .sm-header-top__right {
    gap: 32px;
  }
}

.sm-header-address {
  display: none;
}

@media (min-width: 768px) {
  .sm-header-address {
    display: inline;
    white-space: nowrap;
  }
}

.sm-header-phone {
  font-weight: 700;
  color: var(--tenet-ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.sm-header-main,
.masthead.sm-header > .header-bar.sm-header-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  border-top: none !important;
}

@media (min-width: 640px) {
  .sm-header-main,
  .masthead.sm-header > .header-bar.sm-header-main {
    padding: 0 24px;
    min-height: 84px;
  }
}

@media (min-width: 1024px) {
  .sm-header-main,
  .masthead.sm-header > .header-bar.sm-header-main {
    min-height: 92px;
  }
}

.sm-header-wrap .sm-header-main {
  padding-top: 0;
  padding-bottom: 0;
}

.sm-header-brand,
.masthead.sm-header .branding.sm-header-brand {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  padding-bottom: 0 !important;
  gap: 12px;
}

.sm-header-brand .mini-widgets,
.masthead.sm-header .branding .mini-widgets {
  display: none !important;
}

.masthead.sm-header .same-logo,
.sm-header-logo {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 10px);
  text-decoration: none !important;
  min-width: 0;
  flex-shrink: 1;
}

.masthead.sm-header .logo-text__top,
.masthead.sm-header .logo-text__bot,
.sm-header-logo .sm-header-logo__top,
.sm-header-logo .sm-header-logo__bot {
  color: var(--tenet-ink) !important;
}

.masthead.sm-header .logo-text__bot,
.sm-header-logo .sm-header-logo__bot {
  color: var(--tenet-ink-muted) !important;
}

.masthead.sm-header .logo-divider,
.sm-header-logo .sm-header-logo-div {
  background: rgba(0, 0, 0, 0.12) !important;
}

.sm-header-nav,
.masthead.sm-header .custom-main-nav {
  flex: 1 1 auto !important;
  width: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  border-top: none !important;
  padding: 0 !important;
  min-width: 0;
}

.sm-header-nav ul,
.masthead.sm-header .custom-main-nav .main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
}

.sm-header-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-header-nav a,
.masthead.sm-header .custom-main-nav a {
  display: block;
  padding: 12px 14px !important;
  color: var(--tenet-ink) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .sm-header-nav a,
  .masthead.sm-header .custom-main-nav a {
    padding: 12px 18px !important;
  }
}

.sm-header-nav a:hover,
.masthead.sm-header .custom-main-nav a:hover {
  color: var(--tenet-accent) !important;
}

.sm-header-nav a.active {
  color: var(--tenet-accent) !important;
}

.masthead.sm-header .ya-rating-badge {
  display: none !important;
}

@media (min-width: 1280px) {
  .masthead.sm-header .ya-rating-badge {
    display: inline-flex !important;
  }
  .masthead.sm-header .ya-rating-badge__frame {
    filter: brightness(1.05);
  }
}

.sm-header-burger,
.masthead.sm-header .mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--tenet-border-strong);
  background: transparent;
  flex-shrink: 0;
}

.sm-header-burger__lines,
.mobile-menu-toggle__lines {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}

.sm-header-burger__lines span,
.mobile-menu-toggle__lines span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--tenet-ink);
  transition: 0.25s;
}

.sm-header-burger__lines span:nth-child(1),
.mobile-menu-toggle__lines span:nth-child(1) {
  top: 0;
}

.sm-header-burger__lines span:nth-child(2),
.mobile-menu-toggle__lines span:nth-child(2) {
  top: 6px;
}

.sm-header-burger__lines span:nth-child(3),
.mobile-menu-toggle__lines span:nth-child(3) {
  top: 12px;
}

@media (max-width: 1199px) {
  .sm-header-nav,
  .masthead.sm-header .custom-main-nav {
    display: none !important;
  }
  .sm-header-burger,
  .masthead.sm-header .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

/* Full-screen mobile menu */
.sm-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--tenet-ink);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.sm-mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sm-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .sm-mobile-menu__head {
    height: 84px;
    padding: 0 24px;
  }
}

.sm-mobile-menu__title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.sm-mobile-menu__title small {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.sm-mobile-menu__title strong {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.sm-mobile-menu__title strong em {
  font-style: normal;
  color: var(--tenet-accent);
}

.sm-mobile-menu__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.sm-mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px 24px;
  overflow-y: auto;
}

.sm-mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.sm-mobile-menu__nav a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-mobile-menu__nav a:hover {
  color: var(--tenet-accent);
}

.sm-mobile-menu__nav a span.sm-mobile-menu__chev {
  color: var(--tenet-accent);
  font-size: 20px;
}

.sm-mobile-menu__foot {
  padding: 24px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-mobile-menu__foot .sm-header-callback {
  width: 100%;
  height: 48px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sm-mobile-menu__foot .sm-mobile-menu__phone {
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 8px;
}

.sm-mobile-menu__foot .sm-mobile-menu__meta {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.sm-mobile-menu__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-panel {
  display: none !important;
}

body.sm-mobile-menu-open {
  overflow: hidden;
}

/* Standalone pages: offset below fixed header */
body.has-sm-header {
  padding-top: var(--sm-header-offset, 104px);
}

.masthead.sm-header + #main {
  padding-top: var(--header-offset, var(--sm-header-offset, 120px)) !important;
}

.masthead.sm-header .top-bar {
  display: none !important;
}


.masthead.sm-header .taxi-menu-link a {
  padding: 0 14px !important;
  display: flex !important;
  align-items: center;
}

.masthead.sm-header .taxi-menu-link img {
  height: 22px !important;
  width: auto !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.sm-header-logo__tenet {
  width: clamp(34px, 11vw, 65px);
  height: auto;
  flex-shrink: 0;
}

.sm-header-logo__chery {
  height: clamp(11px, 3.6vw, 22px);
  width: auto;
  flex-shrink: 0;
}

.sm-header-logo__div {
  display: inline-block;
  width: 1px;
  height: clamp(18px, 5.5vw, 32px);
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.sm-header-logo__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
  white-space: nowrap;
  min-width: 0;
}

.sm-header-logo__top {
  font-size: clamp(8px, 2.2vw, 13px);
  font-weight: 800;
  color: var(--tenet-ink);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sm-header-logo__bot {
  font-size: clamp(6.5px, 1.8vw, 11px);
  font-weight: 600;
  color: var(--tenet-ink-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* —— TENET dark header (homepage, Changan structure) —— */
.masthead.sm-header.sm-header--tenet {
  color: #fff !important;
  background: var(--tenet-ink) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.masthead.sm-header.sm-header--tenet.sm-header--scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.masthead.sm-header.sm-header--tenet .sm-header-top {
  max-width: 1400px;
  height: 36px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1024px) {
  .masthead.sm-header.sm-header--tenet .sm-header-top {
    padding: 0 32px;
  }
}

.masthead.sm-header.sm-header--tenet .sm-header-callback {
  height: 28px;
  padding: 0 12px;
  background: var(--tenet-accent) !important;
  border-color: var(--tenet-accent) !important;
  color: #fff !important;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.masthead.sm-header.sm-header--tenet .sm-header-callback:hover {
  background: var(--tenet-accent-hover) !important;
  border-color: var(--tenet-accent-hover) !important;
}

.masthead.sm-header.sm-header--tenet .sm-header-phone {
  color: #fff !important;
}

.masthead.sm-header.sm-header--tenet .sm-header-main {
  max-width: 1400px;
  min-height: 68px;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .masthead.sm-header.sm-header--tenet .sm-header-main {
    min-height: 76px;
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .masthead.sm-header.sm-header--tenet .sm-header-main {
    min-height: 88px;
    max-height: 92px;
    padding: 0 32px;
  }
}

.masthead.sm-header.sm-header--tenet .sm-header-lockup {
  gap: 12px;
  min-width: 0;
}

.masthead.sm-header.sm-header--tenet .sm-header-lockup__logo {
  width: clamp(56px, 7vw, 88px);
  height: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.masthead.sm-header.sm-header--tenet .sm-header-lockup__divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.masthead.sm-header.sm-header--tenet .sm-header-lockup__text {
  display: none;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}

@media (min-width: 640px) {
  .masthead.sm-header.sm-header--tenet .sm-header-lockup__text {
    display: flex;
  }
}

.masthead.sm-header.sm-header--tenet .sm-header-lockup__line {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9) !important;
}

.masthead.sm-header.sm-header--tenet .sm-header-lockup__line--muted {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5) !important;
}

.masthead.sm-header.sm-header--tenet .sm-header-nav,
.masthead.sm-header.sm-header--tenet .custom-main-nav {
  justify-content: flex-end !important;
}

.masthead.sm-header.sm-header--tenet .custom-main-nav a {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  padding: 10px 12px !important;
}

@media (min-width: 1280px) {
  .masthead.sm-header.sm-header--tenet .custom-main-nav a {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
}

.masthead.sm-header.sm-header--tenet .custom-main-nav a:hover {
  color: var(--tenet-accent) !important;
}

.masthead.sm-header.sm-header--tenet .mobile-menu-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

.masthead.sm-header.sm-header--tenet .mobile-menu-toggle__lines span {
  background: #fff;
}

.masthead.sm-header.sm-header--tenet .ya-rating-badge {
  display: none !important;
}
