
.site-header {
  position: sticky;
  top: 8px;
  z-index: 10;
  width: 100%;
  background: rgba(216, 244, 242, .92);
  border-bottom: 1px solid rgba(44, 190, 195, .14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 8px 22px;
  color: var(--ink);
  border-radius: 24px;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.brand:hover {
  background: var(--turquoise);
  transform: translateY(-1px);
}

.brand:hover .brand-text,
.brand:hover .brand-text strong,
.brand:hover .brand-text small {
  color: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 120px;
  height: auto;
  color: var(--turquoise-dark);
  background: white;
  border: 2px solid var(--turquoise);
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(255, 118, 107, .25);
}

.brand-text {
  display: block;
  white-space: nowrap;
   color: var(--turquoise-dark);
}


.site-header .brand-text small {
  display: block;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  gap: 18px;
}
.main-nav a,
.dropdown a {
  font-family: var(--font-accent);
  font-size: var(--fs-body);
  color: var(--ink);
  text-decoration: none;}



.nav-item {
  position: relative;
  flex: 1;
}

.nav-item>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
    width: auto;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  white-space: nowrap;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.nav-item>a:hover,
.nav-item.is-active>a {
  color: #6b3f20;
  background: rgba(255, 118, 107, .14);
  transform: translateY(-1px);
}

.has-dropdown>a::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 9px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: var(--white);
  
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 4px ;
  margin-bottom: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.dropdown a:hover {
  color: var(--ink);
  background: var(--turquoise-pale);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: .25s ease;
}
@media (max-width: 1240px) {
  .site-header .brand-text small,
   .site-header .brand-text strong {
    display: none;
  }

  .brand-mark {
    width: 120px;
  }
  .brand {
    padding: 6px 12px;
  }
  .main-nav {
    gap: 8px;
  }
}

@media (max-width: 840px) {
  body {
    width: calc(100% - 12px);
  }


  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-item>a,
  .dropdown a {
    width: 100%;
     border: 1px solid var(--line);
  }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px 16px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown {
    display: block;
  }

  .main-nav.is-open .dropdown {
    display: block;
  }

    .site-header .brand-text {
    display: none;
  }

  .brand-mark {
    width: 122px;
  }
}
.top-tabs {
  position: sticky;
  top: 80px;
  z-index: 9;
  width: 100%;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.top-tabs.is-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}


.top-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  z-index: 10;
  color: var(--ink);
  background: var(--turquoise-pale);
  border: 1px solid var(--line);
 border-radius: 0 0 25px 25px;
  box-shadow: 0 8px 24px rgba(21, 137, 142, .10);
  font-family: var(--font-ui);
  font-size: .88rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.top-tab-flag {
  min-width: 42px;
  padding: 6px 10px;
  font-size: 1rem;
  line-height: 1;
}

.top-tab:hover,
.top-tab.is-active {
  color: var(--white);
  background: var(--turquoise-dark);
  transform: translateY(-1px);
}

@media (max-width: 840px) {
  .top-tabs {
    top: 80px;
  }

  .top-tabs-shell {
    align-items: stretch;
    gap: 6px;
  }

  .top-tabs-quick,
  .top-tabs-langs {
    gap: 6px;
  }

  .top-tab {
    flex: 0 0 auto;
    font-size: .82rem;
    padding-inline: 10px;
  }

  .top-tab-flag {
    min-width: 36px;
    padding-inline: 8px;
  }
}
