/* رضا عزیزپور | صفحه اصلی؛ هویت جیبی (از ۱.۶.۰)
 * سیستم طراحی: آبی جین با پرچ مسی و خط دوخت نقطه‌چین؛ قبلاً کاغذ و جوهر با رنگ لاکی بود.
 * ساختار قبلی: متن وسط‌چین، شبکه ۸ پیکسلی،
 * دکمه‌ها در سه اندازه (۴۰/۴۸/۵۶) و چهار حالت (اصلی، ثانویه، شفاف، روی تیره). */

:root {
	--paper: #e8ecf6;
	--paper-2: #dce2f0;
	--card: #ffffff;
	--ink: #141b3d;
	--ink-2: #3a4268;
	--ink-3: #59627f;
	--line: rgba(20, 27, 61, .10);
	--line-2: rgba(20, 27, 61, .20);
	--accent: #26397f;
	--accent-2: #1d2d6a;
	--accent-soft: rgba(38, 57, 127, .09);
	--on-accent: #f3f5ff;
	--screen: #d3daec;
	--dot: rgba(20, 27, 61, .14);
	--glyph: rgba(20, 27, 61, .15);
	--glyph-accent: rgba(217, 122, 18, .35);
	--ok: #17784f;
	--err: #b53a33;
	--font: "RZ Vazir", Tahoma, system-ui, sans-serif;
	--wrap: 1200px;
	--gut: clamp(16px, 4vw, 40px);
	--r-sm: 12px;
	--r: 16px;
	--r-lg: 22px;
	--shadow: 0 1px 2px rgba(20, 27, 61, .06), 0 8px 24px rgba(38, 57, 127, .08);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--moon: inline-flex;
	--sun: none;
	--denim: #26397f;
	--denim-ink: #f3f5ff;
	--rivet: #d97a12;
	--rivet-hi: #f2a34a;
	--display: "RZ Display", "RZ Vazir", Tahoma, system-ui, sans-serif;
	color-scheme: light;
}

/* حالت تیره: پیش‌فرض از تنظیم سیستم؛ اگر بازدیدکننده خودش انتخاب کرد (data-theme)، همان. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0a0f26;
		--paper-2: #131a3c;
		--card: #141b40;
		--ink: #e9ecf8;
		--ink-2: #c0c6e0;
		--ink-3: #9aa3c8;
		--line: rgba(233, 236, 248, .10);
		--line-2: rgba(233, 236, 248, .22);
		--accent: #9fb1f5;
		--accent-2: #b9c7fa;
		--accent-soft: rgba(159, 177, 245, .12);
		--on-accent: #0a0f26;
		--screen: #1a2250;
		--dot: rgba(233, 236, 248, .10);
		--glyph: rgba(233, 236, 248, .12);
		--glyph-accent: rgba(240, 146, 51, .3);
		--ok: #45c98f;
		--err: #f2736a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .35);
		--moon: none;
		--sun: inline-flex;
				--denim: #2d44a3;
		--denim-ink: #f3f5ff;
		--rivet: #f09233;
		--rivet-hi: #ffb866;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
		--paper: #0a0f26;
		--paper-2: #131a3c;
		--card: #141b40;
		--ink: #e9ecf8;
		--ink-2: #c0c6e0;
		--ink-3: #9aa3c8;
		--line: rgba(233, 236, 248, .10);
		--line-2: rgba(233, 236, 248, .22);
		--accent: #9fb1f5;
		--accent-2: #b9c7fa;
		--accent-soft: rgba(159, 177, 245, .12);
		--on-accent: #0a0f26;
		--screen: #1a2250;
		--dot: rgba(233, 236, 248, .10);
		--glyph: rgba(233, 236, 248, .12);
		--glyph-accent: rgba(240, 146, 51, .3);
		--ok: #45c98f;
		--err: #f2736a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .35);
		--moon: none;
		--sun: inline-flex;
				--denim: #2d44a3;
		--denim-ink: #f3f5ff;
		--rivet: #f09233;
		--rivet-hi: #ffb866;
		color-scheme: dark;
}

/* ---------- پایه ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body.rz {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1rem/1.85 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* ریست‌ها با :where تا وزن صفر داشته باشند و کلاس‌های اجزا همیشه برنده شوند. */
:where(.rz) img { max-width: 100%; height: auto; display: block; }
:where(.rz) a { color: inherit; text-decoration: none; }
:where(.rz) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.rz) :where(h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, legend) { margin: 0; padding: 0; }
:where(.rz) :where(ol, ul) { list-style: none; }
:where(.rz) fieldset { border: 0; min-width: 0; }
.rz :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rz ::selection { background: var(--accent); color: var(--on-accent); }
.rz [hidden] { display: none !important; }

.rz-i { width: 1.15em; height: 1.15em; flex: none; }
.rz-wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.rz-skip {
	position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100;
	padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm);
	transform: translateY(-160%); transition: transform .2s var(--ease);
}
.rz-skip:focus { transform: none; }

/* ---------- تایپوگرافی ---------- */

.rz-h1 {
	font-weight: 900;
	font-size: clamp(2.1rem, 1.1rem + 4.2vw, 4.75rem);
	line-height: 1.25;
	max-width: 20ch;
	margin-inline: auto;
	text-wrap: balance;
}
.rz-h1 em { font-style: normal; color: var(--accent); }
.rz-h2 { font-weight: 900; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.35; text-wrap: balance; }
.rz-h3 { font-weight: 800; font-size: 1.15rem; line-height: 1.5; }
.rz-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 54ch; margin-inline: auto; line-height: 1.95; text-wrap: pretty; }
.rz-sub { color: var(--ink-2); max-width: 60ch; margin-inline: auto; text-wrap: pretty; }
.rz-eyebrow { font-size: .9rem; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.rz-num { font-feature-settings: "tnum"; }

.rz-badge {
	display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
	font-size: .9rem; font-weight: 700; color: var(--ink-2);
}
.rz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

/* ---------- دکمه‌ها ---------- */

.rz-btn {
	--h: 48px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--h); padding: 0 22px; border-radius: var(--r-sm);
	border: 1px solid transparent; font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
	transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease);
	-webkit-tap-highlight-color: transparent; user-select: none;
}
.rz-btn:active { transform: translateY(1px); }
.rz-btn[disabled], .rz-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.rz-btn--sm { --h: 40px; padding: 0 16px; font-size: .9rem; gap: 8px; }
.rz-btn--lg { --h: 56px; padding: 0 28px; font-size: 1.02rem; }
.rz-btn--block { width: 100%; }

.rz-btn--primary { background: var(--ink); color: var(--paper); }
.rz-btn--primary:hover { background: var(--accent); color: var(--on-accent); }

.rz-btn--secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(20, 19, 17, .04); }
.rz-btn--secondary:hover { border-color: var(--ink); }

.rz-btn--ghost { color: var(--ink-2); }
.rz-btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.rz-btn.is-done { color: var(--ok); border-color: var(--ok); }

.rz-btn--light { background: var(--paper); color: var(--ink); }
.rz-btn--light:hover { background: var(--accent); color: var(--on-accent); }
.rz-btn--outline-light { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 32%, transparent); }
.rz-btn--outline-light:hover { border-color: var(--paper); background: color-mix(in srgb, var(--paper) 8%, transparent); }

.rz-icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm);
	color: var(--ink-2); transition: background-color .15s, color .15s;
}
.rz-icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.rz-icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rz-icon-btn.is-done { color: var(--ok); }

.rz-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--accent); transition: gap .2s var(--ease); }
.rz-more:hover { gap: 12px; }

.rz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- هدر ---------- */

.rz-head {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .25s;
}
.rz-head.is-scrolled { border-color: var(--line); }
.admin-bar .rz-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .rz-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rz-head { top: 0; } }

.rz-head__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; }
.rz-mark { display: flex; flex-direction: column; line-height: 1.25; justify-self: start; }
.rz-mark__fa { font-weight: 900; font-size: 1.08rem; }
.rz-mark__en { font-size: .7rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.rz-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.rz-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .92rem; color: var(--ink-2); transition: color .15s, background-color .15s; }
.rz-nav a:hover { color: var(--ink); }
.rz-nav a.is-on { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.rz-head__end { justify-self: end; display: flex; align-items: center; gap: 6px; }

@media (max-width: 860px) {
	.rz-head__in { grid-template-columns: 1fr auto; }
	.rz-nav { display: none; }
}

/* ---------- هیرو ---------- */

.rz-hero { padding-block: clamp(56px, 10vw, 128px) clamp(48px, 7vw, 88px); text-align: center; }
.rz-hero__in { display: flex; flex-direction: column; align-items: center; }

/* پس‌زمینه هیرو: شبکه نقطه‌ای + آیکون‌های خطی ابزار کار، محو به سمت لبه‌ها */
.rz-hero { position: relative; isolation: isolate; overflow: hidden; }
.rz-hero__bg {
	--mx: 0; --my: 0;
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(circle at center, var(--dot) 1px, transparent 1.4px);
	background-size: 26px 26px; background-position: center top;
	-webkit-mask-image: radial-gradient(ellipse 95% 88% at 50% 46%, #000 50%, transparent 100%);
	mask-image: radial-gradient(ellipse 95% 88% at 50% 46%, #000 50%, transparent 100%);
}
.rz-glyph {
	position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
	margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	color: var(--glyph);
	transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0);
	transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.rz-glyph svg { width: 100%; height: 100%; display: block; animation: rz-drift 11s ease-in-out infinite alternate; }
.rz-glyph:nth-child(2n) svg { animation-duration: 14s; animation-delay: -4s; }
.rz-glyph:nth-child(3n) svg { animation-duration: 17s; animation-delay: -7s; }
.rz-glyph--wp { color: var(--glyph-accent); }
@keyframes rz-drift {
	from { transform: translateY(-5px) rotate(-3deg); }
	to { transform: translateY(6px) rotate(3deg); }
}

/* موبایل: آیکون‌های کمتر و کوچک‌تر، فقط در گوشه‌ها تا پشت متن شلوغ نشود */
@media (max-width: 720px) {
	.rz-hero__bg { background-size: 22px 22px; }
	.rz-glyph { width: calc(var(--s) * .5); height: calc(var(--s) * .5); margin: calc(var(--s) * -.25) 0 0 calc(var(--s) * -.25); }
	.rz-glyph--braces, .rz-glyph--layers, .rz-glyph--cursor, .rz-glyph--git { display: none; }
	.rz-glyph--wp { --x: 7% !important; --y: 4% !important; }
	.rz-glyph--code { --x: 93% !important; --y: 5% !important; }
	.rz-glyph--terminal { --x: 9% !important; --y: 93% !important; }
	.rz-glyph--php { --x: 90% !important; --y: 91% !important; }
}
.rz-hero .rz-h1 { margin-top: 28px; }
.rz-hero .rz-lead { margin-top: 24px; }
.rz-hero .rz-actions { margin-top: 36px; }

.rz-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 640px);
	margin-top: clamp(48px, 7vw, 80px); border-block: 1px solid var(--line);
}
.rz-stats > div { padding: 20px 12px; display: flex; flex-direction: column-reverse; gap: 2px; }
.rz-stats > div + div { border-inline-start: 1px solid var(--line); }
.rz-stats dt { font-size: .85rem; color: var(--ink-3); }
.rz-stats dd { font-weight: 900; font-size: 1.5rem; line-height: 1.4; }

@media (max-width: 480px) {
	.rz-actions > .rz-btn--lg { width: 100%; }
	.rz-stats dd { font-size: 1.15rem; }
}

/* ---------- بخش‌ها ---------- */

.rz-sec { padding-block: clamp(64px, 9vw, 120px); }
.rz-sec + .rz-sec, .rz-work + .rz-sec, .rz-work .rz-sec + .rz-sec { border-top: 1px solid var(--line); }
.rz-sec-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.rz-sec-head .rz-btn { margin-top: 4px; }

/* ---------- میرزا: کنترل تکه‌ای و قاب زنده ---------- */

.rz-seg {
	display: flex; width: fit-content; max-width: 100%; margin-inline: auto; gap: 4px; padding: 4px;
	border-radius: var(--r); background: var(--paper-2); overflow-x: auto; scrollbar-width: none;
}
.rz-seg::-webkit-scrollbar { display: none; }
.rz-seg__btn {
	flex: none; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
	font-weight: 700; font-size: .95rem; color: var(--ink-2); white-space: nowrap;
	transition: background-color .18s, color .18s, box-shadow .18s;
}
.rz-seg__btn:hover { color: var(--ink); }
.rz-seg__btn[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

@media (max-width: 560px) {
	.rz-seg { width: auto; margin-inline: calc(-1 * var(--gut) + 8px); }
	.rz-seg__btn { padding: 0 14px; font-size: .9rem; }
}

.rz-panel { margin-top: 20px; }
.rz-panel__note { text-align: center; color: var(--ink-2); max-width: 64ch; margin: 0 auto 24px; min-height: 3.7em; text-wrap: pretty; }

.rz-win {
	border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
	background: var(--card); box-shadow: 0 30px 80px -40px rgba(20, 19, 17, .35);
}
.rz-win__bar {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding-block: 8px; padding-inline: 16px 8px;
	border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.rz-win__live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--ok); }
.rz-win__live i, .rz-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: rz-pulse 2s ease-in-out infinite; flex: none; }
.rz-win__url {
	flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px;
	border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line);
	font: 400 .85rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3);
}
.rz-win__host { color: var(--ink); }
.rz-win__url:hover .rz-win__host { text-decoration: underline; text-underline-offset: 3px; }
.rz-win__tools { display: flex; gap: 2px; }

.rz-win__stage { position: relative; height: clamp(440px, 64vh, 720px); background: var(--screen); overflow: hidden; }
.rz-win__screen {
	position: absolute; inset-block-start: 0; left: 50%;
	width: var(--vw, 1280px); height: calc(100% / var(--k, 1));
	transform: translateX(-50%) scale(var(--k, 1)); transform-origin: top center;
	background: #fff;
}
.rz-win__screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.rz-win[data-device="mobile"] .rz-win__screen {
	inset-block-start: 16px; height: calc((100% - 32px) / var(--k, 1));
	border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 8px #141311, 0 24px 60px rgba(0, 0, 0, .25);
}
.rz-win.is-bare .rz-win__screen { inset-block-start: 0; height: 100%; border-radius: 0; box-shadow: none; }

.rz-win__cover {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: var(--poster, none) top center / cover no-repeat, var(--screen);
	transition: opacity .4s var(--ease), visibility .4s;
}
.rz-win__cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--paper) 75%, transparent), transparent 65%); }
.rz-win__cover .rz-btn { position: relative; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.rz-win__cover .rz-i { width: 1em; height: 1em; fill: currentColor; }
.rz-win.is-on .rz-win__cover { opacity: 0; visibility: hidden; }

/* تا کلیک نشده، چرخ موس صفحه را اسکرول کند نه سایت داخل قاب. */
.rz-win__guard { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; padding-bottom: 20px; cursor: pointer; background: transparent; }
.rz-win__guard span { padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--paper); font-size: .85rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease); }
.rz-win.is-on:not(.is-active) .rz-win__guard { display: flex; }
.rz-win__guard:hover span, .rz-win__guard:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .rz-win__guard span { opacity: 1; transform: none; } }
.rz-viewer .rz-win__guard { display: none !important; }

.rz-win__loading { position: absolute; inset-inline: 0; inset-block-end: 16px; display: flex; justify-content: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.rz-win__loading span { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .85rem; }
.rz-win.is-loading .rz-win__loading { opacity: 1; }

@media (max-width: 720px) {
	.rz-win__live, .rz-win__tools [data-device] { display: none; }
	.rz-win__stage { height: 72vh; max-height: 640px; }
	.rz-win__url { justify-content: flex-start; }
}

.rz-facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px;
	border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: center;
}
.rz-facts > div { padding: 20px 16px; }
.rz-facts > div + div { border-inline-start: 1px solid var(--line); }
.rz-facts dt { font-size: .82rem; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.rz-facts dd { font-size: .93rem; line-height: 1.8; }

@media (max-width: 960px) {
	.rz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rz-facts > div:nth-child(3) { border-inline-start: 0; }
	.rz-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
	.rz-facts { grid-template-columns: minmax(0, 1fr); }
	.rz-facts > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------- نمونه‌کارهای منتخب: کارت با پیش‌نمایش زنده ---------- */

.rz-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.rz-work-card {
	display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.rz-work-card:hover { border-color: var(--line-2); box-shadow: 0 24px 60px -30px rgba(20, 19, 17, .35); transform: translateY(-3px); }
.rz-work-card.is-flash { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.rz-win--card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.rz-win--card .rz-win__bar { min-height: 44px; padding-block: 6px; }
.rz-win--card .rz-win__url { height: 30px; font-size: .78rem; }
.rz-win--card .rz-win__tools, .rz-win--card .rz-win__live { display: none; }
.rz-win--card .rz-win__stage { height: auto; aspect-ratio: 16 / 10; }
.rz-win--card .rz-win__screen iframe { pointer-events: none; }
.rz-win--card .rz-win__guard span { opacity: 1; transform: none; }
.rz-win--card .rz-win__guard { background: linear-gradient(to top, rgba(20, 19, 17, .28), transparent 40%); opacity: 0; transition: opacity .25s; }
.rz-win--card.is-on .rz-win__guard { display: flex; }
.rz-work-card:hover .rz-win__guard, .rz-win--card .rz-win__guard:focus-visible { opacity: 1; }
@media (hover: none) { .rz-win--card .rz-win__guard { opacity: 1; } }
.rz-win--card .rz-btn--lg { --h: 48px; padding: 0 20px; font-size: .95rem; }

.rz-work-card__body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px clamp(18px, 3vw, 28px) 28px; flex: 1; }
.rz-work-card__kind { font-size: .85rem; color: var(--ink-3); font-weight: 700; }
.rz-work-card__kind .rz-num { color: var(--accent); }
.rz-work-card__t { font-weight: 900; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.4; }
.rz-work-card__lead { color: var(--ink-2); font-size: .96rem; max-width: 46ch; text-wrap: pretty; }
.rz-work-card__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }

@media (max-width: 860px) {
	.rz-showcase { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- رزرو مشاوره ---------- */

.rz-consult { background: var(--paper-2); border-top: 1px solid var(--line); }

.rz-alert {
	max-width: 720px; margin: 0 auto 24px; padding: 14px 18px; border-radius: var(--r);
	background: color-mix(in srgb, var(--err) 9%, var(--card)); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent);
	font-weight: 700; text-align: center;
}

.rz-book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: start; }
.rz-book__info, .rz-book__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.rz-book__info { padding: 28px; position: sticky; top: 96px; }
.rz-book__price { font-size: 1rem; color: var(--ink-2); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rz-book__price strong { display: block; font-size: 2.25rem; font-weight: 900; color: var(--ink); line-height: 1.3; }
.rz-book__meta { padding-block: 12px; border-bottom: 1px solid var(--line); }
.rz-book__meta li { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; font-size: .93rem; }
.rz-book__meta span { color: var(--ink-3); }
.rz-book__meta b { font-weight: 700; text-align: end; }
.rz-book__h { font-size: .95rem; font-weight: 800; margin: 20px 0 10px; }
.rz-checks li { position: relative; padding-inline-start: 28px; padding-block: 5px; font-size: .93rem; color: var(--ink-2); line-height: 1.8; }
.rz-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 16px; height: 16px; border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c13d1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.rz-book__form { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.rz-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rz-step legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem; margin-bottom: 14px; }
.rz-step__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .85rem; }

.rz-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -4px; padding-inline: 4px; scrollbar-width: thin; }
.rz-day {
	flex: none; scroll-snap-align: start; width: 104px; min-height: 92px; padding: 10px 8px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); text-align: center;
	transition: border-color .15s, background-color .15s, color .15s;
}
.rz-day:hover { border-color: var(--ink); }
.rz-day__w { font-weight: 800; font-size: .95rem; }
.rz-day__d { font-size: .85rem; color: var(--ink-2); }
.rz-day__c { font-size: .75rem; color: var(--ok); font-weight: 700; }
.rz-day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rz-day[aria-checked="true"] .rz-day__d { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.rz-day[aria-checked="true"] .rz-day__c { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.rz-day:disabled { opacity: .45; cursor: not-allowed; }
.rz-day:disabled .rz-day__c { color: var(--ink-3); }

.rz-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rz-times__day { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-3); }
.js .rz-times__day { display: none; }
.rz-time { position: relative; }
.rz-time input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rz-time span {
	display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
	font-weight: 700; font-feature-settings: "tnum"; background: var(--card); transition: border-color .15s, background-color .15s, color .15s;
}
.rz-time:hover span { border-color: var(--ink); }
.rz-time input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rz-time input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rz-time input:disabled { cursor: not-allowed; }
.rz-time input:disabled + span { opacity: .4; text-decoration: line-through; border-style: dashed; }

.rz-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rz-field { display: flex; flex-direction: column; gap: 6px; }
.rz-field--full { grid-column: 1 / -1; }
.rz-field label { font-size: .9rem; font-weight: 700; }
.rz-field label span { color: var(--ink-3); font-weight: 400; }
.rz-field small { font-size: .8rem; color: var(--ink-3); }
.rz-field input, .rz-field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
	background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.6;
	transition: border-color .15s, box-shadow .15s;
}
.rz-field textarea { resize: vertical; min-height: 96px; }
.rz-field input::placeholder, .rz-field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.rz-field input:focus, .rz-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[dir="rtl"] .rz-field input[dir="ltr"] { text-align: right; }
.rz-field.is-bad input { border-color: var(--err); }
.rz-field .rz-err { color: var(--err); font-size: .82rem; font-weight: 700; }

.rz-book__foot { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.rz-book__sum { text-align: center; font-weight: 700; color: var(--ink-2); }
.rz-book__sum.is-set { color: var(--ink); }
.rz-book__fine { text-align: center; font-size: .82rem; color: var(--ink-3); }
.rz-empty { padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--ink-2); }

@media (max-width: 900px) {
	.rz-book { grid-template-columns: minmax(0, 1fr); }
	.rz-book__info { position: static; }
}
@media (max-width: 520px) {
	.rz-fields { grid-template-columns: minmax(0, 1fr); }
	.rz-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- خدمات ---------- */

.rz-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rz-card {
	display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
	padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
	transition: border-color .2s, transform .25s var(--ease);
}
.rz-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rz-card__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.rz-card h3 { font-weight: 900; font-size: 1.25rem; }
.rz-card p { color: var(--ink-2); font-size: .96rem; }
.rz-card .rz-more { margin-top: auto; }
.rz-card--main { border-color: var(--accent); }
.rz-card__price { margin-top: auto; color: var(--ink); }
.rz-card__price strong { font-size: 1.4rem; font-weight: 900; }
.rz-note { margin-top: 20px; text-align: center; color: var(--ink-2); font-size: .9rem; }

.rz-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; counter-reset: s; text-align: center; }
.rz-steps li { counter-increment: s; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 20px; position: relative; }
.rz-steps li::before {
	content: counter(s, persian); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px;
	border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-weight: 900; font-size: .9rem; position: relative; z-index: 1;
}
.rz-steps li::after { content: ""; position: absolute; top: 38px; inset-inline-start: 50%; width: 100%; height: 1px; background: var(--line-2); }
.rz-steps li:last-child::after { display: none; }
.rz-steps b { font-weight: 800; }
.rz-steps span { color: var(--ink-2); font-size: .92rem; line-height: 1.8; max-width: 24ch; }

@media (max-width: 860px) {
	.rz-cards { grid-template-columns: minmax(0, 1fr); }
	.rz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.rz-steps li::after { display: none; }
}

/* ---------- درباره ---------- */

.rz-about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.rz-about__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); }
.rz-about__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.rz-about__txt { display: flex; flex-direction: column; gap: 16px; }
.rz-about__big { font-weight: 900; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.15rem); line-height: 1.6; text-wrap: balance; }
.rz-about__txt p:last-child { color: var(--ink-2); max-width: 60ch; }
.rz-about:not(:has(.rz-about__img)) { grid-template-columns: minmax(0, 1fr); text-align: center; }
.rz-about:not(:has(.rz-about__img)) .rz-about__txt { align-items: center; }

@media (max-width: 760px) {
	.rz-about { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.rz-about__txt { align-items: center; }
	.rz-about__img { max-width: 320px; margin-inline: auto; }
}

/* ---------- پرسش‌ها ---------- */

.rz-faq__list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 8px; }
.rz-faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .2s; }
.rz-faq details[open] { border-color: var(--line-2); }
.rz-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px;
	font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r);
}
.rz-faq summary::-webkit-details-marker { display: none; }
.rz-faq summary .rz-i { transition: transform .25s var(--ease); color: var(--ink-3); }
.rz-faq details[open] summary .rz-i { transform: rotate(45deg); color: var(--accent); }
.rz-faq details p { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- تماس ---------- */

.rz-contact { background: #141311; color: #f6f4ef; padding-block: clamp(72px, 10vw, 136px); text-align: center; --paper: #f6f4ef; --ink: #141311; }
.rz-contact__in { display: flex; flex-direction: column; align-items: center; }
.rz-contact .rz-eyebrow { color: #ff8a5c; }
.rz-contact__t { font-weight: 900; font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4.75rem); line-height: 1.25; margin-block: 16px 20px; max-width: 16ch; text-wrap: balance; }
.rz-contact .rz-lead { color: rgba(246, 244, 239, .72); }
.rz-contact .rz-actions { margin-top: 40px; }

/* ---------- فوتر ---------- */

.rz-foot { background: #141311; color: rgba(246, 244, 239, .65); font-size: .9rem; }
.rz-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; border-top: 1px solid rgba(246, 244, 239, .12); }
.rz-foot nav { display: flex; align-items: center; gap: 4px; }
.rz-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.rz-foot nav a:hover { color: #f6f4ef; }
@media (max-width: 560px) { .rz-foot__in { justify-content: center; text-align: center; padding-block: 16px; } }

/* ---------- نمایشگر زنده پروژه‌ها ---------- */

.rz-viewer {
	width: min(100% - 24px, 1320px); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg);
	background: var(--card); color: var(--ink); overflow: hidden;
}
.rz-viewer::backdrop { background: rgba(10, 9, 7, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rz-viewer[open] { display: flex; flex-direction: column; animation: rz-in .3s var(--ease); }
.rz-viewer__head { display: flex; align-items: center; gap: 8px; padding-block: 10px; padding-inline: 20px 10px; }
.rz-viewer__head .rz-h3 { margin-inline-end: auto; font-size: 1.05rem; }
.rz-viewer .rz-win { border-radius: 0; border-inline: 0; border-bottom: 0; box-shadow: none; }
.rz-viewer .rz-win__stage { height: calc(100dvh - 24px - 60px - 57px); max-height: 820px; }

/* ---------- اعلان کپی ---------- */

.rz-toast {
	position: fixed; inset-block-end: 24px; left: 50%; z-index: 120; transform: translate(-50%, 20px);
	padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .92rem; font-weight: 700;
	opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease);
}
.rz-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- حرکت ---------- */

.rz-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rz-reveal.is-in { opacity: 1; transform: none; }

@keyframes rz-pulse { 50% { opacity: .35; } }
@keyframes rz-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.rz-reveal { opacity: 1; transform: none; }
}

/* ======================================================================
 * نسخه ۱٫۳: حالت تیره دستی، منوی موبایل، انگلیسی (LTR) و بهینه‌سازی موبایل
 * ====================================================================== */

/* ---------- دکمه‌های هدر ---------- */

.rz-lang {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: var(--r-sm);
	font-size: .85rem; font-weight: 800; color: var(--ink-2); letter-spacing: .02em; transition: background-color .15s, color .15s;
}
.rz-lang:hover { background: var(--paper-2); color: var(--ink); }
.rz-lang .rz-i { width: 1.05em; height: 1.05em; }
.rz-theme-btn__moon { display: var(--moon); }
.rz-theme-btn__sun { display: var(--sun); }
.rz-theme-btn__moon, .rz-theme-btn__sun { align-items: center; justify-content: center; }
.rz-menu-btn { display: none; }

@media (max-width: 860px) {
	.rz-menu-btn { display: inline-grid; }
}
@media (max-width: 560px) {
	.rz-hide-sm { display: none; }
	.rz-head__in { min-height: 60px; gap: 8px; }
	.rz-mark__fa { font-size: 1rem; }
	.rz-mark__en { font-size: .64rem; }
	.rz-head__cta { --h: 38px; padding: 0 12px; font-size: .85rem; }
	.rz-lang { padding: 0 8px; }
	.rz-lang .rz-i { display: none; }
}
@media (max-width: 360px) {
	.rz-head__cta { display: none; }
}

/* ---------- منوی موبایل (برگه تمام‌صفحه) ---------- */

.rz-menu {
	position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
	background: var(--paper); color: var(--ink);
}
.rz-menu[open] {
	display: flex; flex-direction: column;
	padding: max(12px, env(safe-area-inset-top)) max(var(--gut), env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(var(--gut), env(safe-area-inset-left));
	animation: rz-sheet .32s var(--ease);
}
.rz-menu::backdrop { background: transparent; }
.rz-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.rz-menu__nav { display: flex; flex-direction: column; margin-top: 16px; flex: 1; overflow-y: auto; }
.rz-menu__nav a {
	display: flex; align-items: baseline; gap: 14px; min-height: 60px; padding: 12px 4px;
	border-bottom: 1px solid var(--line); font-weight: 900; font-size: clamp(1.4rem, 1rem + 2.5vw, 1.9rem); line-height: 1.4;
}
.rz-menu__nav a:active { color: var(--accent); }
.rz-menu__nav .rz-num { font-size: .85rem; color: var(--accent); min-width: 2.5ch; font-weight: 700; }
.rz-menu__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.rz-menu__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rz-menu__quick .rz-btn { padding: 0 8px; font-size: .88rem; gap: 6px; }
.rz-menu__prefs { display: flex; justify-content: center; gap: 4px; }
.rz-menu__prefs .rz-btn { --h: 44px; }
.rz-menu__nav a, .rz-menu__foot { opacity: 0; transform: translateY(8px); animation: rz-rise .4s var(--ease) forwards; }
.rz-menu__nav a:nth-child(2) { animation-delay: .03s; }
.rz-menu__nav a:nth-child(3) { animation-delay: .06s; }
.rz-menu__nav a:nth-child(4) { animation-delay: .09s; }
.rz-menu__nav a:nth-child(5) { animation-delay: .12s; }
.rz-menu__nav a:nth-child(6) { animation-delay: .15s; }
.rz-menu__foot { animation-delay: .18s; }
html.rz-locked, html.rz-locked body { overflow: hidden; }

@keyframes rz-sheet { from { opacity: 0; transform: translateY(-12px); } }
@keyframes rz-rise { to { opacity: 1; transform: none; } }

/* ---------- انگلیسی (LTR) ---------- */

[dir="ltr"] .rz-i--dir { transform: scaleX(-1); }
[dir="ltr"] .rz-more:hover .rz-i--dir { transform: scaleX(-1); }
.rz--en .rz-h1 { line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.rz--en .rz-h2, .rz--en .rz-contact__t, .rz--en .rz-about__big { letter-spacing: -.02em; line-height: 1.2; }
.rz--en .rz-work-card__t, .rz--en .rz-card h3 { letter-spacing: -.01em; }
.rz--en body, body.rz--en { line-height: 1.7; }
.rz--en .rz-mark__en { text-transform: none; letter-spacing: .02em; }
.rz--en .rz-lead { line-height: 1.75; }
.rz-tz { font-weight: 400; font-size: .8rem; color: var(--ink-3); margin-inline-start: 4px; }

/* ---------- لمس و ایمنی لبه‌های گوشی ---------- */

.rz a, .rz button, .rz summary, .rz label { -webkit-tap-highlight-color: transparent; }
.rz-btn:active, .rz-icon-btn:active, .rz-day:active, .rz-time:active span { transform: scale(.97); }
.rz-head__in { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.rz-foot { padding-bottom: env(safe-area-inset-bottom); }
.rz-toast { bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }

/* ---------- موبایل ---------- */

@media (max-width: 767px) {
	html { scroll-padding-top: 72px; }
	body.rz { font-size: .98rem; }

	.rz-hero { padding-block: 40px 40px; }
	.rz-hero .rz-h1 { margin-top: 20px; }
	.rz-hero .rz-lead { margin-top: 16px; font-size: 1.02rem; }
	.rz-hero .rz-actions { margin-top: 28px; width: 100%; }
	.rz-badge { font-size: .8rem; min-height: 32px; padding: 0 12px; }
	.rz-stats { margin-top: 36px; }
	.rz-stats > div { padding: 14px 6px; }
	.rz-stats dt { font-size: .74rem; }
	.rz-stats dd { font-size: 1.1rem; }

	.rz-sec { padding-block: 56px; }
	.rz-sec-head { margin-bottom: 28px; gap: 10px; }
	.rz-sub { font-size: .95rem; }

	/* تب‌های میرزا: اسکرول افقی با محو لبه‌ها */
	.rz-seg { width: auto; margin-inline: calc(-1 * var(--gut)); border-radius: 0; padding-inline: var(--gut); background: transparent; gap: 6px;
		-webkit-mask-image: linear-gradient(to left, transparent, #000 16px, #000 calc(100% - 16px), transparent);
		mask-image: linear-gradient(to left, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
	.rz-seg__btn { border: 1px solid var(--line-2); background: var(--card); min-height: 42px; border-radius: 999px; }
	.rz-seg__btn[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
	.rz-panel__note { font-size: .92rem; min-height: 0; margin-bottom: 16px; }

	.rz-win { border-radius: var(--r); }
	.rz-win__bar { min-height: 48px; padding-inline: 12px 6px; gap: 8px; }
	.rz-win__url { height: 34px; font-size: .78rem; }
	.rz-win__stage { height: min(74vh, 620px); }

	.rz-facts { margin-top: 20px; }
	.rz-facts > div { padding: 14px 12px; }
	.rz-facts dd { font-size: .88rem; }
	.rz-actions > .rz-btn { flex: 1 1 auto; }

	/* کارت نمونه‌کارها: نسخه موبایل خود سایت با اندازه واقعی */
	.rz-showcase { gap: 20px; }
	.rz-win--card .rz-win__stage { aspect-ratio: 4 / 5; max-height: 70vh; }
	.rz-work-card:hover { transform: none; }
	.rz-work-card__body { padding: 20px 16px 22px; }
	.rz-work-card__actions { width: 100%; }
	.rz-work-card__actions .rz-btn { flex: 1 1 0; }

	/* رزرو */
	.rz-book { gap: 16px; }
	.rz-book__info { padding: 20px; }
	.rz-book__price strong { font-size: 1.9rem; }
	.rz-book__form { padding: 20px 16px; gap: 24px; border-radius: var(--r-lg); }
	.rz-days { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
	.rz-days::-webkit-scrollbar { display: none; }
	.rz-day { width: 88px; min-height: 84px; }
	.rz-times { gap: 6px; }
	.rz-time span { min-height: 46px; }
	.rz-book__foot { position: sticky; bottom: 0; margin-inline: -16px; margin-bottom: -20px; padding: 14px 16px max(14px, env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
		border-radius: 0 0 var(--r-lg) var(--r-lg); z-index: 2; }

	.rz-cards { gap: 12px; }
	.rz-card { padding: 24px 18px; }
	.rz-steps { margin-top: 40px; }

	.rz-faq summary { padding: 14px 16px; font-size: .96rem; }
	.rz-faq details p { padding: 0 16px 16px; font-size: .94rem; }

	.rz-contact { padding-block: 64px; }
	.rz-contact__ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.rz-contact__ways .rz-btn:first-child { grid-column: 1 / -1; }
	.rz-contact__ways .rz-btn { padding: 0 12px; }

	/* نمایشگر زنده: تمام‌صفحه */
	.rz-viewer { width: 100%; height: 100%; max-height: none; border-radius: 0; margin: 0; }
	.rz-viewer__head { padding-top: max(8px, env(safe-area-inset-top)); padding-inline: 16px 8px; }
	.rz-viewer .rz-win__stage { height: calc(100dvh - 56px - 49px - env(safe-area-inset-top)); max-height: none; }
	.rz-viewer .rz-win { border-radius: 0; }
}

@media (max-width: 380px) {
	.rz-h1 { font-size: 1.9rem; }
	.rz-stats dd { font-size: 1rem; }
	.rz-menu__quick .rz-btn .rz-i { display: none; }
}

/* موبایل افقی و صفحه‌های کوتاه */
@media (max-height: 500px) and (orientation: landscape) {
	.rz-win__stage { height: 82vh; }
	.rz-menu__nav a { min-height: 48px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.rz-menu__nav a, .rz-menu__foot { opacity: 1; transform: none; animation: none; }
}

/* ---------- متن سئوی محلی (فقط فارسی) ---------- */
.rz-local { max-width: 760px; margin: clamp(48px, 7vw, 80px) auto 0; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-align: center; display: flex; flex-direction: column; gap: 14px; }
.rz-local__t { font-weight: 900; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.5; text-wrap: balance; }
.rz-local p { color: var(--ink-2); font-size: .98rem; line-height: 2; text-wrap: pretty; }
.rz-local a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rz-local a:hover { text-decoration-thickness: 2px; }
@media (max-width: 767px) { .rz-local { padding: 22px 18px; text-align: start; } }

/* ---------- ایمنی در برابر CSS بیرونی (مثلاً تکه‌کدهای قدیمی با !important) ---------- */
html body.rz.rz { background: var(--paper) !important; color: var(--ink) !important; }
#site-cursor-mascot, .rz .site-photo-backdrop { display: none !important; }

/* ======================================================================
 * قالب مقاله
 * ====================================================================== */

.rz-article { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.rz-article__head { max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rz-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; font-size: .85rem; color: var(--ink-3); }
.rz-crumbs a { color: var(--ink-2); }
.rz-crumbs a:hover { color: var(--accent); }
.rz-article__t { font-weight: 900; font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem); line-height: 1.4; text-wrap: balance; }
.rz-article__lead { color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); max-width: 60ch; line-height: 1.95; }
.rz-article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .88rem; color: var(--ink-3); }
.rz-article__meta a { color: var(--ink); font-weight: 700; }
.rz-article__cover { max-width: 1000px; margin-top: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.rz-article__cover img { width: 100%; height: auto; }

.rz-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 5vw, 56px); max-width: 1100px; align-items: start; }
.rz-article__layout:not(:has(.rz-toc)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.rz-toc { order: 2; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.rz-toc summary { padding: 14px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.rz-toc summary::-webkit-details-marker { display: none; }
.rz-toc ol { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.rz-toc a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); line-height: 1.7; }
.rz-toc a:hover, .rz-toc a.is-on { background: var(--paper-2); color: var(--ink); }
.rz-toc__l3 a { padding-inline-start: 22px; font-size: .85rem; }

.rz-prose { order: 1; min-width: 0; font-size: 1.08rem; line-height: 2.1; color: var(--ink); }
.rz-prose > * + * { margin-top: 1.1em; }
.rz-prose h2 { font-weight: 900; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.6; margin-top: 2em; scroll-margin-top: 96px; }
.rz-prose h3 { font-weight: 800; font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); line-height: 1.7; margin-top: 1.6em; scroll-margin-top: 96px; }
.rz-prose h4 { font-weight: 800; font-size: 1.08rem; margin-top: 1.4em; }
.rz-prose p, .rz-prose li { color: var(--ink-2); }
.rz-prose strong, .rz-prose b { color: var(--ink); font-weight: 800; }
.rz-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rz-prose a:hover { text-decoration-thickness: 2px; }
.rz-prose ul, .rz-prose ol { padding-inline-start: 1.4em; }
.rz-prose ul { list-style: disc; }
.rz-prose ol { list-style: persian; }
.rz-prose li + li { margin-top: .4em; }
.rz-prose li::marker { color: var(--accent); }
.rz-prose blockquote { margin-inline: 0; padding: 16px 20px; border-inline-start: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--r) var(--r) 0; }
.rz-prose img, .rz-prose figure { max-width: 100%; height: auto; border-radius: var(--r); }
.rz-prose figure { margin-inline: 0; }
.rz-prose figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: 8px; }
.rz-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.rz-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 2px 6px; border-radius: 4px; background: var(--paper-2); }
.rz-prose pre { overflow-x: auto; padding: 16px; border-radius: var(--r); background: var(--paper-2); direction: ltr; text-align: left; }
.rz-prose pre code { padding: 0; background: none; }
/* جدول‌ها (مثل جدول هزینه): روی موبایل افقی اسکرول شوند، نه اینکه صفحه بشکند. */
.rz-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; white-space: nowrap; }
.rz-prose th, .rz-prose td { padding: 10px 14px; border: 1px solid var(--line-2); text-align: start; }
.rz-prose th { background: var(--paper-2); font-weight: 800; color: var(--ink); }
.rz-prose iframe, .rz-prose video { max-width: 100%; border-radius: var(--r); }
.rz-prose details { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 4px 16px; }
.rz-prose summary { cursor: pointer; font-weight: 800; padding-block: 10px; }

.rz-cta { margin-top: 3em !important; padding: clamp(22px, 4vw, 32px); border-radius: var(--r-lg); background: var(--ink); color: var(--paper); text-align: center; }
.rz-cta p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.rz-cta a:not(.rz-btn) { color: var(--paper); font-weight: 800; }
.rz-cta__k { font-size: .85rem; font-weight: 700; color: #ff8a5c !important; }
.rz-cta__t { font-weight: 900; font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem); line-height: 1.6; color: var(--paper) !important; margin-top: 6px !important; }
.rz-cta .rz-actions { margin-top: 20px; }
.rz-cta .rz-btn--primary { background: var(--paper); color: var(--ink); text-decoration: none; }
.rz-cta .rz-btn--primary:hover { background: var(--accent); color: var(--on-accent); }
.rz-cta .rz-btn--secondary { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); text-decoration: none; }

.rz-author { display: flex; gap: 16px; align-items: center; margin-top: 2em !important; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); font-size: .95rem; }
.rz-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.rz-author__n { font-weight: 900; color: var(--ink) !important; }
.rz-author p { line-height: 1.9; }

.rz-related { max-width: 1100px; margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.rz-related .rz-h3 { text-align: center; margin-bottom: 24px; font-size: 1.35rem; font-weight: 900; }
.rz-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rz-related__card { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: border-color .2s, transform .25s var(--ease); }
.rz-related__card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rz-related__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.rz-related__t { font-weight: 800; line-height: 1.7; padding-inline: 4px; }
.rz-related__d { font-size: .82rem; color: var(--ink-3); padding-inline: 4px; }

@media (max-width: 960px) {
	.rz-article__layout { grid-template-columns: minmax(0, 1fr); }
	.rz-toc { order: 0; position: static; max-height: none; }
	.rz-related__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.rz-prose { font-size: 1.02rem; line-height: 2; }
	.rz-author { flex-direction: column; text-align: center; }
	.rz-cta .rz-actions .rz-btn { width: 100%; }
}
