/* صفحه‌های خدمات (page-service.php) — چیدمان پهن دوستونه، ۲۴ مهر ۱۴۰۵. فقط متغیرهای تم؛ رنگ literal ندارد (حالت تاریک خودکار). */
.svc { padding-block: 28px 64px; }
.svc-wrap { max-width: 1120px; }

/* ——— بالای صفحه (تمام‌عرض) ——— */
.svc-head { max-width: none; }
.svc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.svc-crumbs a { color: var(--muted); text-decoration: none; }
.svc-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.svc-crumbs [aria-current] { color: var(--ink); }
.svc-head h1 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); line-height: 1.5; margin: 6px 0 14px; max-width: 900px; }
.svc-head .lead { max-width: 900px; margin: 0 0 14px; line-height: 2; }
.svc-reviewed { color: var(--muted); font-size: .85rem; margin: 0 0 var(--space-md); }
.svc-head .note { max-width: 820px; }
.note--alert { border-inline-start: 3px solid var(--accent-ink); }

.svc-hero { margin: 26px 0 0; }
.svc-hero .svc-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--surface); }

.svc-glance { margin: 18px 0 0; }
.svc-glance .svc-glance__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.svc-glance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.svc-glance li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border-radius: var(--r-sm); font-size: .95rem; line-height: 1.8; }
.svc-glance li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 11px; border-radius: 50%; background: var(--color-accent-500); }

/* ——— دو ستون ——— */
.svc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-top: 36px; }
.svc-main { min-width: 0; }
.svc-main .svc-sec { margin-top: 40px; }
.svc-main .svc-sec:first-child { margin-top: 0; }
.svc-main h2 { font-size: 1.5rem; line-height: 1.6; margin: 0 0 12px; scroll-margin-top: 96px; }
.svc-main p, .svc-main ul, .svc-main ol, .svc-main li { max-width: none; }
.svc-main p { line-height: 2; margin: 0 0 14px; }
.svc-main ul, .svc-main ol { line-height: 1.95; padding-inline-start: 22px; margin: 0 0 14px; }
.svc-main li { margin-bottom: 4px; }
.svc-main .note { margin: 40px 0 0; }
.svc-sec::after { content: ""; display: block; clear: both; }

.svc-figure { margin: 32px 0; }
.svc-figure .svc-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--surface); }

.svc-png { float: inline-end; width: min(36%, 260px); margin-block: 4px 12px; margin-inline: 24px 0; }
.svc-png .svc-img { display: block; width: 100%; height: auto; background: none; border-radius: 0; }

/* مرحله‌ها */
.svc-steps { list-style: none; padding: 0 !important; margin: 22px 0 6px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.svc-steps li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); line-height: 1.8; margin: 0; }
.svc-steps strong { font-size: 1rem; }
.svc-steps li > span:last-child { color: var(--muted); font-size: .93rem; }
.svc-steps__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* جدول مقایسه */
.svc-tablewrap { overflow-x: auto; margin: 20px 0 8px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.svc-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.8; }
.svc-table caption { caption-side: top; text-align: start; padding: 12px 16px 0; color: var(--muted); font-size: .88rem; }
.svc-table th, .svc-table td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.svc-table thead th { background: var(--surface); font-weight: 600; white-space: nowrap; }
.svc-table tbody th { font-weight: 600; background: var(--surface-alt); width: 24%; }
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: 0; }

/* آدرس‌ها */
.svc-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.svc-where > div { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); line-height: 1.8; }
.svc-where strong { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* لیست‌های لینک‌دار */
.svc-people, .svc-tests { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.svc-people li, .svc-tests li { margin: 0; }
.svc-people a, .svc-tests a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.svc-people a:hover, .svc-tests a:hover { transform: translateY(-2px); border-color: var(--ink); }
.svc-people span, .svc-tests span { color: var(--muted); font-size: .88rem; }

.svc-cta { margin-top: 44px; }

/* ——— ستون کناری ——— */
.svc-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.svc-card { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); }
.svc-card .svc-card__title { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.6; }
.svc-card p { font-size: .92rem; line-height: 1.9; margin: 0 0 12px; color: var(--muted); }
.svc-card .svc-card__small { margin: 10px 0 0; font-size: .85rem; text-align: center; }
.svc-card--contact { background: var(--accent); border-color: transparent; }
.svc-card--contact p { color: var(--accent-ink); }
.svc-toc ol { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 2px; max-height: calc(100vh - 420px); min-height: 160px; overflow-y: auto; overscroll-behavior: contain; }
.svc-toc li { margin: 0; }
.svc-side .svc-toc a { display: block; font-weight: 400; padding: 6px 10px; border-radius: 10px; font-size: .9rem; line-height: 1.7; color: var(--muted); text-decoration: none; border-inline-start: 2px solid transparent; }
.svc-side .svc-toc a:hover { color: var(--ink); background: var(--surface); }
.svc-side .svc-toc a.is-active { color: var(--ink); background: var(--surface); border-inline-start-color: var(--color-accent-500); font-weight: 600; }
.svc-toc[hidden] { display: none; }

/* ——— تبلت و موبایل ——— */
@media (max-width: 1000px) {
  .svc-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .svc-side { position: static; }
  .svc-toc { display: none; }
}
@media (max-width: 640px) {
  .svc { padding-block: 16px 48px; }
  .svc-hero .svc-img { aspect-ratio: 16 / 10; }
  .svc-where { grid-template-columns: minmax(0, 1fr); }
  .svc-png { float: none; width: min(70%, 240px); margin: 8px auto 16px; }
  .svc-main h2 { font-size: 1.3rem; }
}

/* حالت تاریک: خطوط سیاهِ PNG روی زمینه‌ی تیره گم می‌شود ⇒ PNG روی یک کاشی روشن می‌نشیند */
html[data-theme="dark"] .svc-png .svc-img { background: var(--ink); border-radius: var(--r-md); padding: 14px; box-sizing: border-box; }
