@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Lalezar;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lalezar-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: Lalezar;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lalezar-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Lalezar;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lalezar-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --ink: #17211c;
  --muted: #5c675f;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: #e3d9c8;
  --green: #0f6b3a;
  --green-dark: #083222;
  --red: #c4321a;
  --gold: #c6a15a;
  --shadow: 0 18px 40px rgba(8, 30, 20, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--green-dark);
  color: #f7f3ea;
  font-size: 0.88rem;
}

.topbar .wrap,
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar .wrap { min-height: 42px; }

.brand-row, .nav, .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flag {
  width: 28px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header .wrap { min-height: 76px; }

.logo {
  width: 52px;
  height: 52px;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-name strong { font-size: 1rem; }
.brand-name span { color: var(--muted); font-size: 0.82rem; }

.nav { gap: 20px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: var(--red);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn.light {
  background: white;
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 120, 60, 0.28), transparent 36%),
    linear-gradient(160deg, #0f6b3a 0%, #083222 68%);
  color: #f7f3ea;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0 72px;
}

.kicker {
  margin: 0 0 8px;
  color: #f0c27a;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: Lalezar, Vazirmatn, Tahoma, sans-serif;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.hero p.lead {
  font-size: 1.08rem;
  max-width: 38rem;
  color: rgba(247, 243, 234, 0.88);
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn.secondary { color: #f7f3ea; }

.card {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flagbar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 8px; }
.flagbar span:nth-child(1) { background: #239f40; }
.flagbar span:nth-child(2) { background: #fff; }
.flagbar span:nth-child(3) { background: #da0000; }

.card-body { padding: 22px; }
.card-body h2 { margin: 0 0 12px; font-size: 1.3rem; }

.meta { display: grid; gap: 8px; margin: 0; }
.meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; }

.card .btn { width: 100%; margin-top: 16px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #062417;
  color: #f7f3ea;
}

.stats div {
  padding: 22px 12px;
  text-align: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
}

.stats strong {
  display: block;
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #f0c27a;
}

section { padding: 64px 0; }
section[id] { scroll-margin-top: 88px; }

.section-head { margin-bottom: 26px; max-width: 40rem; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section-head p { margin: 8px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.panel h3 { margin: 0 0 10px; }

.panel ol, .panel ul { margin: 0; padding-inline-start: 18px; }
.panel li + li { margin-top: 6px; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-height: 160px;
}

.step b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  margin-bottom: 10px;
}

.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.city {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.city span { color: var(--muted); font-size: 0.85rem; }
.city strong { display: block; font-size: 1.15rem; }
.city em { font-style: normal; color: var(--red); font-weight: 800; }

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.benefits article {
  background: #e7f3eb;
  border-radius: 14px;
  padding: 14px 16px;
}

.benefits h3 { margin: 0 0 4px; font-size: 1rem; }
.benefits p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.note {
  background: #fff6e8;
  border: 1px solid #efd7a8;
  border-radius: 12px;
  padding: 12px 14px;
  color: #6d4d12;
  margin: 0 0 14px;
}

label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }

input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9d0c0;
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.faq { display: grid; gap: 10px; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--muted); }

.footer {
  background: var(--green-dark);
  color: #f7f3ea;
  padding: 28px 0;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer small { color: rgba(247, 243, 234, 0.72); }

.download-layout {
  display: grid;
  gap: 16px;
  padding-top: 28px;
}

.download-layout h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.apk-card {
  text-align: center;
}

.apk-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
}

.apk-card .btn {
  width: 100%;
  margin-top: 16px;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero .wrap,
  .split,
  .stats,
  .steps,
  .cities,
  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  .steps, .cities, .benefits, .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .header { position: sticky; }
  .header .wrap { position: static; }
  .top-extra { display: none; }
  .hero .wrap,
  .split,
  .stats,
  .steps,
  .cities,
  .benefits { grid-template-columns: 1fr; }
  .hero .wrap { padding: 40px 0 48px; }
  section { padding: 42px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
