/**
 * Prime Clinic — original two-row header, modernized with gold SVG icons.
 * Distinct file, loaded last. Does not copy Proud (no teal / cyan / single-row site-header).
 *
 * Structure:
 *   1) utility bar — phone, map-pin, clock
 *   2) main bar    — logo + menu + calendar CTA
 */

html body {
  --pc-hs-gold: #c09c73;
  --pc-hs-gold-dark: #98774e;
  --pc-hs-ink: #18212d;
  --pc-hs-mute: #5d656d;
  --pc-hs-line: #dde8e8;
  --pc-hs-paper: #f5f8f9;
  --pc-hs-white: #fff;
}

/* -------------------------------------------------------------------------- */
/* Undo sibling flatten (nav-modern display:contents) — keep two rows         */
/* -------------------------------------------------------------------------- */

html body header.main-header.pc-hs,
html body header.main-header.pc-hs.active,
html body header.main-header.pc-hs.active2,
html body header.main-header.pc-header.pc-hs,
html body header.main-header.prime-head.pc-hs {
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 130;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--pc-hs-white) !important;
  border-bottom: 1px solid var(--pc-hs-line) !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html body header.main-header.pc-hs.is-scrolled {
  box-shadow: 0 8px 24px rgba(24, 33, 45, 0.07) !important;
}

html body header.main-header.pc-hs:not(.pc-header):not(.prime-head) .main-container {
  display: flex !important;
  flex-direction: column !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  min-height: 0 !important;
}

html body header.main-header.pc-hs:not(.pc-header):not(.prime-head) .center-header,
html body header.main-header.pc-hs:not(.pc-header):not(.prime-head) .bottom-header,
html body header.main-header.pc-hs:not(.pc-header):not(.prime-head) .cheader-row,
html body header.main-header.pc-hs:not(.pc-header):not(.prime-head) .bheader-row {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 16px;
}

html body header.main-header.pc-hs .soc-header,
html body header.main-header.pc-hs .bvi-header,
html body header.main-header.pc-hs .contacts-header .soc-block,
html body header.main-header.pc-hs .lk-link,
html body header.main-header.pc-hs .pc-header-legacy,
html body header.main-header.pc-hs .prime-head__legacy {
  display: none !important;
}

html body header.main-header.pc-hs.is-reflowed .contacts-header,
html body header.main-header.pc-hs.is-reflowed .bottom-header .right,
html body header.main-header.pc-hs.is-reflowed .zvonok-header {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Utility bar — phone / pin / clock                                          */
/* -------------------------------------------------------------------------- */

.pc-hs-utility,
html body header.main-header.pc-hs .prime-head__rail,
html body header.main-header.pc-hs .pc-hs-utility {
  display: block !important;
  width: 100%;
  background: var(--pc-hs-paper) !important;
  color: var(--pc-hs-ink);
  border-bottom: 1px solid var(--pc-hs-line);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.pc-hs-utility-inner,
html body header.main-header.pc-hs .prime-head__rail-inner {
  max-width: 1310px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  min-height: 40px;
}

.pc-hs-item,
html body header.main-header.pc-hs .pc-hs-item,
html body header.main-header.pc-hs .prime-head__where,
html body header.main-header.pc-hs .prime-head__when,
html body header.main-header.pc-hs .prime-head__phone {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--pc-hs-ink) !important;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pc-hs-item:hover,
html body header.main-header.pc-hs .pc-hs-phone:hover,
html body header.main-header.pc-hs .pc-hs-addr:hover,
html body header.main-header.pc-hs .prime-head__phone:hover {
  color: var(--pc-hs-gold) !important;
}

.pc-hs-ico,
html body header.main-header.pc-hs .pc-hs-ico,
html body header.main-header.pc-hs .prime-head__where .pc-hs-ico,
html body header.main-header.pc-hs .prime-head__when .pc-hs-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--pc-hs-gold) !important;
  stroke: var(--pc-hs-gold);
}

.pc-hs-utility-end,
html body header.main-header.pc-hs .pc-hs-utility-end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.pc-hs-book,
html body header.main-header.pc-hs .pc-hs-book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  padding: 6px 8px 6px 12px;
  background: #fffaf4;
  border: 1px solid rgba(192, 156, 115, 0.35);
  border-radius: 18px;
}

.pc-hs-book__phones {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.pc-hs-book__phone {
  color: #18212d !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 0.82rem;
}

.pc-hs-book__phone--extra {
  font-weight: 600;
  font-size: 0.72rem;
  color: #5b6169 !important;
}

.pc-hs-book__hint {
  color: #5b6169;
  font-size: 0.75rem;
  line-height: 1.25;
  max-width: 210px;
}

.pc-hs-book__cta,
html body header.main-header.pc-hs .pc-hs-book__cta {
  flex: 0 0 auto;
  padding: 8px 14px !important;
  font-size: 0.8125rem !important;
  white-space: nowrap;
}

.pc-hs-drawer .pc-hs-book {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 16px;
  padding: 14px;
}

.pc-hs-drawer .pc-hs-book__hint {
  max-width: none;
}

.pc-hs-callback,
html body header.main-header.pc-hs .pc-hs-callback,
html body header.main-header.pc-hs .prime-head__callback,
.zvonok-header {
  display: none !important;
}

.pc-hs-bvi,
html body header.main-header.pc-hs a.pc-hs-bvi.bvi-open,
html body .pc-hs-drawer a.pc-hs-bvi.bvi-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--pc-hs-gold) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.3;
}

.pc-hs-bvi:hover,
html body header.main-header.pc-hs a.pc-hs-bvi.bvi-open:hover,
html body .pc-hs-drawer a.pc-hs-bvi.bvi-open:hover {
  color: var(--pc-hs-gold-dark) !important;
  background: transparent !important;
}

.pc-hs-bvi .pc-hs-ico,
html body header.main-header.pc-hs .pc-hs-bvi .pc-hs-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--pc-hs-gold) !important;
  stroke: var(--pc-hs-gold);
}

/* -------------------------------------------------------------------------- */
/* Main bar — logo + menu + CTA                                               */
/* -------------------------------------------------------------------------- */

.pc-hs-main,
html body header.main-header.pc-hs .pc-header__bar,
html body header.main-header.pc-hs .prime-head__stage {
  max-width: 1310px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex !important;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  background: var(--pc-hs-white);
  box-sizing: border-box;
}

html body header.main-header.pc-hs .prime-head__brand {
  border-left: 0 !important;
  padding-left: 0 !important;
}

.pc-hs-logo,
html body header.main-header.pc-hs .pc-hs-logo,
html body header.main-header.pc-hs .pc-header__logo,
html body header.main-header.pc-hs .logo,
html body header.main-header.pc-hs .prime-head__brand {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
  max-width: none !important;
  text-decoration: none;
  background: transparent !important;
  background-color: transparent !important;
}

.pc-hs-logo img,
html body header.main-header.pc-hs .logo img,
html body header.main-header.pc-hs .pc-header__logo img,
html body header.main-header.pc-hs .prime-head__brand img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: normal;
}

html body header.main-header.pc-hs .prime-head__brand-meta {
  display: none;
}

.pc-hs-nav,
html body header.main-header.pc-hs .pc-hs-nav,
html body header.main-header.pc-hs .pc-header__nav,
html body header.main-header.pc-hs .prime-head__nav,
html body header.main-header.pc-hs .bottom-header .left {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

html body header.main-header.pc-hs .service-menu-block {
  position: static !important;
  margin: 0 8px 0 0 !important;
  inset: auto !important;
}

html body header.main-header.pc-hs .open-service-menu,
html body header.main-header.pc-hs .open-service-menu.btn,
html body header.main-header.pc-hs .open-service-menu.btn-red,
html body header.main-header.pc-hs .pc-hs-services {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  min-height: 42px !important;
  height: auto !important;
  width: auto !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  border: 1px solid var(--pc-hs-gold) !important;
  background: var(--pc-hs-gold) !important;
  color: var(--pc-hs-white) !important;
  font-size: 0.9375rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  text-transform: none !important;
  cursor: pointer;
}

html body header.main-header.pc-hs .open-service-menu:hover,
html body header.main-header.pc-hs .service-menu-block.active .open-service-menu {
  background: var(--pc-hs-gold-dark) !important;
  border-color: var(--pc-hs-gold-dark) !important;
  color: var(--pc-hs-white) !important;
}

html body header.main-header.pc-hs .open-service-menu svg {
  display: none;
}

.pc-hs-list,
html body header.main-header.pc-hs .pc-hs-menu-wrap,
html body header.main-header.pc-hs .append-nazad,
html body header.main-header.pc-hs .main-menu,
html body header.main-header.pc-hs .main-menu .menu,
html body header.main-header.pc-hs .main-menu .main,
html body header.main-header.pc-hs .pc-nav-list,
html body header.main-header.pc-hs .prime-head__list {
  display: flex !important;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

html body header.main-header.pc-hs .main-menu .lvl-1-item,
html body header.main-header.pc-hs .pc-nav-item,
html body header.main-header.pc-hs .prime-head__item {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

html body header.main-header.pc-hs .main-menu .lvl-1-link,
html body header.main-header.pc-hs .pc-nav-item > a,
html body header.main-header.pc-hs .prime-head__item > a {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 10px 14px !important;
  color: var(--pc-hs-ink) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
}

html body header.main-header.pc-hs .main-menu .lvl-1-link:hover,
html body header.main-header.pc-hs .pc-nav-item > a:hover,
html body header.main-header.pc-hs .prime-head__item > a:hover {
  color: var(--pc-hs-gold) !important;
  background: transparent !important;
}

.pc-hs-actions,
html body header.main-header.pc-hs .pc-hs-actions,
html body header.main-header.pc-hs .pc-header__actions,
html body header.main-header.pc-hs .prime-head__aside,
html body header.main-header.pc-hs .last {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.pc-hs-cta,
html body header.main-header.pc-hs .pc-hs-cta,
html body header.main-header.pc-hs .btn-header.btn-zapis,
html body header.main-header.pc-hs .prime-head__cta,
html body header.main-header.pc-hs .pc-header__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px !important;
  padding: 11px 22px !important;
  border-radius: 8px !important;
  border: 1px solid var(--pc-hs-gold) !important;
  background: var(--pc-hs-gold) !important;
  color: var(--pc-hs-white) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.01em;
  box-shadow: none !important;
  max-width: none !important;
  width: auto !important;
  cursor: pointer;
  text-transform: none !important;
}

.pc-hs-cta:hover,
html body header.main-header.pc-hs .btn-header.btn-zapis:hover {
  background: var(--pc-hs-gold-dark) !important;
  border-color: var(--pc-hs-gold-dark) !important;
  color: var(--pc-hs-white) !important;
}

.pc-hs-ico--cta,
html body header.main-header.pc-hs .pc-hs-cta .pc-hs-ico,
html body header.main-header.pc-hs .btn-zapis .pc-hs-ico {
  width: 16px;
  height: 16px;
  color: var(--pc-hs-white) !important;
  stroke: currentColor;
}

.pc-hs-cta-short {
  display: none;
}

/* Hide duplicate phone in the main row once utility exists */
html body header.main-header.pc-hs .pc-header__phone,
html body header.main-header.pc-hs.has-utility .pc-header__phone,
html body header.main-header.pc-hs.has-utility .prime-head__phone {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Mobile toggle + drawer                                                     */
/* -------------------------------------------------------------------------- */

.pc-hs-toggle,
html body header.main-header.pc-hs .pc-hs-toggle,
html body header.main-header.pc-hs .pc-nav-toggle,
html body header.main-header.pc-hs .prime-head__toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--pc-hs-gold);
  border-radius: 8px;
  background: var(--pc-hs-white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pc-hs-toggle span,
html body header.main-header.pc-hs .pc-nav-toggle span,
html body header.main-header.pc-hs .prime-head__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pc-hs-gold);
  border-radius: 1px;
}

.pc-hs-drawer[hidden] {
  display: none !important;
}

.pc-hs-drawer.is-open {
  display: block;
}

.pc-hs-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 33, 45, 0.45);
  z-index: 140;
}

.pc-hs-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--pc-hs-white);
  z-index: 141;
  padding: 20px 22px 32px;
  overflow: auto;
  box-shadow: -12px 0 32px rgba(24, 33, 45, 0.12);
}

.pc-hs-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pc-hs-drawer__title {
  margin: 0;
  color: var(--pc-hs-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.pc-hs-drawer__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--pc-hs-ink);
  cursor: pointer;
}

.pc-hs-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-hs-drawer__list > li > a,
.pc-hs-drawer__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--pc-hs-ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--pc-hs-line);
  cursor: pointer;
  text-align: left;
}

.pc-hs-drawer__sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px 0 10px 12px;
}

.pc-hs-drawer__item.is-open > .pc-hs-drawer__sub {
  display: block;
}

.pc-hs-drawer__sub a {
  display: block;
  padding: 8px 0;
  color: var(--pc-hs-mute);
  text-decoration: none;
}

.pc-hs-drawer__sub a:hover,
.pc-hs-drawer__list > li > a:hover,
.pc-hs-drawer__btn:hover {
  color: var(--pc-hs-gold);
}

.pc-hs-drawer__meta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--pc-hs-mute);
  font-size: 0.9375rem;
}

.pc-hs-drawer__meta .pc-hs-cta {
  margin-top: 8px;
}

body.pc-hs-nav-open {
  overflow: hidden;
}

html body .page-block,
html body .yakor-page .page-block {
  padding-top: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Breakpoints                                                                */
/* -------------------------------------------------------------------------- */

/* Keep the utility strip on one line when the bvi control is added. */
@media (max-width: 1440px) {
  .pc-hs-utility-inner,
  html body header.main-header.pc-hs .pc-hs-utility-inner {
    gap: 8px 14px;
    padding: 8px 16px;
    flex-wrap: nowrap;
  }

  .pc-hs-utility-end,
  html body header.main-header.pc-hs .pc-hs-utility-end {
    gap: 12px;
  }

  .pc-hs-bvi,
  html body header.main-header.pc-hs a.pc-hs-bvi.bvi-open {
    font-size: 0.75rem;
  }

  .pc-hs-item,
  html body header.main-header.pc-hs .pc-hs-item {
    font-size: 0.75rem;
    gap: 6px;
  }
}

@media (max-width: 1280px) {
  html body header.main-header.pc-hs .pc-hs-hours {
    display: none;
  }
}

@media (max-width: 1200px) {
  html body header.main-header.pc-hs .main-menu .lvl-1-link,
  html body header.main-header.pc-hs .pc-nav-item > a,
  html body header.main-header.pc-hs .prime-head__item > a {
    padding: 10px 10px !important;
    font-size: 0.875rem !important;
  }

  html body header.main-header.pc-hs .open-service-menu {
    padding: 8px 12px !important;
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 1023px) {
  .pc-hs-nav,
  html body header.main-header.pc-hs .pc-hs-nav,
  html body header.main-header.pc-hs .pc-header__nav,
  html body header.main-header.pc-hs .prime-head__nav,
  html body header.main-header.pc-hs .bottom-header .left,
  html body header.main-header.pc-hs .append-nazad,
  html body header.main-header.pc-hs .main-menu {
    display: none !important;
  }

  .pc-hs-toggle,
  html body header.main-header.pc-hs .pc-hs-toggle,
  html body header.main-header.pc-hs .pc-nav-toggle,
  html body header.main-header.pc-hs .prime-head__toggle {
    display: inline-flex !important;
  }

  .pc-hs-main,
  html body header.main-header.pc-hs .pc-header__bar,
  html body header.main-header.pc-hs .prime-head__stage {
    min-height: 64px;
    padding: 8px 12px;
    gap: 10px;
  }

  .pc-hs-hours,
  .pc-hs-addr span,
  html body header.main-header.pc-hs .pc-hs-hours {
    display: none !important;
  }

  .pc-hs-utility-inner {
    padding: 6px 12px;
    gap: 10px;
  }

  .pc-hs-cta-full {
    display: none;
  }

  .pc-hs-cta-short {
    display: inline;
  }

  html body header.main-header.pc-hs .btn-zapis {
    padding: 8px 14px !important;
    min-height: 42px !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 480px) {
  .pc-hs-logo img,
  html body header.main-header.pc-hs .logo img,
  html body header.main-header.pc-hs .pc-header__logo img,
  html body header.main-header.pc-hs .prime-head__brand img {
    height: 34px;
    max-width: 118px;
  }

  .pc-hs-phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .pc-hs-phone {
    width: 44px;
    height: 36px;
    justify-content: center;
  }

  .pc-hs-book {
    padding: 4px;
    gap: 8px;
  }

  .pc-hs-book__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body header.main-header.pc-hs * {
    transition: none !important;
  }
}
