.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.header-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-globe-icon {
  color: #000;
  flex-shrink: 0;
}

.header-lang-switcher .lang-link {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  padding: 2px;
  transition: color 0.3s ease;
}

.header-lang-switcher .lang-link:hover,
.header-lang-switcher .lang-link.current {
  color: var(--accent-color);
}

.header-main {
  padding: 12px 0;
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-container .site-logo {
  grid-column: 2;
  text-align: center;
  justify-self: center;
}

.header-container .header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
  grid-column: auto;
}

.desktop-navigation ul {
  justify-content: flex-end;
}

.site-logo a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.logo-image {
  max-height: 60px;
  width: auto;
  height: auto;
  max-width: 220px;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
  position: absolute;
  left: 0;
}

.mobile-menu-toggle .burger-line:nth-child(1) {
  top: 8px;
}

.mobile-menu-toggle .burger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle .burger-line:nth-child(3) {
  bottom: 8px;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.main-navigation ul li {
  margin: 0;
}

.main-navigation a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
}

.main-navigation a:hover {
  color: var(--accent-color);
}

.main-navigation .current-menu-item a {
  color: var(--accent-color);
}

.mobile-navigation {
  display: none !important;
}

.desktop-navigation {
  display: flex;
}

@media (max-width: 1024px) {
  .mobile-navigation {
    display: flex !important;
  }

  .desktop-navigation {
    display: none !important;
  }
}

.language-switcher-custom {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.3s ease;
}

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

.lang-current:hover .lang-code {
  color: var(--accent-color);
}

.lang-current:hover .lang-arrow {
  color: var(--accent-color);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0.5px solid #000;
}

.lang-flag svg {
  width: 20px;
  height: 15px;
  display: block;
}

.lang-code {
  font-weight: 500;
  font-size: 16px;
  color: #000;
  text-transform: uppercase;
}

.lang-arrow {
  color: #000;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.language-switcher-custom.active .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  list-style: none;
  padding: 0 !important;
  margin: 10px 0 0 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.language-switcher-custom.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li {
  margin: 0;
  padding: 0;
}

.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: #000;
  transition: all 0.2s ease;
}

.lang-dropdown li:first-child a {
  border-radius: 4px 4px 0 0;
}

.lang-dropdown li:last-child a {
  border-radius: 0 0 4px 4px;
}

.lang-dropdown li a:hover {
  background-color: rgba(128, 128, 128, 0.1);
  color: var(--accent-color);
}

.lang-dropdown li.current a {
  background-color: rgba(128, 128, 128, 0.1);
  color: var(--accent-color);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: none;
}

.mobile-menu-footer {
  display: none;
}

.mobile-lang-container {
  display: none;
}

.desktop-lang-switcher {
  display: flex;
}

.mobile-lang-switcher-header {
  display: none;
}

@media (max-width: 1024px) {
  .header-container {
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
  }

  .header-container .header-left {
    grid-column: 1;
    order: 1;
    justify-self: start;
  }

  .header-container .site-logo {
    grid-column: 2;
    order: 2;
    text-align: center;
    justify-self: center;
  }

  .header-container .header-right {
    grid-column: 3;
    order: 3;
    justify-self: end;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-lang-switcher {
    display: none;
  }

  .mobile-lang-switcher-header {
    display: flex;
  }

  .desktop-navigation {
    display: none !important;
  }

  .mobile-navigation {
    display: flex !important;
    position: fixed;
    top: var(--header-height, 70px);
    right: -100%;
    width: 320px;
    max-width: 85%;
    max-height: calc(100vh - var(--header-height, 70px));
    background: #fff;
    z-index: 1000;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    overflow-y: visible;
    transition: right 0.3s ease;
    margin-top: 0;
  }

  .mobile-navigation.active {
    right: 0;
  }

  .mobile-menu-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 40px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-logo a {
    text-decoration: none;
    color: inherit;
  }

  .mobile-lang-container {
    display: none;
  }

  .mobile-navigation ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: flex-start;
    padding: 0 40px;
    margin: 0;
    flex: 0 0 auto;
  }

  .mobile-navigation ul li {
    width: 100%;
  }

  .mobile-navigation a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    width: 100%;
  }

  .mobile-menu-overlay {
    display: block;
    top: var(--header-height, 70px);
    height: calc(100vh - var(--header-height, 70px));
  }

  .header-main {
    padding: 10px 0;
  }

  .site-header {
    position: fixed;
    z-index: 1001;
    background: #fff;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
    gap: 10px;
  }

  .header-main {
    padding: 10px 0;
  }

  .logo-image {
    max-height: 45px;
    max-width: 170px;
  }

  .header-left {
    gap: 12px;
  }

  .header-lang-switcher .lang-link {
    font-size: 12px;
  }

  .lang-globe-icon {
    width: 14px;
    height: 14px;
  }

  .lang-code {
    font-size: 14px;
  }

  .lang-flag svg {
    width: 18px;
    height: 13px;
  }

  .mobile-navigation {
    width: 70%;
    max-width: 70%;
  }

  .mobile-menu-header {
    padding: 25px 20px 25px;
  }

  .mobile-navigation ul {
    padding: 0 20px;
  }

  .mobile-navigation a {
    font-size: 16px;
    padding: 12px 0;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.logo-line-top {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  font-family: serif;
  margin-bottom: 1px;
}

.logo-line-main {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.logo-line-main .logo-accent {
  color: var(--accent-color);
}

.logo-line-bottom {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .logo-line-top {
    font-size: 12px;
  }

  .logo-line-main {
    font-size: 20px;
  }

  .logo-line-bottom {
    font-size: 14px;
  }
}
