/*!
 * قالب رستا - استایل اصلی
 * طراحی و توسعه: مهندس محمدرضا حیدری
 * مجوز: GPLv2 یا بالاتر
 *
 * فهرست:
 * ۱. فونت و متغیرها   ۲. پایه   ۳. سربرگ و منو   ۴. سربرگ صفحه‌ها
 * ۵. پانویس   ۶. محتوای ویرایشگر   ۷. اجزا (اسلایدر، کارت‌ها، ...)   ۸. وردپرس
 */

/* ===================== ۱. فونت و متغیرها ===================== */
@font-face { font-family: "Vazirmatn"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Light.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/vazirmatn/Vazirmatn-Black.woff2") format("woff2"); }

:root {
	--r-primary: #0067a5;
	--r-primary-deep: #00507f;
	--r-primary-soft: #e6f0f8;
	--r-primary-rgb: 0, 103, 165;
	--r-night: #0a2540;
	--r-night-2: #0d2e4f;
	--r-night-deep: #071a2e;
	--r-night-rgb: 10, 37, 64;
	--r-accent: #6cc3f5;
	--r-accent-rgb: 108, 195, 245;
	--r-gold: #f2b43d;
	--r-paper: #f4f7fa;
	--r-surface: #fff;
	--r-ink: #0d1b2a;
	--r-text: #2b3d50;
	--r-muted: #5b6b7c;
	--r-line: #e1e7ee;
	--r-r-xl: 28px;
	--r-r-lg: 20px;
	--r-r-md: 14px;
	--r-r-sm: 10px;
	--r-shadow: 0 1px 2px rgba(var(--r-night-rgb), .06), 0 8px 24px -12px rgba(var(--r-night-rgb), .18);
	--r-shadow-lift: 0 2px 4px rgba(var(--r-night-rgb), .06), 0 22px 44px -18px rgba(var(--r-night-rgb), .32);
	--r-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpolygon points='48.0,18.0 56.8,26.8 69.2,26.8 69.2,39.2 78.0,48.0 69.2,56.8 69.2,69.2 56.8,69.2 48.0,78.0 39.2,69.2 26.8,69.2 26.8,56.8 18.0,48.0 26.8,39.2 26.8,26.8 39.2,26.8'/%3E%3Cpolygon points='0.0,-14.0 4.1,-9.9 9.9,-9.9 9.9,-4.1 14.0,0.0 9.9,4.1 9.9,9.9 4.1,9.9 0.0,14.0 -4.1,9.9 -9.9,9.9 -9.9,4.1 -14.0,0.0 -9.9,-4.1 -9.9,-9.9 -4.1,-9.9'/%3E%3Cpolygon points='0.0,82.0 4.1,86.1 9.9,86.1 9.9,91.9 14.0,96.0 9.9,100.1 9.9,105.9 4.1,105.9 0.0,110.0 -4.1,105.9 -9.9,105.9 -9.9,100.1 -14.0,96.0 -9.9,91.9 -9.9,86.1 -4.1,86.1'/%3E%3Cpolygon points='96.0,-14.0 100.1,-9.9 105.9,-9.9 105.9,-4.1 110.0,0.0 105.9,4.1 105.9,9.9 100.1,9.9 96.0,14.0 91.9,9.9 86.1,9.9 86.1,4.1 82.0,0.0 86.1,-4.1 86.1,-9.9 91.9,-9.9'/%3E%3Cpolygon points='96.0,82.0 100.1,86.1 105.9,86.1 105.9,91.9 110.0,96.0 105.9,100.1 105.9,105.9 100.1,105.9 96.0,110.0 91.9,105.9 86.1,105.9 86.1,100.1 82.0,96.0 86.1,91.9 86.1,86.1 91.9,86.1'/%3E%3Cpath d='M0 48H18M78 48H96M48 0V18M48 78V96'/%3E%3C/g%3E%3C/svg%3E");
	--r-pattern-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%230d1b2a' stroke-opacity='.05' stroke-width='1'%3E%3Cpolygon points='48.0,18.0 56.8,26.8 69.2,26.8 69.2,39.2 78.0,48.0 69.2,56.8 69.2,69.2 56.8,69.2 48.0,78.0 39.2,69.2 26.8,69.2 26.8,56.8 18.0,48.0 26.8,39.2 26.8,26.8 39.2,26.8'/%3E%3Cpolygon points='0.0,-14.0 4.1,-9.9 9.9,-9.9 9.9,-4.1 14.0,0.0 9.9,4.1 9.9,9.9 4.1,9.9 0.0,14.0 -4.1,9.9 -9.9,9.9 -9.9,4.1 -14.0,0.0 -9.9,-4.1 -9.9,-9.9 -4.1,-9.9'/%3E%3Cpolygon points='0.0,82.0 4.1,86.1 9.9,86.1 9.9,91.9 14.0,96.0 9.9,100.1 9.9,105.9 4.1,105.9 0.0,110.0 -4.1,105.9 -9.9,105.9 -9.9,100.1 -14.0,96.0 -9.9,91.9 -9.9,86.1 -4.1,86.1'/%3E%3Cpolygon points='96.0,-14.0 100.1,-9.9 105.9,-9.9 105.9,-4.1 110.0,0.0 105.9,4.1 105.9,9.9 100.1,9.9 96.0,14.0 91.9,9.9 86.1,9.9 86.1,4.1 82.0,0.0 86.1,-4.1 86.1,-9.9 91.9,-9.9'/%3E%3Cpolygon points='96.0,82.0 100.1,86.1 105.9,86.1 105.9,91.9 110.0,96.0 105.9,100.1 105.9,105.9 100.1,105.9 96.0,110.0 91.9,105.9 86.1,105.9 86.1,100.1 82.0,96.0 86.1,91.9 86.1,86.1 91.9,86.1'/%3E%3Cpath d='M0 48H18M78 48H96M48 0V18M48 78V96'/%3E%3C/g%3E%3C/svg%3E");
	--r-ease: cubic-bezier(.2, .7, .2, 1);
	--r-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
	--r-container: 1240px;
	--r-header-h: 78px;
}
.r-font-system { --r-font: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
.r-no-pattern { --r-pattern-light: none; --r-pattern-ink: none; }

/* ===================== ۲. پایه ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--r-font);
	font-size: 15px;
	line-height: 1.9;
	color: var(--r-text);
	background: var(--r-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--r-ink); line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--r-primary); text-decoration: none; transition: color .2s var(--r-ease); }
a:hover { color: var(--r-primary-deep); }
img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-right: 1.4em; padding-left: 0; }
:focus-visible { outline: 2px solid var(--r-primary); outline-offset: 2px; }
::selection { background: var(--r-primary); color: #fff; }
hr { border: 0; border-top: 1px solid var(--r-line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }

.r-container { width: 100%; max-width: var(--r-container); margin-inline: auto; padding-inline: 20px; }
.r-main { display: block; min-height: 40vh; padding-bottom: 20px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--r-ink); display: block; font-size: 14px;
	height: auto; right: 8px; top: 8px; padding: 12px 20px; width: auto; z-index: 100000; border-radius: 8px; box-shadow: var(--r-shadow-lift);
}

/* فرم‌ها */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], input[type="date"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	background: #fbfcfd; border: 1px solid var(--r-line); border-radius: var(--r-r-sm);
	transition: border-color .2s, background .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--r-primary); box-shadow: 0 0 0 3px rgba(var(--r-primary-rgb), .15); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--r-primary); width: 18px; height: 18px; }
label { font-weight: 500; color: var(--r-ink); }
button, input[type="submit"], .wp-element-button, .wp-block-button__link { cursor: pointer; }
input[type="submit"], button[type="submit"]:not(.r-hero__ctrl):not([class*="r-search"]), .wp-block-search__button {
	background: var(--r-primary); color: #fff; border: 0; border-radius: 999px; padding: 11px 26px; font-weight: 500; transition: background .2s;
}
input[type="submit"]:hover, button[type="submit"]:not(.r-hero__ctrl):not([class*="r-search"]):hover { background: var(--r-primary-deep); }

/* نشان رستا */
.r-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--r-ink); line-height: 1; }
.r-brand:hover { color: var(--r-ink); }
.r-brand__mark { width: 40px; height: 40px; flex: none; transition: transform .6s var(--r-ease); }
.r-brand:hover .r-brand__mark { transform: rotate(45deg); }
.r-star { fill: var(--r-primary); }
.r-core { fill: var(--r-gold); }
.r-brand__text { display: flex; flex-direction: column; gap: 5px; }
.r-brand__name { font-weight: 800; font-size: 23px; letter-spacing: -.3px; }
.r-brand__sub { font-weight: 300; font-size: 11.5px; color: var(--r-muted); }
.r-brand__img { max-height: 52px; width: auto; }
.r-brand--light, .r-brand--light:hover { color: #fff; }
.r-brand--light .r-brand__sub { color: rgba(255, 255, 255, .65); }
.r-brand--light .r-star { fill: var(--r-accent); }

/* ===================== ۳. سربرگ و منو ===================== */
.r-topbar { background: var(--r-night) var(--r-pattern-light); background-size: 96px; color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.r-topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 42px; }
.r-topbar__item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.r-topbar__item i { color: var(--r-accent); }
a.r-topbar__item:hover { color: #fff; }
.r-topbar__search-wrap { margin-right: auto; }
.r-topbar__search { display: flex; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 2px 2px 2px 4px; transition: background .2s, border-color .2s; }
.r-topbar__search:focus-within { background: rgba(255, 255, 255, .14); border-color: var(--r-accent); }
.r-topbar__search input { background: transparent; border: 0; min-height: 0; width: 210px; padding: 4px 14px; color: #fff; font-size: 12.5px; box-shadow: none; }
.r-topbar__search input:focus { background: transparent; box-shadow: none; }
.r-topbar__search input::placeholder { color: rgba(255, 255, 255, .55); }
.r-topbar__search button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--r-accent); color: var(--r-night); font-size: 12px; display: grid; place-items: center; padding: 0; }

.r-header { position: relative; z-index: 100; background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--r-line), 0 10px 30px -22px rgba(var(--r-night-rgb), .5); }
@supports (backdrop-filter: blur(8px)) { .r-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(12px); } }
.r-sticky-header .r-header { position: sticky; top: 0; }
.admin-bar.r-sticky-header .r-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.r-sticky-header .r-header { top: 0; } }
.r-header__inner { display: flex; align-items: center; gap: 22px; min-height: var(--r-header-h); }
.r-header__brand { flex: none; }
.r-header__actions { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.r-account__login { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--r-ink); font-weight: 500; font-size: 13.5px; }
.r-account__login:hover { background: var(--r-paper); color: var(--r-ink); }
.r-account__login i { color: var(--r-muted); }
.r-account__cta { background: var(--r-night); color: #fff; padding: 9px 22px; border-radius: 999px; font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .2s; }
.r-account__cta:hover { background: var(--r-primary); color: #fff; }

.r-nav { flex: 1; min-width: 0; }
.r-nav__menu, .r-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.r-nav__menu { display: flex; flex-wrap: wrap; align-items: center; }
.r-nav__menu > li { position: relative; display: flex; align-items: center; }
.r-nav__menu a { display: block; color: var(--r-ink); font-weight: 500; font-size: 14px; }
.r-nav__menu > li > a { padding: 27px 11px; position: relative; }
.r-nav__menu > li > a::after { content: ""; position: absolute; right: 11px; left: 11px; bottom: 18px; height: 2px; border-radius: 2px; background: var(--r-primary); transform: scaleX(0); transition: transform .25s var(--r-ease); }
.r-nav__menu > li.is-current > a, .r-nav__menu > li > a:hover { color: var(--r-primary); }
.r-nav__menu > li.is-current > a::after, .r-nav__menu > li:hover > a::after { transform: scaleX(1); }
.r-nav__sub-toggle { border: 0; background: none; padding: 4px; margin-right: -8px; color: var(--r-muted); font-size: 10px; cursor: pointer; }
.r-nav__menu .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 230px; padding: 8px; background: #fff;
	border: 1px solid var(--r-line); border-top: 2px solid var(--r-primary); border-radius: 0 0 var(--r-r-md) var(--r-r-md);
	box-shadow: var(--r-shadow-lift); opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s var(--r-ease), visibility 0s .2s; z-index: 10;
}
.r-nav__menu .sub-menu .sub-menu { top: -9px; right: 100%; border-top-width: 1px; border-radius: var(--r-r-md); }
.r-nav__menu li:hover > .sub-menu, .r-nav__menu li:focus-within > .sub-menu, .r-nav__menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--r-ease); }
.r-nav__menu .sub-menu li { position: relative; display: block; }
.r-nav__menu .sub-menu a { padding: 9px 14px; border-radius: var(--r-r-sm); font-size: 13.5px; }
.r-nav__menu .sub-menu a:hover, .r-nav__menu .sub-menu .is-current > a { background: var(--r-primary-soft); color: var(--r-primary); }
.r-nav__menu .sub-menu .r-nav__sub-toggle { position: absolute; left: 8px; top: 10px; transform: rotate(90deg); }
.r-nav__toggle, .r-nav__drawer-head { display: none; }
.r-nav__backdrop { position: fixed; inset: 0; background: rgba(var(--r-night-rgb), .45); z-index: 998; }

@media (max-width: 1100px) {
	.r-nav__menu > li > a { padding-inline: 8px; font-size: 13.5px; }
	.r-nav__menu > li > a::after { right: 8px; left: 8px; }
	.r-brand__sub { display: none; }
}
@media (max-width: 991px) {
	:root { --r-header-h: 68px; }
	.r-nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--r-line); background: #fff; color: var(--r-ink); font-size: 18px; cursor: pointer; }
	.r-nav {
		position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 86vw); background: #fff; z-index: 999;
		transform: translateX(105%); transition: transform .35s var(--r-ease); overflow-y: auto; padding: 0 0 30px;
		box-shadow: -20px 0 50px -20px rgba(var(--r-night-rgb), .4); visibility: hidden;
	}
	.r-nav.is-open { transform: none; visibility: visible; }
	.r-nav__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--r-line); }
	.r-nav__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--r-line); background: #fff; cursor: pointer; font-size: 16px; }
	.r-nav__menu { display: block; padding: 10px 12px; }
	.r-nav__menu > li { display: flex; flex-wrap: wrap; }
	.r-nav__menu > li > a { flex: 1; padding: 13px 10px; border-radius: var(--r-r-sm); }
	.r-nav__menu > li > a::after { display: none; }
	.r-nav__menu > li.is-current > a { background: var(--r-primary-soft); }
	.r-nav__sub-toggle { width: 40px; height: 40px; margin: 0; font-size: 12px; border-radius: 10px; transition: transform .25s; }
	.r-nav__sub-toggle[aria-expanded="true"] { transform: rotate(180deg); background: var(--r-paper); }
	.r-nav__menu .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; border-right: 2px solid var(--r-line); border-radius: 0; margin: 0 14px 6px 0; padding: 0 6px 0 0; min-width: 0; }
	.r-nav__menu li.is-open > .sub-menu { display: block; }
	.r-nav__menu .sub-menu .r-nav__sub-toggle { position: static; transform: none; }
	.r-nav__menu .sub-menu li { display: flex; flex-wrap: wrap; }
	.r-nav__menu .sub-menu a { flex: 1; }
	.r-account__login span { display: none; }
	body.r-nav-open { overflow: hidden; }
}
@media (max-width: 575px) {
	.r-hide-xs { display: none !important; }
	.r-account__cta { padding: 8px 16px; }
	.r-brand__mark { width: 34px; height: 34px; }
	.r-brand__name { font-size: 20px; }
}
@media (max-width: 767px) { .r-hide-sm { display: none !important; } }
@media (max-width: 991px) { .r-hide-md { display: none !important; } }

/* ===================== ۴. سربرگ صفحه‌ها ===================== */
.r-pagehead { background: var(--r-night) var(--r-pattern-light); background-size: 96px; color: #fff; padding: 38px 0 84px; }
.r-pagehead--tall { padding-bottom: 100px; }
.r-pagehead__title { color: #fff; font-size: clamp(25px, 3.2vw, 38px); letter-spacing: -.5px; margin: 6px 0 0; }
.r-pagehead__desc { color: rgba(255, 255, 255, .72); font-size: 15px; margin: 6px 0 0; max-width: 46em; }
.r-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; }
.r-crumbs li { color: var(--r-primary); }
.r-crumbs li + li::before { content: "/"; padding: 0 9px; color: #b9c6d3; }
.r-crumbs a { color: var(--r-muted); }
.r-crumbs a:hover { color: var(--r-primary); }
.r-crumbs--light li { color: var(--r-accent); }
.r-crumbs--light a { color: rgba(255, 255, 255, .65); }
.r-crumbs--light a:hover { color: #fff; }
.r-crumbs--light li + li::before { color: rgba(255, 255, 255, .3); }
.r-section--first { margin-top: -46px; position: relative; z-index: 2; }
.r-pagehead + .r-about { margin-top: 0; }

/* ===================== ۵. پانویس ===================== */
.r-footer { margin-top: 90px; color: rgba(255, 255, 255, .75); }
.r-footer__brand { background: var(--r-night-2); padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.r-footer__brand-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.r-footer__about { margin: 0; font-size: 13.5px; max-width: 38em; color: rgba(255, 255, 255, .72); }
.r-social { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.r-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.r-social a:hover { background: var(--r-accent); border-color: var(--r-accent); color: var(--r-night); }
.r-footer__main { background: var(--r-night) var(--r-pattern-light); background-size: 96px; }
.r-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 32px 40px; padding-top: 46px; padding-bottom: 30px; }
.r-footer__title { color: #fff; font-size: 15.5px; margin-bottom: 18px; }
.r-footer ul { list-style: none; margin: 0; padding: 0; }
.r-footer__menu li { margin-bottom: 6px; }
.r-footer a { color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.r-footer a:hover { color: var(--r-accent); }
.r-footer__news li { display: flex; flex-direction: column; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.85; }
.r-footer__news li:last-child { border: 0; margin: 0; }
.r-footer__news time { color: rgba(255, 255, 255, .45); font-size: 12px; }
.r-footer__col--contact p { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.r-footer__col--contact i { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--r-accent-rgb), .12); color: var(--r-accent); font-size: 13px; }
.r-footer__copy { background: var(--r-night-deep); padding: 16px 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.r-footer__copy p { margin: 0; }
.r-footer__credit { display: inline-block; margin-right: 6px; }
.r-footer__credit::before { content: "·"; margin-left: 8px; }
@media (max-width: 991px) { .r-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .r-footer__grid { grid-template-columns: 1fr; } .r-social { margin-right: 0; } }

.r-totop { position: fixed; left: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--r-primary); color: #fff; box-shadow: var(--r-shadow-lift); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--r-ease), visibility 0s .3s; z-index: 90; }
.r-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--r-ease); }
.r-totop:hover { background: var(--r-primary-deep); color: #fff; }

/* نوار تماس */
.r-callband { display: flex; align-items: center; gap: 32px; background: var(--r-primary) var(--r-pattern-light); background-size: 96px; border-radius: var(--r-r-lg); padding: 30px 40px; color: #fff; }
.r-callband__brand { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .2); }
.r-callband .r-brand--light .r-star { fill: #fff; }
.r-callband .r-brand--light .r-core { fill: var(--r-primary); }
.r-callband__body { flex: 1; }
.r-callband__label { color: rgba(255, 255, 255, .82); margin: 0 0 4px; font-size: 13px; }
.r-callband__phones { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.r-callband__phones a { color: #fff; font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .5px; }
.r-callband__phones a:hover { color: var(--r-night); }
.r-callband__cta { background: #fff; color: var(--r-primary); font-weight: 700; padding: 12px 28px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.r-callband__cta:hover { background: var(--r-night); color: #fff; }
@media (max-width: 767px) { .r-callband { flex-direction: column; align-items: flex-start; padding: 26px 24px; gap: 18px; } .r-callband__brand { border: 0; padding: 0; } }

/* تصویر جایگزین */
.r-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; background: var(--r-primary-soft) var(--r-pattern-ink); background-size: 96px; }
.r-placeholder__mark { width: 56px; height: 56px; opacity: .35; }

/* ===================== ۶. محتوای ویرایشگر ===================== */
.r-panel { background: #fff; border-radius: var(--r-r-lg); box-shadow: var(--r-shadow); padding: 26px 28px 14px; }
.r-page { padding: 44px 48px; }
.r-page__thumb { margin: 0 0 28px; }
.r-page__thumb img { border-radius: var(--r-r-lg); width: 100%; }
@media (max-width: 575px) { .r-page { padding: 26px 20px; } }
.entry-content { font-size: 16px; line-height: 2.1; color: var(--r-text); }
.entry-content > * { margin-bottom: 1.3em; }
.entry-content h2 { font-size: 24px; margin: 1.8em 0 .6em; scroll-margin-top: 110px; letter-spacing: -.3px; }
.entry-content h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 17px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(var(--r-primary-rgb), .35); text-underline-offset: 4px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: var(--r-r-md); }
.entry-content blockquote, .wp-block-quote {
	position: relative; margin: 2em 0; padding: 26px 32px 22px 28px; background: var(--r-primary-soft);
	border-radius: var(--r-r-lg); border-right: 4px solid var(--r-primary);
}
.entry-content blockquote p { font-size: 18px; font-weight: 500; color: var(--r-ink); margin-bottom: 8px; }
.entry-content blockquote cite, .wp-block-quote cite { font-style: normal; color: var(--r-primary); font-size: 13.5px; font-weight: 500; }
.entry-content table, .wp-block-table table { background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-md); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.entry-content th { background: var(--r-paper); color: var(--r-muted); font-weight: 500; font-size: 13.5px; text-align: right; }
.entry-content th, .entry-content td { padding: 13px 18px; border-bottom: 1px solid var(--r-line); }
.entry-content tr:last-child td { border-bottom: 0; }
.wp-block-table { overflow-x: auto; }
.entry-content pre, .wp-block-code { direction: ltr; text-align: left; background: var(--r-night); color: #d6e6f5; border-radius: var(--r-r-md); padding: 18px 22px; overflow-x: auto; font-size: 13px; line-height: 1.9; }
.entry-content code { background: var(--r-primary-soft); color: var(--r-primary-deep); padding: 1px 7px; border-radius: 6px; font-size: .88em; direction: ltr; unicode-bidi: embed; }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content figcaption, .wp-caption-text { color: var(--r-muted); font-size: 13px; margin-top: 8px; padding-right: 12px; border-right: 2px solid var(--r-primary); line-height: 1.8; }
.wp-block-button__link, .wp-element-button { background: var(--r-primary); color: #fff; border-radius: 999px; padding: 11px 26px; font-weight: 500; text-decoration: none !important; }
.wp-block-button__link:hover { background: var(--r-primary-deep); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--r-primary); border: 1px solid currentColor; }
.wp-block-separator { border-color: var(--r-line); }
.has-primary-color { color: var(--r-primary) !important; }
.has-primary-background-color { background-color: var(--r-primary) !important; }
.has-night-color { color: var(--r-night) !important; }
.has-night-background-color { background-color: var(--r-night) !important; }
.has-paper-background-color { background-color: var(--r-paper) !important; }
.r-content--plain { background: #fff; border-radius: var(--r-r-lg); padding: 30px 34px; box-shadow: var(--r-shadow); }
.r-content--full > .alignfull { margin-inline: 0; }
.r-content--full > *:not(.alignfull):not(.alignwide) { max-width: 820px; margin-inline: auto; padding-inline: 20px; }
.r-content--full > .alignwide { max-width: var(--r-container); margin-inline: auto; padding-inline: 20px; }

/* ===================== ۸. کلاس‌های وردپرس ===================== */
.alignleft { float: left; margin: .4em 0 1em 1.6em; }
.alignright { float: right; margin: .4em 1.6em 1em 0; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }
.gallery { display: grid; grid-template-columns: repeat(var(--gallery-columns, 3), 1fr); gap: 10px; }
.gallery-columns-2 { --gallery-columns: 2; }
.gallery-columns-4 { --gallery-columns: 4; }
.gallery img { border-radius: var(--r-r-sm); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--r-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--r-ink); }
.widget a:hover { color: var(--r-primary); }
.widget select { min-height: 42px; }
.tagcloud a, .wp-block-tag-cloud a { display: inline-block; font-size: 12.5px !important; background: var(--r-paper); border: 1px solid var(--r-line); padding: 2px 12px; border-radius: 999px; margin: 0 0 6px 4px; color: var(--r-ink); }

/* دیدگاه‌ها */
.r-comments { margin-top: 40px; background: #fff; border-radius: var(--r-r-lg); padding: 30px 32px; border: 1px solid var(--r-line); }
.r-comments__title, .comment-reply-title { font-size: 19px; }
.r-comments__list, .r-comments__list .children { list-style: none; padding: 0; margin: 0; }
.r-comments__list .children { padding-right: 34px; }
.r-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--r-line); }
.r-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.r-comments .comment-author img { border-radius: 50%; }
.r-comments .comment-author .says { display: none; }
.r-comments .comment-metadata { font-size: 12px; margin: 2px 58px 8px 0; }
.r-comments .comment-metadata a { color: var(--r-muted); }
.r-comments .comment-content { padding-right: 58px; }
.r-comments .reply { padding-right: 58px; font-size: 13px; }
.comment-respond { margin-top: 26px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes, .comment-form .comment-form-comment, .comment-form .form-submit, .comment-form .comment-form-cookies-consent, .comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form .comment-form-url { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13.5px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
@media (max-width: 575px) { .comment-form { grid-template-columns: 1fr; } .r-comments { padding: 22px 18px; } }

/* اطلاعات رویداد */
.r-event-info { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 26px; }
.r-event-info > div { background: var(--r-primary-soft); border-radius: var(--r-r-md); padding: 12px 18px; }
.r-event-info dt { font-size: 12px; color: var(--r-muted); font-weight: 400; display: flex; gap: 6px; align-items: center; }
.r-event-info dd { margin: 0; font-weight: 700; color: var(--r-ink); }

/* ===================== ۷. اجزا ===================== */

/* =====================================================================
   نسخه ۳ - اجزای جدید رستا (صفحه اصلی، اسلایدر، کارت‌ها، اخبار)
   ===================================================================== */

/* ---------- اجزای پایه ---------- */
.r-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--r-primary); color: #fff;
    border: 1px solid transparent; border-radius: 999px;
    padding: 11px 26px; font-weight: 500; font-size: 14px; line-height: 1.6;
    transition: background .2s var(--r-ease), color .2s, border-color .2s;
}
.r-btn:hover { background: var(--r-primary-deep); }
.r-btn--light { background: #fff; color: var(--r-primary); }
.r-btn--light:hover { background: var(--r-accent); color: var(--r-night); }
.r-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); }
.r-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.r-btn--outline { background: transparent; color: var(--r-primary); border-color: var(--r-line); }
.r-btn--outline:hover { border-color: var(--r-primary); background: var(--r-primary-soft); }

.r-link { display: inline-flex; align-items: center; gap: 8px; color: var(--r-primary); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.r-link i, .r-more i { font-size: 11px; transition: transform .25s var(--r-ease); }
.r-link:hover i { transform: translateX(-4px); }

.r-chip {
    display: inline-flex; align-items: center;
    background: var(--r-primary); color: #fff;
    font-weight: 500; font-size: 11.5px; line-height: 1.9;
    padding: 1px 11px; border-radius: 999px; white-space: nowrap;
}
.r-chip--soft { background: var(--r-primary-soft); color: var(--r-primary); }
.r-chip--light { background: var(--r-primary); color: #fff; }

.r-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--r-muted); font-size: 12.5px; line-height: 1.8; }
.r-meta i { margin-left: 5px; opacity: .8; }

.r-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.r-section { margin-top: 84px; }
header.r-head, header.r-panel__head { background: none; }
.r-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 30px; }
.r-head__title {
    font-weight: 700;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.5;
    color: var(--r-ink);
    letter-spacing: -.4px;
    margin: 0 0 4px;
    padding: 0;
    display: flex; align-items: center; gap: 12px;
}
.r-head__title::before {
    content: ""; width: 16px; height: 16px; flex: none; background: var(--r-primary);
    clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
}
.r-head__desc { color: var(--r-muted); margin: 0; font-size: 14px; line-height: 1.9; padding-right: 28px; }

.r-tabs { display: inline-flex; background: #fff; border: 1px solid var(--r-line); border-radius: 999px; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.r-tabs::-webkit-scrollbar { display: none; }
.r-tabs__btn {
    border: 0; background: none; cursor: pointer; white-space: nowrap;
    font-weight: 500; font-size: 13px; color: var(--r-muted);
    padding: 7px 18px; border-radius: 999px; transition: background .2s, color .2s;
}
.r-tabs__btn:hover { color: var(--r-ink); }
.r-tabs__btn.is-active { background: var(--r-primary); color: #fff; }

@keyframes r-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.is-filtering > *:not([hidden]), .is-filtering .r-list > *:not([hidden]) { animation: r-fade .45s var(--r-ease) both; }

/* ---------- اسلایدر اصلی ---------- */
.r-hero {
    position: relative;
    height: clamp(540px, 80vh, 720px);
    background: var(--r-night);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.r-hero__track, .r-hero__slide { position: absolute; inset: 0; }
.r-hero__slide { opacity: 0; visibility: hidden; transition: opacity 1.1s var(--r-ease), visibility 0s linear 1.1s; z-index: 1; }
.r-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--r-ease), visibility 0s; z-index: 2; }
.r-hero__media { position: absolute; inset: 0; overflow: hidden; }
.r-hero__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.12); transform-origin: 30% 50%;
    transition: transform 9s linear;
}
.r-hero__slide.is-active .r-hero__media img { transform: scale(1.0); }
.r-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(to left, rgba(var(--r-night-rgb), .94) 0%, rgba(var(--r-night-rgb), .72) 34%, rgba(var(--r-night-rgb), .18) 68%, rgba(var(--r-night-rgb), .05) 100%),
        linear-gradient(to top, rgba(7, 26, 46, .9) 0%, rgba(7, 26, 46, 0) 38%);
}
.r-hero__content {
    position: absolute; inset-inline: 0; bottom: 200px;
    z-index: 3;
}
.r-hero__content > * { max-width: 720px; }
.r-hero__meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .78); margin-bottom: 16px; }
.r-hero__title {
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.45;
    letter-spacing: -.6px;
    margin: 0 0 16px;
    padding: 0;
    color: #fff;
}
.r-hero__title a { color: #fff; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 2px; transition: background-size .4s var(--r-ease); }
.r-hero__title a:hover { background-size: 100% 2px; }
.r-hero__excerpt { font-size: 16px; color: rgba(255, 255, 255, .82); line-height: 2; margin: 0 0 28px; max-width: 34em; }
.r-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* لحظه‌ی ورود محتوا: پلکانی */
.r-hero__content > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--r-ease), transform .9s var(--r-ease); }
.r-hero__slide.is-active .r-hero__content > * { opacity: 1; transform: none; }
.r-hero__slide.is-active .r-hero__content > :nth-child(1) { transition-delay: .25s; }
.r-hero__slide.is-active .r-hero__content > :nth-child(2) { transition-delay: .38s; }
.r-hero__slide.is-active .r-hero__content > :nth-child(3) { transition-delay: .5s; }
.r-hero__slide.is-active .r-hero__content > :nth-child(4) { transition-delay: .62s; }

.r-hero__bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; padding: 0 0 68px; }
.r-hero__bar-inner { display: flex; align-items: flex-end; gap: 28px; }
.r-hero__tabs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.r-hero__tab {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px;
    text-align: right; background: none; border: 0; padding: 12px 0 0; cursor: pointer;
    color: rgba(255, 255, 255, .55);
    font-weight: 500; font-size: 13px; line-height: 1.7;
    transition: color .3s;
}
.r-hero__tab:hover, .r-hero__tab.is-active { color: #fff; }
.r-hero__tab-num { font-weight: 700; font-size: 12px; color: var(--r-accent); }
.r-hero__tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-hero__progress { grid-column: 1 / -1; order: -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-bottom: 8px; }
.r-hero__progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: right center; }
.r-hero__tab.is-active .r-hero__progress i { background: var(--r-accent); }
.r-hero__controls { display: flex; gap: 8px; }
.r-hero__ctrl {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08);
    color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px;
    backdrop-filter: blur(6px); transition: background .2s, color .2s, border-color .2s;
}
.r-hero__ctrl:hover { background: #fff; color: var(--r-primary); border-color: #fff; }
.r-hero:focus-within .r-hero__ctrl:focus-visible { outline-color: var(--r-accent); }

@media (max-width: 991px) {
    .r-hero { height: clamp(520px, 74vh, 640px); }
    .r-hero__bar { padding-bottom: 24px; }
    .r-hero__content { bottom: 96px; }
    .r-hero__media::after {
        background: linear-gradient(to top, rgba(7, 26, 46, .96) 0%, rgba(var(--r-night-rgb), .7) 50%, rgba(var(--r-night-rgb), .2) 100%);
    }
    .r-hero__tabs { gap: 8px; }
    .r-hero__tab { grid-template-columns: 1fr; padding-top: 6px; }
    .r-hero__tab-num, .r-hero__tab-title { display: none; }
    .r-hero__progress { margin: 0; }
    .r-hero__bar-inner { align-items: center; }
}
@media (max-width: 575px) {
    .r-hero__excerpt { display: none; }
    .r-hero__content { bottom: 84px; }
    .r-hero__ctrl { width: 40px; height: 40px; }
    .r-hero__actions .r-btn--ghost { display: none; }
}

/* ---------- دسترسی سریع ---------- */
.r-quick {
    display: grid; grid-template-columns: repeat(6, 1fr);
    background: #fff; border-radius: var(--r-r-lg);
    box-shadow: var(--r-shadow-lift);
    margin-top: -36px; position: relative; z-index: 5;
    padding: 8px;
}
.r-quick__item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 8px 16px; border-radius: var(--r-r-md);
    color: var(--r-ink); font-weight: 500; font-size: 13.5px; text-align: center;
    position: relative; transition: background .2s;
}
.r-quick__item + .r-quick__item::before { content: ""; position: absolute; right: 0; top: 24%; bottom: 24%; width: 1px; background: var(--r-line); }
.r-quick__item i {
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px;
    background: var(--r-primary-soft); color: var(--r-primary);
    transition: background .25s, color .25s, transform .25s var(--r-ease);
}
.r-quick__item:hover { background: var(--r-paper); }
.r-quick__item:hover i { background: var(--r-primary); color: #fff; transform: translateY(-3px); }
@media (max-width: 991px) {
    .r-quick { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
    .r-quick__item:nth-child(4)::before { display: none; }
}
@media (max-width: 575px) {
    .r-quick { padding: 6px; }
    .r-quick__item { font-size: 12px; padding: 14px 4px 12px; gap: 8px; }
    .r-quick__item i { width: 42px; height: 42px; font-size: 15px; }
}

/* ---------- مجله‌ی خبری صفحه اصلی ---------- */
.r-magazine { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; }
.r-feature { position: relative; background: #fff; border-radius: var(--r-r-xl); overflow: hidden; box-shadow: var(--r-shadow); }
.r-feature__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.r-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--r-ease); }
.r-feature:hover .r-feature__media img { transform: scale(1.04); }
.r-feature__body { padding: 26px 30px 30px; }
.r-feature__title {
    font-weight: 700; font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.6; color: var(--r-ink); margin: 12px 0 10px; padding: 0; letter-spacing: -.3px;
}
.r-feature__title a { color: inherit; }
.r-feature:hover .r-feature__title a { color: var(--r-primary); }
.r-feature__excerpt { color: var(--r-muted); font-size: 14.5px; margin-bottom: 16px; }
.r-more { display: inline-flex; align-items: center; gap: 8px; color: var(--r-primary); font-weight: 500; font-size: 13.5px; }
.r-feature:hover .r-more i, .r-card:hover .r-more i { transform: translateX(-4px); }

.r-list { display: flex; flex-direction: column; }
.r-list__item { position: relative; display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--r-line); }
.r-list__item:first-child { padding-top: 0; }
.r-list__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.r-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--r-ease); }
.r-list__item:hover .r-list__thumb img { transform: scale(1.06); }
.r-list__title { font-weight: 700; font-size: 15px; line-height: 1.75; margin: 6px 0 0; padding: 0; color: var(--r-ink); }
.r-list__title a { color: inherit; }
.r-list__item:hover .r-list__title a { color: var(--r-primary); }
.r-list > .r-link { margin-top: 18px; align-self: flex-start; }
.r-empty { color: var(--r-muted); padding: 24px 0; margin: 0; }
@media (max-width: 991px) { .r-magazine { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
    .r-feature__body { padding: 20px; }
    .r-list__item { grid-template-columns: 96px 1fr; gap: 14px; }
}

/* ---------- درباره ---------- */
.r-about { background: #fff; margin-top: 96px; padding: 96px 0; position: relative; overflow: hidden; }
.r-about::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 42%; background: var(--r-pattern-ink); background-size: 96px; opacity: .9; pointer-events: none; }
.r-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; position: relative; }
.r-about__lead { font-size: 17px; color: #33475B; line-height: 2.1; margin: 12px 0 22px; }
.r-checks { padding: 0; margin: 0 0 30px; list-style: none; }
.r-checks li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--r-ink); font-size: 14.5px; }
.r-checks i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--r-primary-soft); color: var(--r-primary); }
.r-figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 40px; margin: 0 0 32px; padding: 22px 0; border-top: 1px solid var(--r-line); border-bottom: 1px solid var(--r-line); }
.r-figures > div { display: flex; flex-direction: column-reverse; }
.r-figures dd { font-weight: 700; font-size: 30px; line-height: 1.4; color: var(--r-primary); margin: 0; letter-spacing: -.5px; }
.r-figures dt { font-weight: normal; color: var(--r-muted); font-size: 13px; }
.r-about__media { position: relative; padding: 0 0 48px 40px; }
.r-about__img-main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-r-xl); display: block; }
.r-about__img-sub { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-r-lg); border: 6px solid #fff; box-shadow: var(--r-shadow-lift); }
.r-about__badge {
    position: absolute; top: 28px; left: 8px;
    background: var(--r-primary); color: #fff;
    border-radius: var(--r-r-lg); padding: 16px 20px;
    display: flex; align-items: center; gap: 12px; max-width: 230px;
    box-shadow: 0 20px 40px -18px rgba(var(--r-primary-rgb), .7);
}
.r-about__badge strong { font-weight: 700; font-size: 38px; line-height: 1; }
.r-about__badge span { font-size: 12.5px; line-height: 1.7; opacity: .9; }
@media (max-width: 991px) {
    .r-about { padding: 64px 0; margin-top: 72px; }
    .r-about__grid { grid-template-columns: 1fr; gap: 44px; }
    .r-about::before { display: none; }
}
@media (max-width: 575px) {
    .r-figures { gap: 0 22px; }
    .r-figures dd { font-size: 24px; }
    .r-about__media { padding: 0 0 36px 20px; }
}

/* ---------- خدمات ---------- */
.r-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.r-service {
    position: relative; background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-lg);
    padding: 28px 26px 26px; color: var(--r-ink); overflow: hidden;
    transition: border-color .25s, transform .25s var(--r-ease), box-shadow .25s;
}
.r-service::after { content: "\f104"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 24px; top: 30px; font-size: 13px; color: var(--r-primary); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--r-ease); }
.r-service:hover { border-color: var(--r-primary); transform: translateY(-3px); box-shadow: var(--r-shadow-lift); }
.r-service:hover::after { opacity: 1; transform: none; }
.r-service__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 21px; background: var(--r-primary-soft); color: var(--r-primary); margin-bottom: 20px; transition: background .25s, color .25s; }
.r-service:hover .r-service__icon { background: var(--r-primary); color: #fff; }
.r-service h3 { font-weight: 700; font-size: 17px; line-height: 1.6; margin: 0 0 6px; color: var(--r-ink); }
.r-service p { color: var(--r-muted); font-size: 13.5px; line-height: 1.95; margin: 0; }
@media (max-width: 991px) { .r-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .r-services { grid-template-columns: 1fr; } }

/* ---------- اطلاعیه‌ها و رویدادها ---------- */
.r-board { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.r-panel { background: #fff; border-radius: var(--r-r-lg); box-shadow: var(--r-shadow); padding: 26px 28px 14px; }
.r-panel__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--r-line); margin-bottom: 4px; }
.r-panel__head h2 { font-weight: 700; font-size: 18px; line-height: 1.6; margin: 0; color: var(--r-ink); padding: 0; }
.r-notices, .r-events { list-style: none; padding: 0; margin: 0; }
.r-notices li + li, .r-events li + li { border-top: 1px dashed var(--r-line); }
.r-notices a { display: flex; align-items: center; gap: 12px; padding: 15px 0; color: var(--r-ink); }
.r-notices__title { flex: 1; font-size: 14.5px; line-height: 1.8; }
.r-notices a:hover .r-notices__title { color: var(--r-primary); }
.r-notices time { color: var(--r-muted); font-size: 12.5px; white-space: nowrap; }
.r-tag-important { background: #FDECEC; color: #B42318; font-weight: 500; font-size: 11px; padding: 1px 9px; border-radius: 999px; }
.r-events li { display: flex; gap: 16px; align-items: center; padding: 14px 0; }
.r-date { width: 62px; height: 66px; flex: none; border-radius: 16px; background: var(--r-primary-soft); color: var(--r-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.r-date strong { font-weight: 700; font-size: 23px; }
.r-date span { font-size: 12px; }
.r-events li:first-child .r-date { background: var(--r-primary); color: #fff; }
.r-events h3 { font-weight: 700; font-size: 14.5px; line-height: 1.75; margin: 0 0 2px; padding: 0; }
.r-events h3 a { color: var(--r-ink); }
.r-events h3 a:hover { color: var(--r-primary); }
.r-events p { margin: 0; color: var(--r-muted); font-size: 12.5px; line-height: 1.8; }
.r-events p i { margin: 0 0 0 5px; }
.r-events p i + i, .r-events p i:not(:first-child) { margin-right: 12px; }
@media (max-width: 991px) { .r-board { grid-template-columns: 1fr; } }

/* ---------- گزارش تصویری ---------- */
.r-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.r-mosaic__item { position: relative; border-radius: var(--r-r-lg); overflow: hidden; display: block; }
.r-mosaic__item--big { grid-row: span 2; }
.r-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--r-ease); }
.r-mosaic__item:hover img { transform: scale(1.05); }
.r-mosaic__item span {
    position: absolute; inset-inline: 0; bottom: 0; padding: 36px 18px 14px;
    background: linear-gradient(to top, rgba(7, 26, 46, .85), transparent);
    color: #fff; font-weight: 500; font-size: 13.5px;
}
.r-mosaic__item--big span { font-size: 17px; padding: 60px 26px 22px; font-weight: 700; }
@media (max-width: 767px) {
    .r-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px 150px; }
    .r-mosaic__item--big { grid-column: 1 / -1; grid-row: auto; }
    .r-mosaic__item:nth-child(5) { display: none; }
}

/* ---------- همکاران ---------- */
.r-partners { margin-top: 84px; text-align: center; }
.r-partners__title { font-weight: 500; font-size: 14px; color: var(--r-muted); margin-bottom: 22px; }
.r-partners__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 56px; padding: 26px 0; border-top: 1px solid var(--r-line); border-bottom: 1px solid var(--r-line); }
.r-partners__row img { height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.r-partners__row a:hover img { filter: none; opacity: 1; }

/* ---------- نوار تماس (نسخه آبی) ---------- */
.r-callband { background: var(--r-primary) var(--r-pattern-light); background-size: 96px; margin: 0; }
.r-callband .r-brand--light .r-star { fill: #fff; }
.r-callband .r-brand--light .r-core { fill: var(--r-primary); }
.r-callband__label { color: rgba(255, 255, 255, .8); }

/* ---------- کارت خبر (نوع جدید) ---------- */
.r-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.r-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: 24px; padding: 10px;
    box-shadow: 0 1px 2px rgba(var(--r-night-rgb), .05);
    border: 1px solid var(--r-line);
    transition: transform .35s var(--r-ease), box-shadow .35s var(--r-ease), border-color .35s;
}
.r-card:hover { transform: translateY(-4px); box-shadow: var(--r-shadow-lift); border-color: transparent; }
.r-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: 17px; overflow: hidden; background: var(--r-primary-soft); }
.r-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--r-ease); }
.r-card:hover .r-card__media img { transform: scale(1.06); }
.r-card__media .r-chip { position: absolute; top: 12px; right: 12px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.r-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 12px 8px; }
.r-card__title {
    font-weight: 700; font-size: 16.5px; line-height: 1.75;
    margin: 6px 0 8px; padding: 0; color: var(--r-ink); letter-spacing: -.2px;
}
.r-card__title a { color: inherit; }
.r-card:hover .r-card__title a { color: var(--r-primary); }
.r-card__excerpt { color: var(--r-muted); font-size: 13.5px; line-height: 1.95; margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--r-line); }
.r-author { display: inline-flex; align-items: center; gap: 9px; color: var(--r-ink); font-size: 12.5px; font-weight: 500; }
.r-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--r-primary); color: #fff; font-weight: 700; font-size: 13px; }
.r-avatar--xl { width: 64px; height: 64px; font-size: 26px; }
.r-card .r-more { font-size: 12.5px; }
@media (max-width: 1199px) { .r-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .r-grid, .r-grid--3 { grid-template-columns: 1fr; } }

/* ---------- صفحه‌ی اخبار ---------- */
.r-pagehead--tall { padding-bottom: 96px; }
.r-pagehead__desc { color: rgba(255, 255, 255, .72); margin: 6px 0 0; font-size: 15px; }
.r-newsbar {
    position: relative; z-index: 3; margin-top: -32px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    background: #fff; border-radius: var(--r-r-lg); box-shadow: var(--r-shadow-lift); padding: 12px 14px;
}
.r-newsbar .r-tabs { border: 0; background: var(--r-paper); }
.r-search { display: flex; align-items: center; gap: 10px; margin: 0; background: var(--r-paper); border: 1px solid transparent; border-radius: 999px; padding: 0 16px; min-width: 260px; transition: border-color .2s, background .2s; }
.r-search:focus-within { background: #fff; border-color: var(--r-primary); }
.r-search i { color: var(--r-muted); font-size: 13px; }
.r-search input { border: 0; background: none; outline: none; font: inherit; font-size: 13.5px; padding: 10px 0; width: 100%; color: var(--r-ink); }
.r-newslayout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; margin-top: 36px; align-items: start; }

.r-lead {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    background: var(--r-night); color: #fff; border-radius: var(--r-r-xl); overflow: hidden; margin-bottom: 30px;
    box-shadow: var(--r-shadow-lift);
}
.r-lead__media { min-height: 320px; overflow: hidden; }
.r-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--r-ease); }
.r-lead:hover .r-lead__media img { transform: scale(1.04); }
.r-lead__body { padding: 32px 34px; display: flex; flex-direction: column; background: var(--r-night) var(--r-pattern-light); background-size: 96px; }
.r-lead .r-meta { color: rgba(255, 255, 255, .7); }
.r-lead__title { font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; margin: 14px 0 12px; padding: 0; color: #fff; letter-spacing: -.3px; }
.r-lead__title a { color: #fff; }
.r-lead__excerpt { color: rgba(255, 255, 255, .75); font-size: 14px; margin-bottom: 20px; }
.r-lead .r-card__foot { border-top-color: rgba(255, 255, 255, .14); }
.r-lead .r-author { color: #fff; }
.r-lead .r-avatar { background: #fff; color: var(--r-primary); }
.r-lead .r-more { color: var(--r-accent); }
.r-lead:hover .r-more i { transform: translateX(-4px); }

.r-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.r-pager a, .r-pager span { min-width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; padding: 0 10px; color: var(--r-ink); font-weight: 500; font-size: 14px; background: #fff; border: 1px solid var(--r-line); transition: border-color .2s, background .2s; }
.r-pager span { background: none; border: 0; color: var(--r-muted); }
.r-pager a:hover { border-color: var(--r-primary); }
.r-pager a.is-current { background: var(--r-primary); color: #fff; border-color: var(--r-primary); }
.r-pager__nav { color: var(--r-muted); font-size: 12px; }

.r-sidebar, .r-article-side { display: flex; flex-direction: column; gap: 22px; }
.r-side-box { background: #fff; border-radius: var(--r-r-lg); padding: 22px 22px 16px; border: 1px solid var(--r-line); }
.r-side-box__title { font-weight: 700; font-size: 16px; line-height: 1.6; color: var(--r-ink); margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--r-line); }
.r-ranked { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.r-ranked li + li { border-top: 1px dashed var(--r-line); }
.r-ranked a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; color: var(--r-ink); }
.r-ranked__n { font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--r-line); width: 26px; flex: none; text-align: center; transition: color .2s; -webkit-text-stroke: 1px #B9C6D3; color: transparent; }
.r-ranked li:first-child .r-ranked__n { -webkit-text-stroke: 0; color: var(--r-primary); }
.r-ranked a:hover .r-ranked__n { -webkit-text-stroke: 0; color: var(--r-primary); }
.r-ranked__t { font-weight: 500; font-size: 13.5px; line-height: 1.8; display: flex; flex-direction: column; }
.r-ranked a:hover .r-ranked__t { color: var(--r-primary); }
.r-ranked small { color: var(--r-muted); font-weight: 400; font-size: 11.5px; margin-top: 2px; }
.r-ranked small i { margin-left: 5px; }
.r-cats { list-style: none; padding: 0; margin: 0; }
.r-cats a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: var(--r-ink); font-size: 14px; }
.r-cats a:hover { background: var(--r-primary-soft); color: var(--r-primary); }
.r-cats span { background: var(--r-paper); color: var(--r-muted); font-size: 12px; padding: 0 10px; border-radius: 999px; line-height: 1.9; }
.r-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.r-tags a, .r-article__tags a { font-size: 12.5px; color: var(--r-ink); background: var(--r-paper); border: 1px solid var(--r-line); padding: 3px 13px; border-radius: 999px; transition: border-color .2s, color .2s; }
.r-tags a::before, .r-article__tags a::before { content: "#"; color: var(--r-primary); margin-left: 3px; }
.r-tags a:hover, .r-article__tags a:hover { border-color: var(--r-primary); color: var(--r-primary); }
.r-newsletter { background: var(--r-primary) var(--r-pattern-light); background-size: 96px; border: 0; color: #fff; }
.r-newsletter .r-side-box__title { color: #fff; border-color: rgba(255, 255, 255, .2); }
.r-newsletter p { color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 1.9; }
.r-newsletter input { width: 100%; border: 0; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 13.5px; margin-bottom: 10px; outline: none; }
.r-newsletter input:focus { box-shadow: 0 0 0 3px rgba(var(--r-accent-rgb), .6); }
.r-newsletter button { width: 100%; border: 0; border-radius: 12px; padding: 11px; background: var(--r-night); color: #fff; font-weight: 500; cursor: pointer; transition: background .2s; margin-bottom: 6px; }
.r-newsletter button:hover { background: #000; }
@media (max-width: 1199px) { .r-newslayout { grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; } }
@media (max-width: 991px) {
    .r-newslayout { grid-template-columns: 1fr; }
    .r-lead { grid-template-columns: 1fr; }
    .r-lead__media { min-height: 0; aspect-ratio: 16 / 9; }
    .r-search { min-width: 0; flex: 1; }
}
@media (max-width: 575px) { .r-lead__body { padding: 24px 22px; } .r-newsbar .r-tabs { width: 100%; } }

/* ---------- صفحه‌ی جزئیات خبر ---------- */
.r-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1000; background: transparent; pointer-events: none; }
.r-progress i { display: block; height: 100%; background: linear-gradient(to left, var(--r-primary), var(--r-accent)); transform: scaleX(0); transform-origin: right center; }
.r-article-head { background: none; }
.r-article-head { padding-top: 40px; max-width: 980px; }
.r-crumbs { background: none; border: 0; padding: 0; margin: 0 0 22px; font-size: 13px; }
.r-crumbs .breadcrumb-item a { color: var(--r-muted); }
.r-crumbs .breadcrumb-item a:hover { color: var(--r-primary); }
.r-crumbs .breadcrumb-item.active { color: var(--r-primary); }
.r-crumbs .breadcrumb-item + .breadcrumb-item::before { content: "/"; float: none; padding: 0 8px; color: #B9C6D3; }
.r-article__title {
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.5; letter-spacing: -.8px;
    color: var(--r-ink); margin: 18px 0 16px; padding: 0;
}
.r-article__lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 2; color: #3E5368; max-width: 46em; margin-bottom: 28px; }
.r-byline { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--r-line); border-bottom: 1px solid var(--r-line); }
.r-author--lg .r-avatar { width: 44px; height: 44px; font-size: 18px; }
.r-author--lg > span:last-child { display: flex; flex-direction: column; line-height: 1.7; }
.r-author--lg strong { font-weight: 700; font-size: 14px; }
.r-author--lg small { color: var(--r-muted); font-weight: 400; font-size: 12px; }
.r-share { display: flex; gap: 8px; }
.r-share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--r-line); color: var(--r-muted); background: #fff; transition: color .2s, border-color .2s, background .2s; }
.r-share a:hover { color: #fff; background: var(--r-primary); border-color: var(--r-primary); }
.r-article__hero { margin-top: 34px; margin-bottom: 0; }
.r-article__hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-r-xl); display: block; }
.r-article__hero figcaption, .r-article__figure figcaption { color: var(--r-muted); font-size: 12.5px; margin-top: 10px; padding-right: 14px; border-right: 2px solid var(--r-primary); line-height: 1.8; }
.r-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin-top: 44px; align-items: start; }
.r-article__body { min-width: 0; }
.r-article__body > p { font-size: 16.5px; line-height: 2.25; color: #23364A; margin-bottom: 1.4em; }
.r-article__body > p:first-of-type::first-line { font-weight: 500; }
.r-article__body h2 {
    font-weight: 700; font-size: 23px; line-height: 1.6;
    color: var(--r-ink); margin: 1.9em 0 .7em; padding: 0; scroll-margin-top: 110px; letter-spacing: -.3px;
}
.r-article__body ol { padding: 0; margin: 0 0 1.6em; list-style: none; counter-reset: r-step; }
.r-article__body ol li { counter-increment: r-step; position: relative; padding: 12px 52px 12px 0; font-size: 16px; line-height: 2; color: #23364A; border-bottom: 1px dashed var(--r-line); }
.r-article__body ol li::before { content: counter(r-step); position: absolute; right: 0; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--r-primary-soft); color: var(--r-primary); font-weight: 700; font-size: 15px; }
.r-article__body blockquote {
    position: relative; margin: 2.2em 0; padding: 30px 34px 26px 30px;
    background: var(--r-primary-soft); border-radius: var(--r-r-lg); border-right: 4px solid var(--r-primary);
}
.r-article__body blockquote::before { content: "\201D"; position: absolute; left: 22px; top: -6px; font-size: 96px; line-height: 1; color: var(--r-primary); opacity: .18; font-family: Georgia, serif; }
.r-article__body blockquote p { font-weight: 500; font-size: 18.5px; line-height: 2.05; color: var(--r-ink); margin: 0 0 10px; }
.r-article__body blockquote cite { font-style: normal; color: var(--r-primary); font-size: 13.5px; font-weight: 500; }
.r-article__body blockquote cite::before { content: "— "; }
.r-article__figure { margin: 2.2em 0; }
.r-article__figure img { width: 100%; border-radius: var(--r-r-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.r-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2.4em 0 0; padding-top: 22px; border-top: 1px solid var(--r-line); }
.r-article__tags > span { font-weight: 700; font-size: 13.5px; margin-left: 6px; }
.r-authorbox { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-lg); padding: 24px; margin-top: 30px; }
.r-authorbox strong { font-weight: 700; font-size: 16px; }
.r-authorbox p { color: var(--r-muted); font-size: 13.5px; margin: 4px 0 8px; line-height: 1.95; }
.r-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.r-prevnext__item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-r-lg); background: #fff; border: 1px solid var(--r-line); color: var(--r-ink); transition: border-color .2s; }
.r-prevnext__item--next { text-align: left; }
.r-prevnext__item small { color: var(--r-muted); font-size: 12px; }
.r-prevnext__item span { font-weight: 700; font-size: 14px; line-height: 1.8; }
.r-prevnext__item:hover { border-color: var(--r-primary); }
.r-prevnext__item:hover span { color: var(--r-primary); }
.r-article-side { position: sticky; top: 100px; }
.r-toc { list-style: none; padding: 0; margin: 0; border-right: 2px solid var(--r-line); }
.r-toc a { display: block; padding: 7px 16px 7px 0; margin-right: -2px; border-right: 2px solid transparent; color: var(--r-muted); font-size: 13.5px; line-height: 1.8; transition: color .2s, border-color .2s; }
.r-toc a:hover { color: var(--r-ink); }
.r-toc a.is-current { color: var(--r-primary); border-right-color: var(--r-primary); font-weight: 500; }
.r-toast {
    position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); opacity: 0;
    background: var(--r-night); color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 13.5px; z-index: 1100;
    transition: opacity .3s, transform .3s var(--r-ease); pointer-events: none; box-shadow: var(--r-shadow-lift);
}
.r-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 991px) {
    .r-article-layout { grid-template-columns: 1fr; gap: 30px; }
    .r-article-side { position: static; }
    .r-article__hero img { aspect-ratio: 16 / 9; }
}
@media (max-width: 575px) {
    .r-prevnext { grid-template-columns: 1fr; }
    .r-article__body > p { font-size: 15.5px; }
    .r-authorbox { flex-direction: column; }
    .r-share a { width: 36px; height: 36px; }
}

/* =====================================================================
   نسخه ۳.۱ - صفحه‌های داخلی
   ===================================================================== */

.r-section--tight { margin-top: 30px; }
.r-pagehead { padding-bottom: 72px; margin-bottom: 0; }
.r-pagehead + .r-section--first, .r-pagehead + section.r-section--first { margin-top: -36px; }
.r-btn--block { width: 100%; padding: 13px; font-size: 15px; }
.r-note { color: var(--r-muted); font-size: 13px; margin-top: 22px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.r-note i { color: var(--r-primary); }

/* درباره */
.r-about--page { margin-top: 0; padding-top: 110px; }
.r-pagehead + .r-about--page { margin-top: 0; }
.r-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.r-value { background: #fff; border-radius: var(--r-r-lg); padding: 30px 28px; border-top: 3px solid var(--r-primary); box-shadow: var(--r-shadow); }
.r-value__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--r-primary-soft); color: var(--r-primary); font-size: 20px; margin-bottom: 18px; }
.r-value h3, .r-featurebox h3, .r-steps h3, .r-timeline h3, .r-dept h3, .r-blank h2 { font-weight: 700; font-size: 17px; line-height: 1.6; color: var(--r-ink); margin: 0 0 6px; padding: 0; }
.r-value p, .r-featurebox p, .r-steps p, .r-timeline p, .r-dept p { color: var(--r-muted); font-size: 13.5px; line-height: 1.95; margin: 0; }

.r-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.r-timeline::before { content: ""; position: absolute; top: 19px; right: 0; left: 0; height: 2px; background: var(--r-line); }
.r-timeline li { position: relative; padding: 0 0 0 22px; }
.r-timeline__year { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--r-primary); background: var(--r-paper); padding-left: 12px; margin-bottom: 14px; }
.r-timeline__year::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--r-primary); }
.r-timeline li.is-current .r-timeline__year::before { background: var(--r-primary); box-shadow: 0 0 0 6px rgba(var(--r-primary-rgb), .15); }
@media (max-width: 991px) {
    .r-values { grid-template-columns: 1fr; }
    .r-timeline { grid-template-columns: 1fr; gap: 22px; }
    .r-timeline::before { top: 0; bottom: 0; right: 6px; left: auto; width: 2px; height: auto; }
    .r-timeline li { padding: 0 32px 0 0; }
    .r-timeline__year { margin-right: -32px; padding-left: 0; background: none; }
}

/* افراد */
.r-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.r-person { background: #fff; border-radius: 24px; padding: 10px; border: 1px solid var(--r-line); transition: transform .35s var(--r-ease), box-shadow .35s; }
.r-person:hover { transform: translateY(-4px); box-shadow: var(--r-shadow-lift); }
.r-person__photo { aspect-ratio: 300 / 330; border-radius: 17px; overflow: hidden; background: var(--r-primary-soft); }
.r-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform .8s var(--r-ease); }
.r-person:hover .r-person__photo img { transform: scale(1.04); }
.r-person__body { padding: 16px 10px 8px; }
.r-person__name { font-weight: 700; font-size: 17px; line-height: 1.6; margin: 0; padding: 0; color: var(--r-ink); }
.r-person__role { color: var(--r-primary); font-weight: 500; font-size: 13px; margin: 0 0 8px; line-height: 1.8; }
.r-person__bio { color: var(--r-muted); font-size: 13px; line-height: 1.95; margin: 0 0 12px; }
.r-person__links { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--r-line); }
.r-person__links a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--r-paper); color: var(--r-muted); font-size: 13px; transition: background .2s, color .2s; }
.r-person__links a:hover { background: var(--r-primary); color: #fff; }
.r-people--compact .r-person__body { text-align: center; }
@media (max-width: 991px) { .r-people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .r-people { grid-template-columns: 1fr; } }

.r-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.r-dept { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-lg); padding: 20px; transition: border-color .2s; }
.r-dept:hover { border-color: var(--r-primary); }
.r-dept__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--r-primary-soft); color: var(--r-primary); font-size: 18px; grid-row: span 2; align-self: start; }
.r-dept__ext { grid-column: 2; display: inline-flex; align-items: center; gap: 7px; color: var(--r-primary); font-weight: 500; font-size: 12.5px; justify-self: start; }
.r-dept__ext i { font-size: 11px; }
@media (max-width: 991px) { .r-depts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .r-depts { grid-template-columns: 1fr; } }

/* گالری */
.r-newsbar__count { color: var(--r-muted); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; padding: 0 8px; }
.r-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.r-gallery__item { position: relative; margin: 0; border-radius: var(--r-r-lg); overflow: hidden; background: var(--r-primary-soft); }
.r-gallery__item--wide { grid-column: span 2; }
.r-gallery__item--tall { grid-row: span 2; }
.r-gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.r-gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--r-ease); }
.r-gallery__item:hover img { transform: scale(1.05); }
.r-gallery__item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(7, 26, 46, .88), transparent); color: #fff; pointer-events: none; display: flex; flex-direction: column; line-height: 1.7; }
.r-gallery__item figcaption strong { font-weight: 500; font-size: 14px; }
.r-gallery__item figcaption span { font-size: 12px; opacity: .75; }
.r-gallery .r-empty { grid-column: 1 / -1; }
@media (max-width: 991px) { .r-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .r-gallery { grid-auto-rows: 140px; gap: 10px; } .r-gallery__item figcaption span { display: none; } }

.r-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 15, 28, .94); display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); padding: 60px 80px 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.r-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.r-lightbox__img { min-height: 0; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 12px; align-self: center; justify-self: center; }
.r-lightbox__bar { display: flex; justify-content: space-between; align-items: center; color: #fff; padding-top: 16px; gap: 16px; }
.r-lightbox__caption { font-weight: 500; font-size: 14px; }
.r-lightbox__count { color: rgba(255, 255, 255, .6); font-size: 13px; }
.r-lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.r-lightbox__btn:hover { background: #fff; color: var(--r-night); }
.r-lightbox__close { top: 16px; left: 16px; }
.r-lightbox__prev { right: 14px; top: 50%; margin-top: -24px; }
.r-lightbox__next { left: 14px; top: 50%; margin-top: -24px; }
@media (max-width: 575px) { .r-lightbox { padding: 64px 12px 20px; } .r-lightbox__prev, .r-lightbox__next { top: auto; bottom: 70px; } }

/* مراحل */
.r-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: r-st; }
.r-steps li { counter-increment: r-st; position: relative; background: #fff; border-radius: var(--r-r-lg); padding: 26px 24px; border: 1px solid var(--r-line); }
.r-steps li::after { content: counter(r-st); position: absolute; left: 22px; top: 18px; font-weight: 700; font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #C6D4E1; }
.r-steps__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--r-primary); color: #fff; font-size: 19px; margin-bottom: 18px; }
@media (max-width: 991px) { .r-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .r-steps { grid-template-columns: 1fr; } }

/* بخش دوستونه */
.r-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; background: #fff; border-radius: var(--r-r-xl); padding: 48px 56px; box-shadow: var(--r-shadow); }
.r-split__media img { width: 100%; max-height: 380px; object-fit: contain; }
.r-split--reverse .r-split__media { order: 2; }
@media (max-width: 991px) { .r-split { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; } .r-split__media img { max-height: 260px; } .r-split--reverse .r-split__media { order: 0; } }

/* ویژگی‌ها */
.r-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.r-featurebox { background: #fff; border-radius: var(--r-r-lg); padding: 28px 26px; border: 1px solid var(--r-line); transition: border-color .25s; }
.r-featurebox:hover { border-color: var(--r-primary); }
.r-featurebox:hover .r-service__icon { background: var(--r-primary); color: #fff; }
@media (max-width: 991px) { .r-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .r-features { grid-template-columns: 1fr; } }
.r-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--r-night) var(--r-pattern-light); background-size: 96px; border-radius: var(--r-r-xl); padding: 40px 20px; color: #fff; }
.r-stats > div { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; padding: 0 10px; }
.r-stats > div + div { border-right: 1px solid rgba(255, 255, 255, .12); }
.r-stats dd { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; margin: 0; color: #fff; }
.r-stats dt { font-weight: normal; color: var(--r-accent); font-size: 13.5px; }
@media (max-width: 767px) { .r-stats { grid-template-columns: 1fr 1fr; row-gap: 26px; } .r-stats > div:nth-child(3) { border-right: 0; } }

/* تعرفه */
.r-billing { display: flex; justify-content: center; margin-bottom: 30px; }
.r-billing .r-tabs { box-shadow: var(--r-shadow); border: 0; }
.r-billing__save { background: #E7F6EE; color: #12805C; font-size: 11px; border-radius: 999px; padding: 0 8px; margin-right: 8px; }
.r-tabs__btn.is-active .r-billing__save { background: rgba(255, 255, 255, .2); color: #fff; }
.r-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.r-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-xl); padding: 32px 30px; }
.r-plan--hot { background: var(--r-night) var(--r-pattern-light); background-size: 96px; border-color: transparent; color: #fff; box-shadow: var(--r-shadow-lift); transform: translateY(-10px); }
.r-plan__badge { position: absolute; top: 24px; left: 24px; background: var(--r-accent); color: var(--r-night); font-weight: 500; font-size: 11.5px; padding: 1px 12px; border-radius: 999px; }
.r-plan__name { font-weight: 700; font-size: 20px; line-height: 1.6; margin: 0; padding: 0; color: inherit; }
.r-plan__desc { color: var(--r-muted); font-size: 13.5px; line-height: 1.9; min-height: 52px; }
.r-plan--hot .r-plan__desc { color: rgba(255, 255, 255, .72); }
.r-plan__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 22px; flex-wrap: wrap; }
.r-plan__price strong { font-weight: 700; font-size: 34px; letter-spacing: -.5px; line-height: 1.3; }
.r-plan__price span { color: var(--r-muted); font-size: 13px; }
.r-plan--hot .r-plan__price span { color: rgba(255, 255, 255, .7); }
.r-plan--hot .r-btn { background: var(--r-accent); color: var(--r-night); }
.r-plan--hot .r-btn:hover { background: #fff; }
.r-plan__list { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--r-line); }
.r-plan--hot .r-plan__list { border-color: rgba(255, 255, 255, .14); }
.r-plan__list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.r-plan__list i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; background: var(--r-primary-soft); color: var(--r-primary); flex: none; }
.r-plan--hot .r-plan__list i { background: rgba(var(--r-accent-rgb), .18); color: var(--r-accent); }
.r-plan__list li.is-off { color: #9AA8B6; text-decoration: line-through; }
.r-plan__list li.is-off i { background: #F1F4F7; color: #9AA8B6; }
@media (max-width: 991px) { .r-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } .r-plan--hot { transform: none; } }

.r-table-wrap { background: #fff; border-radius: var(--r-r-lg); border: 1px solid var(--r-line); overflow-x: auto; }
.r-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.r-table th { background: var(--r-paper); color: var(--r-muted); font-weight: 500; font-size: 13px; padding: 14px 22px; text-align: right; border-bottom: 1px solid var(--r-line); }
.r-table td { padding: 16px 22px; border-bottom: 1px solid var(--r-line); font-size: 14px; color: var(--r-ink); }
.r-table tr:last-child td { border-bottom: 0; }
.r-table tbody tr:hover td { background: #FAFCFE; }
.r-table__num { font-weight: 700; text-align: left; }
.r-table th:last-child { text-align: left; }

/* سوالات متداول */
.r-faq-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.r-faq-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.r-search--block { min-width: 0; background: #fff; border-color: var(--r-line); box-shadow: var(--r-shadow); }
.r-faq-nav { background: #fff; border-radius: var(--r-r-lg); border: 1px solid var(--r-line); padding: 8px; display: flex; flex-direction: column; }
.r-faq-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--r-ink); font-size: 14px; }
.r-faq-nav a i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--r-primary-soft); color: var(--r-primary); font-size: 13px; }
.r-faq-nav a span { margin-right: auto; color: var(--r-muted); font-size: 12px; }
.r-faq-nav a:hover { background: var(--r-paper); }
.r-helpbox .r-btn { width: 100%; margin: 4px 0 8px; }
.r-faq-main { padding-top: 64px; }
.r-faq-group { margin-bottom: 34px; scroll-margin-top: 110px; }
.r-faq-group h2 { font-weight: 700; font-size: 19px; line-height: 1.6; margin: 0 0 14px; padding: 0; color: var(--r-ink); }
.r-faq { background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-md); margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.r-faq[open] { border-color: var(--r-primary); box-shadow: var(--r-shadow); }
.r-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 500; font-size: 15px; color: var(--r-ink); }
.r-faq summary::-webkit-details-marker { display: none; }
.r-faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--r-primary-soft); color: var(--r-primary); font-size: 12px; transition: transform .3s var(--r-ease), background .2s, color .2s; }
.r-faq[open] summary::after { transform: rotate(45deg); background: var(--r-primary); color: #fff; }
.r-faq__answer { padding: 0 22px 18px; }
.r-faq__answer p { margin: 0; color: #3E5368; font-size: 14.5px; line-height: 2.05; }
.r-faq[open] .r-faq__answer { animation: r-fade .35s var(--r-ease); }
@media (max-width: 991px) { .r-faq-main { padding-top: 0; } .r-faq-layout { grid-template-columns: minmax(0, 1fr); } .r-faq-side { min-width: 0; } .r-faq-side { position: static; } .r-faq-nav { flex-direction: row; overflow-x: auto; } .r-faq-nav a { white-space: nowrap; } .r-faq-nav a span { display: none; } .r-helpbox { display: none; } }

/* راهنما */
.r-docs code { background: var(--r-primary-soft); color: var(--r-primary-deep); padding: 1px 7px; border-radius: 6px; font-size: 13px; direction: ltr; unicode-bidi: embed; }
.r-docs pre { direction: ltr; text-align: left; background: var(--r-night); color: #D6E6F5; border-radius: var(--r-r-md); padding: 20px 22px; margin: 0 0 1.6em; overflow-x: auto; font-size: 13px; line-height: 1.9; }
.r-docs pre code { background: none; color: inherit; padding: 0; font-family: Consolas, "Courier New", monospace; }

/* المان‌ها */
.r-demos { display: flex; flex-direction: column; gap: 22px; }
.r-demo__body { padding: 18px 0 12px; }
.r-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.r-dark-sample { display: inline-flex; gap: 10px; background: var(--r-night); padding: 10px; border-radius: 999px; }
.r-alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-r-md); font-size: 14px; line-height: 1.9; }
.r-alert i { font-size: 18px; margin-top: 4px; }
.r-alert strong { display: block; font-weight: 700; }
.r-alert--info { background: var(--r-primary-soft); color: var(--r-primary-deep); }
.r-alert--success { background: #E7F6EE; color: #0E6B4C; }
.r-alert--warning { background: #FEF5E2; color: #8A5300; }
.r-alert--danger { background: #FDECEC; color: #B42318; }
@media (max-width: 767px) { .r-alerts { grid-template-columns: 1fr; } }
.r-form-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.r-form-demo label:not(.r-check):not(.r-switch) { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.r-form-demo__full { grid-column: 1 / -1; }
@media (max-width: 575px) { .r-form-demo { grid-template-columns: 1fr; } }
.r-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--r-ink); margin: 0; }
.r-check input { width: 18px; height: 18px; accent-color: var(--r-primary); }
.r-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; margin: 0; }
.r-switch input { position: absolute; opacity: 0; }
.r-switch span { width: 42px; height: 24px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .2s; }
.r-switch span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--r-ease); }
.r-switch input:checked + span { background: var(--r-primary); }
.r-switch input:checked + span::after { transform: translateX(-18px); }
.r-switch input:focus-visible + span { outline: 2px solid var(--r-primary); outline-offset: 2px; }
.r-pager--start { justify-content: flex-start; margin-top: 0; }

.r-blank { text-align: center; padding: 64px 24px; }
.r-blank .r-service__icon { margin: 0 auto 18px; }
.r-blank p { color: var(--r-muted); max-width: 34em; margin: 0 auto; }

/* وضعیت */
.r-status-wrap { padding: 64px 0 20px; }
.r-status { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--r-r-xl); box-shadow: var(--r-shadow-lift); padding: 44px 40px 36px; text-align: center; }
.r-status__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 32px; position: relative; }
.r-status--success .r-status__icon { background: #12805C; color: #fff; box-shadow: 0 0 0 10px #E7F6EE; }
.r-status--error .r-status__icon { background: #B42318; color: #fff; box-shadow: 0 0 0 10px #FDECEC; }
.r-status--waiting .r-status__icon { background: var(--r-primary); color: #fff; box-shadow: 0 0 0 10px var(--r-primary-soft); }
.r-status--waiting .r-status__icon::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--r-primary); animation: r-spin 1.2s linear infinite; }
@keyframes r-spin { to { transform: rotate(360deg); } }
.r-status__title { font-weight: 700; font-size: 24px; line-height: 1.6; color: var(--r-ink); margin: 0 0 8px; padding: 0; }
.r-status__text { color: var(--r-muted); font-size: 14.5px; line-height: 2; margin-bottom: 24px; }
.r-status__details { margin: 0 0 28px; background: var(--r-paper); border-radius: var(--r-r-md); padding: 6px 20px; text-align: right; }
.r-status__details > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13.5px; }
.r-status__details > div + div { border-top: 1px dashed var(--r-line); }
.r-status__details dt { font-weight: normal; color: var(--r-muted); }
.r-status__details dd { margin: 0; font-weight: 500; color: var(--r-ink); }
.r-status__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 575px) { .r-status { padding: 34px 22px 26px; } .r-status__actions .r-btn { width: 100%; } }

/* ۴۰۴ */
.r-404 { text-align: center; padding: 72px 0 24px; }
.r-404__code { display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 700; font-size: clamp(110px, 18vw, 200px); line-height: 1; color: var(--r-night); letter-spacing: -4px; }
.r-404__code span { font-size: inherit; line-height: 1; }
.r-404__code svg { width: .78em; height: .78em; animation: r-spin 24s linear infinite; }
.r-404__title { font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; margin: 18px 0 8px; color: var(--r-ink); }
.r-404__text { color: var(--r-muted); max-width: 34em; margin: 0 auto 28px; }
.r-404__search { max-width: 520px; margin: 0 auto 26px; background: #fff; border-color: var(--r-line); padding: 5px 18px 5px 5px; box-shadow: var(--r-shadow); }
.r-404__search .r-btn { padding: 9px 22px; }
.r-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.r-404__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--r-line); color: var(--r-ink); font-size: 13.5px; transition: border-color .2s, color .2s; }
.r-404__links a i { color: var(--r-primary); }
.r-404__links a:hover { border-color: var(--r-primary); color: var(--r-primary); }

/* ورود و عضویت */
body.r-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; background: #fff; }
.r-auth__panel { position: relative; background: var(--r-night) var(--r-pattern-light); background-size: 96px; color: #fff; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.r-auth__panel::after { content: ""; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(var(--r-primary-rgb), .55), transparent 65%); pointer-events: none; }
.r-auth__pitch { position: relative; z-index: 1; max-width: 26em; }
.r-auth__pitch h2 { font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.5; color: #fff; margin: 0 0 12px; letter-spacing: -.5px; }
.r-auth__pitch p { color: rgba(255, 255, 255, .75); font-size: 15px; }
.r-auth__pitch ul { list-style: none; padding: 0; margin: 24px 0 0; }
.r-auth__pitch li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: rgba(255, 255, 255, .9); font-size: 14px; }
.r-auth__pitch li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(var(--r-accent-rgb), .18); color: var(--r-accent); }
.r-auth__copy { color: rgba(255, 255, 255, .5); font-size: 12px; margin: 0; position: relative; z-index: 1; }
.r-auth__main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; position: relative; }
.r-auth__back { position: absolute; top: 28px; right: 32px; color: var(--r-muted); font-size: 13.5px; }
.r-auth__back:hover { color: var(--r-primary); }
.r-auth__box { width: 100%; max-width: 440px; }
.r-auth__title { font-weight: 700; font-size: 28px; line-height: 1.5; color: var(--r-ink); margin: 0 0 8px; }
.r-auth__sub { color: var(--r-muted); font-size: 14px; margin-bottom: 28px; }
.r-auth__form { display: flex; flex-direction: column; gap: 18px; }
.r-field label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 7px; color: var(--r-ink); }
.r-field__control { position: relative; }
.r-field__control i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #9AA8B6; font-size: 14px; pointer-events: none; }
.r-field__control .form-control { padding-right: 44px; min-height: 50px; font-size: 14.5px; }
.r-field__control .form-control[dir="ltr"] { text-align: left; }
.r-field__hint { color: var(--r-muted); font-size: 12px; }
.r-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.r-auth__switch { text-align: center; color: var(--r-muted); font-size: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--r-line); }
.r-auth__switch a { color: var(--r-primary); font-weight: 500; }
@media (max-width: 991px) {
    body.r-auth { grid-template-columns: 1fr; }
    .r-auth__panel { padding: 24px 22px; }
    .r-auth__pitch, .r-auth__copy { display: none; }
    .r-auth__main { justify-content: flex-start; padding: 70px 20px 40px; }
}
@media (max-width: 480px) { .r-field-row { grid-template-columns: 1fr; } }

/* ارتباط با ما */
.r-contact-section { margin-top: -36px; }

/* پانویس نسخه ۳.۱ */
.r-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 32px 40px; padding: 44px 0 26px; }
.r-footer-col ul { margin: 0; }
.r-footer-news li { display: flex; flex-direction: column; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.r-footer-news li:last-child { border: 0; }
.r-footer-news time { color: rgba(255, 255, 255, .45); font-size: 12px; }
.r-footer-col--contact p { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.r-footer-col--contact i { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--r-accent-rgb), .12); color: var(--r-accent); font-size: 13px; }
.r-footer-col--contact a { color: rgba(255, 255, 255, .85); }
.r-footer-col--contact a:hover { color: var(--r-accent); }
@media (max-width: 991px) { .r-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .r-footer-grid { grid-template-columns: 1fr; } }


/* ===================== هماهنگی اجزا با وردپرس ===================== */
.r-section { margin-top: 84px; }
.r-section.r-section--first { margin-top: -46px; }
.r-section.r-section--tight { margin-top: 30px; }

/* دسترسی سریع */
.r-quick { grid-template-columns: repeat(var(--r-quick-count, 6), 1fr); }
.r-quick--flat { margin-top: 48px; }
@media (max-width: 991px) { .r-quick { grid-template-columns: repeat(3, 1fr); } }

/* اسلایدر بدون نوشته */
.r-hero--static { height: auto; min-height: 380px; display: flex; align-items: center; background: var(--r-night) var(--r-pattern-light); background-size: 96px; }
.r-hero--static .r-hero__content { position: relative; bottom: auto; padding: 80px 20px; }
.r-hero--static .r-hero__content > * { opacity: 1; transform: none; }
.r-hero__hint { color: var(--r-accent); font-size: 13px; }
.r-hero__media img { min-height: 100%; }

/* فرم جستجو */
.r-search { display: flex; align-items: center; gap: 10px; margin: 0; background: var(--r-paper); border: 1px solid transparent; border-radius: 999px; padding: 4px 16px 4px 4px; transition: border-color .2s, background .2s; min-width: 260px; }
.r-search:focus-within { background: #fff; border-color: var(--r-primary); }
.r-search > i { color: var(--r-muted); font-size: 13px; }
.r-search input.r-search__input, .r-search input { border: 0; background: none; min-height: 40px; padding: 6px 0; box-shadow: none; font-size: 14px; flex: 1; width: auto; min-width: 0; }
.r-search input:focus { box-shadow: none; background: none; }
.r-search__btn { border: 0; background: var(--r-primary); color: #fff; border-radius: 999px; padding: 8px 20px; font-weight: 500; font-size: 13.5px; cursor: pointer; transition: background .2s; }
.r-search__btn:hover { background: var(--r-primary-deep); }
.r-newsbar .r-search { min-width: 300px; }
.r-search--block { background: #fff; border-color: var(--r-line); box-shadow: var(--r-shadow); padding: 4px 16px; }
.r-404__search { max-width: 540px; margin: 0 auto 26px; }
.r-404__search .r-search { background: #fff; border-color: var(--r-line); box-shadow: var(--r-shadow); }
.r-404__star { width: .78em; height: .78em; animation: r-spin 24s linear infinite; }
.r-404__code span { font-size: inherit; line-height: 1; }
@media (max-width: 575px) { .r-search, .r-newsbar .r-search { min-width: 0; width: 100%; } }

/* زبانه‌ها به‌صورت پیوند */
a.r-tabs__btn { display: inline-flex; align-items: center; }
a.r-tabs__btn:hover { color: var(--r-ink); }
a.r-tabs__btn.is-active { color: #fff; }

/* صفحه‌بندی */
.r-pager .page-numbers { min-width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; padding: 0 10px; color: var(--r-ink); font-weight: 500; font-size: 14px; background: #fff; border: 1px solid var(--r-line); transition: border-color .2s, background .2s; }
.r-pager a.page-numbers:hover { border-color: var(--r-primary); color: var(--r-primary); }
.r-pager .page-numbers.current { background: var(--r-primary); color: #fff; border-color: var(--r-primary); }
.r-pager .page-numbers.dots { background: none; border: 0; }
.r-pager .post-page-numbers { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--r-line); margin-left: 6px; }
.r-pager .post-page-numbers.current { background: var(--r-primary); color: #fff; border-color: var(--r-primary); }

/* چیدمان‌ها */
.r-newslayout--full { grid-template-columns: minmax(0, 1fr); }
.r-board--single { grid-template-columns: minmax(0, 1fr); }
.r-article-layout--full { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.r-article__main { min-width: 0; }
.r-article-head { max-width: 980px; }
.r-article-head .r-crumbs { margin-bottom: 22px; }
.r-article__title { margin-top: 16px; }
.r-avatar--img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.r-authorbox .r-avatar--img { width: 64px; height: 64px; }
.r-author--lg strong a { color: var(--r-ink); }
.r-sidebar { position: sticky; top: calc(var(--r-header-h) + 24px); }
.admin-bar .r-sidebar, .admin-bar .r-article-side { top: calc(var(--r-header-h) + 56px); }
.r-article-side { top: calc(var(--r-header-h) + 24px); }
@media (max-width: 991px) { .r-sidebar { position: static; } }

/* موزاییک با تعداد متغیر */
.r-mosaic--3 { grid-template-columns: 2fr 1fr; }
.r-mosaic--4 { grid-template-columns: 2fr 1fr 1fr; }
.r-mosaic--4 .r-mosaic__item:nth-child(4) { grid-column: span 2; }
.r-mosaic__item img { display: block; }

/* خط زمانی و بسته‌ها با تعداد متغیر */
.r-timeline { grid-template-columns: repeat(var(--r-steps, 5), minmax(0, 1fr)); }
.r-plans { grid-template-columns: repeat(var(--r-plans, 3), minmax(0, 1fr)); }
@media (max-width: 991px) { .r-timeline, .r-plans { grid-template-columns: minmax(0, 1fr); } }

/* سوالات متداول */
.r-faq-intro { margin-bottom: 26px; }
.r-faq-main { padding-top: 56px; }
@media (max-width: 991px) { .r-faq-main { padding-top: 0; } .r-faq-layout { grid-template-columns: minmax(0, 1fr); } .r-faq-side { min-width: 0; } }
.r-faq-nav a { justify-content: space-between; }

/* تماس */
.r-contact__info li span a { display: block; }
.r-contact__info .r-social { margin: 22px 0 0; }
.r-contact__form p { margin-bottom: 14px; }
.r-contact__form .r-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.r-contact__form .r-form-grid .r-full { grid-column: 1 / -1; }
.r-contact__form label { display: block; font-size: 13.5px; margin-bottom: 6px; }
.r-contact__form .wpcf7-form p { margin-bottom: 14px; }
@media (max-width: 575px) { .r-contact__form .r-form-grid { grid-template-columns: 1fr; } }

/* پیام‌های فرم */
.r-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-r-md); font-size: 14px; margin-bottom: 16px; }
.r-alert--success { background: #e7f6ee; color: #0e6b4c; }
.r-alert--danger { background: #fdecec; color: #b42318; }

/* بلوک خالی */
.r-blank { text-align: center; padding: 56px 24px; }
.r-blank .r-service__icon { margin: 0 auto 18px; }
.r-blank h2 { font-size: 20px; }
.r-blank p { color: var(--r-muted); max-width: 34em; margin: 0 auto; }

/* درباره در برگه */
.r-about--page { margin-top: 0; padding-top: 110px; }

/* چاپ */
@media print {
	.r-topbar, .r-header, .r-share, .r-article-side, .r-footer, .r-progress, .r-prevnext, .r-section, .r-totop, .r-comments { display: none !important; }
	.r-article-layout { display: block; }
	body { background: #fff; }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* شمارنده‌های فارسی */
:lang(fa) .r-article__body ol li::before { content: counter(r-step, persian); }
:lang(fa) .r-steps li::after { content: counter(r-st, persian); }
:lang(fa) .entry-content ol:not(.wp-block-list) { list-style-type: persian; }
.entry-content ol.wp-block-list { list-style: none; padding: 0; counter-reset: r-step; }
.entry-content ol.wp-block-list li { counter-increment: r-step; position: relative; padding: 10px 50px 10px 0; border-bottom: 1px dashed var(--r-line); }
.entry-content ol.wp-block-list li::before { content: counter(r-step); position: absolute; right: 0; top: 10px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--r-primary-soft); color: var(--r-primary); font-weight: 700; font-size: 15px; line-height: 1; }
:lang(fa) .entry-content ol.wp-block-list li::before { content: counter(r-step, persian); }

/* سبک‌های بلوک رستا */
.is-style-rasta-card { background: #fff; border: 1px solid var(--r-line); border-radius: var(--r-r-lg); padding: 26px 26px 10px; }
.is-style-rasta-dark { background: var(--r-night) var(--r-pattern-light); background-size: 96px; color: rgba(255, 255, 255, .85); border-radius: var(--r-r-xl); padding: 44px 32px; }
.is-style-rasta-dark h2, .is-style-rasta-dark h3 { color: #fff; }
.entry-content .is-style-rasta-plain { background: none; border: 0; border-right: 3px solid var(--r-line); border-radius: 0; padding: 4px 22px 4px 0; }
.is-style-rasta-checks { list-style: none; padding: 0; }
.is-style-rasta-checks li { position: relative; padding: 6px 34px 6px 0; }
.is-style-rasta-checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--r-primary-soft); color: var(--r-primary); font-size: 10px; display: grid; place-items: center; line-height: 1; }
.is-style-rasta-rounded img { border-radius: var(--r-r-xl); }

/* صفحه تماس */
.r-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; padding: 0; background: #fff; border-radius: var(--r-r-lg); box-shadow: var(--r-shadow); overflow: hidden; }
.r-contact h2 { font-weight: 700; font-size: 22px; line-height: 1.5; margin: 0 0 6px; }
.r-contact__info { background: var(--r-night) var(--r-pattern-light); background-size: 96px; color: #fff; padding: 44px 40px; }
.r-contact__info h2 { color: #fff; }
.r-contact__info > p { color: rgba(255, 255, 255, .7); font-size: 13px; }
.r-contact__info ul { list-style: none; padding: 0; margin: 28px 0 0; }
.r-contact__info li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.r-contact__info li i { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--r-accent-rgb), .14); color: var(--r-primary); }
.r-contact__info li span { display: flex; flex-direction: column; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.8; }
.r-contact__info li strong { font-weight: 300; color: rgba(255, 255, 255, .55); font-size: 12px; }
.r-contact__info li a { color: #fff; text-align: right; }
.r-contact__info li a:hover { color: var(--r-primary); }
.r-contact__form { padding: 44px 44px 40px; }
.r-contact__form > p { color: var(--r-muted); font-size: 13px; margin-bottom: 22px; }
.r-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.r-contact__full { grid-column: 1 / -1; }
.r-contact label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--r-ink); }
.r-contact label small { color: var(--r-muted); font-weight: 300; }
.r-contact textarea.form-control { min-height: 150px; resize: vertical; }
@media (max-width: 767px) {
    .r-contact { grid-template-columns: 1fr; }
    .r-contact__info, .r-contact__form { padding: 30px 22px; }
    .r-contact__grid { grid-template-columns: 1fr; }
}


.r-contact__info li i { color: var(--r-accent); }
.r-contact__info li a:hover { color: var(--r-accent); }
.wp-block-table td, .wp-block-table th, .entry-content table td, .entry-content table th { border-width: 0 0 1px 0; border-style: solid; border-color: var(--r-line); }
.wp-block-table thead { border-bottom: 0; }
.r-404__search { background: none; border: 0; padding: 0; box-shadow: none; }

/* ---------- سربرگ خبر: نوار سفید تمام‌عرض ---------- */
.r-article-top {
	position: relative; isolation: isolate; overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, #fff 70%, #fbfcfe 100%);
	border-bottom: 1px solid var(--r-line);
	box-shadow: 0 24px 50px -48px rgba(var(--r-night-rgb), .45);
}
.r-article-top::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%230d1b2a' stroke-opacity='.05' stroke-width='1'%3E%3Cpolygon points='48.0,18.0 56.8,26.8 69.2,26.8 69.2,39.2 78.0,48.0 69.2,56.8 69.2,69.2 56.8,69.2 48.0,78.0 39.2,69.2 26.8,69.2 26.8,56.8 18.0,48.0 26.8,39.2 26.8,26.8 39.2,26.8'/%3E%3Cpolygon points='0.0,-14.0 4.1,-9.9 9.9,-9.9 9.9,-4.1 14.0,0.0 9.9,4.1 9.9,9.9 4.1,9.9 0.0,14.0 -4.1,9.9 -9.9,9.9 -9.9,4.1 -14.0,0.0 -9.9,-4.1 -9.9,-9.9 -4.1,-9.9'/%3E%3Cpolygon points='0.0,82.0 4.1,86.1 9.9,86.1 9.9,91.9 14.0,96.0 9.9,100.1 9.9,105.9 4.1,105.9 0.0,110.0 -4.1,105.9 -9.9,105.9 -9.9,100.1 -14.0,96.0 -9.9,91.9 -9.9,86.1 -4.1,86.1'/%3E%3Cpolygon points='96.0,-14.0 100.1,-9.9 105.9,-9.9 105.9,-4.1 110.0,0.0 105.9,4.1 105.9,9.9 100.1,9.9 96.0,14.0 91.9,9.9 86.1,9.9 86.1,4.1 82.0,0.0 86.1,-4.1 86.1,-9.9 91.9,-9.9'/%3E%3Cpolygon points='96.0,82.0 100.1,86.1 105.9,86.1 105.9,91.9 110.0,96.0 105.9,100.1 105.9,105.9 100.1,105.9 96.0,110.0 91.9,105.9 86.1,105.9 86.1,100.1 82.0,96.0 86.1,91.9 86.1,86.1 91.9,86.1'/%3E%3Cpath d='M0 48H18M78 48H96M48 0V18M48 78V96'/%3E%3C/g%3E%3C/svg%3E");
	-webkit-mask-image: radial-gradient(ellipse 55% 90% at 0% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse 55% 90% at 0% 0%, #000 0%, transparent 70%);
}
.r-article-top::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 520px; height: 520px; left: -160px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--r-primary-rgb), .10), transparent 65%);
}
.r-article-top .r-article-head { max-width: var(--r-container); padding-top: 34px; padding-bottom: 44px; }
.r-article-top .r-article__title { max-width: 22em; }
.r-article-top .r-article__lead { max-width: 52em; }
.r-article-top--hero .r-article-head { padding-bottom: 150px; }
.r-article-top .r-crumbs { margin-bottom: 26px; }
.r-article-top .r-crumbs ol {
	display: inline-flex; align-items: center; max-width: 100%;
	background: #fff; border: 1px solid var(--r-line); border-radius: 999px;
	padding: 7px 18px; box-shadow: 0 6px 18px -14px rgba(var(--r-night-rgb), .35);
}
.r-article-top .r-crumbs li:first-child a::before {
	content: "\f015"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: 6px; color: var(--r-primary);
}
.r-article-top .r-article__title { margin-top: 18px; }
.r-article-top .r-article__lead {
	position: relative; padding-right: 18px; margin-bottom: 30px;
}
.r-article-top .r-article__lead::before {
	content: ""; position: absolute; right: 0; top: .5em; bottom: .5em; width: 3px; border-radius: 3px;
	background: linear-gradient(180deg, var(--r-primary), var(--r-accent));
}
.r-article-top .r-byline {
	border: 1px solid var(--r-line); border-radius: var(--r-r-lg);
	background: linear-gradient(90deg, #fff, var(--r-paper));
	padding: 14px 20px;
}
.r-article-top .r-author--lg .r-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(var(--r-primary-rgb), .25); }
.r-article-top .r-author--lg small::before { content: ""; }
.r-article__hero--lift { position: relative; z-index: 2; margin-top: -118px; }
.r-article__hero--lift img { box-shadow: 0 40px 70px -40px rgba(var(--r-night-rgb), .55); }

/* ---------- برگه‌ی متن خبر ---------- */
.r-article__sheet {
	position: relative; background: #fff;
	border: 1px solid var(--r-line); border-radius: var(--r-r-xl);
	padding: clamp(22px, 3.6vw, 48px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 34px 70px -52px rgba(var(--r-night-rgb), .4);
}
.r-article__sheet::before {
	content: ""; position: absolute; top: -1px; inset-inline: clamp(22px, 3.6vw, 48px); height: 3px; border-radius: 0 0 4px 4px;
	background: linear-gradient(to left, var(--r-primary), var(--r-accent));
}
.r-article__sheet > .r-article__body > :first-child { margin-top: 0; }
.r-article__sheet > .r-article__body > :last-child { margin-bottom: 0; }
.r-article__sheet .r-article__tags { margin-top: 2em; }
.r-article__main > .r-authorbox, .r-article__main > .r-prevnext { margin-top: 24px; }
.r-article__main > .r-comments { margin-top: 28px; }

@media (max-width: 991px) {
	.r-article-top--hero .r-article-head { padding-bottom: 110px; }
	.r-article__hero--lift { margin-top: -86px; }
}
@media (max-width: 575px) {
	.r-article-top .r-article-head { padding-top: 22px; padding-bottom: 30px; }
	.r-article-top--hero .r-article-head { padding-bottom: 80px; }
	.r-article__hero--lift { margin-top: -60px; }
	.r-article-top .r-crumbs ol { padding: 6px 14px; border-radius: 14px; }
	.r-article-top .r-byline { padding: 12px 14px; }
	.r-article__sheet { border-radius: var(--r-r-lg); }
	.r-article__hero--lift img { border-radius: var(--r-r-lg); }
}
@media print {
	.r-article-top, .r-article__sheet { background: none; box-shadow: none; border: 0; padding: 0; }
	.r-article-top::before, .r-article-top::after, .r-article__sheet::before { display: none; }
	.r-article__hero--lift { margin-top: 0; }
}

/* ---------- منوی موبایل: جلوگیری از محبوس شدن کشو در هدر ---------- */
@media (max-width: 991px) {
	.r-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	body.r-nav-open .r-header { z-index: 1000; }
	.r-nav { height: 100vh; height: 100dvh; }
}
