.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  min-height: 80px;
  /* Reduced back for single row */
  display: flex;
  align-items: center;
  color: #0f1a1e;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.4s ease, min-height 0.4s ease, border-bottom 0.4s ease !important;
  will-change: min-height, background-color;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* Цей клас спрацює при скролі */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  max-width: 1600px;
  /* Increased to allow one-row layout */
  margin: 0 auto;
  padding: 0 40px;
}

.site-header__nav--left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.site-header__right-group {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
}

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

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-header__nav--right {
  justify-content: flex-end;
  min-width: unset;
}

.site-header__nav-link {
  position: relative;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .9;
  text-decoration: none !important;
  /* МАГІЯ ПЛАВНОСТІ */
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
  /* Щоб трансформація працювала коректно */
}

.site-header__nav-link:hover {
  opacity: 1;
  /* ОБЕРИ ОДИН З КОЛЬОРІВ НИЖЧЕ: */
  color: #2d5a27 !important;
  /* Натуральний зелений (хвоя) */
  /* color: #d4a373 !important; */
  /* Пісочний/дерево (якщо хочеш тепліший) */

  transform: translateY(-1px);
  /* Легке підняття вгору додає преміальності */
  text-decoration: none !important;
  /* Краще прибрати підкреслення, якщо міняємо колір */
}

.site-header__nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2d5a27;
  /* Колір лінії */
  transition: width 0.3s ease;
}

.site-header__nav-link:hover::after {
  width: 100%;
  /* Лінія розширюється на всю ширину */
}

.logo-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  margin: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.brand__logo {
  width: 115px;
  height: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.brand__text {
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.05;
  text-transform: uppercase;
  font-size: 13px;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  overflow: visible;
}

/* General Nav Dropdown */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 240px;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 15px 20px;
  color: #0f1a1e;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: rgba(45, 90, 39, 0.08);
  color: #2d5a27;
}

/* Language Switcher */
.lang-switcher-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.lang-switcher-btn {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 0 14px !important;
  height: 34px !important;
  line-height: 32px !important;
  font-size: 13px !important;
  /* Force identical height to burger button */
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600 !important;
  transition: all 0.3s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-width: 140px;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-dropdown[data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lang-dropdown::-webkit-scrollbar {
  width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: #fdfdfd;
  border-radius: 8px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: #dcdcdc;
  border-radius: 8px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.lang-dropdown a:hover {
  background: #f5f5f5;
  color: #000;
}

.lang-dropdown a.active {
  font-weight: bold;
  background: #e8e8e8;
  color: #000;
}

@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}

.flag-emoji {
  font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.4em;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .55);
  text-decoration: none !important;
}

.lang__flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(#1c64d9 0 50%, #ffd64a 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.lang__text {
  font-weight: 700;
  font-size: 12px;
}

/* Мобільна версія */

/* КНОПКА БУРГЕРА */
.burger {
  display: none;
  position: fixed;
  right: 30px;
  top: 25px;
  /* Стабільна позиція зверху */
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  overflow: visible;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: #0f1a1e;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Анімація бургера в "X" */
.burger.is-active span:nth-child(1) {
  transform: translateY(23px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* МОБІЛЬНЕ МЕНЮ (ПАНЕЛЬ) */
.mobile-menu {
  position: fixed;
  padding: 60px 20px;
  /* зверху/знизу відступи */
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.85);
  /* трохи прозорий білий */
  backdrop-filter: blur(15px);
  /* як is-scrolled ефект хедера */
  -webkit-backdrop-filter: blur(15px);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.is-open {
  right: 0;
}

.mobile-menu .site-header__nav-link {
  font-size: 24px;
  margin: 0;
  color: #0f1a1e;
  /* насичений темний колір для читабельності */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  /* легка тінь для контрасту */
  transition: color 0.3s ease, transform 0.3s ease;
}

/* АДАПТИВНІСТЬ */
@media (max-width: 1200px) {

  .site-header__nav--left,
  .site-header__nav--right,
  .site-header__nav {
    display: none;
  }

  .site-header__inner {
    padding: 0 20px;
  }

  .logo-wrapper {
    margin: 0 auto 0 0;
    justify-content: flex-start;
  }

  .burger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lang-switcher-wrapper {
    margin-right: 70px;
  }
}

/* Запобігання скролу при відкритому меню */
body.lock-scroll {
  overflow: hidden;
}

@media (max-width: 600px) {
  .brand__logo {
    width: 100px;
  }
}

@media (max-width: 425px) {
  .brand__logo {
    width: 70px;
  }
}

@media (max-width: 425px) {
  .brand__logo {
    width: 70px;
  }
}