/* Header Redesign 2026 - Fixed overlay on hero */

:root {
  --header-bg-transparent: rgba(11, 29, 31, 0.4);
  --header-text: #FFFFFF;
  --header-text-opacity-70: rgba(255, 255, 255, 0.70);
  --header-border: rgba(255, 255, 255, 0.1);
  --header-accent: #00E4D0;
}

.header {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  width: 100%;
}

.header__nav {
  padding: 16px 0;
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.header__logo .lqip-wrap > picture,
.header__logo .lqip-wrap > picture > img,
.header__logo .lqip-wrap > img {
  width: auto;
  height: 26px;
}

.header__logo-descriptor {
  color: var(--header-text-opacity-70);
  font-size: 11px;
  line-height: 1.3;
  max-width: 140px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--header-border);
}

@media (max-width: 768px) {
  .header__logo-descriptor {
    display: none;
  }
}

.header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.header__menu-link {
  color: var(--header-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.header__menu-link:hover {
  color: var(--header-accent);
  border-bottom-color: var(--header-accent);
}

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

.header__phone {
  color: var(--header-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

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

.header__actions .btn {
  min-height: auto;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
}

/* Contacts Sidebar Toggle */
.header__sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--header-accent);
  border: none;
  border-radius: 10px;
  color: #0B1D1F;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s;
}

.header__sidebar-toggle:hover {
  filter: brightness(1.1);
}

.header__sidebar-toggle::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(11, 29, 31, 0.35);
}

/* Contacts Sidebar Panel */
.header__sidebar {
  display: none;
  position: fixed;
  top: 50%;
  right: 0;
  bottom: auto;
  left: auto;
  width: 360px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px 0 0 12px;
  background-color: #0B1D1F;
  color: var(--header-text);
  z-index: 1002;
  opacity: 0;
  transform: translate(100%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__sidebar[open] {
  display: flex;
  flex-direction: column;
}

.header__sidebar.is-open {
  opacity: 1;
  transform: translate(0, -50%);
}

.header__sidebar::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.header__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--header-border);
  flex-shrink: 0;
}

.header__sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.header__sidebar-close {
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__sidebar-close:hover {
  color: var(--header-accent);
}

.header__sidebar-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.header__sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--header-text);
  text-decoration: none;
  font-size: 15px;
}

.header__sidebar-item i {
  color: var(--header-accent);
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

a.header__sidebar-item:hover {
  color: var(--header-accent);
}

.header__sidebar-socials {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--header-border);
}

.header__sidebar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--header-border);
  color: var(--header-text);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.header__sidebar-social:hover {
  color: var(--header-accent);
  border-color: var(--header-accent);
}

.header__sidebar-social-letter {
  font-weight: 700;
}

@media (max-width: 768px) {
  .header__sidebar-toggle {
    display: none;
  }
}

/* Mobile Toggle Button */
.header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.header__mobile-toggle:hover {
  color: var(--header-accent);
}

/* Mobile Menu Dialog */
.header__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  border: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
}

.header__mobile-menu[open] {
  display: flex;
  flex-direction: column;
}

.header__mobile-menu::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.header__mobile-header {
  padding: 16px 32px;
  display: flex;
  justify-content: flex-end;
  background-color: #0B1D1F;
  flex-shrink: 0;
}

.header__mobile-close {
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__mobile-close:hover {
  color: var(--header-accent);
}

.header__mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 16px 32px;
  flex: 1;
  background-color: #0B1D1F;
  display: flex;
  flex-direction: column;
}

.header__mobile-link {
  display: block;
  color: var(--header-text);
  text-decoration: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.header__mobile-link:hover {
  color: var(--header-accent);
}

.header__mobile-link--phone {
  color: var(--header-accent);
}

.header__mobile-link--btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  width: 100%;
  text-align: left;
  color: var(--header-text);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
  .header__container {
    gap: 16px;
  }

  .header__menu {
    gap: 20px;
  }

  .header__menu-link {
    font-size: 12px;
  }

  .header__actions {
    gap: 16px;
  }

  .header__actions .btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .header__phone {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header__container {
    padding: 0 16px;
    gap: 16px;
  }

  .header__menu {
    display: none;
  }

  .header__actions {
    display: none;
  }

  .header__mobile-toggle {
    display: block;
  }

  .header__logo {
    flex: 1;
  }

  .header__logo-img,
  .header__logo .lqip-wrap > picture,
  .header__logo .lqip-wrap > picture > img,
  .header__logo .lqip-wrap > img {
    height: 26px;
  }

  .header__nav {
    padding: 12px 0;
  }

  .header__mobile-header {
    padding: 12px 16px;
  }

  .header__mobile-menu-list {
    padding: 12px 16px;
  }

  .header__mobile-link {
    padding: 12px 0;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header__container {
    padding: 0 12px;
  }

  .header__nav {
    padding: 10px 0;
  }

  .header__logo-img,
  .header__logo .lqip-wrap > picture,
  .header__logo .lqip-wrap > picture > img,
  .header__logo .lqip-wrap > img {
    height: 24px;
  }

  .header__mobile-header {
    padding: 10px 12px;
  }

  .header__mobile-menu-list {
    padding: 10px 12px;
  }

  .header__mobile-link {
    padding: 10px 0;
    font-size: 13px;
  }
}
