/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-100);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__inner > nav:not(.nav__mobile) {
  display: none;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo__img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.15rem 0.25rem;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-black);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__links a:hover {
  color: var(--color-orange);
  background: rgba(252, 122, 34, 0.06);
}

.nav__links a[aria-current="page"] {
  color: var(--color-teal);
  background: rgba(20, 184, 166, 0.08);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-gray-100);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-black);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__cta--desktop {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 8px;
}

.lang-switch__link {
  padding: 0.4rem 0.55rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-gray-500);
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch__link:hover {
  color: var(--color-black);
}

.lang-switch__link.is-active {
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html[lang="am"] body {
  line-height: 1.7;
}

html[lang="am"] .hero__title,
html[lang="am"] .programs__title,
html[lang="am"] .giveaway__title,
html[lang="am"] .entry__title,
html[lang="am"] .path__title,
html[lang="am"] .path__node-title,
html[lang="am"] .services__title,
html[lang="am"] .services__name,
html[lang="am"] .peer-card__title {
  letter-spacing: 0;
  line-height: 1.3;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 1rem 1rem;
  border-bottom: 1px solid var(--color-gray-100);
  background: var(--color-white);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a:not(.lang-switch__link):not(.btn) {
  padding: 0.85rem 0.35rem;
  text-decoration: none;
  color: var(--color-black);
  font-weight: 500;
  border-bottom: 1px solid var(--color-gray-100);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav__mobile a[aria-current="page"]:not(.lang-switch__link):not(.btn) {
  color: var(--color-teal);
}

.nav__mobile .btn {
  margin-top: 0.5rem;
  width: 100%;
}

.nav__mobile .btn--outline {
  margin-top: 0.5rem;
}

.nav__mobile .lang-switch {
  margin: 0.65rem 0 0.25rem;
  width: fit-content;
}

.nav__actions .nav__cta--desktop {
  display: none;
}

.page-entry .nav__actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 72%;
}

.page-entry .entry__back {
  font-size: 0.85rem;
}

.page-entry .nav__toggle {
  margin-left: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.15rem 3.25rem;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url('../assets/patterns/pattern.svg');
  background-size: 280px auto;
  background-repeat: repeat;
  background-position: center;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 80%;
  max-width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(252, 122, 34, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-gray-500);
  margin-bottom: 1.15rem;
  max-width: 100%;
  line-height: 1.35;
}

.hero__badge-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hero__badge-place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.hero__badge-flag {
  width: 21px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero__title .accent {
  color: var(--color-orange);
}

.hero__subtitle {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  color: var(--color-gray-500);
  max-width: 46ch;
  margin-bottom: 0.85rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.hero__location-flag {
  width: 21px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__actions .btn {
  width: 100%;
}

.hero__cta-primary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.hero__cta-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-gray-500);
  text-align: center;
  line-height: 1.4;
}

.hero__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-100);
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.4;
}

.hero__link {
  color: var(--color-orange);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero__link:hover {
  color: var(--color-teal);
}

.hero__stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-black);
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.hero__visual {
  position: relative;
  display: block;
}

.hero__exams {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.hero__exam {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero__exam:hover {
  transform: scale(1.04);
}

.hero__exam--featured {
  animation: hero-logo-in 0.7s ease both;
}

.hero__exam-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.hero__exam-logo--det {
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(88, 204, 2, 0.25));
}

.hero__exams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  width: 100%;
  opacity: 0.72;
  animation: hero-logo-in 0.7s ease 0.12s both;
}

.hero__exams-row .hero__exam-logo {
  max-height: 38px;
  max-width: 120px;
  filter: grayscale(0.15);
}

.hero__exams-row .hero__exam:hover {
  opacity: 1;
}

.hero__exams-row .hero__exam:hover .hero__exam-logo {
  filter: none;
}

@keyframes hero-logo-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__float {
  position: static;
  display: inline-flex;
  margin-top: 0.85rem;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: var(--shadow-orange);
}

.hero__float-link {
  color: inherit;
  text-decoration: none;
}

.hero__float-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 480px) {
  .hero__trust {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stat:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .nav__inner {
    padding: 0.85rem 1.5rem;
  }

  .logo__img {
    height: 36px;
  }

  .nav__actions {
    gap: 0.65rem;
  }

  .page-entry .nav__actions {
    max-width: none;
  }

  .hero {
    min-height: calc(100vh - 73px);
    padding: 4rem 1.5rem 5rem;
  }

  .hero__pattern {
    opacity: 0.06;
    background-size: 420px auto;
  }

  .hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    max-width: 18ch;
  }

  .hero__badge {
    align-items: center;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
  }

  .hero__badge-dot {
    margin-top: 0;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 3rem;
  }

  .hero__actions .btn {
    width: auto;
  }

  .hero__cta-primary {
    width: auto;
  }

  .hero__cta-note {
    text-align: left;
  }

  .hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero__stat:last-child {
    grid-column: auto;
  }

  .hero__stat strong {
    font-size: 1.5rem;
  }

  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .hero__exams {
    gap: 2rem;
    padding: 1rem 0;
  }

  .hero__exam-logo--det {
    width: min(100%, 340px);
  }

  .hero__exams-row {
    gap: 2.25rem;
  }

  .hero__exams-row .hero__exam-logo {
    max-height: 44px;
    max-width: 140px;
  }

  .hero__float {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    margin-top: 0;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .nav__inner > nav:not(.nav__mobile) {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__actions .nav__cta--desktop,
  .nav__cta--desktop {
    display: inline-flex;
  }

  .nav__mobile {
    display: none !important;
  }

  .logo__img {
    height: 40px;
  }

  .nav__inner {
    padding: 1rem 1.5rem;
  }
}
