/*!
 * Price pages — «تعرفه طراحی گرافیک ۱۴۰۵» (modules/category-parts/price-graphic.tpl + modules/functions/price-card.tpl).
 * Buttons reuse .rp-sv-btn from css/service-page.css. Light/dark: css/price-theme.css. IranSans, grey at rest / red on hover.
 */
.rp-pr {
	--pr-red: #fb4848; --pr-red-soft: #fff3f3; --pr-ink: #29292B; --pr-text: #4a4a51; --pr-muted: #6b6b72;
	--pr-line: #e8e8ec; --pr-soft: #f6f6f8; --pr-card: #fff; --pr-bg: #fafafb; --pr-ease: cubic-bezier(.22, 1, .36, 1);
	--sv-red: #fb4848; --sv-ink: #29292B; --sv-line: #e8e8ec; --sv-ease: cubic-bezier(.22, 1, .36, 1);
	padding: 40px 0 80px; background: var(--pr-bg); color: var(--pr-ink); direction: rtl; font-family: 'IranSans', sans-serif;
}
.rp-pr *, .rp-pr *::before, .rp-pr *::after { box-sizing: border-box; }
.rp-pr em { font-style: normal; color: var(--pr-red); }
.rp-pr-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13px; color: var(--pr-red); }
.rp-pr-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--pr-red); }
.rp-pr-head { margin: 0 0 22px; }
.rp-pr-head h2 { margin: 8px 0 0; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; color: var(--pr-ink); }

/* hero */
.rp-pr-hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center;
	padding: 44px 46px; border: 1px solid var(--pr-line); border-radius: 30px;
	background: radial-gradient(620px 320px at 100% 0%, rgba(251, 72, 72, .09), transparent 70%), var(--pr-card);
}
.rp-pr-hero h1 { margin: 12px 0 14px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.4; color: var(--pr-ink); }
.rp-pr-lead { margin: 0 0 24px; font-size: 16px; line-height: 2.1; color: var(--pr-text); text-wrap: pretty; }
.rp-pr-lead b { color: var(--pr-ink); font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; }
.rp-pr-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-pr-promise { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rp-pr-promise li {
	display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 14px 16px; border: 1px solid var(--pr-line); border-radius: 18px; background: var(--pr-soft);
	transition: border-color .3s, transform .4s var(--pr-ease);
}
.rp-pr-promise li:hover { border-color: rgba(251, 72, 72, .4); transform: translateX(-4px); }
.rp-pr-promise i { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--pr-red); color: #fff; font-size: 18px; }
.rp-pr-promise b { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 14.5px; color: var(--pr-ink); }
.rp-pr-promise span { font-size: 12.5px; color: var(--pr-muted); }

/* summary table */
.rp-pr-tablewrap { margin: 56px 0 60px; scroll-margin-top: 110px; }
.rp-pr-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--pr-line); border-radius: 22px; background: var(--pr-card); font-size: 14.5px; }
.rp-pr-table th, .rp-pr-table td { padding: 15px 20px; text-align: right; vertical-align: middle; border-bottom: 1px solid var(--pr-line); }
.rp-pr-table tbody tr:last-child th, .rp-pr-table tbody tr:last-child td { border-bottom: 0; }
.rp-pr-table thead th { background: var(--pr-soft); font-family: 'IranSansMedium', 'IranSans', sans-serif; font-weight: normal; font-size: 13px; color: var(--pr-muted); }
.rp-pr-table tbody th { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; color: var(--pr-ink); white-space: nowrap; }
.rp-pr-table td:nth-child(2) { white-space: nowrap; color: var(--pr-muted); }
.rp-pr-table td b { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 17px; color: var(--pr-ink); }
.rp-pr-table td small { font-size: 12px; }
.rp-pr-table td:nth-child(3) { color: var(--pr-text); line-height: 1.9; }
.rp-pr-table tbody tr { transition: background-color .25s; }
.rp-pr-table tbody tr:hover { background: var(--pr-red-soft); }
.rp-pr-table tbody tr:hover td b { color: var(--pr-red); }
.rp-pr-note { margin: 12px 4px 0; font-size: 13px; line-height: 1.9; color: var(--pr-muted); }

/* cards grid */
.rp-pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 60px; }
.rp-pr-grid #dle-content { display: contents; }
/* full rows only: 6 or 9 cards -> 3 columns, 8 cards -> 4 (2 on tablets); no single cards left on the last row */
@media (min-width: 768px) {
	.rp-pr-grid:has(> .rp-prc:last-child:nth-child(3n)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rp-pr-grid:has(> .rp-prc:last-child:nth-child(4n)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
	.rp-pr-grid:has(> .rp-prc:last-child:nth-child(4n)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rp-prc {
	position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pr-line); border-radius: 24px; background: var(--pr-card);
	transition: border-color .3s, transform .45s var(--pr-ease), box-shadow .45s var(--pr-ease);
}
.rp-prc:hover { border-color: rgba(251, 72, 72, .35); transform: translateY(-5px); box-shadow: 0 28px 50px -34px rgba(20, 20, 24, .55); }
.rp-prc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pr-soft); }
.rp-prc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--pr-ease), transform .9s var(--pr-ease); }
.rp-prc:hover .rp-prc-img img { filter: none; transform: scale(1.04); }
.rp-prc-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 30px 22px 20px; }
.rp-prc-ico { position: absolute; top: -24px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--pr-card); box-shadow: 0 10px 24px -14px rgba(20, 20, 24, .5); color: #8b8b93; font-size: 20px; transition: background-color .3s, color .3s; }
.rp-prc-ico i::before { margin: 0 !important; }
.rp-prc:hover .rp-prc-ico { background: var(--pr-red); color: #fff; }
.rp-prc-title { margin: 6px 0 10px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 17px; line-height: 1.6; }
.rp-prc-title a { color: var(--pr-ink) !important; text-decoration: none !important; }
.rp-prc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--pr-soft); }
.rp-prc-price small { font-size: 12.5px; color: var(--pr-muted); }
.rp-prc-price b { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 22px; color: var(--pr-ink); transition: color .3s; }
.rp-prc-price span { font-size: 12.5px; color: var(--pr-muted); }
.rp-prc:hover .rp-prc-price b { color: var(--pr-red); }
/* includes: the first 4 items of the list; the longer notes live on the item page */
.rp-prc-inc { flex: 1; margin-bottom: 16px; font-size: 13.5px; line-height: 1.9; color: var(--pr-text); }
.rp-prc-inc > *:not(ul) { display: none; }
.rp-prc-inc ul { margin: 0; padding: 0; list-style: none; }
.rp-prc-inc li { position: relative; margin: 0 0 6px; padding-right: 26px; }
.rp-prc-inc li:nth-child(n+5) { display: none; }
.rp-prc-inc li p, .rp-prc-inc li h3 { display: inline; margin: 0; font: inherit; color: inherit; }
.rp-prc-inc li br { display: none; }
.rp-prc-inc li::before { content: "\f00c"; position: absolute; right: 0; top: 5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-red-soft); color: var(--pr-red); font: normal 8px/1 FontAwesome; }
.rp-prc-actions { display: flex; gap: 8px; }
.rp-prc-actions a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 13px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 13.5px; white-space: nowrap; text-decoration: none !important; transition: background-color .25s, color .25s, border-color .25s; }
.rp-prc-more { border: 1px solid var(--pr-line); color: var(--pr-ink) !important; }
.rp-prc-more:hover { border-color: var(--pr-ink); }
.rp-prc-quote { background: var(--pr-ink); color: #fff !important; }
.rp-prc-quote:hover { background: var(--pr-red); }

/* factors + positioning */
.rp-pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 60px; }
.rp-pr-box { padding: 28px 30px; border: 1px solid var(--pr-line); border-radius: 24px; background: var(--pr-card); }
.rp-pr-box h2 { margin: 0 0 16px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 20px; color: var(--pr-ink); }
.rp-pr-box ul { margin: 0; padding: 0; list-style: none; }
.rp-pr-box li { position: relative; margin: 0 0 10px; padding-right: 30px; font-size: 14.5px; line-height: 1.9; color: var(--pr-text); }
.rp-pr-box li::before { content: "\f00c"; position: absolute; right: 0; top: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-red-soft); color: var(--pr-red); font: normal 9px/1 FontAwesome; }
.rp-pr-box li b { color: var(--pr-ink); font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; }
.rp-pr-box p { margin: 0 0 12px; font-size: 14.5px; line-height: 2.05; color: var(--pr-text); }
.rp-pr-box--dark { position: relative; overflow: hidden; isolation: isolate; border-color: transparent; background: #1d1d20; }
.rp-pr-box--dark::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; left: -140px; top: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(251, 72, 72, .35), transparent); }
.rp-pr-box--dark h2 { color: #fff; }
.rp-pr-box--dark p { color: #c3c3ca; }

/* FAQ (native details) */
.rp-pr-faq details { margin: 0 0 10px; border: 1px solid var(--pr-line); border-radius: 18px; background: var(--pr-card); transition: border-color .3s, box-shadow .3s; }
.rp-pr-faq:not(.is-js) details[open], .rp-pr-faq details.is-open { border-color: rgba(251, 72, 72, .35); box-shadow: 0 18px 36px -26px rgba(251, 72, 72, .5); }
.rp-pr-faq summary { position: relative; transition: color .3s; padding: 18px 22px 18px 60px; list-style: none; cursor: pointer; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 15px; line-height: 1.8; color: var(--pr-ink); }
.rp-pr-faq summary::-webkit-details-marker { display: none; }
.rp-pr-faq summary::after { content: "+"; position: absolute; left: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-soft); font: 18px/1 Arial, sans-serif; color: var(--pr-ink); transition: background-color .3s, color .3s, transform .4s var(--pr-ease); }
.rp-pr-faq:not(.is-js) details[open] summary::after, .rp-pr-faq details.is-open summary::after { content: "−"; background: var(--pr-red); color: #fff; transform: rotate(180deg); }
.rp-pr-faq details p { margin: 0; padding: 0 22px 18px; font-size: 14.5px; line-height: 2.05; color: var(--pr-text); }

/* tablet / phone */
@media (max-width: 991px) {
	.rp-pr-hero { grid-template-columns: 1fr; padding: 30px 24px; }
	.rp-pr-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.rp-pr { padding-top: 24px; }
	.rp-pr-hero { border-radius: 22px; padding: 26px 18px; }
	.rp-pr-cta .rp-sv-btn { flex: 1 1 100%; }
	/* table becomes stacked rows */
	.rp-pr-table thead { display: none; }
	.rp-pr-table, .rp-pr-table tbody, .rp-pr-table tr, .rp-pr-table th, .rp-pr-table td { display: block; width: 100%; }
	.rp-pr-table tr { padding: 14px 16px; border-bottom: 1px solid var(--pr-line); }
	.rp-pr-table tbody tr:last-child { border-bottom: 0; }
	.rp-pr-table th, .rp-pr-table td { padding: 2px 0; border: 0; white-space: normal !important; }
	.rp-pr-box { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-pr *, .rp-pr *::before, .rp-pr *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Price ITEM page (modules/functions/price-full.tpl + the post text classes .rp-pi-*)
   ===================================================================== */
.rp-pr--item { padding-top: 30px; }
.rp-pi-sec, .rp-pi-body > section { margin-top: 64px; }
.rp-pi-body > section > h2, .rp-pi-sec > h2 { margin: 0 0 8px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; color: var(--pr-ink); }
.rp-pi-sub { margin: 0 0 24px; font-size: 15px; line-height: 2; color: var(--pr-muted); max-width: 760px; }

/* hero */
.rp-pi-hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center;
	padding: 44px 46px; border: 1px solid var(--pr-line); border-radius: 30px;
	background: radial-gradient(620px 320px at 100% 0%, rgba(251, 72, 72, .09), transparent 70%), var(--pr-card);
}
.rp-pi-hero .rp-pr-kicker { text-decoration: none !important; }
.rp-pi-title { margin: 12px 0 14px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.45; color: var(--pr-ink); }
.rp-pi-from { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 18px; padding: 10px 18px; border-radius: 16px; background: var(--pr-red-soft); }
.rp-pi-from small { font-size: 13px; color: var(--pr-muted); }
.rp-pi-from b { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 28px; color: var(--pr-red); }
.rp-pi-from span { font-size: 13px; color: var(--pr-muted); }
.rp-pi-hero .rp-pi-lead, .rp-pi-lead { margin: 0 0 24px; font-size: 16px; line-height: 2.1; color: var(--pr-text); text-wrap: pretty; }
.rp-pi-lead b, .rp-pi-lead strong { color: var(--pr-ink); font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; }
.rp-pi-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--pr-line); font-size: 13px; color: var(--pr-muted); }
.rp-pi-trust i { margin-left: 6px; color: var(--pr-red); }
.rp-pi-hero-img { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 26px; box-shadow: 0 40px 70px -40px rgba(20, 20, 24, .55); }
.rp-pi-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .7s var(--pr-ease), transform .9s var(--pr-ease); }
.rp-pi-hero:hover .rp-pi-hero-img img { filter: none; transform: scale(1.02); }

/* packages */
.rp-pi-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.rp-pi-pack {
	position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border: 1px solid var(--pr-line); border-radius: 26px; background: var(--pr-card);
	transition: border-color .3s, transform .45s var(--pr-ease), box-shadow .45s var(--pr-ease);
}
.rp-pi-pack:hover { border-color: rgba(251, 72, 72, .35); transform: translateY(-5px); box-shadow: 0 28px 50px -34px rgba(20, 20, 24, .55); }
.rp-pi-pack.is-featured { border: 2px solid var(--pr-red); box-shadow: 0 30px 60px -36px rgba(251, 72, 72, .6); }
.rp-pi-badge { position: absolute; top: -13px; right: 22px; padding: 4px 14px; border-radius: 999px; background: var(--pr-red); color: #fff; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 12px; }
.rp-pi-pack h3 { margin: 0; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 20px; color: var(--pr-ink); }
.rp-pi-pack-for { margin: 4px 0 16px; font-size: 13px; color: var(--pr-muted); }
.rp-pi-pack-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--pr-line); }
.rp-pi-pack-price small { font-size: 13px; color: var(--pr-muted); }
.rp-pi-pack-price b { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 30px; color: var(--pr-ink); transition: color .3s; }
.rp-pi-pack-price span { font-size: 13px; color: var(--pr-muted); }
.rp-pi-pack:hover .rp-pi-pack-price b, .rp-pi-pack.is-featured .rp-pi-pack-price b { color: var(--pr-red); }
.rp-pi-pack ul { flex: 1; margin: 0 0 18px; padding: 0; list-style: none; }
.rp-pi-pack li { position: relative; margin: 0 0 9px; padding-right: 28px; font-size: 14px; line-height: 1.85; color: var(--pr-text); }
.rp-pi-pack li::before { content: "\f00c"; position: absolute; right: 0; top: 5px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-red-soft); color: var(--pr-red); font: normal 9px/1 FontAwesome; }
.rp-pi-pack-time { margin: 0 0 16px; font-size: 13px; color: var(--pr-muted); }
.rp-pi-pack-time i { margin-left: 6px; color: var(--pr-red); }
.rp-pi-pack .rp-pi-pack-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 1px solid var(--pr-line); font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 14px; color: var(--pr-ink) !important; text-decoration: none !important; transition: background-color .25s, color .25s, border-color .25s; }
.rp-pi-pack .rp-pi-pack-btn:hover { border-color: var(--pr-ink); }
.rp-pi-pack.is-featured .rp-pi-pack-btn { background: var(--pr-red); border-color: var(--pr-red); color: #fff !important; }
.rp-pi-pack.is-featured .rp-pi-pack-btn:hover { background: #e53d3d; }

/* the post text's own table uses .rp-pr-table */
.rp-pi-body .rp-pr-table { margin-top: 4px; }

/* deliverables */
.rp-pi-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rp-pi-files li { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--pr-line); border-radius: 18px; background: var(--pr-card); transition: border-color .3s; }
.rp-pi-files li:hover { border-color: rgba(251, 72, 72, .4); }
.rp-pi-files i { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--pr-soft); color: #8b8b93; font-size: 19px; transition: background-color .3s, color .3s; }
.rp-pi-files li:hover i { background: var(--pr-red); color: #fff; }
.rp-pi-files b { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 14.5px; color: var(--pr-ink); }
.rp-pi-files span { font-size: 12.5px; line-height: 1.8; color: var(--pr-muted); }

/* process */
.rp-pi-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: pis; }
.rp-pi-steps li { position: relative; padding: 24px 20px 20px; border: 1px solid var(--pr-line); border-radius: 22px; background: var(--pr-card); counter-increment: pis; transition: border-color .3s, transform .4s var(--pr-ease); }
.rp-pi-steps li:hover { border-color: rgba(251, 72, 72, .4); transform: translateY(-4px); }
.rp-pi-steps li::before { content: counter(pis, persian); position: absolute; left: 18px; top: 14px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-size: 32px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #d4d4da; transition: -webkit-text-stroke-color .3s; }
.rp-pi-steps li:hover::before { -webkit-text-stroke-color: var(--pr-red); }
.rp-pi-steps b { display: block; margin: 0 0 4px; padding-left: 36px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 15.5px; color: var(--pr-ink); }
.rp-pi-steps small { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--pr-red-soft); color: var(--pr-red); font-size: 12px; }
.rp-pi-steps p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--pr-muted); }

/* portfolio */
.rp-pi-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rp-pi-works a { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 22px; background: #151517; text-decoration: none !important; }
.rp-pi-works img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--pr-ease), transform .9s var(--pr-ease); }
.rp-pi-works a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 12, 14, .9), rgba(12, 12, 14, 0) 60%); }
.rp-pi-works span { position: absolute; z-index: 1; right: 18px; left: 18px; bottom: 14px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 14.5px; line-height: 1.7; color: #fff; }
.rp-pi-works a:hover img { filter: none; transform: scale(1.05); }

/* market comparison */
.rp-pi-market { padding: 28px 30px; border: 1px solid var(--pr-line); border-radius: 24px; background: var(--pr-card); }
.rp-pi-mrow { display: grid; grid-template-columns: 210px minmax(0, 1fr) 150px; gap: 16px; align-items: center; padding: 10px 0; }
.rp-pi-mrow > span { font-size: 14px; color: var(--pr-text); }
.rp-pi-mrow > b { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 14px; color: var(--pr-ink); text-align: left; white-space: nowrap; }
.rp-pi-bar { height: 10px; border-radius: 99px; background: var(--pr-soft); overflow: hidden; }
.rp-pi-bar i { display: block; width: var(--w, 30%); height: 100%; border-radius: inherit; background: #c4c4cc; }
.rp-pi-mrow.is-us > span, .rp-pi-mrow.is-us > b { color: var(--pr-red); font-family: 'IranSansBold', 'IranSans', sans-serif; }
.rp-pi-mrow.is-us .rp-pi-bar i { background: linear-gradient(90deg, #c62f2f, var(--pr-red)); }
.rp-pi-market-note { margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: var(--pr-muted); }

/* lists: factors / add-ons */
.rp-pi-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rp-pi-list li { position: relative; padding: 14px 16px 14px 16px; padding-right: 44px; border: 1px solid var(--pr-line); border-radius: 16px; background: var(--pr-card); font-size: 14px; line-height: 1.85; color: var(--pr-text); }
.rp-pi-list li::before { content: "\f067"; position: absolute; right: 14px; top: 15px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-red-soft); color: var(--pr-red); font: normal 9px/1 FontAwesome; }
.rp-pi-list li b { color: var(--pr-ink); font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; }

/* other prices */
.rp-pi-more { margin-top: 64px; }
.rp-pi-more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rp-pi-more-list #dle-content { display: contents; }
.rp-pi-mini { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--pr-line); border-radius: 18px; background: var(--pr-card); color: var(--pr-ink) !important; text-decoration: none !important; transition: border-color .3s, transform .4s var(--pr-ease); }
.rp-pi-mini:hover { border-color: rgba(251, 72, 72, .4); transform: translateY(-3px); }
.rp-pi-mini-ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--pr-soft); color: #8b8b93; font-size: 17px; transition: background-color .3s, color .3s; }
.rp-pi-mini-ico i::before { margin: 0 !important; }
.rp-pi-mini:hover .rp-pi-mini-ico { background: var(--pr-red); color: #fff; }
.rp-pi-mini-t { flex: 1; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 13.5px; line-height: 1.7; }
.rp-pi-mini-t small { display: block; font-family: 'IranSans', sans-serif; font-size: 12px; color: var(--pr-muted); }
.rp-pi-mini-go { color: #b4b4bb; transition: color .3s, transform .35s var(--pr-ease); }
.rp-pi-mini:hover .rp-pi-mini-go { color: var(--pr-red); transform: translateX(-3px); }

@media (max-width: 991px) {
	.rp-pi-hero { grid-template-columns: 1fr; padding: 28px 22px; }
	.rp-pi-hero-img { order: -1; aspect-ratio: 16 / 10; }
	.rp-pi-packs { grid-template-columns: 1fr; gap: 22px; }
	.rp-pi-steps { grid-template-columns: 1fr 1fr; }
	.rp-pi-works { grid-template-columns: 1fr 1fr; }
	.rp-pi-mrow { grid-template-columns: 1fr; gap: 6px; }
	.rp-pi-mrow > b { text-align: right; }
}
@media (max-width: 575px) {
	.rp-pi-steps, .rp-pi-works { grid-template-columns: 1fr; }
	.rp-pi-market { padding: 20px 16px; }
}

/* RTL: bars fill from the right */
.rp-pi-bar i { margin-left: auto; }

/* default text styling for item pages whose text is not rewritten yet (old editor HTML) */
.rp-pi-body { margin-top: 48px; font-size: 15.5px; line-height: 2.1; color: var(--pr-text); }
.rp-pi-body > h2, .rp-pi-body > h3, .rp-pi-body > div > h2, .rp-pi-body > div > h3 { margin: 34px 0 10px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 20px; line-height: 1.7; color: var(--pr-ink); }
.rp-pi-body > p { margin: 0 0 12px; }
.rp-pi-body strong, .rp-pi-body b { color: var(--pr-ink); font-weight: normal; font-family: 'IranSansBold', 'IranSans', sans-serif; }
.rp-pi-body > ul, .rp-pi-body > div > ul { margin: 0 0 16px; padding: 0; list-style: none; }
.rp-pi-body > ul > li, .rp-pi-body > div > ul > li { position: relative; margin: 0 0 8px; padding-right: 30px; }
.rp-pi-body > ul > li::before, .rp-pi-body > div > ul > li::before { content: "\f00c"; position: absolute; right: 0; top: 7px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-red-soft); color: var(--pr-red); font: normal 9px/1 FontAwesome; }
.rp-pi-body li p, .rp-pi-body li h3 { display: inline; margin: 0; font: inherit; color: inherit; }
.rp-pi-body li br { display: none; }
.rp-pi-body .quote_block, .rp-pi-body blockquote { margin: 18px 0; padding: 16px 20px; border-right: 3px solid var(--pr-red); border-radius: 14px; background: var(--pr-red-soft); font-size: 14px; }
.rp-pi-body [style*="color"] { color: inherit !important; }

/* package comparison table (ticks) */
.rp-pi-compare td { text-align: center; color: var(--pr-muted); }
.rp-pi-compare thead th:not(:first-child) { text-align: center; }
.rp-pi-compare td .fa-check { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--pr-red-soft); color: var(--pr-red); font-size: 11px; }
.rp-pi-compare tbody tr:last-child { background: var(--pr-soft); }
@media (max-width: 640px) { .rp-pi-compare thead { display: table-header-group; } .rp-pi-compare, .rp-pi-compare tbody { display: table; width: 100%; } .rp-pi-compare tr { display: table-row; padding: 0; } .rp-pi-compare th, .rp-pi-compare td { display: table-cell; width: auto; padding: 10px 8px; border-bottom: 1px solid var(--pr-line); font-size: 13px; white-space: normal; } }
@media (max-width: 640px) { .rp-pi-compare { display: table; width: 100%; table-layout: fixed; } .rp-pi-compare tbody { display: table-row-group; } .rp-pi-compare th:first-child { width: 42%; } }

/* two packages: two columns */
.rp-pi-packs:has(> .rp-pi-pack:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* two packages on wide screens: each list in two columns so the cards stay compact */
@media (min-width: 1200px) { .rp-pi-packs:has(> .rp-pi-pack:nth-child(2):last-child) > .rp-pi-pack > ul { columns: 2; column-gap: 28px; } .rp-pi-packs:has(> .rp-pi-pack:nth-child(2):last-child) li { break-inside: avoid; } }
@media (max-width: 991px) { .rp-pi-packs:has(> .rp-pi-pack:nth-child(2):last-child) { grid-template-columns: 1fr; } }

/* one package: a single centred card */
.rp-pi-packs:has(> .rp-pi-pack:only-child) { grid-template-columns: minmax(0, 1fr); }
/* one package (website pages): a full-width card; name, price, time and button on one side, the list in two columns on the other */
@media (min-width: 992px) {
	.rp-pi-pack:only-child { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "name list" "for list" "price list" "time list" "btn list"; column-gap: 48px; padding-top: 34px; padding-bottom: 34px; }
	.rp-pi-pack:only-child > h3 { grid-area: name; }
	.rp-pi-pack:only-child > .rp-pi-pack-for { grid-area: for; }
	.rp-pi-pack:only-child > .rp-pi-pack-price { grid-area: price; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
	.rp-pi-pack:only-child > .rp-pi-pack-time { grid-area: time; align-self: end; margin-top: 18px; }
	.rp-pi-pack:only-child > .rp-pi-pack-btn { grid-area: btn; }
	.rp-pi-pack:only-child > ul { grid-area: list; align-self: center; margin: 0; padding-right: 48px; border-right: 1px dashed var(--pr-line); columns: 2; column-gap: 32px; }
	.rp-pi-pack:only-child li { break-inside: avoid; }
}

/* full rows everywhere: no single card left alone on the last row.
   Deliverables and bullet lists: 3 per row (6-column grid); 1 left over = full width, 2 left over = half each, 4 items = 2 x 2. */
@media (min-width: 992px) {
	.rp-pi-files, .rp-pi-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.rp-pi-files > li, .rp-pi-list > li { grid-column: span 2; }
	.rp-pi-files > li:last-child:nth-child(3n+1), .rp-pi-list > li:last-child:nth-child(3n+1) { grid-column: span 6; }
	.rp-pi-files > li:nth-last-child(2):nth-child(3n+1), .rp-pi-files > li:last-child:nth-child(3n+2),
	.rp-pi-list > li:nth-last-child(2):nth-child(3n+1), .rp-pi-list > li:last-child:nth-child(3n+2) { grid-column: span 3; }
	.rp-pi-files > li:first-child:nth-last-child(4), .rp-pi-files > li:first-child:nth-last-child(4) ~ li,
	.rp-pi-list > li:first-child:nth-last-child(4), .rp-pi-list > li:first-child:nth-last-child(4) ~ li { grid-column: span 3; }
}
@media (min-width: 600px) and (max-width: 991px) {
	.rp-pi-files, .rp-pi-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-pi-files > li:last-child:nth-child(odd), .rp-pi-list > li:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 599px) {
	.rp-pi-files, .rp-pi-list { grid-template-columns: minmax(0, 1fr); }
}
/* «other prices» links: 4 per row on wide screens, 3 on laptops/tablets, 2 on small tablets; leftovers share the last row */
@media (min-width: 1200px) {
	.rp-pi-more-list { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.rp-pi-more-list .rp-pi-mini { grid-column: span 3; }
	.rp-pi-more-list .rp-pi-mini:last-child:nth-child(4n+1) { grid-column: span 12; }
	.rp-pi-more-list .rp-pi-mini:nth-last-child(2):nth-child(4n+1), .rp-pi-more-list .rp-pi-mini:last-child:nth-child(4n+2) { grid-column: span 6; }
	.rp-pi-more-list .rp-pi-mini:nth-last-child(3):nth-child(4n+1), .rp-pi-more-list .rp-pi-mini:nth-last-child(2):nth-child(4n+2), .rp-pi-more-list .rp-pi-mini:last-child:nth-child(4n+3) { grid-column: span 4; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.rp-pi-more-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.rp-pi-more-list .rp-pi-mini { grid-column: span 2; }
	.rp-pi-more-list .rp-pi-mini:last-child:nth-child(3n+1) { grid-column: span 6; }
	.rp-pi-more-list .rp-pi-mini:nth-last-child(2):nth-child(3n+1), .rp-pi-more-list .rp-pi-mini:last-child:nth-child(3n+2) { grid-column: span 3; }
}
@media (min-width: 600px) and (max-width: 767px) {
	.rp-pi-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-pi-more-list .rp-pi-mini:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 599px) {
	.rp-pi-more-list { grid-template-columns: minmax(0, 1fr); }
}

/* price cards in one row line up: title, price box, list and buttons each share one row height across the cards
   (CSS subgrid). A two-line price ("… / هر صفحه") or a two-line title no longer pushes one card out of line. */
.rp-prc-price span { white-space: nowrap; }
@supports (grid-template-rows: subgrid) {
	.rp-pr-grid { row-gap: 0; }
	.rp-prc-body { display: grid; grid-template-rows: auto auto 1fr auto; }
	.rp-pr-grid .rp-prc { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; margin-bottom: 16px; }
	.rp-pr-grid .rp-prc-body { grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
	.rp-prc-title { grid-row: 1; align-self: start; }
	.rp-prc-price { grid-row: 2; align-self: stretch; align-content: center; }
	.rp-prc-inc { grid-row: 3; }
	.rp-prc-actions { grid-row: 4; align-self: end; }
}

/* CMS feature table on the website price pages: group headings in red, no highlighted last row */
.rp-pi-features tbody tr:last-child { background: none; }
.rp-pi-features tr:has(> td:empty) > th { padding-top: 22px; font-family: 'IranSansBold', 'IranSans', sans-serif; color: var(--pr-red); }
.rp-pi-features tr:has(> td:empty) > th b { color: inherit; font-family: inherit; font-weight: normal; }
.rp-pi-features td small { font-size: 12px; line-height: 1.6; }
