*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: #111827;
  background: #ffffff;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

a:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  top: var(--banner-height, 0);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.topbar .row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brandbox{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brandHomeLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.siteLogo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
}

.brandtext .t1{
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 18px;
  line-height: 1.1;
}

.brandtext .t2{
  font-size: 12px;
  color: rgba(17, 24, 39, 0.65);
  margin-top: 2px;
}

.navlinks{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: auto;
}

.navlinks > a,
.navMainLink{
  font-size: 14px;
  color: rgba(17, 24, 39, 0.78);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.navlinks > a:hover,
.navMainLink:hover{
  background: rgba(17, 24, 39, 0.06);
  color: rgba(17, 24, 39, 0.95);
}

.navlinks > a.active{
  background: rgba(37, 99, 235, 0.10);
  color: rgb(37, 99, 235);
  font-weight: 800;
}

.navItem{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navItem.active > .navMainLink{
  background: rgba(37, 99, 235, 0.10);
  color: rgb(37, 99, 235);
  font-weight: 800;
}

.navMainLink{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subChev{
  display: inline-block;
  font-size: 11px;
  opacity: .7;
  transition: transform 160ms ease, opacity 160ms ease;
  transform-origin: 50% 55%;
}

.navItem:hover .subChev{
  opacity: .9;
}

.navItem.is-open .subChev{
  transform: rotate(180deg);
}

.submenu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.navItem.hasSubmenu:hover .submenu,
.navItem.is-open .submenu{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: rgba(17, 24, 39, 0.82);
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.submenu a:hover{
  background: rgba(37,99,235,.08);
  color: rgba(17, 24, 39, 0.98);
  transform: translateX(1px);
}

.submenu a.active{
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}

.langDropdown{ position: relative; }

.langTrigger{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.langTrigger .flag{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.langTrigger .code{
  font-weight: 900;
  font-size: 13px;
}

.langTrigger .chev{
  opacity: .7;
  font-size: 12px;
  margin-left: 2px;
}

.langMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 1400;
}

.langMenu a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 800;
}

.langMenu a .flag{
  width: 20px;
  height: 20px;
  border-radius: 999px;
}

.langMenu a:hover{ background: rgba(2,6,23,.05); }
.langMenu a.active{ background: rgba(37,99,235,.10); color: #1d4ed8; }
.langMenu a small{ font-weight: 700; opacity: .7; }

.burger{
  display: none;
  margin-left: 8px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.burger span{
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(15,23,42,.85);
  border-radius: 99px;
}

.mobileMenu{
  margin-top: 10px;
  padding-bottom: 12px;
}

.mobileMenu a{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
}

.mobileMenu a:hover{
  background: rgba(37,99,235,.10);
}

.mobileMenu a.active{
  background: rgba(37,99,235,.10);
  color: #1d4ed8;
}

.mobileGroup{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 6px;
  margin: 10px 0;
  background: rgba(2,6,23,.02);
}

.mobileGroup.active{
  border-color: rgba(37,99,235,.18);
  background: rgba(37,99,235,.05);
}

.mobileGroupBtn{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: none;
  background: transparent;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.mobileGroupBtn:hover{
  background: rgba(2,6,23,.05);
}

.mchev{
  display: inline-block;
  opacity: .7;
  transition: transform 160ms ease;
}

.mobileGroup.is-open .mchev,
.mobileGroupBtn[aria-expanded="true"] .mchev{
  transform: rotate(180deg);
}

.mobileGroupLinks{
  padding: 6px 4px 10px;
}

.mobileSubLink{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  opacity: .92;
}
.siteBanner{
background:#000;
}
.mobileSubLink:hover{
  background: rgba(37,99,235,.08);
}

.mobileSubLink.active{
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}

@media (max-width: 980px){
  .brandbox{ min-width: 0; }
  .brandtext .t2{ display: none; }
  .navlinks{ display: none; }
  .burger{ display: inline-flex; }
}

@media (max-width: 700px){
  .siteLogo{ width: 38px; height: 38px; }
  .langTrigger{ padding: 7px 10px; }
  .langTrigger .code{ display: none; }
}
