/* Language switcher */
.site-header{
  overflow:visible;
}
.language-switcher{
  position:relative;
  z-index:80;
  flex:0 0 auto;
}
.language-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:8px 12px;
  border:1px solid #dfe4ec;
  border-radius:999px;
  background:#fff;
  color:#303640;
  font:inherit;
  font-size:13px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(17,17,17,.06);
  transition:color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease;
}
.language-toggle:hover,
.language-toggle[aria-expanded="true"]{
  color:var(--orange);
  border-color:rgba(255,117,24,.55);
  background:#fff4eb;
  transform:translateY(-1px);
}
.language-globe{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
}
.language-globe svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.language-current-code{
  min-width:22px;
  text-align:left;
}
.language-panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:280px;
  max-width:calc(100vw - 28px);
  border:1px solid rgba(17,17,17,.1);
  border-radius:12px;
  background:#fff;
  color:#171717;
  box-shadow:0 28px 70px rgba(17,17,17,.18);
  padding:14px;
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease;
}
.language-switcher.is-open .language-panel{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.language-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:2px 2px 12px;
  border-bottom:1px solid #eef0f4;
}
.language-panel-head strong{
  display:block;
  font-size:15px;
  line-height:1.2;
}
.language-panel-head span{
  display:block;
  margin-top:4px;
  color:#66707c;
  font-size:12px;
  font-weight:800;
}
.language-close{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid #e3e7ee;
  border-radius:50%;
  background:#fff;
  color:#303640;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
.language-list{
  display:grid;
  gap:8px;
  margin:12px 0 0;
}
.language-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #edf0f5;
  border-radius:9px;
  background:#fff;
  color:#303640;
  text-decoration:none;
  font-weight:900;
}
.language-option:hover{
  border-color:#ffd7ba;
  background:#fff8f2;
  color:var(--orange);
}
.language-option.is-active{
  border-color:#ffbc83;
  background:#fff4eb;
  color:#a94700;
}
.language-option.is-disabled{
  cursor:not-allowed;
  color:#9aa3af;
  background:#f7f8fa;
}
.language-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 7px;
  background:#f0f3f7;
  color:#66707c;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.language-option.is-active .language-badge{
  background:#ffd7ba;
  color:#8a3c00;
}
@media(max-width:1180px){
  .language-switcher{
    margin-left:auto;
  }
}
@media(max-width:640px){
  .language-switcher{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    margin-left:0;
    margin-right:52px;
  }
  .language-toggle{
    min-height:40px;
    padding:8px 10px;
  }
  .language-current-code{
    display:none;
  }
  .language-panel{
    position:fixed;
    top:72px;
    right:14px;
    width:min(290px,calc(100vw - 28px));
  }
}
