body {
  background: var(--bg);
  font-family: Oswald;
}
.container {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 9999;
  top: 0;
  width: 100%;
  height: 72px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  background: rgb(5 3 13 / 72%);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}
.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: min(78%, 1050px);
  height: 1px;
  margin: auto;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgb(212 175 55 / 28%),
    transparent
  );
  transform-origin: center;
  animation: header-line-breathe 4.5s ease-in-out infinite;
}
.site-header.scrolled {
  border-bottom-color: rgb(212 175 55 / 10%);
  background: rgb(5 3 13 / 88%);
  box-shadow: 0 12px 35px rgb(0 0 0 / 25%);
}
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 40px), var(--content-width));
  height: 100%;
  margin: 0 auto;
}
.nav-logo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}
.nav-logo img {
  display: block;
  width: auto;
  height: 62px;
  transition:
    filter var(--transition),
    transform var(--transition);
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 10px rgb(212 175 55 / 22%));
  transform: scale(1.04);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(18px, 3vw, 48px);
}
.nav-links li:nth-child(3) {
  margin-right: clamp(105px, 12vw, 170px);
}
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 7px 23px;
  color: rgb(255 255 255 / 70%);
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 2.2px;
  transition:
    color var(--transition),
    background var(--transition),
    opacity var(--transition);
}
.nav-links a::after {
  position: absolute;
  right: 50%;
  bottom: 16px;
  left: 50%;
  height: 1px;
  border-radius: 50px;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 9px rgb(212 175 55 / 60%);
  transition:
    right var(--transition),
    left var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  right: 16%;
  left: 16%;
}
.nav-links a.active {
  color: var(--gold);
}
.nav-icon {
  display: none;
}
.site-button {
  box-sizing: border-box;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Oswald, sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  cursor: pointer;
}
.site-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}
.btn-primary,
.btn-secondary {
  padding: 18px 40px;
  border-radius: 50px;
  font-family: Oswald, sans-serif;
  letter-spacing: 2px;
  transition: var(--transition);
  font-size: 1.2rem;
}
.btn-primary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-primary:hover {
  color: var(--black);
  box-shadow: 0 5px 35px rgb(212 175 55 / 80%);
  background-color: var(--gold);
}
.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 5px 35px rgb(255 255 255 / 65%);
}

footer {
  background: url("../images/icons/foterbg.jpg") center / cover;
  color: var(--white);
}
footer .container {
  padding: 2rem 1rem 1rem;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.footer-left h1 {
  color: rgb(255 255 255 / 80%);
  font-family: Oswald, sans-serif;
  font-size: clamp(2.15rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 3px;
  transition: 0.6s;
}
.footer-left h1:hover {
  color: var(--gold);
  cursor: pointer;
  transform: translateY(-5px);
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
.partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 50px;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font:
    1.8rem Oswald,
    sans-serif;
  white-space: nowrap;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}
.partner-btn:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 15px 35px rgb(212 175 55 / 25%);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links img {
  height: 42px;
  transition: var(--transition);
}
.footer-links img:hover {
  transform: translateY(-4px) scale(1.1);
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 65px;
  height: 100%;
}
.footer-right a {
  color: var(--white);
  font-size: 3rem;
  transition: var(--transition);
}
.footer-right a:hover {
  color: var(--gold);
  transform: translateY(-5px);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  color: #bdbdbd;
  border-top: 1px solid rgb(255 255 255 / 15%);
  cursor: pointer;
  letter-spacing: 1px;
  line-height: 1.8;
  text-align: center;
  transition:
    color 0.6s ease,
    letter-spacing 0.6s ease;
}
.footer-bottom:hover {
  color: var(--white);
  letter-spacing: 2px;
}
.footer-reveal-item {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.65s ease var(--footer-delay, 0ms),
    translate 0.65s ease var(--footer-delay, 0ms),
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    letter-spacing 0.6s ease,
    transform 0.35s ease;
  will-change: opacity, translate;
}
.footer-reveal-item.is-visible {
  opacity: 1;
  translate: 0 0;
}
.footer-left.footer-reveal-item {
  translate: 0 24px;
}
.footer-left.footer-reveal-item.is-visible {
  translate: 0 0;
}
.footer-links img.footer-reveal-item,
.footer-right a.footer-reveal-item {
  translate: 0 12px;
}
.footer-links img.footer-reveal-item.is-visible,
.footer-right a.footer-reveal-item.is-visible {
  translate: 0 0;
}
.footer-reveal-item.is-visible {
  will-change: auto;
}

@keyframes header-line-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.1);
    box-shadow: 0 0 15px rgb(212 175 55 / 45%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after {
    animation: none;
    opacity: 0.45;
    transform: none;
  }
  .footer-reveal-item,
  .footer-reveal-item.is-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(300px, auto) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
  }

  .footer-left h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
  }

  .footer-center {
    width: max-content;
    max-width: 100%;
    justify-self: center;
    gap: 2.25rem;
  }

  .partner-btn {
    padding: 15px 34px;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    justify-content: center;
    gap: 20px 28px;
  }

  .footer-links a {
    display: grid;
    place-items: center;
  }

  .footer-right {
    align-items: center;
    gap: 45px;
  }

  .footer-right a {
    color: rgb(255 255 255 / 80%);
    font-size: 2.7rem;
  }

  .footer-bottom {
    margin-top: 3.5rem;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-left {
    text-align: center;
  }

  .footer-center {
    gap: 2.5rem;
  }

  .footer-links {
    justify-content: center;
    margin-inline: auto;
  }

  .footer-right {
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 75px;
  }

  .footer-right a {
    color: rgb(255 255 255 / 80%);
    font-size: 3rem;
  }
}

@media (max-width: 850px) {
  .site-header {
    position: relative;
    height: 82px;
    border-bottom: 1px solid rgb(255 255 255 / 5%);
    background: rgb(5 3 13 / 92%);

    box-shadow: none;
    backdrop-filter: none;
  }

  .site-header::after {
    width: 80%;
  }

  .site-header.scrolled {
    background: rgb(5 3 13 / 92%);
    box-shadow: none;
  }

  .navbar {
    width: 100%;
  }

  .nav-logo img {
    height: 68px;
  }

  .nav-logo:hover img {
    filter: none;
    transform: none;
  }

  .nav-links {
    position: fixed;
    z-index: 9999;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(calc(100% - 20px), 520px);
    height: 72px;
    padding: 7px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 22px;
    gap: 2px;
    background: rgb(8 5 20 / 90%);
    box-shadow:
      0 16px 40px rgb(0 0 0 / 45%),
      inset 0 1px 0 rgb(255 255 255 / 5%);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
    transition:
      width var(--transition),
      height var(--transition),
      bottom var(--transition),
      border-color var(--transition),
      opacity var(--transition),
      background var(--transition),
      transform var(--transition);
  }

  .nav-links li:nth-child(3) {
    margin-right: 0;
  }

  .nav-links a {
    display: flex;
    min-width: 0;
    height: 100%;
    padding: 6px 2px;
    border-radius: 15px;
    flex-direction: column;
    gap: 5px;
    color: rgb(255 255 255 / 64%);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    opacity: 0.68;
    transition:
      width var(--transition),
      height var(--transition),
      opacity var(--transition),
      filter var(--transition),
      transform var(--transition);
  }

  .nav-links span {
    overflow: hidden;
    max-width: 100%;
    max-height: 16px;
    font-size: clamp(0.5rem, 1.7vw, 0.64rem);
    letter-spacing: 0.7px;
    line-height: 1;
    opacity: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition:
      max-height var(--transition),
      opacity var(--transition),
      transform var(--transition);
  }

  .nav-links a.active {
    background: rgb(212 175 55 / 9%);
    color: var(--gold);
  }

  .nav-links a.active .nav-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(72%) sepia(43%) saturate(833%)
      hue-rotate(5deg) brightness(93%) contrast(86%)
      drop-shadow(0 0 5px rgb(212 175 55 / 45%));
    transform: translateY(-1px);
  }

  .site-header.nav-compact .nav-links {
    bottom: calc(7px + env(safe-area-inset-bottom));
    width: min(calc(100% - 44px), 480px);
    height: 59px;
    border-color: rgb(255 255 255 / 10%);
    background: rgb(8 5 20 / 55%);
    box-shadow: 0 12px 32px rgb(0 0 0 / 30%);
    backdrop-filter: blur(15px) saturate(115%);
    -webkit-backdrop-filter: blur(15px) saturate(115%);
    opacity: 0.9;
    transform: translateX(-50%) translateY(3px);
  }

  .site-header.nav-compact .nav-links a {
    gap: 0;
  }

  .site-header.nav-compact .nav-icon {
    width: 23px;
    height: 23px;
  }

  .site-header.nav-compact .nav-links span {
    max-height: 0;
    opacity: 0;
    transform: translateY(4px);
  }

  .footer-left h1 {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
    line-height: 1.55;
  }

  #footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 850px) and (hover: hover) {
  .nav-links a:hover {
    color: var(--white);
    background: rgb(255 255 255 / 5%);
  }

  .nav-links a:hover .nav-icon {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 576px) {
  .btn-primary,
  .btn-secondary {
    display: flex;
    justify-content: center;
    width: 85%;
    margin: 0 auto;
    text-align: center;
  }

  .partner-btn {
    max-width: calc(100% - 24px);
    padding-inline: clamp(22px, 8vw, 44px);
    font-size: clamp(1.15rem, 5vw, 1.7rem);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 250px;
  }
  .footer-right a {
    font-size: 2.8rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .nav-links {
    width: calc(100% - 14px);
  }
  .nav-links span {
    font-size: 0.5rem;
    letter-spacing: 0.35px;
  }
  .nav-icon {
    width: 23px;
    height: 23px;
  }
  .site-header.nav-compact .nav-links {
    width: calc(100% - 36px);
  }

  .btn-primary,
  .btn-secondary {
    width: 95%;
    font-size: 1.2rem;
  }
  .partner-btn {
    font-size: 1.3rem;
  }
}
