:root {
  --primary: #064e3b;
  --accent: #d4af37;
  --bg: #f8faf9;
  --text: #1f2937;
  --muted: #4b5563;
  --surface: #ffffff;
  --line: #d8e2dc;
  --hero-overlay: rgba(6, 78, 59, 0.58);
  --gold-glow: 0 10px 24px rgba(212, 175, 55, 0.38);
  --shadow: 0 18px 35px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1140px);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.nav a {
  color: var(--text);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  background: var(--accent);
  color: #201607;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-items: center;
  padding: 7.5rem 1rem 4rem;
  overflow: hidden;
  background-image: url("https://images.unsplash.com/photo-1671124918994-e84e710930b9?fm=jpg&q=80&w=1800&auto=format&fit=crop&ixlib=rb-4.1.0");
  background-size: cover;
  background-position: center;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.55), rgba(6, 78, 59, 0.28));
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(160deg, var(--hero-overlay), rgba(6, 78, 59, 0.34));
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(94%, 760px);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  color: #fff;
  padding: 1.7rem;
}

.hero-card h1 {
  margin: 0.45rem 0 0.8rem;
  font-size: clamp(1.8rem, 4.8vw, 3.4rem);
  line-height: 1.1;
}

.hero-card p {
  margin: 0;
  line-height: 1.65;
}

.slogan {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}

.apply-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.apply-modal.open {
  display: flex;
}

.apply-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.apply-card {
  position: relative;
  width: min(720px, 94%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 1.4rem;
  padding: 1.8rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.96));
  box-shadow: var(--shadow);
}

.apply-title {
  margin: 0 0 1.3rem;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.apply-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.apply-form {
  display: grid;
  gap: 0.9rem;
}

.apply-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.apply-field input[type="text"],
.apply-field input[type="tel"],
.apply-field input[type="file"],
.apply-field select,
.apply-field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.apply-field textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-apply-submit {
  width: 100%;
  background: #0b63ce;
  color: #fff;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.btn-apply-submit:hover {
  filter: brightness(1.05);
}

.apply-actions {
  margin-top: 0.4rem;
}

body.modal-open {
  overflow: hidden;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.section {
  width: min(94%, 1140px);
  margin: 0 auto;
  padding: 4.2rem 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-head h2 {
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
}

.impact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.impact-number {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  color: var(--primary);
  font-weight: 800;
}

.impact-label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

#process {
  position: relative;
}

.process-line {
  position: absolute;
  left: 22px;
  top: 148px;
  bottom: 54px;
  width: 3px;
  background: linear-gradient(var(--primary), rgba(6, 78, 59, 0.15));
}

.process-stack {
  display: grid;
  gap: 0.9rem;
  max-width: 840px;
}

.process-step {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0.45;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.process-step.active {
  opacity: 1;
  transform: translateX(8px);
  border-color: rgba(212, 175, 55, 0.7);
  background: linear-gradient(90deg, rgba(250, 250, 249, 0.98), rgba(252, 250, 245, 0.96));
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.18);
}

.step-index {
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #ecf4ef;
  border: 1px solid rgba(6, 78, 59, 0.28);
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.process-step.active .step-index {
  background: var(--accent);
  border-color: var(--accent);
  color: #2b1e0a;
}

.process-step h3 {
  margin: 0;
}

.process-step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.process-content {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
}

.process-summary p {
  margin-top: 0.25rem;
}

.process-detail {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.28s ease;
}

.process-step.expanded .process-detail {
  max-height: 200px;
  opacity: 1;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
}

.photo-card {
  min-height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.08) 0%, rgba(6, 78, 59, 0.78) 88%);
}

.photo-card,
.photo-card::after {
  transition: transform 0.35s ease;
}

.photo-card:hover {
  transform: scale(1.02);
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  color: #fff;
  padding: 1.2rem;
}

.photo-overlay h3 {
  margin: 0;
}

.photo-overlay p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.slide-btn {
  margin-top: 0.8rem;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.photo-card:hover .slide-btn {
  opacity: 1;
  transform: translateY(0);
}

#kyrgyzMap {
  width: 100%;
  height: 440px;
  border: 3px solid var(--primary);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.map-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.custom-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.2);
}

.custom-pin.hq {
  width: 20px;
  height: 20px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 68% 58%, 79% 96%, 50% 74%, 21% 96%, 32% 58%, 2% 36%, 39% 36%);
  border-radius: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.benefits-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.benefits-grid h3 {
  margin: 0;
  color: var(--primary);
}

.benefits-grid p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.accordion {
  display: grid;
  gap: 0.65rem;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  max-height: 180px;
}

.footer {
  width: min(94%, 1140px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.8rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 1.2rem;
}

.footer-logo p {
  margin: 0.25rem 0;
}

.footer-links,
.footer-connect {
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .impact-grid,
  .job-grid,
  .benefits-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .process-line {
    left: 20px;
    top: 120px;
    bottom: 70px;
  }

  #kyrgyzMap {
    height: 360px;
  }
}
