/* ===== Navigation ===== */
nav {
  width: 100%;
  min-height: 72px;
  background-color: var(--dl-color-theme-accent1);
  box-shadow: var(--shadow-nav);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 150px;
}

nav img {
  width: 225px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 200;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-line {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-font-dark);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.navigator-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navigator-list li a {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1f2933;
  cursor: pointer;
  transition: color 0.2s ease;
}

.navigator-list li a:hover {
  color: var(--dl-color-theme-primary1);
}

nav .tools {
  display: flex;
  justify-content: end;
  width: 225px;
}

nav .tools a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background-color: var(--dl-color-theme-primary1);
  color: var(--dl-color-theme-accent1);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

nav .tools a:hover {
  background-color: var(--dl-color-theme-primary2);
}

.tools-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.tools-lang img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

#lang-opts {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  outline: none;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  /* ===== Navigation Mobile ===== */
  nav {
    padding: 16px 20px;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav .navigator-list,
  nav .tools {
    display: none;
  }

  nav .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100svh;
    background-color: var(--dl-color-theme-accent1);
    padding: 72px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 50;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in;
  }

  .mobile-nav.open {
    transform: translateY(0);
  }

  .mobile-nav .mobile-nav-list {
    padding: 12px 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .mobile-nav .mobile-nav-list li {
    width: 100%;
    height: 44px;
    width: 100%;
    display: flex;
  }

  .mobile-nav .mobile-nav-list li a {
    width: 100%;
    height: 100%;
    padding: 12px 20px;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    color: var(--color-font-deep);
    cursor: pointer;
  }

  .mobile-nav .mobile-nav-list li a:focus {
    color: var(--dl-color-theme-primary1);
  }

  .mobile-nav .mobile-nav-tools {
    width: 100%;
    padding: 0 20px;
  }

  .mobile-nav .mobile-nav-tools a {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--dl-color-theme-primary1);
    color: var(--dl-color-theme-accent1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .mobile-nav .mobile-nav-tools a:hover {
    background-color: var(--dl-color-theme-primary2);
  }
}

/* ===== Tablet (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  nav {
    padding: 16px 60px;
  }

  .navigator-list {
    gap: 24px;
  }

  .navigator-list li a {
    font-size: 16px;
  }

  nav .tools {
    width: fit-content;
  }

  nav img {
    width: 200px;
  }
}
