.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem clamp(0.75rem, 3vw, 2.5rem);
  background: #0e1020;
  /* border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--blue)) 1; */
}

.logo-a {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #020308;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: normal;
  line-height: 1.05;
  filter: drop-shadow(0 0 12px rgba(39, 176, 255, 0.25));
}

.logo-text__letters {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
}

.logo-text__letter {
  position: relative;
  display: inline-block;
  padding: 0.08em 0.12em;
  background: linear-gradient(135deg, rgb(39 176 255), rgb(32 227 178));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  isolation: isolate;
}

.logo-text__letter::after {
  content: "";
  position: absolute;
  inset: -0.2em -0.18em;
  background: linear-gradient(135deg, rgba(39, 176, 255, 0.35), rgba(32, 227, 178, 0.3));
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(0.25);
  transform-origin: center;
  z-index: -1;
  filter: blur(6px);
  animation: logo-letter-highlight 3.5s ease-in-out infinite;
}

.logo-text__letter:nth-child(1)::after { animation-delay: 0s; }
.logo-text__letter:nth-child(2)::after { animation-delay: 0.35s; }
.logo-text__letter:nth-child(3)::after { animation-delay: 0.7s; }
.logo-text__letter:nth-child(4)::after { animation-delay: 1.05s; }
.logo-text__letter:nth-child(5)::after { animation-delay: 1.4s; }
.logo-text__letter:nth-child(6)::after { animation-delay: 1.75s; }
.logo-text__letter:nth-child(7)::after { animation-delay: 2.1s; }
.logo-text__letter:nth-child(8)::after { animation-delay: 2.45s; }
.logo-text__letter:nth-child(9)::after { animation-delay: 2.8s; }
.logo-text__letter:nth-child(10)::after { animation-delay: 3.15s; }

.logo-text__suffix {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes logo-letter-highlight {
  0%,
  60%,
  100% {
    opacity: 0;
    transform: scaleY(0.25);
  }
  20%,
  40% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 176, 255, 0.28);
  background-color: rgba(14, 16, 32, 0.75);
  background-image: linear-gradient(135deg, rgba(39, 176, 255, 0.22) 0%, rgba(124, 58, 237, 0.18) 45%, rgba(0, 245, 160, 0.16) 100%), url("/assets/nav-texture.svg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(5, 10, 28, 0.5);
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 19, 40, 0.85);
  border: 1px solid rgba(39, 176, 255, 0.35);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible,
.language-switcher--open .language-switcher__button {
  border-color: rgba(39, 176, 255, 0.6);
  color: var(--white);
  outline: none;
}

.language-switcher__flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(39, 176, 255, 0.35);
}

.language-switcher__label {
  white-space: nowrap;
  font-weight: 500;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0.4rem;
  margin: 0;
  background: rgba(12, 15, 31, 0.97);
  border: 1px solid rgba(39, 176, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(8, 12, 28, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 180px;
  z-index: 30;
}

.language-switcher--open .language-switcher__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-switcher__menu li {
  list-style: none;
}

.language-switcher__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
  background: rgba(39, 176, 255, 0.12);
  color: var(--white);
  outline: none;
}

.language-switcher__option--active {
  background: rgba(39, 176, 255, 0.18);
  color: var(--white);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.site-nav a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.site-nav .cta {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(32, 227, 178, 0.85), rgba(39, 176, 255, 0.85));
  color: #01030a;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(32, 227, 178, 0.25);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(39, 176, 255, 0.25);
  background: rgba(12, 15, 31, 0.85);
  color: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(39, 176, 255, 0.5);
  background: rgba(12, 15, 31, 1);
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header--portal {
  gap: 1.5rem;
}

.site-header--portal .site-nav {
  flex: 1;
  justify-content: center;
  gap: 1.5rem;
}

.portal-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
}

.portal-user__name {
  font-weight: 600;
  color: #fff;
}

.site-footer {
  margin-top: 1rem;
  padding: 4rem clamp(1rem, 5vw, 6rem) 3rem;
  background: linear-gradient(135deg, rgba(4, 6, 15, 0.92), rgba(5, 7, 16, 0.7)), url("/assets/nav-texture.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(39, 176, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.footer__grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(160px, 1fr));
  gap: 2.5rem 3rem;
  align-items: flex-start;
  text-align: left;
}

.footer__brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer__brand p {
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(200, 212, 243, 0.75);
  font-weight: 500;
}

.footer__flag {
  width: 28px;
  height: 20px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(39, 176, 255, 0.35);
  filter: brightness(1.1) saturate(1.2);
}

.footer__address {
  letter-spacing: 0.04em;
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer__payment-icon {
  height: 28px;
  width: auto;
  display: block;
}

.footer-menu h4 {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--white);
}

.footer-menu ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-menu a {
  color: rgba(200, 212, 243, 0.7);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: var(--white);
}

.footer__cta {
  max-width: 320px;
  grid-column: 1 / -1;
}

.footer__cta h3 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.footer__note {
  color: rgba(200, 212, 243, 0.45);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
  margin-top: 1.5rem;
}

.footer__bottom {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(200, 212, 243, 0.7);
  font-weight: 500;
}

.footer__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.footer__address {
  letter-spacing: 0.04em;
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer__payment-icon {
  height: 28px;
  width: auto;
  display: block;
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    position: relative;
    gap: 0.75rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: clamp(0.75rem, 3vw, 2.5rem);
    left: clamp(0.75rem, 3vw, 2.5rem);
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    background: rgba(11, 14, 28, 0.95);
    border: 1px solid rgba(39, 176, 255, 0.25);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(8, 12, 28, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 20;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 0.4rem 0;
    text-align: center;
  }

  .site-nav .cta {
    display: inline-flex;
    justify-content: center;
  }

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

  .language-switcher__menu {
    left: 50%;
    right: auto;
    transform: translate(-50%, -8px);
  }

  .language-switcher--open .language-switcher__menu {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  .footer__grid {
    text-align: center;
  }

  .footer-menu ul {
    align-items: center;
  }

  .footer__brand,
  .footer__cta {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .logo-icon {
    width: 36px;
    height: 36px;
  }
}
