
:root {
  --navy: #273d7d;
  --navy-dark: #1d2f67;
  --ink: #26304c;
  --muted: #7e8190;
  --paper: #f4f3f1;
  --paper-2: #ece8df;
  --sand: #ddd5c4;
  --white: #ffffff;
  --line: rgba(39, 61, 125, .13);
  --radius-xl: 54px;
  --shadow: 0 18px 50px rgba(32, 42, 75, .08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 17%, rgba(39,61,125,.035), transparent 18%),
    var(--paper);
  line-height: 1.9;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { width: min(760px, 100%); margin-inline: 8% 0; }

.section-pattern {
  position: relative;
  overflow: hidden;
}

.section-pattern::before,
.section-pattern::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(39,61,125,.055);
  border-radius: 50%;
  pointer-events: none;
}

.section-pattern::before { right: -210px; top: 10%; box-shadow: 0 0 0 26px rgba(39,61,125,.025), 0 0 0 54px rgba(39,61,125,.018); }
.section-pattern::after { left: -220px; bottom: 6%; box-shadow: 0 0 0 30px rgba(39,61,125,.022), 0 0 0 62px rgba(39,61,125,.015); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,243,241,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(39,61,125,.08);
}

.nav-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  min-width: 160px;
  padding: 10px 18px;
  border-radius: 0 0 24px 24px;
  text-align: center;
}

.brand-mark {
  font-size: 30px;
  font-family: Georgia, serif;
  letter-spacing: .08em;
  color: var(--navy);
  font-weight: 700;
}

.brand small,
.footer-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--muted);
  direction: ltr;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.main-nav a {
  padding: 26px 18px;
  font-weight: 600;
  font-size: 14px;
}

.main-nav a.active,
.main-nav a:hover {
  background: var(--navy);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.phone { white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: .2s ease;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--navy);
}

.hero { padding: 0 0 70px; }
.hero-frame {
  height: min(560px, 54vw);
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 2px;
}

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

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.22), transparent 45%, rgba(0,0,0,.06));
}

.hero-line {
  position: absolute;
  z-index: 2;
  left: 9%;
  top: 12%;
  width: 92px;
  height: 82px;
  border-top: 1px solid rgba(255,255,255,.8);
  border-left: 1px solid rgba(255,255,255,.8);
  border-radius: 50px 0 0 0;
}

.about { padding: 40px 0 95px; }
.content-card {
  position: relative;
  z-index: 1;
  padding: 22px 0 22px;
}
.content-card p { color: var(--muted); max-width: 720px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
}

.section-title .dot {
  width: 16px;
  height: 16px;
  background: var(--sand);
  border-radius: 50%;
  flex: 0 0 auto;
}

.text-link {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  margin-top: 16px;
}

.services { padding: 0 0 100px; }

.service-panel {
  background: var(--navy);
  border-radius: 72px 0 0 0;
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 50px 38px;
  position: relative;
  z-index: 1;
}

.service-item {
  text-align: center;
  padding: 12px 28px;
}

.line-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 300;
}

.service-item h3 { margin: 10px 0 6px; font-size: 20px; }
.service-item p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.9; }

.process { padding: 0 0 110px; }
.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: start;
}

.steps::before {
  content: "";
  position: absolute;
  top: 35px;
  right: 8%;
  left: 8%;
  border-top: 1px solid rgba(39,61,125,.16);
  z-index: -1;
}

.step { text-align: center; }
.step span {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid rgba(39,61,125,.08);
  color: var(--navy);
  font-weight: 800;
}
.step strong { display: block; color: var(--navy); }
.step small { color: var(--muted); }

.why { padding: 0 0 110px; }

.why-panel {
  position: relative;
  z-index: 1;
  border-radius: 72px 0 0 72px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 50px;
  align-items: center;
  padding: 48px 62px;
}

.section-title.light {
  border-color: rgba(255,255,255,.22);
}
.section-title.light h2 { color: var(--white); }

.why-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.76);
}
.why-copy li { margin: 6px 0; }
.why-copy li::before { content: "✓"; margin-left: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats > div {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.3);
  padding: 10px 24px;
}
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
.stats span { color: rgba(255,255,255,.64); font-size: 13px; }

.cta { padding: 0 0 140px; }
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 0;
}

.cta-image {
  overflow: hidden;
  border-radius: 80px 0 80px 0;
  height: 480px;
}
.cta-image img { width: 100%; height: 100%; object-fit: cover; }

.cta-card {
  background: var(--paper-2);
  padding: 54px 60px;
  margin-right: -24px;
  border-radius: 0 70px 0 0;
  box-shadow: var(--shadow);
}
.cta-card h2 { margin-top: 0; color: var(--navy); font-size: clamp(26px, 4vw, 38px); }
.cta-card p { color: var(--muted); }

.btn-outline {
  color: var(--navy);
  border: 1px solid rgba(39,61,125,.3);
  background: rgba(255,255,255,.35);
}
.btn-outline:hover { background: var(--white); }

.site-footer {
  background: var(--navy);
  color: var(--white);
  border-radius: 80px 0 0 0;
  padding: 70px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 50px;
}

.footer-grid h3 { font-size: 15px; margin: 0 0 20px; }
.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  margin: 7px 0;
}
.footer-brand .brand-mark { color: var(--white); font-size: 46px; }
.footer-brand small { color: rgba(255,255,255,.58); margin-bottom: 16px; }

@media (max-width: 1000px) {
  .nav-wrap { grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: block; order: 2; justify-self: end; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 10px;
    border-radius: 16px;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: 10px; }
  .header-actions { display: none; }
  .service-panel { grid-template-columns: repeat(2, 1fr); border-radius: 50px 0 0 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .why-panel { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-card { margin: -40px 6% 0; border-radius: 36px; position: relative; }
  .cta-image { height: 390px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .nav-wrap { min-height: 68px; }
  .brand { padding-inline: 0; text-align: right; min-width: auto; }
  .brand-mark { font-size: 24px; }
  .brand small { display: none; }
  .main-nav { top: 68px; }
  .hero { padding-bottom: 50px; }
  .hero-frame { min-height: 330px; height: 62vh; }
  .about, .services, .process, .why { padding-bottom: 72px; }
  .service-panel { grid-template-columns: 1fr; padding: 28px 18px; border-radius: 40px 0 0 0; }
  .service-item { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .service-item:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-panel { padding: 34px 24px; border-radius: 42px 0 0 42px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .stats > div:last-child { border-bottom: 0; }
  .cta { padding-bottom: 90px; }
  .cta-image { height: 340px; border-radius: 52px 0 52px 0; }
  .cta-card { padding: 34px 24px; margin-inline: 16px; }
  .site-footer { border-radius: 50px 0 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
