.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 35px rgba(7, 53, 38, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-shell {
  width: 100%;
  max-width: 1560px;
  padding: 0 clamp(16px, 2.2vw, 36px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 20px);
  box-sizing: border-box;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  z-index: 2;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.brand-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(42px, 4.6vw, 52px);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand-cert img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.brand-divider {
  width: 1.5px;
  height: 36px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 4px;
  transition: background 0.35s ease;
  flex-shrink: 0;
}

.site-header.is-scrolled .brand-divider {
  background: rgba(7, 53, 38, 0.2);
}

.brand-mark {
  display: inline-flex;
  height: clamp(46px, 5.2vw, 58px);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand-mark img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

.brand:hover .brand-cert,
.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 8px;
  line-height: 1.2;
  min-width: max-content;
}

.brand-copy strong {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: visible;
  color: #ffffff;
  transition: color 0.35s ease;
}

.brand-copy small {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0.92;
  transition: color 0.35s ease;
}

.site-header.is-scrolled .brand-copy strong {
  color: var(--green-950);
}

.site-header.is-scrolled .brand-copy small {
  color: var(--green-800);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 20px);
  flex-shrink: 0;
  min-width: 0;
}

.main-nav>a {
  position: relative;
  font-size: clamp(13px, 0.98vw, 15px);
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 2px;
}

.main-nav>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}

.main-nav>a:hover::after,
.main-nav>a.active::after {
  width: 100%;
}

/* Header Tools & Top Language Switcher */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 102;
  flex-shrink: 0;
  margin-left: auto;
}

.header-user-desktop {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(5, 39, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 3px 5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.site-header.is-scrolled .top-lang-switch {
  background: rgba(7, 53, 38, 0.07);
  border: 1px solid rgba(7, 53, 38, 0.18);
  box-shadow: 0 2px 8px rgba(7, 53, 38, 0.05);
}

.top-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: all 0.22s ease;
  line-height: 1;
}

.top-lang-btn .lang-flag {
  font-size: 13px;
  line-height: 1;
}

.top-lang-btn .lang-label {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}

.site-header.is-scrolled .top-lang-btn {
  color: rgba(7, 53, 38, 0.78);
}

.top-lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.site-header.is-scrolled .top-lang-btn:hover {
  color: var(--green-950);
  background: rgba(7, 53, 38, 0.12);
}

.top-lang-btn.is-active {
  background: linear-gradient(135deg, #c9a873 0%, #a8854b 100%);
  color: #05271d !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(201, 168, 115, 0.35);
}

.top-lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  user-select: none;
  margin: 0 1px;
}

.site-header.is-scrolled .top-lang-divider {
  color: rgba(7, 53, 38, 0.22);
}

/* Mobile Drawer Language Selector */
.drawer-lang-selector {
  width: 100%;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-lang-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-lang-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.drawer-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-lang-btn.is-active {
  background: linear-gradient(135deg, #c9a873 0%, #a8854b 100%);
  color: #05271d;
  font-weight: 700;
  border-color: #c9a873;
  box-shadow: 0 4px 12px rgba(201, 168, 115, 0.3);
}

@media (min-width: 1081px) {
  .drawer-lang-selector,
  .drawer-user-card {
    display: none !important;
  }
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.menu-toggle span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: 0.25s;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 26px;
}

.menu-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.section-heading {
  max-width: 690px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 600;
}

.section-heading.is-light h2,
.section-heading.is-light .section-description {
  color: white;
}

.section-description {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.7;
}

.section-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
  user-select: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-light {
  background: white;
  color: var(--green-950);
}

.button-light:hover {
  background: var(--gold-light);
}

.button-dark {
  background: var(--green-900);
  color: white;
}

.button-dark:hover {
  background: var(--green-800);
}

.button-gold {
  background: var(--gold);
  color: var(--green-950);
}

.button-gold:hover {
  background: var(--gold-light);
}

.button-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.button-outline-light:hover {
  background: white;
  color: var(--green-950);
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.text-link span {
  transition: transform 0.25s;
}

.text-link:hover span {
  transform: translateX(5px);
}

.text-link.light {
  color: white;
}

.circle-link {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: all 0.25s ease;
}

.circle-link:hover {
  background: var(--green-900);
  color: white;
  border-color: var(--green-900);
  transform: rotate(45deg);
}

.image-slot {
  position: relative;
  background-color: #0f1c16;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.15) 48%, transparent 72%);
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.image-slot:hover::after {
  transform: translateX(100%);
}

.image-slot-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  color: white;
  background: rgba(5, 39, 29, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
}

.image-slot-label small {
  display: block;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #031c15;
}

.footer-main {
  padding: 75px 0 60px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: clamp(30px, 5vw, 70px);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  height: clamp(50px, 7vw, 78px);
}

.footer-logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-cert {
  display: inline-flex;
  align-items: center;
  height: clamp(40px, 5.5vw, 56px);
}

.footer-cert img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-brand p {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.8;
}

.footer-heading {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

/* Scroll lock for body when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
}

/* Tablet / Mobile Breakpoint */
@media (max-width: 1080px) {
  .header-user-desktop {
    display: none !important;
  }

  /* CRITICAL: Disable backdrop-filter when menu is open to prevent fixed positioning from being trapped inside header height */
  .site-header.menu-open,
  .site-header:has(.main-nav.is-open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header.is-scrolled.menu-open,
  .site-header.is-scrolled:has(.main-nav.is-open) {
    background: transparent !important;
    box-shadow: none !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .site-header.is-scrolled.menu-open .brand-copy strong,
  .site-header.is-scrolled:has(.main-nav.is-open) .brand-copy strong {
    color: white !important;
  }

  .site-header.is-scrolled.menu-open .brand-divider,
  .site-header.is-scrolled:has(.main-nav.is-open) .brand-divider {
    background: rgba(255, 255, 255, 0.35) !important;
  }

  .site-header.is-scrolled.menu-open .menu-toggle span,
  .site-header.is-scrolled:has(.main-nav.is-open) .menu-toggle span {
    background: white !important;
  }

  .site-header.is-scrolled.menu-open .top-lang-switch,
  .site-header.is-scrolled:has(.main-nav.is-open) .top-lang-switch {
    background: rgba(5, 39, 29, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }

  .site-header.is-scrolled.menu-open .top-lang-btn,
  .site-header.is-scrolled:has(.main-nav.is-open) .top-lang-btn {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .site-header.is-scrolled.menu-open .top-lang-btn.is-active,
  .site-header.is-scrolled:has(.main-nav.is-open) .top-lang-btn.is-active {
    color: #05271d !important;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 16px) 28px 60px;
    background: #05271d;
    background: linear-gradient(180deg, #05271d 0%, #073526 100%);
    color: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
    box-sizing: border-box;
  }

  .main-nav.is-open {
    transform: translateX(0);
    opacity: 1;
  }

  .main-nav>a {
    font-size: 19px;
    font-weight: 600;
    color: white;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .main-nav>a::after {
    display: none;
  }

  .main-nav>a:hover,
  .main-nav>a.active {
    color: var(--gold);
    padding-left: 6px;
  }

  .main-nav .db-nav-link {
    margin-top: 8px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(201, 168, 115, 0.15);
    border: 1px solid rgba(201, 168, 115, 0.35);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 600;
  }

  .language-button {
    margin-top: 10px;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    width: 100%;
    text-align: left;
    font-size: 15px;
    color: var(--gold-light);
  }

  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .site-header.is-scrolled .menu-toggle.is-open {
    color: white;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .header-shell {
    padding: 0 16px;
  }

  .section-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
  }

  .circle-link {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .button {
    min-height: 48px;
    padding: 0 20px;
    gap: 12px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 50px 0 40px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .brand {
    gap: 12px;
  }

  .brand-cert {
    height: 38px;
  }

  .brand-mark {
    height: 44px;
  }

  .brand-copy strong {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .brand {
    gap: 10px;
  }

  .brand-cert {
    height: 34px;
  }

  .brand-divider {
    height: 24px;
  }

  .brand-mark {
    height: 38px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-copy {
    display: none;
  }

  .brand-cert {
    height: 32px;
  }

  .brand-mark {
    height: 36px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .text-link {
    gap: 10px;
  }
}