/* Self-contained: no external fonts or CDNs, so the site renders identically
   from inside Iran with no third-party requests. */

:root {
  --bg:        #f6f7fb;
  --surface:   #ffffff;
  --line:      #e5e7f0;
  --text:      #1a1c2b;
  --muted:     #6b7089;
  --primary:   #5b3df5;
  --primary-d: #4a2fd6;
  --primary-l: #efeaff;
  --success:   #0f9d58;
  --success-l: #e6f6ed;
  --danger:    #d93025;
  --danger-l:  #fdecea;
  --warn:      #b8860b;
  --warn-l:    #fdf5e2;
  --info:      #1a73e8;
  --info-l:    #e8f0fe;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(20,22,45,.05), 0 8px 24px rgba(20,22,45,.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

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

h1, h2, h3, h4 { line-height: 1.6; margin: 0 0 .6rem; font-weight: 700; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-inline-start: 1.2rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.inline { display: inline; }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ------------------------------------------------------------------ header */

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}

.head-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800;
}
.brand-text { font-size: 1.05rem; }

.site-nav { display: flex; gap: 1.25rem; margin-inline-start: 1rem; flex: 1; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }

.head-cta { display: flex; align-items: center; gap: .5rem; }

.burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: .5rem; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.navtoggle { display: none; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost { background: var(--primary-l); color: var(--primary); }
.btn-ghost:hover { background: #e4dcff; }
.btn-plain { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-plain:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------------ alerts */

.alert {
  border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0;
  border: 1px solid transparent; font-weight: 500;
}
.alert-success { background: var(--success-l); border-color: #bfe5cf; color: #0b6b3d; }
.alert-error   { background: var(--danger-l);  border-color: #f5c3bf; color: #a3221a; }
.alert-info    { background: var(--info-l);    border-color: #c3d9fb; color: #12509f; }

/* ------------------------------------------------------------------ hero */

.hero {
  background: linear-gradient(135deg, #5b3df5 0%, #7c4dff 55%, #9d6bff 100%);
  color: #fff; padding: 3.2rem 0 3.6rem; margin-bottom: -2rem;
}
.hero h1 { font-size: 2rem; color: #fff; }
.hero p { color: rgba(255,255,255,.9); max-width: 640px; margin-bottom: 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; margin: 0; }
.hero-points li {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: .35rem .9rem; font-size: .88rem;
}

/* ------------------------------------------------------------------ cards */

.section { padding: 3rem 0; }
.section-head { margin-bottom: 1.5rem; }

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

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.service-card { display: flex; flex-direction: column; }
.service-card .tag {
  align-self: flex-start; background: var(--primary-l); color: var(--primary);
  border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 600;
  margin-bottom: .7rem;
}
.service-card h3 { margin-bottom: .35rem; }
.service-card .summary { color: var(--muted); flex: 1; margin-bottom: 1rem; }
.service-card .from {
  border-top: 1px dashed var(--line); padding-top: .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.from-price { font-weight: 800; color: var(--primary); }
.from-label { font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------------ packages */

.pkg-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.pkg {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.1rem; text-align: center; position: relative; display: flex;
  flex-direction: column; gap: .7rem;
}
.pkg.popular { border-color: var(--primary); box-shadow: 0 8px 28px rgba(91,61,245,.14); }
.pkg .ribbon {
  position: absolute; top: -11px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--primary); color: #fff; font-size: .74rem; font-weight: 700;
  border-radius: 999px; padding: .15rem .75rem; white-space: nowrap;
}
.pkg .qty { font-size: 1.45rem; font-weight: 800; }
.pkg .qty small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.pkg .price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* ------------------------------------------------------------------ forms */

.form-narrow { max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field .hint { font-size: .83rem; color: var(--muted); margin-top: .35rem; }

input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--text);
  font: inherit; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
textarea { min-height: 110px; resize: vertical; }

.code-input {
  text-align: center; letter-spacing: .6em; font-size: 1.5rem;
  font-weight: 700; padding-inline-start: .6em;
}

.check { display: flex; align-items: flex-start; gap: .55rem; }
.check input { margin-top: .45rem; }
.check label { font-weight: 500; }

/* ------------------------------------------------------------------ tables */

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
table.data th, table.data td {
  text-align: start; padding: .8rem .7rem; border-bottom: 1px solid var(--line);
}
table.data th { color: var(--muted); font-weight: 600; font-size: .88rem; }
table.data tr:last-child td { border-bottom: 0; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------ status */

.status {
  display: inline-block; border-radius: 999px; padding: .2rem .75rem;
  font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.status.is-wait { background: var(--warn-l);    color: var(--warn); }
.status.is-paid { background: var(--info-l);    color: var(--info); }
.status.is-proc { background: var(--primary-l); color: var(--primary); }
.status.is-done { background: var(--success-l); color: var(--success); }
.status.is-fail { background: var(--danger-l);  color: var(--danger); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.steps .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary-l);
  color: var(--primary); display: grid; place-items: center; font-weight: 800; margin-bottom: .6rem;
}

.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { color: var(--primary); margin-bottom: .5rem; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.8rem; }

/* ------------------------------------------------------------------ footer */

.site-foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2.5rem; }
.foot-grid { display: grid; gap: 1.8rem; grid-template-columns: 1.4fr 1fr 1fr 1.4fr auto; padding-bottom: 2rem; }
.foot-col h4 { font-size: .98rem; margin-bottom: .8rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--primary); }
.contact-list li { color: var(--muted); font-size: .9rem; }
.brand-foot { margin-bottom: .8rem; }

.badge-placeholder {
  width: 110px; height: 110px; border: 1.5px dashed var(--line); border-radius: 12px;
  display: grid; place-content: center; text-align: center; gap: .3rem;
  color: var(--muted); font-size: .72rem; padding: .5rem;
}
.badge-placeholder strong { font-size: .74rem; color: var(--text); }

.foot-legal { border-top: 1px solid var(--line); padding: 1.2rem 1rem; font-size: .87rem; }
.foot-legal p { margin: 0 0 .3rem; }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .burger { display: flex; margin-inline-start: auto; order: 3; }
  .head-cta { order: 2; margin-inline-start: auto; }
  .site-nav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 0;
    margin: 0; display: none; border-top: 1px solid var(--line); padding: .5rem 0;
  }
  .navtoggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: .6rem 0; }
  .hero { padding: 2.4rem 0 2.8rem; }
  .hero h1 { font-size: 1.5rem; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: .95rem; }
}

/* ------------------------------------------------------------------ dark */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12131c; --surface: #1b1d2a; --line: #2b2e40;
    --text: #eceef5; --muted: #9ba1bb;
    --primary-l: #262147; --success-l: #16301f; --danger-l: #3a1d1a;
    --warn-l: #332a12; --info-l: #16243d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
  input[type=text], input[type=tel], input[type=email], textarea, select {
    background: #141621; color: var(--text);
  }
  .btn-ghost:hover { background: #322a5c; }
}
