/* ya-zdorova header — Figma 8016:1418 / 8007:616 */
.yz-header,
.yz-header *,
.yz-header *::before,
.yz-header *::after {
  box-sizing: border-box;
}

.yz-header {
  --yz-blue: #3a95bf;
  --yz-blue-light: rgba(58, 149, 191, 0.1);
  --yz-text: #333;
  --yz-gray: #828282;
  --yz-gray-dark: #424242;
  --yz-border: #dee0e4;
  --yz-bg-top: #f5f6f7;
  --yz-radius: 10px;
  --yz-container: 1200px;
  --yz-side: 120px;
  font-family: Roboto, Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff !important;
  color: #333 !important;
  width: 100%;
  line-height: 1.4;
}

.yz-header__container {
  max-width: var(--yz-container);
  margin: 0 auto;
  width: 100%;
}

/* ── Top bar ── */
.yz-header__topbar {
  background: var(--yz-bg-top) !important;
  padding: 16px var(--yz-side);
}

.yz-header__topbar-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--yz-text) !important;
  letter-spacing: -0.2px;
}

.yz-header__topbar-left {
  display: flex !important;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap !important;
  min-width: 0;
}

.yz-header__top-item {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.yz-header__top-item--address {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

.yz-header__top-item--address > span:first-of-type {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yz-header__top-divider {
  display: block !important;
  width: 1px;
  height: 16px;
  background: var(--yz-border);
  flex-shrink: 0;
}

.yz-header__top-divider--inner {
  margin: 0 4px;
}

.yz-header__metro {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.yz-header__metro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}

.yz-header__metro-dash {
  margin: 0 2px;
}

.yz-header__access {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  color: inherit !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Main block ── */
.yz-header__main {
  border-bottom: 1px solid var(--yz-border);
  padding: 20px var(--yz-side) 0;
  background: #fff !important;
}

#yz-header .yz-header__main-row {
  display: grid !important;
  grid-template-columns: 325px 175px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.yz-header__brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit !important;
  width: 325px;
}

.yz-header__brand-logo {
  width: 76px;
  height: 72px;
  flex-shrink: 0;
}

.yz-header__brand-logo img {
  display: block !important;
  width: 76px !important;
  height: 72px !important;
  object-fit: contain;
}

.yz-header__brand-text {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

.yz-header__brand-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--yz-gray-dark) !important;
}

.yz-header__brand-sub {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: var(--yz-blue) !important;
}

.yz-header__search {
  width: 175px;
}

.yz-header__search form {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  margin: 0 !important;
  border: 1px solid var(--yz-border);
  border-radius: var(--yz-radius);
  background: #fff !important;
}

.yz-header__search input {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--yz-text) !important;
  background: transparent !important;
  min-width: 0;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.yz-header__search input::placeholder {
  color: var(--yz-gray) !important;
}

.yz-header__search button {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  cursor: pointer;
  line-height: 0;
  width: 20px;
  height: 20px;
}

.yz-header__search button img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.yz-header__actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: nowrap !important;
  min-width: 0;
}

.yz-header__phone-block {
  text-align: right;
  flex-shrink: 0;
}

.yz-header__phone {
  display: block !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--yz-text) !important;
  text-decoration: none !important;
  letter-spacing: -0.3px;
  line-height: 1.4 !important;
  white-space: nowrap;
}

.yz-header__callback {
  display: inline-block !important;
  margin-top: 2px;
  font-size: 14px !important;
  color: var(--yz-blue) !important;
  text-decoration: underline !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  font-family: inherit !important;
  white-space: nowrap;
}

.yz-header__social {
  display: flex !important;
  gap: 8px;
  flex-shrink: 0;
}

.yz-header__social a {
  display: flex !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--yz-radius);
  overflow: hidden;
  padding: 0 !important;
}

.yz-header__social img {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
}

.yz-header__buttons {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.yz-header__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: var(--yz-radius) !important;
  border: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.1px;
  cursor: pointer;
  font-family: inherit !important;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none !important;
}

.yz-header__btn--outline {
  background: var(--yz-blue-light) !important;
  color: var(--yz-blue) !important;
}

.yz-header__btn--primary {
  background: var(--yz-blue) !important;
  color: #fff !important;
}

.yz-header__user {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid var(--yz-border) !important;
  border-radius: var(--yz-radius);
  background: #fff !important;
  color: var(--yz-gray) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  padding: 0 !important;
}

/* ── Nav ── */
.yz-header__nav-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap !important;
  width: 100%;
}

.yz-header__nav-item {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  padding-bottom: 20px;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--yz-text) !important;
  text-decoration: none !important;
  letter-spacing: -0.3px;
  line-height: 1.4 !important;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto !important;
  background: none !important;
  border: 0 !important;
}

.yz-header__nav-item:hover {
  color: var(--yz-blue) !important;
}

.yz-header__nav-item svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Scrolled state ── */
.yz-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.yz-header.is-scrolled .yz-header__topbar {
  display: none !important;
}

header.uheader {
  display: none !important;
}

body._index .main.yz-main-empty {
  min-height: 200vh !important;
  height: auto !important;
  background: #e8eaed !important;
}

body._index .main:not(.yz-main-empty) {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body._index,
html {
  background: #e8eaed !important;
}

body._index {
  padding-top: var(--yz-header-offset, 0px) !important;
}

body._index .content {
  background: #e8eaed !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.yz-main-empty {
  width: 100%;
}

#cookie-banner,
.cookie-banner {
  display: none !important;
}

@media (max-width: 1400px) {
  .yz-header__topbar,
  .yz-header__main {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 1280px) {
  .yz-header__main-row {
    grid-template-columns: 280px 160px minmax(0, 1fr);
    gap: 16px;
  }

  .yz-header__brand {
    width: 280px;
  }

  .yz-header__nav-item {
    font-size: 14px !important;
  }
}

@media (max-width: 1100px) {
  .yz-header__main-row {
    display: flex !important;
    flex-wrap: wrap;
  }

  .yz-header__nav-row {
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 8px 16px;
  }
}
