.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 100;
}
.header__row, .header__group {
  display: flex;
}
.header__row {
  justify-content: space-between;
  align-items: center;
}
.header__toggle {
  position: relative;
  width: 50px;
  height: 50px;
}
.header__desk {
  position: relative;
  z-index: 102;
}
.header__mob {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, .03);
  opacity: 0;
  z-index: 101;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.header__mob .header__wrapper {
  padding: 0 15px;
}
.nav--desk {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav--mob {
  width: 100%;
}
.header .link {
  text-decoration: none;
  transition: all .1s ease-in-out;
}
.img--header {
  position: relative;
}
.img--header img {
  transition: all .6s cubic-bezier(.25,1,.5,1);
}
.img--header img:first-of-type {
  opacity: 1;
}
.img--header img:nth-of-type(2) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
@media (min-width: 0) {
  .header__desk .header__row {
    transition: all 0s 0s ease-in-out;
 }
  .header__desk .header__row:first-child {
    height: 80px;
 }
  .header__desk .header__row.active {
    background: #1a1e31;
    transition: all 0s 0.6s ease-in-out;
 }
  .header__desk .header__group:nth-of-type(2), .header__desk .header__group:nth-of-type(3) {
    display: none;
 }
  .header__mob {
    top: 0;
    right: -100%;
    max-width: 100%;
    height: 100vh;
    padding: 80px 0 30px;
    box-shadow: none;
    background: #1a1e31;
    backdrop-filter: blur(10px);
    overflow: scroll;
 }
  .header__mob-scroll {
    height: 100%;
    width: 100%;
    padding: 0 20px 20px;
    overflow-y: scroll;
 }
  .header__mob-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding-right: 10px;
    z-index: 2;
 }
  .header__mob-buttons {
    display: flex;
    margin-top: 25px;
 }
  .header__mob.active {
    right: 0;
    opacity: 1;
 }
  .header__mob.active .header__mob-scroll {
    overflow-y: scroll;
 }
  .header__mob .header__row {
    padding: 10px 0;
 }
  .header__mob .header__row:first-child {
    padding-top: 0;
    border-bottom: 1px solid rgba(92,102,145,.5);
 }
  .header__mob .header__row:last-child {
    padding: 25px 0 0;
    border-top: 1px solid rgba(92,102,145,.5);
 }
  .header__mob .header__row:last-child .header__group {
    flex-direction: column;
    align-items: center;
 }
  .header__mob .header__group {
    width: 100%;
    display: flex;
    justify-content: center;
 }
 .link--header {
    display: block;
    padding: 15px 15px;
    font-size: 20px;
    border-radius: 5px;
  }
  .nav__item {
    width: 100%;
  }
  .img--header img {
    width: 170px;
  }
  .img--header.active img:first-of-type {
    opacity: 0;
  }
  .img--header.active img:nth-of-type(2) {
    opacity: 1;
  }
}
@media (min-width: 576px) {
  .header__desk {
    z-index: 101;
 }
  .header__desk .header__row.active {
    background: unset;
 }
  .header__mob {
    top: 0;
    right: -320px;
    max-width: 320px;
    height: 100vh;
    padding: 0 30px;
    z-index: 102;
 }
  .header__mob-head {
    padding-right: 0;
 }
  .header__mob .header__row:first-child {
    height: 80px;
    padding-bottom: 0;
 }
  .img--header.active img:first-of-type {
    opacity: 1;
  }
  .img--header.active img:nth-of-type(2) {
    opacity: 0;
  }
}
@media (min-width: 768px) {
  .header__mob {
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, .03);
 }
}
@media (min-width: 1200px) {
  .header__row {
    height: 100px;
 }
  .header__toggle {
    display: none;
 }
  .header__desk .header__row {
    transition: all 0s 0s ease-in-out;
 }
  .header__desk .header__row:first-child {
    height: 100px;
 }
  .header__desk .header__group:nth-of-type(2), .header__desk .header__group:nth-of-type(3) {
    display: flex;
 }
 
  .header__mob {
    display: none;
 }
  .nav--desk {
    display: flex;
    align-items: center;
    justify-content: space-between;
 }
  .nav--desk .nav__item {
    width: fit-content;
    height: 100px;
 }
 .link--header {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    font-size: 16px;
    color: var(--d-blue);
 }
 .link--header:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    opacity: 0;
 }
 .link--header.active, .link--header:hover {
    color: var(--yellow);
 }
 .link--header.active:before {
    opacity: 1;
 }
}
@media (min-width: 1200px) {
  .header .container {
    max-width: 1300px !important;
 }
}

/* TOGGLE */
.toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.toggle__cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.toggle__checkbox {
  display: none;
}
.toggle__checkbox:checked + div i:nth-of-type(1) {
  top: 7px;
  transform: rotate(45deg);
  transition: top 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.toggle__checkbox:checked + div i:nth-of-type(2) {
  opacity: 0;
}
.toggle__checkbox:checked + div i:nth-of-type(3) {
  bottom: 7px;
  transform: rotate(-45deg);
  transition: bottom 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.toggle__button {
  position: relative;
  width: 23px;
  height: 16px;
}
.toggle__button i {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #5c6691;
}
.toggle__button i:nth-of-type(1) {
  top: 0;
  transform: rotate(0);
  transition: top 0.3s 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.toggle__button i:nth-of-type(2) {
  transition: all 0.3s ease;
  transform: translateY(7px);
}
.toggle__button i:nth-of-type(3) {
  bottom: 0;
  transform: rotate(0);
  transition: bottom 0.3s 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 0) {
  .toggle__checkbox:checked + div i:nth-of-type(1), .toggle__checkbox:checked + div i:nth-of-type(3) {
    background: #fff;
 }
}
@media (min-width: 576px) {
  .toggle.active {
    right: calc(600px - 50vw);
 }
  .toggle__checkbox:checked + div i:nth-of-type(1), .toggle__checkbox:checked + div i:nth-of-type(3) {
    background: #5c6691;
 }
}
@media (min-width: 768px) {
  .toggle.active {
    right: calc(690px - 50vw);
 }
}
@media (min-width: 992px) {
  .toggle.active {
    right: calc(810px - 50vw);
 }
}

/* BRAVO Logo */
.bravo-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bravo-logo-text {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #1A1E30;
  background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.bravo-logo-link:hover .bravo-logo-text {
  opacity: 0.8;
}

/* Dark theme override */
.header__mob .bravo-logo-text,
.header__desk .header__row.active .bravo-logo-text {
  background: linear-gradient(135deg, #EDC016 0%, #F28739 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Language Switcher ── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-secondary, #f1f5f9);
  border-radius: 8px;
  padding: 4px;
}
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  color: #64748b;
  transition: all .15s ease;
  cursor: pointer;
  line-height: 1;
}
.lang-switcher__btn:hover {
  color: #334155;
  background: rgba(0,0,0,.05);
  text-decoration: none;
}
.lang-switcher__btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  pointer-events: none;
}
.theme-dark .lang-switcher {
  background: rgba(255,255,255,.08);
}
.theme-dark .lang-switcher__btn {
  color: #94a3b8;
}
.theme-dark .lang-switcher__btn:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,.08);
}
.theme-dark .lang-switcher__btn.active {
  background: rgba(255,255,255,.12);
  color: #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
