/* ============================================================
   نیک داده پرداز امین — استایل سایت عمومی (RTL، ریسپانسیو، تم روشن/تاریک)
   ============================================================ */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --brand-soft: #ccfbf1;
  --accent: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgb(0 0 0 / 6%), 0 8px 24px rgb(12 74 110 / 6%);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / 8%), 0 16px 48px rgb(12 74 110 / 10%);
}
[data-theme="dark"] {
  --bg: #0c0a09;
  --surface: #1c1917;
  --surface-2: #292524;
  --text: #fafaf9;
  --muted: #a8a29e;
  --border: #33302e;
  --brand: #2dd4bf;
  --brand-strong: #14b8a6;
  --brand-soft: #134e4a;
  --accent: #f59e0b;
  --shadow: 0 1px 3px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / 50%), 0 16px 48px rgb(0 0 0 / 45%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }

/* فوکوس و دسترس‌پذیری */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; right: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: .6rem 1.2rem; border-radius: 0 0 10px 10px; z-index: 100;
}
.skip-link:focus { right: 1rem; }
.sr-only {
  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: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2.5rem); }
.site-main { flex: 1 0 auto; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico-lg { width: 30px; height: 30px; }

/* دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 44px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgb(13 148 136 / 30%); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand-strong); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { color: var(--muted); background: transparent; border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-invert { background: #fff; color: var(--brand-strong); }
.btn-invert:hover { background: var(--brand-soft); }
.btn-sm { padding: .45rem 1.1rem; min-height: 38px; font-size: .88rem; }
.btn-block { width: 100%; }

/* هدر */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff; font-size: 1.35rem; font-weight: 800; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--muted); }

.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-drop-btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem 1rem; border-radius: 999px;
  color: var(--muted); font: inherit; font-size: .95rem; font-weight: 600; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-drop-btn:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav a.active, .main-nav .nav-drop-btn.active { color: var(--brand-strong); background: var(--brand-soft); }
.has-dropdown { position: relative; }
/* نکته: سلکتور با پیشوند main-nav نوشته شده تا از «.main-nav ul { display:flex }»
   اولویت مشخصیت بالاتری بگیرد و زیرمنو همیشه به‌صورت پیش‌فرض پنهان بماند. */
.main-nav .dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; display: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; flex-direction: column; z-index: 60; margin: 0; list-style: none;
}
.main-nav .has-dropdown.open .dropdown { display: flex; }
.main-nav .dropdown a { display: block; padding: .55rem .9rem; border-radius: 8px; }
.main-nav .dropdown .dropdown-all { border-top: 1px dashed var(--border); margin-top: .3rem; color: var(--brand-strong) !important; font-weight: 700; }
.caret { font-size: .7rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .nav-burger {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover, .nav-burger:hover { background: var(--surface-2); color: var(--text); }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: inline; }
:root:not([data-theme="dark"]) .ico-moon { display: none; }
.nav-burger { flex-direction: column; gap: 5px; border-radius: 12px; }
/* دکمه منوی موبایل فقط در نمایش‌های کوچک نمایش داده می‌شود */
.nav-burger { display: none; }
.nav-burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* پیام‌های لحظه‌ای */
.flash {
  max-width: 1180px; margin: 1rem auto 0; padding: .8rem 1.2rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem;
}
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
[data-theme="dark"] .flash-success { background: #064e3b; color: #d1fae5; }
[data-theme="dark"] .flash-error { background: #7f1d1d; color: #fee2e2; }
[data-theme="dark"] .flash-info { background: #78350f; color: #fef3c7; }

/* قهرمان */
.hero { padding: 4.5rem 0 3.5rem; background: radial-gradient(60% 90% at 85% 10%, var(--brand-soft) 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-eyebrow { color: var(--brand-strong); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin: 0 0 .6rem; }
.hero h1 em { font-style: normal; color: var(--brand-strong); }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2.2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem 2.5rem; margin: 0; }
.stat dt { font-size: 1.5rem; font-weight: 800; color: var(--brand-strong); }
.stat dd { margin: 0; color: var(--muted); font-size: .85rem; }

.hero-art { position: relative; min-height: 320px; }
.hero-card {
  position: absolute; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: var(--shadow); color: var(--text); max-width: 230px;
}
.hero-card .ico { width: 26px; height: 26px; color: var(--brand-strong); margin-bottom: .3rem; }
.hero-card strong { font-size: .95rem; }
.hero-card span { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.hero-card-a { top: 8%; right: 6%; animation: floaty 6s ease-in-out infinite; }
.hero-card-b { top: 42%; right: 34%; animation: floaty 7s ease-in-out infinite reverse; }
.hero-card-c { top: 74%; right: 2%; animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* بخش‌ها */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .3rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.eyebrow { color: var(--brand-strong); font-weight: 700; font-size: .88rem; margin: 0 0 .5rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 42rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* کارت‌ها */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 1rem;
}
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand-strong); }
.card-tagline { color: var(--brand-strong); font-size: .85rem; font-weight: 700; margin: -.4rem 0 .6rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; font-size: .9rem; }
.card-more .ico { width: 16px; height: 16px; }

/* پست‌ها */
.post-card h2 a, .post-card h3 a { font-size: 1.05rem; }
.post-meta { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; margin: 0 0 .7rem; }
.post-meta .views { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.post-meta .ico { width: 15px; height: 15px; }
.badge {
  display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-strong);
}
.badge-soft { background: var(--surface-2); color: var(--muted); }

/* بخش خِرَد */
.section-kherad { background: linear-gradient(135deg, var(--brand-strong) 0%, #115e59 100%); color: #fff; }
.section-kherad .eyebrow { color: #99f6e4; }
.section-kherad h2 { color: #fff; }
.section-kherad p { color: #ccfbf1; }
.kherad-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.8rem; display: grid; gap: .6rem; }
.check-list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.check-list .ico { color: #5eead4; }

/* درباره شرکت در صفحه اصلی */
.about-grid { align-items: start; gap: 2.4rem; }
.about-grid > div > p { color: var(--muted); line-height: 2; }
.about-grid strong { color: var(--text); }
.value-list {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; gap: 1rem; margin: 0; box-shadow: var(--shadow-sm);
}
.value-list li { align-items: flex-start; font-weight: 400; color: var(--muted); line-height: 1.9; }
.value-list li .ico { color: var(--brand-strong); flex-shrink: 0; margin-top: .45rem; }
.value-list strong { color: var(--text); }

/* یادداشت نقشه راه خدمات */
.roadmap-note {
  display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap;
  margin: 1.6rem 0 0; padding: 1rem 1.4rem; text-align: center;
  color: var(--muted); font-size: .95rem; line-height: 1.9;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.roadmap-note .ico { color: var(--brand-strong); flex-shrink: 0; }
.section-kherad .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: none; }
.kherad-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.kherad-visual .ico { width: 120px; height: 120px; color: #99f6e4; z-index: 1; }
.kherad-ring {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  border: 2px dashed rgb(153 246 228 / 45%); animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* چرا ما */
.why-card h3 { margin-top: .4rem; }
.why-card .ico { color: var(--brand-strong); }

/* CTA */
.cta-band { background: var(--surface-2); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { color: var(--muted); margin: 0; }

/* صفحات داخلی */
.page-head { padding-bottom: 1.2rem; }
.page-updated { color: var(--muted); font-size: .85rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-strong); }

.svc-hero { display: flex; align-items: center; gap: 1.5rem; }
.svc-hero-icon {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-strong);
}
.svc-hero-icon .ico { width: 44px; height: 44px; }
.service-hero { background: radial-gradient(50% 90% at 90% 0%, var(--brand-soft) 0%, transparent 55%); }

.svc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.svc-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: .8rem; }
.svc-foot { display: flex; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.feature-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.feature-item {
  display: flex; gap: .6rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .93rem; font-weight: 600;
}
.feature-item .ico { color: var(--brand-strong); margin-top: .3rem; }
.cta-inline { margin-top: 2.5rem; text-align: center; background: var(--brand-soft); color: var(--brand-strong); padding: 1.2rem 1.6rem; border-radius: var(--radius); font-weight: 600; }
.cta-inline a { font-weight: 800; }

.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1rem; }
.aside-card p { color: var(--muted); font-size: .88rem; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.aside-list a { display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: 10px; color: var(--text); }
.aside-list a:hover { background: var(--surface-2); text-decoration: none; }
.aside-list .ico { width: 26px; height: 26px; color: var(--brand-strong); }
.aside-list span { display: flex; flex-direction: column; line-height: 1.5; }
.aside-list small { color: var(--muted); font-size: .76rem; }

/* مقاله */
.article-wrap { max-width: 820px; }
.article-header h1 { margin-top: .5rem; }
.prose { font-size: 1.02rem; color: var(--text); }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p { color: var(--muted); }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { color: var(--muted); padding-inline-start: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem; border-inline-start: 4px solid var(--brand);
  background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--text); font-weight: 600;
}
.prose code { background: var(--surface-2); padding: .1rem .5rem; border-radius: 6px; font-size: .9em; direction: ltr; display: inline-block; }
.prose a { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 1.2rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; position: relative; padding-inline-end: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand-strong); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 1rem; }
.faq-a p { margin: 0; color: var(--muted); }

/* فرم‌ها */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; }
.field .req { color: var(--danger); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(13 148 136 / 15%);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
}
.info-card .ico { color: var(--brand-strong); margin-top: .3rem; width: 24px; height: 24px; }
.info-card h2 { font-size: .95rem; margin: 0 0 .15rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }

/* صفحه‌بندی */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pg-btn {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem;
  border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-weight: 700; background: var(--surface);
}
.pg-btn:hover { color: var(--brand-strong); border-color: var(--brand); text-decoration: none; }
.pg-current { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty-state { text-align: center; color: var(--muted); padding: 3rem 0; }

/* فوتر */
.site-footer { flex-shrink: 0; background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.1fr; gap: 2rem; padding: 3rem 0 2rem;
}
.footer-col h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--brand-strong); }
.footer-about p { color: var(--muted); font-size: .9rem; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
  display: inline-grid; place-items: center; min-height: 38px; padding: 0 .9rem; border-radius: 999px;
  border: 1px solid var(--border); font-size: .8rem; color: var(--muted);
}
.socials a:hover { color: var(--brand-strong); border-color: var(--brand); }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.contact-list .ico { color: var(--brand-strong); margin-top: .35rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .85rem; }
.footer-legal { display: flex; gap: .6rem; align-items: center; }

/* صفحات خطا */
.err-page { flex: 1; display: grid; place-items: center; padding: 4rem 1.5rem; }
.err-box { text-align: center; max-width: 480px; }
.err-code { font-size: 5rem; font-weight: 800; color: var(--brand); margin: 0; line-height: 1.2; }
.err-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ریسپانسیو */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .kherad-grid { grid-template-columns: 1fr; }
  .kherad-visual { display: none; }
  .svc-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--border);
    display: none; padding: 1rem 1.5rem 1.4rem; box-shadow: var(--shadow-lg); z-index: 49; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .2rem; }
  .main-nav a, .main-nav .nav-drop-btn { display: flex; width: 100%; padding: .8rem 1rem; border-radius: 12px; }
  .nav-burger { display: inline-flex; }
  .main-nav .dropdown { position: static; display: none; box-shadow: none; border: 0; padding: 0 .8rem; }
  .main-nav .has-dropdown.open .dropdown { display: flex; }
  .header-cta { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* چاپ */
@media print {
  .site-header, .site-footer, .cta-band, .svc-aside { display: none; }
}
