/* ya-zdorova html4 — desktop menu Figma zkgNyXIfc9ltBgwt00NmrA 1:1155 / fixed 1:1620 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --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;
  --yz-scroll-bg: #e8eaed;
}

html {
  background: var(--yz-scroll-bg);
}

body {
  margin: 0;
  padding-top: var(--yz-header-offset, 0);
  font-family: Roboto, Arial, sans-serif;
  background: var(--yz-scroll-bg);
  color: var(--yz-text);
  line-height: 1.4;
}

.yz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  color: var(--yz-text);
}

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

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

.yz-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  letter-spacing: -0.2px;
}

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

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

.yz-header__top-item--address {
  min-width: 0;
}

.yz-header__top-divider {
  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;
  align-items: center;
  gap: 4px;
}

.yz-header__metro-walk {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.yz-header__metro img[alt=""],
.yz-header__metro-walk img {
  display: block;
  flex-shrink: 0;
}

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

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

.yz-header__main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.yz-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

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

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

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

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

.yz-header__brand-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--yz-blue);
  letter-spacing: -0.2px;
}

.yz-header__search {
  width: 300px;
  flex-shrink: 0;
}

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

.yz-header__search input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--yz-text);
  background: transparent;
  min-width: 0;
  padding: 0;
  letter-spacing: -0.2px;
}

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

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

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

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

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

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

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

.yz-header__social {
  display: flex;
  gap: 8px;
}

.yz-header__social a {
  display: block;
}

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

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

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

/* Nav */
.yz-header__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Nav triggers — см. menu-dropdown.css */

/* Fixed / scrolled — Figma 1:1620 */
.yz-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

.scroll-spacer {
  min-height: 200vh;
  background: var(--yz-scroll-bg);
}

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

@media (max-width: 1280px) {
  .yz-header__search {
    width: 220px;
  }

  .yz-header__nav-trigger,
  .yz-header__nav-link {
    font-size: 14px;
  }
}

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

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