.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background: var(--surface);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 10px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-img {
  display: flex;
  align-items: center;
}

.header__logo-img img {
  display: block;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.header__logo-img::after {
  display: inline-block;
  content: '';
  height: 98px;
  margin-left: 10px;
  background-color: var(--accent);
  width: 1px;
}


.header__logo-text {
  font-family: 'EdgeLine', var(--font);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.00em;
  color: var(--color-text);
  white-space: nowrap;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__link {
  color: var(--primary);
  transition: color 0.2s ease;
}

.header__link:hover {
  color: var(--secondary);
}

.current-menu-item > .header__link {
  font-weight: 700;
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.25em;
}

.header__contacts {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.header__phone {
  color: var(--surface);
  font-weight: 700;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.header--scrolled .header__phone {
  color: var(--secondary);
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  width: 100%;
  max-width: 203px;
  background: var(--secondary);
  color: var(--surface);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header__btn:hover {
  background: var(--accent);
}

.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: var(--surface);
  flex-shrink: 0;
  cursor: pointer;
}

.header__burger-label {
  display: none;
}

@media (max-width: 1280px) {
  .header__contacts {
    display: none;
  }
}

@media (max-width: 1080px) {
  .header__nav {
    display: none;
  }

  .header__btn {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__inner {
    padding: 10px 0;
  }

  .header__logo-img img {
    width: 51px;
    height: 49px;
  }

  .header__logo-img::after {
    height: 49px;
  }

  .header__logo-text {
    font-size: 15px;
  }
}

/* =============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================= */

.mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  max-height: 100dvh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--primary);
  background-size: calc(100% + 14px) 100%;
  background-position: -3px center;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile.open {
  transform: translateX(0);
}

.mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
}

.mobile__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile__logo-img img {
  display: flex;
  align-items: center;
  width: 51px;
  height: 49px;
  object-fit: contain;
}

.mobile__logo-img::after {
  width: 1px;
  height: 49px;
  background-color: var(--accent);
  margin-left: 12.5px;
}

.mobile__logo-text {
  font-family: 'EdgeLine', var(--font);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0em;
  color: var(--surface);
  white-space: nowrap;
}

.mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: var(--surface);
  flex-shrink: 0;
  cursor: pointer;
}

.mobile__nav {
  padding: 30px 10px 20px;
}

.mobile__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile__nav-list li {
  position: relative;
  padding-bottom: 10px;
}

.mobile__nav-list li::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 166px;
  height: 1px;
  background: var(--accent);
}

.mobile__nav-list li::after {
  content: '';
  position: absolute;
  left: 165px;
  bottom: 0;
  transform: translateY(50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.mobile__link {
  color: var(--surface);
}

.mobile__link:hover {
  color: var(--accent);
}

.mobile__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 10px 20px;
}

.mobile__contacts-title {
  position: relative;
  width: 100%;
  color: var(--surface);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.mobile__contacts-title::after {
  content: '';
  position: absolute;
  left: 0;
  width: 68px;
  height: 1px;
  background-color: var(--accent);
  bottom: 0;
}

.mobile__phone {
  color: var(--surface);
}

.mobile__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile__email {
  color: var(--surface);
}

.mobile__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 20px);
  margin-left: 10px;
  margin-bottom: 10px;
  padding: 20px 0;
  margin-top: auto;
  background: var(--secondary);
  color: var(--surface);
  transition: background-color 0.2s ease;
}

.mobile__btn:hover {
  background: var(--accent);
}
