/* Shared site header: one component on the homepage and all internal pages. */
@font-face { font-family: 'Wels Header Montserrat'; src: url('../fonts/Montserrat-300-cyrillic-latin.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }

.header { --header-pad: clamp(24px, 4.3vw, 84px); position: absolute; z-index: 20; width: 100%; min-height: 0; padding: 0; color: #eee; }
.header__body { display: grid; min-height: 99px; grid-template-areas: 'logo nav contacts'; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; }
.header__logo { grid-area: logo; position: static; width: max-content; transform: none; color: inherit; font: 32px/.9 PPTelegraf-Regular, sans-serif; letter-spacing: -1.4px; text-align: left; text-transform: none; }
.header__logo > span { display: block; margin-top: 7px; padding-left: 2px; color: inherit; font: 8px/1.5 Montserrat-Regular, sans-serif; letter-spacing: 4.2px; }
.header__menu { grid-area: nav; display: block; flex: none; height: auto; padding: 0; visibility: visible; }
.header__list { display: flex; align-items: center; gap: 30px; }
.header__list-item { display: block; padding: 12px 0; color: inherit; font: 12px/1.2 Montserrat-Regular, sans-serif; text-align: left; text-transform: none; transition: opacity .2s ease; }
.header__list-item::after { display: none; }
.header__list-item:hover { opacity: .65; }
.header__contacts { grid-area: contacts; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.header__phone { margin-right: 12px; color: inherit; font: 12px/1.2 Montserrat-Regular, sans-serif; white-space: nowrap; }
.header__social { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(238,238,238,.25); border-radius: 50%; color: inherit; background: rgba(255,255,255,.055); transition: background .2s ease; }
.header__social:hover { background: rgba(255,255,255,.18); }
.header__social svg { display: block; }
.header__burger, .header__form { display: none; }
body._lock .header { background: transparent; }
.home .header__body { border-bottom: 1px solid rgba(238,238,238,.25); }
body:not(.home) .main { padding-top: 47px; }

@media (max-width: 1199px) { .header__body { gap: 20px; }.header__list { gap: 18px; }.header__phone { margin-right: 2px; font-size: 10px; } }

@media (max-width: 900px) {
  .header__body { min-height: 86px; grid-template-areas: 'logo contacts burger'; grid-template-columns: 1fr auto auto; gap: 16px; }
  .header__burger { position: relative; z-index: 3; grid-area: burger; display: grid; width: 44px; height: 44px; align-content: center; gap: 5px; padding: 10px; border: 0; background: transparent; cursor: pointer; transform: none; }
  .header__burger .burger__line { width: 24px; height: 1px; margin: 0; position: static; background: currentColor; transition: transform .3s ease, opacity .2s ease; }
  .header__burger._active .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }.header__burger._active .burger__line:nth-child(2) { opacity: 0; }.header__burger._active .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header__menu, .header__menu._active { position: fixed; inset: 0; z-index: 2; display: flex; width: 100%; height: 100dvh; min-height: 0; margin: 0; padding: 110px var(--header-pad); align-items: center; justify-content: center; visibility: hidden; background: rgba(25,26,23,.44); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); opacity: 0; pointer-events: none; transition: opacity .4s ease, visibility .4s ease; }
  .header__menu._active { visibility: visible; opacity: 1; pointer-events: auto; }
  .header__list { display: flex; width: 100%; flex-direction: column; gap: 18px; }
  .header__list > li { opacity: 0; transform: translateY(22px); }
  .header__menu._active .header__list > li { animation: wels-site-header-menu .5s cubic-bezier(.2,.7,.2,1) forwards; }
  .header__menu._active .header__list > li:nth-child(1) { animation-delay: .10s; }.header__menu._active .header__list > li:nth-child(2) { animation-delay: .18s; }.header__menu._active .header__list > li:nth-child(3) { animation-delay: .26s; }.header__menu._active .header__list > li:nth-child(4) { animation-delay: .34s; }.header__menu._active .header__list > li:nth-child(5) { animation-delay: .42s; }
  .header__list-item { padding: 14px 0; font-family: 'Wels Header Montserrat', Montserrat-Regular, sans-serif; font-size: clamp(30px,7.5vw,48px); font-weight: 300; line-height: 1.2; letter-spacing: -.4px; text-align: center; }
}

@keyframes wels-site-header-menu { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) { .header { --header-pad: 24px; }.header__body { min-height: 82px; }.header__logo { font-size: 27px; }.header__logo > span { margin-top: 6px; font-size: 7px; letter-spacing: 3.3px; }.header__phone { display: none; }.header__contacts { gap: 6px; }.header__social { width: 40px; height: 40px; } }
@media (max-width: 360px) { .header { --header-pad: 18px; } }
@media (prefers-reduced-motion: reduce) { .header * { animation: none !important; transition: none !important; } }
