@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-300.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-400.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-500.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-600.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-700.ttf") format("truetype");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/vazirmatn-800.ttf") format("truetype");
}

:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #f7f4ed;
  --text: #17211a;
  --muted: #657067;
  --line: #e8e1d5;
  --green: #1f8d42;
  --green-dark: #0f5f2c;
  --sun: #f5a623;
  --sun-soft: #fff2cc;
  --shadow: 0 24px 70px rgba(22, 36, 25, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(25, 36, 28, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border-radius: 6px;
  color: #314036;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--sun-soft);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: calc(100vh - 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-text,
.intro p,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.button.ghost {
  background: white;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.sun-card,
.documents,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sun-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px);
}

.sun-card img {
  width: min(46vw, 230px);
  height: auto;
}

.sun-card span {
  color: var(--muted);
  font-weight: 700;
}

.sun-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-grid article,
.principle,
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid article {
  min-height: 132px;
  padding: 18px;
}

.metric-grid strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.25rem;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  min-height: 260px;
  padding: 26px;
}

.number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--sun);
  font-size: 1.5rem;
  font-weight: 800;
}

.principle p,
.feature p,
.timeline-step p,
.documents li {
  color: var(--muted);
}

.why {
  background: #f8fbf7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.feature {
  min-height: 150px;
  padding: 18px;
}

.feature span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.feature p {
  margin: 0;
  font-weight: 700;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  right: 27px;
  width: 2px;
  background: var(--line);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  min-height: 128px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-step:hover,
.timeline-step.active {
  transform: translateY(-3px);
  border-color: rgba(31, 141, 66, 0.35);
  box-shadow: 0 18px 42px rgba(31, 141, 66, 0.1);
}

.timeline-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.timeline-step p {
  margin-bottom: 0;
}

.documents {
  position: sticky;
  top: 98px;
  padding: 28px;
}

.documents ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.documents li {
  position: relative;
  padding-right: 20px;
}

.documents li::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--text);
  color: white;
}

.contact .eyebrow {
  color: #ffd36a;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.contact-panel > * {
  min-height: 132px;
  padding: 24px;
  background: #202d23;
}

.contact-panel span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.contact-panel strong {
  display: block;
  color: white;
  font-size: 1rem;
  line-height: 1.8;
}

.phone-number,
.ltr-text {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #111814;
  color: rgba(255, 255, 255, 0.72);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #ffd36a;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .registration-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .principles,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .documents {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand img {
    width: 48px;
    height: 36px;
  }

  .nav-toggle {
    display: inline-grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .section {
    padding: 54px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metric-grid,
  .principles,
  .feature-list,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .sun-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline::before {
    right: 23px;
  }

  .timeline-step {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .timeline-step > span {
    width: 48px;
    height: 48px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
