.site-header.site-header-live {
  --smd-header-green: var(--smd-header-nav);
  --smd-header-green-hover: var(--smd-header-nav-hover);
  --smd-header-leaf: var(--smd-primary-light);
  --smd-header-green-soft: var(--smd-primary-soft);
  --smd-header-brown: var(--smd-brand-brown);
  --smd-header-brown-hover: var(--smd-brand-brown-hover);
  --smd-header-brown-soft: var(--smd-brand-brown-soft);
  --smd-header-ink: #342d27;
  --smd-header-line: #e7ded4;
  position: sticky;
  top: 0;
  z-index: 140;
  display: block;
  width: 100%;
  background: transparent;
  box-shadow: 0 14px 34px rgba(79, 55, 35, 0.10);
}

@media (min-width: 783px) {
  .admin-bar .site-header.site-header-live {
    top: 32px;
  }
}

@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .site-header.site-header-live {
    top: 46px;
  }
}

.site-header-top {
  background: #fff;
  border-bottom: 1px solid var(--smd-header-line);
}

.site-header-top-inner {
  min-height: var(--header-top-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
}

.site-logo {
  display: inline-flex;
  width: 130px;
  min-width: 0;
  align-items: center;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-brand-lockup__divider {
  width: 1px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--smd-header-line);
}

.site-partner-logo {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.site-partner-logo span {
  color: var(--smd-muted);
  font-family: "Roboto", sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.site-partner-logo img {
  display: block;
  width: 118px;
  height: auto;
}

.site-header-info {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: "Roboto", sans-serif;
}

.site-header-info-item,
.site-header-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--smd-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.site-header-info a:hover {
  color: var(--smd-header-green);
}

.site-header-info svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: var(--smd-header-leaf);
  stroke: var(--smd-header-leaf);
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--smd-header-green);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-book:hover {
  background: var(--smd-header-green-hover);
  box-shadow: 0 8px 20px rgba(71, 124, 47, 0.24);
  transform: translateY(-1px);
}

.btn-book:focus-visible {
  outline: 3px solid rgba(106, 168, 68, .34);
  outline-offset: 3px;
}

.header-account {
  position: relative;
  flex: 0 0 auto;
  font-family: "Roboto", sans-serif;
}

.header-account__toggle {
  position: relative;
  min-width: 116px;
  height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(101, 73, 47, .28);
  border-radius: 999px;
  background: #fff;
  color: var(--smd-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.header-account__toggle:hover,
.header-account__toggle:focus-visible,
.header-account.is-open .header-account__toggle {
  border-color: rgba(101, 73, 47, .58);
  background: var(--smd-header-brown-soft);
  color: var(--smd-header-brown-hover);
  box-shadow: 0 8px 20px rgba(101, 73, 47, .12);
  outline: none;
}

.header-account__toggle:hover {
  transform: translateY(-1px);
}

.header-account__person {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--smd-header-brown);
}

.header-account__chevron {
  width: 10px;
  height: 7px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.header-account.is-open .header-account__chevron {
  transform: rotate(180deg);
}

.header-account__status {
  width: 7px;
  height: 7px;
  margin-left: -4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--smd-header-leaf);
  box-shadow: 0 0 0 3px rgba(106, 168, 68, .16);
}

.header-account__menu[hidden] {
  display: none;
}

.header-account__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 220;
  width: 256px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .17), 0 4px 12px rgba(15, 23, 42, .06);
  animation: header-account-menu-in .18s ease both;
}

.header-account__menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  border-left: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  transform: rotate(45deg);
}

.header-account__identity {
  position: relative;
  margin-bottom: 12px;
  padding: 3px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid #edf2f7;
}

.header-account__identity strong {
  overflow-wrap: anywhere;
  color: var(--smd-text);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.header-account__identity span {
  color: #7a8796;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.header-account__menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.header-account__menu-link--primary {
  background: var(--smd-header-green);
  color: #fff;
}

.header-account__menu-link--primary:hover,
.header-account__menu-link--primary:focus-visible {
  background: var(--smd-header-green-hover);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.header-account__menu-link--logout {
  margin-top: 7px;
  background: #f6f8fa;
  color: #516170;
}

.header-account.is-patient .header-account__menu-link--logout {
  margin-top: 0;
}

.header-account__menu-link--logout:hover,
.header-account__menu-link--logout:focus-visible {
  background: #fff1f1;
  color: #c94040;
  outline: none;
}

.header-account__register {
  margin-top: 10px;
  display: block;
  color: var(--smd-header-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.header-account__register:hover,
.header-account__register:focus-visible {
  color: var(--smd-header-green-hover);
  text-decoration: underline;
  outline: none;
}

@keyframes header-account-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.icon-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.icon-btn.tg {
  background: #55acee;
}

.icon-btn.wa {
  background: #5ecf69;
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--smd-header-brown);
}

.service-nav {
  position: relative;
  z-index: 139;
  width: 100%;
  background: var(--smd-menu-bg, var(--smd-header-green));
}

.service-nav .container {
  position: relative;
}

.service-nav-inner {
  height: var(--header-nav-h);
  max-width: 1200px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
}

.service-nav-inner > .menu-item {
  position: static;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.service-nav-inner > .menu-item > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--header-nav-h);
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.service-nav-inner > .menu-item:hover > a,
.service-nav-inner > .current-menu-item > a,
.service-nav-inner > .current-menu-ancestor > a {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 -3px 0 var(--smd-header-leaf);
}

.service-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 170;
  width: auto;
  margin: 0;
  padding: 22px clamp(28px, 4vw, 72px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px clamp(14px, 1.8vw, 24px);
  list-style: none;
  background: #fff;
  border: 1px solid rgba(18, 46, 78, .08);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10), 0 6px 16px rgba(15, 23, 42, .04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.service-nav .sub-menu .menu-item {
  margin: 0;
  padding: 0;
}

.service-nav .sub-menu a {
  display: block;
  padding: 5px 0;
  color: #2b3138;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.service-nav .sub-menu a:hover,
.service-nav .sub-menu a:focus {
  color: var(--smd-header-green);
}

.service-nav .menu-item-has-children:hover > .sub-menu,
.service-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1025px) {
  .service-nav .container {
    position: static;
  }

  .service-nav .menu-compact {
    position: relative;
  }

  .service-nav .menu-compact > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 250px;
    max-width: 290px;
    padding: 10px 16px;
    display: block;
    border-radius: 0 0 12px 12px;
  }

  .service-nav .menu-compact > .sub-menu a {
    padding: 7px 0;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .site-header.site-header-live {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  }

  .site-header-top-inner {
    gap: 12px;
  }

  .site-logo {
    width: 110px;
  }

  .site-partner-logo img {
    width: 104px;
  }

  .site-header-info {
    display: none;
  }

  .btn-book {
    padding: 11px 20px;
    font-size: 14px;
  }

  .burger {
    display: inline-flex;
  }

  .service-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border-top: 1px solid var(--smd-header-line);
    box-shadow: 0 18px 30px rgba(79, 55, 35, .14);
  }

  .service-nav.nav-open {
    display: block;
  }

  .service-nav .container {
    width: 100%;
  }

  .service-nav-inner {
    height: auto;
    max-height: calc(100vh - var(--header-top-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 20px;
  }

  .service-nav-inner > .menu-item {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-nav-inner > .menu-item > a {
    width: 100%;
    height: auto;
    padding: 11px 0;
    justify-content: flex-start;
    color: var(--smd-text);
    font-size: 14px;
    border-bottom: 1px solid #eef3f8;
  }

  .service-nav-inner > .menu-item:hover > a,
  .service-nav-inner > .current-menu-item > a,
  .service-nav-inner > .current-menu-ancestor > a {
    color: var(--smd-header-green);
    background: transparent;
    box-shadow: none;
  }

  .service-nav .sub-menu {
    position: static;
    width: 100%;
    margin: -2px 0 0;
    padding: 4px 0 6px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .service-nav .sub-menu a {
    padding: 8px 0;
    color: #5a6672;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body.smd-mobile-menu-open {
    overflow: hidden;
  }

  .site-logo {
    width: 82px;
  }

  .site-brand-lockup {
    gap: 8px;
  }

  .site-brand-lockup__divider {
    height: 28px;
  }

  .site-partner-logo {
    gap: 3px;
  }

  .site-partner-logo span {
    font-size: 7px;
  }

  .site-partner-logo img {
    width: 76px;
  }

  .site-header-actions {
    gap: 8px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .btn-book {
    padding: 10px 16px;
    font-size: 13px;
  }

  .header-account__toggle {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .header-account__label,
  .header-account__chevron {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-account__status {
    position: absolute;
    top: 2px;
    right: 1px;
    width: 7px;
    height: 7px;
    margin: 0;
    border: 1px solid #fff;
    box-shadow: none;
  }

  .header-account__menu {
    top: calc(100% + 10px);
    width: min(256px, calc(100vw - 32px));
  }

  .service-nav-inner {
    padding: 14px 18px 18px;
  }

  .service-nav-inner > .menu-item-has-children > a {
    min-height: 46px;
    padding-right: 30px;
  }

  .service-nav-inner > .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
  }

  .service-nav-inner > .menu-item-has-children.open > a::after {
    transform: translateY(-35%) rotate(225deg);
  }

  .service-nav .sub-menu {
    display: none;
    margin-top: 0;
    padding: 2px 0 8px;
  }

  .service-nav .menu-item-has-children.open > .sub-menu {
    display: grid;
  }

  .service-nav .sub-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 0 10px 16px;
  }
}

@media (max-width: 560px) {
  .site-header-actions .icon-btn.tg,
  .site-header-actions .icon-btn.wa {
    display: none;
  }

  .btn-book {
    display: inline-flex;
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .site-logo {
    width: 70px;
  }

  .site-brand-lockup {
    gap: 5px;
  }

  .site-brand-lockup__divider {
    height: 24px;
  }

  .site-partner-logo span {
    display: none;
  }

  .site-partner-logo img {
    width: 58px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .header-account__toggle {
    min-width: 38px;
    width: 38px;
    height: 38px;
  }

  .burger {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 375px) {
  .site-header-top-inner {
    gap: 6px;
  }

  .site-logo {
    width: 64px;
  }

  .site-partner-logo img {
    width: 52px;
  }

  .site-header-actions {
    gap: 5px;
  }

  .btn-book {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .icon-btn,
  .header-account__toggle {
    min-width: 36px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 340px) {
  .site-logo {
    width: 58px;
  }

  .site-partner-logo img {
    width: 40px;
  }

  .site-brand-lockup__divider {
    height: 20px;
  }

  .site-header-actions {
    gap: 3px;
  }

  .btn-book {
    min-height: 32px;
    padding: 0 6px;
    font-size: 9px;
  }

  .header-account__toggle {
    min-width: 32px;
    width: 32px;
    height: 32px;
  }

  .burger {
    width: 36px;
    height: 36px;
  }
}

/*
 * Header-only brand experiment.
 * Leaf green carries the structural navigation; warm tree brown is
 * reserved for the appointment action. These scoped rules
 * intentionally override the legacy bright-brand layer without changing
 * buttons or surfaces elsewhere on the site.
 */
.site-header.site-header-live {
  box-shadow: 0 14px 34px rgba(79, 55, 35, .10) !important;
}

.site-header.site-header-live .site-header-top {
  border-color: var(--smd-header-line);
  background: #fff;
}

.site-header.site-header-live .service-nav {
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(61, 41, 25, .28);
  background: var(--smd-header-green);
}

.site-header.site-header-live .service-nav-inner > .menu-item:hover > a,
.site-header.site-header-live .service-nav-inner > .current-menu-item > a,
.site-header.site-header-live .service-nav-inner > .current-menu-ancestor > a {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .72);
}

.site-header.site-header-live .btn-book {
  background: var(--smd-header-brown) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--smd-brand-brown) 24%, transparent) !important;
  color: #fff !important;
}

.site-header.site-header-live .btn-book:hover {
  background: var(--smd-header-brown-hover) !important;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--smd-brand-brown) 30%, transparent) !important;
}

.site-header.site-header-live .header-account__toggle {
  border-color: rgba(101, 73, 47, .28);
}

.site-header.site-header-live .header-account__toggle:hover,
.site-header.site-header-live .header-account__toggle:focus-visible,
.site-header.site-header-live .header-account.is-open .header-account__toggle {
  border-color: rgba(101, 73, 47, .58);
  background: var(--smd-header-brown-soft);
  color: var(--smd-header-brown-hover);
  box-shadow: 0 8px 20px rgba(101, 73, 47, .12);
}

@media (max-width: 1024px) {
  .site-header.site-header-live .service-nav,
  .site-header.site-header-live .service-nav.nav-open {
    border-color: var(--smd-header-line);
    background: rgba(255, 254, 250, .99);
    box-shadow: 0 18px 38px rgba(79, 55, 35, .14);
  }

  .site-header.site-header-live .service-nav-inner > .menu-item:hover > a,
  .site-header.site-header-live .service-nav-inner > .current-menu-item > a,
  .site-header.site-header-live .service-nav-inner > .current-menu-ancestor > a {
    background: var(--smd-header-green-soft);
    color: var(--smd-header-green-hover);
    box-shadow: none;
  }

  .site-header.site-header-live .service-nav .sub-menu a:hover,
  .site-header.site-header-live .service-nav .sub-menu a:focus-visible {
    color: var(--smd-header-green);
  }
}
