@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-w: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --bg: #0c0a18;
  --bg-elevated: #14112a;
  --surface: #1b1735;
  --surface-2: #241f45;
  --border: #322c58;
  --border-soft: #2a2549;
  --text: #f4f2fb;
  --text-muted: #a49dc7;
  --accent: #e9b64c;
  --accent-soft: #4a3d1f;
  --accent-contrast: #16121f;
  --accent-2: #8b7bf7;
  --success: #57bf8c;
  --success-bg: #16302a;
  --danger: #ea6b7d;
  --danger-bg: #351b23;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .55);
  --overlay: rgba(12, 10, 24, .7);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf7f1;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4eee2;
  --border: #e7ddc9;
  --border-soft: #efe7d6;
  --text: #211a33;
  --text-muted: #675f83;
  --accent: #b8791e;
  --accent-soft: #f3e2c1;
  --accent-contrast: #ffffff;
  --accent-2: #6b4fd6;
  --success: #1f7d54;
  --success-bg: #e2f4ea;
  --danger: #c23c50;
  --danger-bg: #fbe6ea;
  --shadow: 0 20px 50px -25px rgba(60, 40, 10, .25);
  --overlay: rgba(250, 247, 241, .82);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #faf7f1;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4eee2;
    --border: #e7ddc9;
    --border-soft: #efe7d6;
    --text: #211a33;
    --text-muted: #675f83;
    --accent: #b8791e;
    --accent-soft: #f3e2c1;
    --accent-contrast: #ffffff;
    --accent-2: #6b4fd6;
    --success: #1f7d54;
    --success-bg: #e2f4ea;
    --danger: #c23c50;
    --danger-bg: #fbe6ea;
    --shadow: 0 20px 50px -25px rgba(60, 40, 10, .25);
    --overlay: rgba(250, 247, 241, .82);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 720px) { .container { padding-inline: 32px; } }

.star-pattern {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><g fill="none" stroke="%23e9b64c" stroke-width="0.6" opacity="0.35"><path d="M60 12 L71 45 L106 48 L78 69 L88 103 L60 83 L32 103 L42 69 L14 48 L49 45 Z"/></g></svg>');
  background-size: 120px 120px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #f3cd7e);
  color: var(--accent-contrast);
  box-shadow: 0 12px 30px -12px rgba(233, 182, 76, .55);
}
.btn--primary:hover { box-shadow: 0 16px 36px -12px rgba(233, 182, 76, .7); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark { width: 34px; height: 34px; flex-shrink: 0; color: var(--accent); }
.icon-accent { color: var(--accent); }
.nav__wordmark { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.nav__wordmark small { display: block; font-weight: 400; font-size: .68rem; color: var(--text-muted); margin-top: 1px; }

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a { transition: color .2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); }

@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.nav__burger {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav__burger svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .nav__burger { display: none; } }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 20px;
  border-top: 1px solid var(--border-soft);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a { padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--border-soft); }
@media (min-width: 900px) { .nav__mobile { display: none !important; } }

.hero {
  position: relative;
  padding-block: 72px 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(60% 60% at 20% 20%, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 70%),
    radial-gradient(50% 50% at 85% 15%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero__pattern {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--accent); font-weight: 700; margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800; line-height: 1.28; margin: 0 0 20px;
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__subtitle {
  font-size: 1.08rem; color: var(--text-muted); max-width: 620px; margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; }
.hero__stat b { display: block; font-size: 1.5rem; color: var(--accent); }
.hero__stat span { font-size: .85rem; color: var(--text-muted); }

.section { padding-block: 84px; position: relative; }
.section--alt { background: var(--bg-elevated); }
.section__header { max-width: 640px; margin: 0 0 48px; }
.section__eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700;
  color: var(--accent); letter-spacing: .02em; margin-bottom: 12px;
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 14px; }
.section__subtitle { color: var(--text-muted); font-size: 1.02rem; margin: 0; }

.services-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-soft));
  box-shadow: var(--shadow);
}
.service-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.service-card__desc { font-size: .92rem; color: var(--text-muted); margin: 0; }

.steps__list {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast); font-weight: 800; margin-bottom: 18px;
}
.step__title { font-weight: 700; font-size: 1.05rem; margin: 0 0 8px; }
.step__desc { color: var(--text-muted); font-size: .92rem; margin: 0; }

.order { position: relative; }
.order__grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .order__grid { grid-template-columns: .9fr 1.1fr; align-items: flex-start; } }

.order__aside { position: static; }
@media (min-width: 960px) { .order__aside { position: sticky; top: 96px; } }
.order__price {
  display: flex; align-items: baseline; gap: 8px; margin: 22px 0 8px;
}
.order__price b { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.order__price span { color: var(--text-muted); }
.order__list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.order__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text-muted); }
.order__list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: .88rem; font-weight: 600; }
.form__label .req { color: var(--danger); margin-inline-start: 3px; }
.form__input, .form__textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form__input:focus, .form__textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form__textarea { min-height: 110px; resize: vertical; }
.form__hint { font-size: .78rem; color: var(--text-muted); }
.form__error { font-size: .8rem; color: var(--danger); min-height: 1em; }

.form__checkbox-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.form__checkbox {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form__checkbox:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.form__checkbox input { accent-color: var(--accent); }

.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--text-muted); margin: 22px 0; }
.form__consent input { margin-top: 4px; accent-color: var(--accent); }
.form__consent a { color: var(--accent); text-decoration: underline; }

.form__status { font-size: .88rem; margin-top: 14px; min-height: 1.4em; }
.form__status--error { color: var(--danger); }
.form__status--loading { color: var(--text-muted); }

.summary-card {
  max-width: 560px; margin: 0 auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
  font-size: .95rem;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row span:first-child { color: var(--text-muted); }
.summary-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 22px 0; padding: 18px 20px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
}
.summary-amount b { font-size: 1.8rem; color: var(--accent); }
.summary-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--text-muted); margin-top: 20px; }
.summary-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.result { text-align: center; }
.result__icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px;
}
.result__icon svg { width: 40px; height: 40px; }
.result--success .result__icon { background: var(--success-bg); color: var(--success); }
.result--failed .result__icon { background: var(--danger-bg); color: var(--danger); }
.result__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 12px; }
.result__desc { color: var(--text-muted); max-width: 480px; margin: 0 auto 26px; }
.result__actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  padding-block: 64px 28px;
  position: relative;
}
.footer__grid {
  display: grid; gap: 44px;
  grid-template-columns: 1.3fr repeat(3, 1fr);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__mark { width: 32px; height: 32px; color: var(--accent); }
.footer__desc { color: var(--text-muted); font-size: .9rem; max-width: 300px; margin-bottom: 18px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__social svg { width: 16px; height: 16px; }

.footer__title { font-size: .92rem; font-weight: 700; margin: 0 0 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--text-muted); font-size: .9rem; transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__meta { color: var(--text-muted); font-size: .88rem; display: flex; gap: 10px; margin-bottom: 10px; }
.footer__meta svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.trust-badges {
  margin-top: 54px; padding-top: 40px; border-top: 1px solid var(--border-soft);
}
.trust-badges__title { font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 18px; }
.trust-badges__row { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-badge {
  width: 108px; height: 108px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--text-muted); font-size: .72rem; text-align: center; padding: 8px;
}
.trust-badge svg { width: 26px; height: 26px; opacity: .6; }

.trust-badge--live {
  border: none;
  padding: 0;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .2s var(--ease);
}
.trust-badge--live:hover { transform: translateY(-3px); }
.trust-badge--live img { height: 100%; width: auto; display: block; }

.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-muted); font-size: .82rem;
}
.footer__bottom a { transition: color .2s var(--ease); }
.footer__bottom a:hover { color: var(--accent); }

.page-hero {
  padding-block: 56px 40px; text-align: center;
}
.page-hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; }
.page-hero__subtitle { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.contact-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 60px;
}
.contact-card {
  padding: 26px; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); text-align: center;
}
.contact-card__icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.contact-card__value { font-weight: 700; font-size: 1rem; line-height: 1.6; }
.contact-card__value.placeholder { color: var(--accent); }

.hours-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); overflow: hidden;
}
.hours-table td { padding: 15px 22px; border-bottom: 1px solid var(--border-soft); font-size: .94rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { font-weight: 700; text-align: left; }
.hours-table tr.closed td:last-child { color: var(--danger); }

.map-placeholder {
  margin-top: 40px;
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-muted); font-size: .88rem;
}
.map-placeholder svg { width: 30px; height: 30px; opacity: .6; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; font-weight: 800; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin: 0 0 14px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.prose li { color: var(--text-muted); position: relative; padding-inline-start: 18px; }
.prose li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.prose__note {
  margin-top: 40px; padding: 18px 20px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--text-muted);
  display: flex; gap: 10px;
}
.prose__note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.prose__updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 40px; }

.toc { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 40px; max-width: 780px; margin-inline: auto; }
.toc__title { font-weight: 700; margin: 0 0 12px; font-size: .92rem; }
.toc ol { list-style: decimal; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--text-muted); font-size: .88rem; }
.toc a:hover { color: var(--accent); }
