/**
 * صفحه تکی «درمان» — موبایل‌محور (Mobile-first).
 *
 * قاعده‌ی این فایل: استایل‌های پایه = چیدمان موبایل. media queryها فقط چیزی
 * «اضافه» می‌کنند (min-width)، هیچ‌وقت چیزی را از موبایل «پس نمی‌گیرند».
 * نقاط شکست: ۶۴۰ (تبلت کوچک) · ۹۰۰ (دسکتاپ) · ۱۰۰۰ (سایدبار چسبان).
 * از متغیرهای main.css استفاده می‌شود؛ رنگ/فونت جدید تعریف نمی‌کند.
 *
 * فهرست: ۱ پایه · ۲ هیرو · ۳ فرم · ۴ ویدیو · ۵ اعتماد · ۶ ناوبری · ۷ سکشن‌ها
 *        ۸ پکیج · ۹ گالری · ۱۰ اسکرولر · ۱۱ محتوا+سایدبار · ۱۲ نظرات · ۱۳ لایت‌باکس
 */

/* ================= ۱. پایه ================= */
.tp {
	--tp-top: 64px; /* ارتفاع هدر چسبان؛ JS مقدار واقعی را جایگزین می‌کند. */
	--tp-pad: clamp(16px, 4vw, 28px);
	--tp-radius: 20px;
	--tp-glass: rgba(255, 255, 255, .84);
	--tp-glass-border: rgba(255, 255, 255, .75);
	--tp-navy: #0a1e2c;
	overflow-x: clip;
}
.tp-narrow { max-width: 820px; margin-inline: auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ================= ۲. هیرو ================= */
.tp-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	padding-block: 22px 58px;
	border-radius: 0 0 26px 26px;
	overflow: hidden;
}
.tp-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(70% 90% at 90% -10%, rgba(47, 190, 234, .5) 0%, transparent 60%),
		radial-gradient(60% 70% at -5% 105%, rgba(44, 110, 147, .65) 0%, transparent 62%),
		linear-gradient(155deg, #0a1e2c 0%, #123a52 52%, #1b4a63 100%);
}
.tp-hero__bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.tp-hero__bg::after {
	content: "";
	position: absolute;
	top: -150px;
	inset-inline-end: -130px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 0 0 42px rgba(255, 255, 255, .03), 0 0 0 92px rgba(255, 255, 255, .02);
}

.tp-hero__grid { display: grid; gap: 18px; }
.tp-hero__copy { min-width: 0; }

.tp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 12px;
	margin-bottom: 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: #d7f3fb;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--radius-pill);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.tp-eyebrow svg { color: var(--sky); flex-shrink: 0; }

.tp-hero__title {
	margin: 0 0 10px;
	font-size: clamp(24px, 7vw, 44px);
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #fff;
	text-wrap: balance;
}
.tp-hero__intro {
	margin: 0 0 14px;
	max-width: 62ch;
	font-size: 14.5px;
	line-height: 1.95;
	color: rgba(255, 255, 255, .86);
}

.tp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tp-facts__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .92);
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--radius-pill);
}
.tp-facts__item svg { color: var(--sky); flex-shrink: 0; }
.tp-facts__item strong { color: #fff; font-weight: 800; }

/* ================= ۳. فرم کوتاه ================= */
.tp-form-card {
	padding: 16px;
	color: var(--ink);
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: var(--tp-radius);
	box-shadow: 0 18px 44px rgba(3, 14, 22, .32);
}
.tp-form-card__title { margin: 0 0 2px; font-size: 16px; font-weight: 800; color: var(--ink); }
.tp-form-card__sub { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-soft); }

.tp-form__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink-soft);
}
.tp-form__row { display: grid; gap: 10px; }
.tp-form__input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	font: inherit;
	font-size: 16px; /* ۱۶ پیکسل: جلوگیری از زوم خودکار iOS هنگام فوکوس. */
	text-align: start;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--border-strong);
	border-radius: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tp-form__input::placeholder { color: #8ea1ad; font-size: 14px; }
.tp-form__input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 190, 234, .18); }
.tp-form__submit { justify-content: center; height: 50px; padding-inline: 22px; font-size: 15px; white-space: nowrap; }
.tp-form__hint {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 11.5px;
	color: var(--ink-soft);
}
.tp-form__hint svg { color: var(--mint); flex-shrink: 0; }

.tp-form__pkg {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 10px 0 0;
	padding: 7px 8px 7px 12px;
	font-size: 12.5px;
	color: var(--sky-deep);
	background: var(--sky-pale);
	border-radius: 12px;
}
.tp-form__pkg[hidden] { display: none; }
.tp-form__pkg > span { flex: 1; min-width: 0; }
.tp-form__pkg-clear {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	color: var(--sky-deep);
	background: rgba(255, 255, 255, .8);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

/* وضعیت موفق/خطا با CSS خالص: فقط فرمی که کاربر پر کرده (لنگر = :target) نتیجه را نشان می‌دهد. */
.tp-form__notice { display: none; }
.tp-form__notice--ok {
	align-items: center;
	gap: 10px;
	padding: 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--mint-deep);
	background: var(--mint-pale);
	border-radius: 14px;
}
.tp-form__notice--ok svg { flex-shrink: 0; }
.tp-form__notice--err { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #b3414b; }
.tp-form.is-sent:target .tp-form__notice--ok { display: flex; }
.tp-form.is-sent:target .tp-form__fields { display: none; }
.tp-form.has-error:target .tp-form__notice--err { display: block; }
.tp-form.has-error:target .tp-form__input { border-color: #c85a63; }

/* تله‌ی ربات: در جای خودش می‌ماند ولی برای انسان نامرئی است (بدون پرتاب به بیرون از صفحه). */
/* پرش به لنگر فرم (بعد از ثبت) نباید زیر هدر چسبان برود؛ حاشیه شامل عنوان کارت بالای فرم هم هست. */
.tp-form { scroll-margin-top: calc(var(--tp-top) + 110px); }
.tp-form__fields { position: relative; }
.tp-hp { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ================= ۴. ویدیو ================= */
.tp-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tp-navy);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: var(--tp-radius);
	box-shadow: 0 24px 56px rgba(3, 14, 22, .42);
}
.tp-video iframe,
.tp-video__file { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.tp-video__facade { position: absolute; inset: 0; display: block; color: #fff; }
.tp-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-video__facade::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 20, 30, .65), rgba(6, 20, 30, .12) 55%);
}
.tp-video__play {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: auto;
	display: grid;
	place-items: center;
	width: 68px; height: 68px;
	color: var(--sky-deep);
	background: rgba(255, 255, 255, .94);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .18);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tp-video__play svg { margin-inline-start: -3px; }
.tp-video__facade:hover .tp-video__play,
.tp-video__facade:focus-visible .tp-video__play { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .22); }
.tp-video__facade:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.tp-video__label {
	position: absolute;
	inset-inline-start: 12px;
	bottom: 12px;
	z-index: 1;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: var(--radius-pill);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.tp-video--art { display: grid; place-items: center; color: rgba(255, 255, 255, .5); background: linear-gradient(135deg, #123a52, #1b4a63); }

/* ================= ۵. نشان‌های اعتماد ================= */
.tp-trust { position: relative; z-index: 2; margin-top: -32px; }
.tp-trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-trust__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	background: var(--tp-glass);
	border: 1px solid var(--tp-glass-border);
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.tp-trust__icon {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	height: 36px;
	color: var(--sky-deep);
	background: var(--sky-pale);
	border-radius: 50%;
}
.tp-trust__text { font-size: 12.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }

/* ================= ۶. ناوبری چسبان ================= */
.tp-nav {
	position: sticky;
	top: var(--tp-top);
	z-index: 30;
	margin-top: 16px;
	background: rgba(255, 255, 255, .82);
	border-block: 1px solid var(--tp-glass-border);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.tp-nav__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 8px 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tp-nav__list::-webkit-scrollbar { display: none; }
.tp-nav__link {
	display: block;
	padding: 8px 15px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--ink-soft);
	border-radius: var(--radius-pill);
	transition: background-color .15s ease, color .15s ease;
}
.tp-nav__link:hover { color: var(--ink); background: var(--sky-pale); }
.tp-nav__link.is-active { color: #fff; background: var(--sky-deep); }

/* ================= ۷. سکشن‌ها ================= */
.tp-section { padding-block: 26px; scroll-margin-top: calc(var(--tp-top) + 60px); }
.tp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tp-section__head--center { justify-content: center; text-align: center; }
.tp-section__title { margin: 0; font-size: clamp(19px, 5vw, 26px); line-height: 1.4; font-weight: 800; color: var(--ink); }
.tp-section__sub { margin: 3px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.tp-section__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	padding: 6px 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--sky-deep);
}
html[dir="rtl"] .tp-section__more svg { transform: scaleX(-1); }

/* ================= ۸. پکیج‌ها ================= */
.tp-pkgs { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tp-pkg {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--glass-bg-strong);
	border: 1px solid var(--tp-glass-border);
	border-radius: var(--tp-radius);
	box-shadow: var(--shadow-sm);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: transform .18s ease, box-shadow .18s ease;
}
.tp-pkg:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tp-pkg--featured { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky), var(--shadow-md); }
.tp-pkg__badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 2;
	padding: 4px 12px;
	font-size: 11.5px;
	font-weight: 800;
	color: #fff;
	background: var(--sky-deep);
	border-radius: var(--radius-pill);
}
.tp-pkg--featured .tp-pkg__badge { background: linear-gradient(135deg, #1797c4, #123a52); }
.tp-pkg__media { aspect-ratio: 16 / 9; background: var(--surface-alt); }
.tp-pkg__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-pkg__body { flex: 1; padding: 16px 16px 6px; }
.tp-pkg:has(.tp-pkg__badge):not(:has(.tp-pkg__media)) .tp-pkg__body { padding-top: 46px; } /* جا برای نشان شناور، فقط وقتی نشان هست و تصویر نیست */
.tp-pkg__title { margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 800; }
.tp-pkg__title a { color: var(--ink); }
.tp-pkg__title a:hover { color: var(--sky-deep); }
.tp-pkg__duration {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 4px 11px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--sky-deep);
	background: var(--sky-pale);
	border-radius: var(--radius-pill);
}
.tp-pkg__list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tp-pkg__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.tp-pkg__list svg {
	flex: 0 0 22px;
	height: 22px;
	padding: 3px;
	color: var(--mint-deep);
	background: var(--mint-pale);
	border-radius: 50%;
}
.tp-pkg__more { padding-inline-start: 30px; font-size: 12.5px !important; color: var(--ink-soft) !important; }
.tp-pkg__foot {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 16px;
	margin-top: auto;
	border-top: 1px dashed var(--border-strong);
}
.tp-pkg__price { min-width: 0; font-size: 12.5px; color: var(--ink-soft); }
.tp-pkg__price strong { display: block; font-size: 15px; line-height: 1.5; font-weight: 800; color: var(--sky-deep); }
.tp-pkg__cta { min-height: 44px; padding: 10px 18px; font-size: 13.5px; white-space: nowrap; }

/* ================= ۹. گالری (اسلایدر افقی موبایل / موزاییک دسکتاپ) ================= */
.tp-gallery {
	--tp-g-gap: 10px;
	display: flex;
	gap: var(--tp-g-gap);
	margin-inline: calc(-1 * var(--tp-pad));
	padding-inline: var(--tp-pad);
	padding-bottom: 6px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--tp-pad);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tp-gallery::-webkit-scrollbar { display: none; }
.tp-gallery__item {
	position: relative;
	display: block;
	flex: 0 0 82%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	scroll-snap-align: start;
	background: var(--surface-alt);
	border-radius: 18px;
	box-shadow: var(--shadow-sm);
	-webkit-tap-highlight-color: transparent;
}
.tp-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tp-gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 30, 44, .4), transparent 55%);
	opacity: 0;
	transition: opacity .2s ease;
}
.tp-gallery__item:hover .tp-gallery__img { transform: scale(1.05); }
.tp-gallery__item:hover::after,
.tp-gallery__item:focus-visible::after { opacity: 1; }
.tp-gallery__item:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.tp-gallery__more {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: none;
	place-items: center;
	font-size: 30px;
	font-weight: 800;
	color: #fff;
	background: rgba(10, 30, 44, .62);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

/* ================= ۱۰. اسکرولر پزشکان/مراکز (موبایل: افقی اسنپ) ================= */
.tp-scroller {
	display: flex;
	gap: 12px;
	margin-inline: calc(-1 * var(--tp-pad));
	padding: 2px var(--tp-pad) 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--tp-pad);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tp-scroller::-webkit-scrollbar { display: none; }
.tp-scroller__item { display: flex; flex: 0 0 min(78vw, 290px); scroll-snap-align: start; }
.tp-scroller__item > * { flex: 1; min-width: 0; }

/* ================= ۱۱. محتوا + سایدبار ================= */
.tp-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tp-prose {
	min-width: 0;
	padding: 18px;
	background: var(--tp-glass);
	border: 1px solid var(--tp-glass-border);
	border-radius: 22px;
	box-shadow: var(--shadow-sm);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.tp-prose > .tp-section__title { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.tp-prose__body { font-size: 15px; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.tp-prose__body > :first-child { margin-top: 0; }
.tp-prose__body > :last-child { margin-bottom: 0; }
.tp-prose__body p { margin: 0 0 14px; }
.tp-prose__body h2, .tp-prose__body h3, .tp-prose__body h4 { margin: 26px 0 10px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.tp-prose__body h2 { font-size: 20px; }
.tp-prose__body h3 { font-size: 17.5px; }
.tp-prose__body h4 { font-size: 16px; }
.tp-prose__body ul, .tp-prose__body ol { margin: 0 0 14px; padding-inline-start: 24px; }
.tp-prose__body li { margin-bottom: 6px; }
.tp-prose__body a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 3px; }
.tp-prose__body img, .tp-prose__body video { max-width: 100%; height: auto; border-radius: 14px; }
.tp-prose__body figure { margin: 0 0 16px; }
.tp-prose__body figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.tp-prose__body iframe { max-width: 100%; border: 0; border-radius: 14px; }
.tp-prose__body blockquote {
	margin: 18px 0;
	padding: 14px 16px;
	color: var(--ink);
	background: var(--sky-pale);
	border-inline-start: 4px solid var(--sky);
	border-radius: 0 14px 14px 0;
}
html[dir="rtl"] .tp-prose__body blockquote { border-radius: 14px 0 0 14px; }
.tp-prose__body table { display: block; max-width: 100%; margin-bottom: 16px; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.tp-prose__body th, .tp-prose__body td { padding: 9px 12px; border: 1px solid var(--border); white-space: nowrap; }
.tp-prose__body th { background: var(--sky-pale); }
.tp-prose__body hr { margin: 24px 0; border: 0; border-top: 1px solid var(--border); }

.tp-side__card {
	padding: 16px;
	background: var(--glass-bg-strong);
	border: 1px solid var(--tp-glass-border);
	border-radius: 22px;
	box-shadow: var(--shadow-md);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.tp-side__title { margin: 0 0 12px; font-size: 16.5px; font-weight: 800; }
.tp-side__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.tp-side__facts > div { padding: 9px 11px; background: var(--sky-pale); border-radius: 12px; }
.tp-side__facts dt { font-size: 11.5px; color: var(--ink-soft); }
.tp-side__facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 800; color: var(--sky-deep); }
.tp-side__trust { display: grid; gap: 9px; margin: 14px 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--border-strong); }
.tp-side__trust li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.7; }
.tp-side__trust svg { flex: 0 0 20px; height: 20px; padding: 3px; color: var(--mint-deep); background: var(--mint-pale); border-radius: 50%; }
.tp-side__wa { width: 100%; justify-content: center; }
.tp-side .tp-form__input { height: 48px; }
.tp-side .tp-form__row { grid-template-columns: 1fr; } /* ستون ۳۵۰ پیکسلی جای ورودی + دکمه‌ی کنار هم ندارد */

/* ================= ۱۲. نظرات ================= */
.tp-comments { display: grid; gap: 16px; }
.tp-comments__head .tp-section__title { display: flex; align-items: center; gap: 10px; }
.tp-comments__count {
	display: inline-grid;
	place-items: center;
	min-width: 28px;
	height: 28px;
	padding-inline: 8px;
	font-size: 13px;
	font-weight: 800;
	color: var(--sky-deep);
	background: var(--sky-pale);
	border-radius: var(--radius-pill);
}

.tp-rating-sum {
	display: grid;
	gap: 16px;
	padding: 16px;
	background: var(--tp-glass);
	border: 1px solid var(--tp-glass-border);
	border-radius: var(--tp-radius);
	box-shadow: var(--shadow-sm);
}
.tp-rating-sum__score { display: grid; justify-items: center; gap: 4px; text-align: center; }
.tp-rating-sum__score strong { font-size: 44px; line-height: 1; font-weight: 800; color: var(--sky-deep); }
.tp-rating-sum__score > span { font-size: 12.5px; color: var(--ink-soft); }
.tp-rating-sum__bars { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tp-rating-sum__bars li { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.tp-rating-sum__label { display: inline-flex; align-items: center; gap: 3px; }
.tp-rating-sum__label svg { color: #f0b429; }
.tp-rating-sum__track { height: 8px; overflow: hidden; background: var(--border); border-radius: var(--radius-pill); }
.tp-rating-sum__fill { display: block; height: 100%; background: linear-gradient(90deg, #f0b429, #f59e0b); border-radius: inherit; }
.tp-rating-sum__pct { text-align: end; }

.tp-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.tp-stars__s { display: inline-flex; color: #d3dde3; }
.tp-stars__s svg { fill: currentColor; stroke: none; }
.tp-stars__s.is-on { color: #f0b429; }

.tp-comments__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-comment__inner {
	padding: 14px;
	background: var(--tp-glass);
	border: 1px solid var(--tp-glass-border);
	border-radius: 18px;
	box-shadow: var(--shadow-sm);
}
.tp-comment__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tp-comment__avatar img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.tp-comment__who { display: grid; flex: 1; min-width: 0; }
.tp-comment__name { font-size: 14.5px; font-weight: 800; }
.tp-comment__date { font-size: 12px; color: var(--ink-soft); }
.tp-comment__pending { margin: 0 0 8px; padding: 7px 11px; font-size: 12.5px; color: #7a5a00; background: #fff4d6; border-radius: 10px; }
.tp-comment__text { font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.tp-comment__text p { margin: 0 0 8px; }
.tp-comment__text p:last-child { margin-bottom: 0; }
.tp-comments__empty { margin: 0; padding: 18px; font-size: 14px; text-align: center; color: var(--ink-soft); background: var(--tp-glass); border: 1px dashed var(--border-strong); border-radius: var(--tp-radius); }
.tp-comments__admin-note { margin: 0; padding: 12px 14px; font-size: 13px; color: #7a5a00; background: #fff4d6; border-radius: 12px; }

.tp-comments .comments-pagination, .tp-comments .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tp-comments .page-numbers { padding: 6px 12px; font-size: 13px; color: var(--ink); background: var(--tp-glass); border: 1px solid var(--tp-glass-border); border-radius: 10px; }
.tp-comments .page-numbers.current { color: #fff; background: var(--sky-deep); }

.tp-comment-form {
	padding: 16px;
	background: var(--glass-bg-strong);
	border: 1px solid var(--tp-glass-border);
	border-radius: 22px;
	box-shadow: var(--shadow-md);
}
.tp-comment-form__title { margin: 0 0 14px; font-size: 16.5px; line-height: 1.6; font-weight: 800; }
.tp-comment-form__form { display: grid; gap: 12px; }
.tp-comment-form__form p { margin: 0; }
.tp-comment-form__form label:not(.tp-rate label) { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.tp-comment-form__form .required { color: #c85a63; }
.tp-comment-form__form input[type="text"],
.tp-comment-form__form input[type="email"],
.tp-comment-form__form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: #fff;
	border: 1.5px solid var(--border-strong);
	border-radius: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tp-comment-form__form textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.tp-comment-form__form input:focus,
.tp-comment-form__form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 190, 234, .18); }
.tp-comment-form__form .form-submit .sinaben-btn { width: 100%; justify-content: center; height: 50px; }

/* ستاره‌های امتیاز (ورودی): ترتیب DOM = ۵ تا ۱؛ row-reverse باعث می‌شود ۱ در ابتدای خط (راست در RTL) باشد. */
.tp-rate { margin: 0 0 4px; padding: 0; border: 0; }
.tp-rate legend { margin-bottom: 6px; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.tp-rate__stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.tp-rate input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tp-rate label { display: inline-flex; padding: 3px; line-height: 0; color: #cbd8df; cursor: pointer; border-radius: 8px; transition: color .12s ease, transform .12s ease; }
.tp-rate label svg { fill: currentColor; stroke: none; }
.tp-rate input:checked ~ label,
.tp-rate label:hover,
.tp-rate label:hover ~ label { color: #f0b429; }
.tp-rate label:hover { transform: scale(1.12); }
.tp-rate input:focus-visible + label { outline: 2px solid var(--sky); outline-offset: 1px; }

/* ================= ۱۳. لایت‌باکس ================= */
body.tp-lb-open { overflow: hidden; padding-inline-end: var(--tp-sbw, 0px); }
.tp-lb {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto; /* minmax(0,…): ردیف تصویر اجازه‌ی کوچک‌شدن دارد؛ با 1fr ساده، عکس عمودی از صفحه بیرون می‌زد. */
	height: 100vh;
	height: 100dvh; /* موبایل: ارتفاع واقعی مرئی، نه ارتفاع با نوار آدرس مخفی */
	color: #fff;
	background: rgba(6, 16, 24, .94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .2s ease;
	touch-action: pan-y pinch-zoom;
}
.tp-lb[hidden] { display: none; }
.tp-lb.is-open { opacity: 1; }
.tp-lb__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.tp-lb__counter { padding: 5px 13px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .12); border-radius: var(--radius-pill); }
.tp-lb__btn {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.tp-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.tp-lb__btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.tp-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 10px; overflow: hidden; }
.tp-lb__figure { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; min-height: 0; min-width: 0; }
.tp-lb__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	min-height: 0;
	object-fit: contain;
	border-radius: 10px;
	opacity: 0;
	transform: scale(.98);
	transition: opacity .2s ease, transform .2s ease;
}
.tp-lb.is-loaded .tp-lb__img { opacity: 1; transform: none; }
.tp-lb__spinner {
	position: absolute;
	width: 38px; height: 38px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tp-spin .8s linear infinite;
}
.tp-lb.is-loaded .tp-lb__spinner { display: none; }
.tp-lb__error { position: absolute; display: none; font-size: 14px; color: #ffd0d3; }
.tp-lb.is-error .tp-lb__error { display: block; }
.tp-lb.is-error .tp-lb__spinner { display: none; }
.tp-lb__nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.tp-lb__prev { inset-inline-start: 8px; }
.tp-lb__next { inset-inline-end: 8px; }
.tp-lb__prev svg, .tp-lb__next svg { transition: transform 0s; }
.tp-lb:not(.is-rtl) .tp-lb__prev svg { transform: scaleX(-1); }
.tp-lb.is-rtl .tp-lb__next svg { transform: scaleX(-1); }
.tp-lb.is-single .tp-lb__nav, .tp-lb.is-single .tp-lb__counter { display: none; }
.tp-lb__caption { min-height: 24px; padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); font-size: 13.5px; line-height: 1.8; text-align: center; color: rgba(255, 255, 255, .88); }
.tp-lb__caption:empty { min-height: 0; padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }

@keyframes tp-spin { to { transform: rotate(360deg); } }
@keyframes tp-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } }
.tp-video__play { animation: tp-pulse 2.2s ease-out infinite; }

/* ================= نقطه‌ی شکست ۶۴۰ ================= */
@media (min-width: 640px) {
	.tp-form__row { grid-template-columns: 1fr auto; }
	.tp-trust__list { gap: 12px; }
	.tp-pkgs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
	.tp-pkgs:has(> :only-child) { max-width: 440px; margin-inline: auto; }
	.tp-rating-sum { grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding: 20px 24px; }
	.tp-rating-sum__score { padding-inline-end: 28px; border-inline-end: 1px solid var(--border); }
	.tp-scroller__item { flex-basis: 300px; }
	.tp-gallery__item { flex-basis: 56%; }
}

/* ================= نقطه‌ی شکست ۹۰۰ (دسکتاپ) ================= */
@media (min-width: 900px) {
	.tp-hero { padding-block: 44px 78px; border-radius: 0 0 36px 36px; }
	.tp-hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
		grid-template-areas: "copy media" "form media";
		align-content: center;
		column-gap: 48px;
		row-gap: 22px;
	}
	.tp-hero__copy { grid-area: copy; align-self: end; }
	.tp-hero__form { grid-area: form; align-self: start; }
	.tp-hero__media { grid-area: media; align-self: center; }
	.tp-hero__intro { font-size: 16px; }
	.tp-form-card { padding: 20px; }
	.tp-form__row { grid-template-columns: 1fr auto; }

	.tp-trust { margin-top: -40px; }
	.tp-trust__list { grid-template-columns: repeat(4, 1fr); }
	.tp-trust__item { padding: 14px 16px; }
	.tp-trust__text { font-size: 13.5px; }

	.tp-nav { margin-top: 22px; }
	.tp-nav__list { justify-content: center; }

	.tp-section { padding-block: 44px; scroll-margin-top: calc(var(--tp-top) + 66px); }
	.tp-section__head { margin-bottom: 22px; }
	.tp-section__sub { font-size: 14px; }

	/* گالری: موزاییک — یک بزرگ ۲×۲ + چهار کوچک در شبکه‌ی ۴×۲؛ تصاویر بعدی فقط در لایت‌باکس. */
	.tp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 210px); gap: 12px; margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
	.tp-gallery__item { flex: none; aspect-ratio: auto; border-radius: 20px; }
	.tp-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
	.tp-gallery__item.is-extra { display: none; }
	.tp-gallery__more { display: grid; }
	.tp-gallery[data-count="1"] { grid-template-columns: minmax(0, 720px); grid-auto-rows: auto; justify-content: center; }
	.tp-gallery[data-count="1"] .tp-gallery__item { aspect-ratio: 16 / 9; }
	.tp-gallery[data-count="2"], .tp-gallery[data-count="3"], .tp-gallery[data-count="4"] { grid-auto-rows: auto; }
	.tp-gallery[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
	.tp-gallery[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
	.tp-gallery[data-count="2"] .tp-gallery__item, .tp-gallery[data-count="3"] .tp-gallery__item, .tp-gallery[data-count="4"] .tp-gallery__item { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }

	.tp-scroller { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 48px) / 4)), 1fr)); gap: 16px; margin-inline: 0; padding: 0; overflow: visible; } /* سقف ۴ ستون */
	.tp-scroller__item { flex: none; }

	.tp-prose { padding: 32px 36px; }
	.tp-prose__body { font-size: 16px; }
	.tp-prose__body h2 { font-size: 23px; }
	.tp-prose__body h3 { font-size: 19px; }

	.tp-comment-form { padding: 26px 28px; }
	.tp-comment-form__form { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
	.tp-comment-form__form .tp-rate, .tp-comment-form__form .comment-form-comment, .tp-comment-form__form .form-submit { grid-column: 1 / -1; }
	.tp-comment-form__form .form-submit .sinaben-btn { width: auto; min-width: 200px; }
}

/* ================= نقطه‌ی شکست ۱۰۰۰ (سایدبار چسبان) ================= */
@media (min-width: 1000px) {
	.tp-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
	.tp-side { align-self: stretch; }
	.tp-side__card {
		position: sticky;
		top: calc(var(--tp-top) + 76px);
		max-height: calc(100dvh - var(--tp-top) - 100px);
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

/* ================= دسترسی‌پذیری: کاهش حرکت ================= */
@media (prefers-reduced-motion: reduce) {
	.tp *, .tp-lb, .tp-lb * { animation: none !important; transition-duration: .001ms !important; }
	.tp-pkg:hover { transform: none; }
}
