/* ==========================================================================
   قالب یار ایران — استایل اصلی (راست‌به‌چپ)
   فونت: اگر فایل Vazirmatn.woff2 را در assets/fonts بگذارید، خودکار استفاده می‌شود.
   ========================================================================== */

/* فونت وزیرمتن: اگر فایل assets/fonts/Vazirmatn.woff2 وجود داشته باشد، قالب خودش @font-face را اضافه می‌کند. */

:root {
	--hm-primary: #0f6d68;
	--hm-accent: #c98a14;
	--hm-ink: #12211f;
	--hm-muted: #55655f;
	--hm-paper: #f3f6f5;
	--hm-card: #ffffff;
	--hm-line: #d8e1de;
	--hm-tint: #e7f0ee;
	--hm-danger: #b3261e;
	--hm-ok: #17753c;
	--hm-radius: 14px;
	--hm-font: "Vazirmatn", "Shabnam", "IRANSans", Tahoma, "Segoe UI", sans-serif;
	--hm-wrap: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--hm-paper);
	color: var(--hm-ink);
	font-family: var(--hm-font);
	font-size: 1rem;
	line-height: 1.95;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hm-primary); text-underline-offset: 3px; }
a:hover { color: var(--hm-ink); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: 2px; border-radius: 4px; }

.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;
}
.hm-skip {
	position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
	background: var(--hm-ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.hm-skip:focus { top: 8px; color: #fff; }

.hm-wrap { width: min(100% - 32px, var(--hm-wrap)); margin-inline: auto; }
.hm-pad { padding-block: 32px 64px; }
.hm-narrow { max-width: 780px; }
.hm-ltr { direction: ltr; unicode-bidi: plaintext; text-align: right; }

/* ---------- سربرگ ---------- */
.hm-topbar { background: var(--hm-ink); color: #cfe0dc; font-size: .8125rem; }
.hm-topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; }
.hm-topbar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-topbar__links { display: flex; gap: 16px; flex-shrink: 0; }
.hm-topbar__link { color: #fff; text-decoration: none; }
.hm-topbar__link:hover { color: var(--hm-accent); }

.hm-header { background: var(--hm-card); border-bottom: 1px solid var(--hm-line); position: sticky; top: 0; z-index: 50; }
.hm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hm-brand { text-decoration: none; color: var(--hm-ink); display: flex; align-items: center; }
.hm-brand__name { font-size: 1.375rem; font-weight: 900; color: var(--hm-primary); }
.hm-brand img { max-height: 48px; width: auto; }

.hm-menu, .hm-footer__menu { list-style: none; margin: 0; padding: 0; }
.hm-nav .hm-menu { display: flex; gap: 4px; }
.hm-nav .hm-menu a {
	display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	color: var(--hm-ink); font-weight: 600; font-size: .9375rem;
}
.hm-nav .hm-menu a:hover,
.hm-nav .hm-menu .current-menu-item > a { background: var(--hm-tint); color: var(--hm-primary); }
.hm-nav .sub-menu { display: none; }

.hm-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--hm-line); background: #fff; border-radius: 10px; cursor: pointer; }
.hm-burger__bars, .hm-burger__bars::before, .hm-burger__bars::after {
	display: block; width: 20px; height: 2px; background: var(--hm-ink); margin: 0 auto; position: relative; content: "";
}
.hm-burger__bars::before { position: absolute; top: -6px; inset-inline: 0; }
.hm-burger__bars::after { position: absolute; top: 6px; inset-inline: 0; }

@media (max-width: 820px) {
	.hm-burger { display: block; }
	.hm-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hm-line); padding: 8px 16px 16px; }
	.hm-nav.is-open { display: block; }
	.hm-nav .hm-menu { flex-direction: column; }
	.hm-topbar__text { display: none; }
	.hm-topbar__in { justify-content: flex-end; }
}

/* ---------- دکمه‌ها ---------- */
.hm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px; border: 2px solid var(--hm-primary);
	background: var(--hm-primary); color: #fff; font: inherit; font-weight: 700; font-size: .9375rem;
	text-decoration: none; cursor: pointer; line-height: 1.5; min-height: 44px;
	transition: background-color .15s, color .15s, border-color .15s;
}
.hm-btn:hover { background: #0a524e; border-color: #0a524e; color: #fff; }
.hm-btn:disabled { opacity: .6; cursor: wait; }
.hm-btn--accent { background: var(--hm-accent); border-color: var(--hm-accent); color: #1c1403; }
.hm-btn--accent:hover { background: #a97308; border-color: #a97308; color: #fff; }
.hm-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.hm-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hm-btn--ghost-dark { background: transparent; color: var(--hm-primary); }
.hm-btn--ghost-dark:hover { background: var(--hm-tint); color: var(--hm-primary); border-color: var(--hm-primary); }
.hm-btn--sm { padding: 6px 16px; min-height: 36px; font-size: .875rem; }
.hm-btn--block { display: flex; width: 100%; }

/* ---------- صفحه‌ی اصلی ---------- */
.hm-hero {
	background-color: #0b4f4b;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.11' stroke-width='1.3'%3E%3Cpath d='M44 6l9.5 22.5L76 18l-10.5 22.5L88 44l-22.5 3.5L76 70 53.500 59.500 44 82l-9.500-22.500L12 70l10.500-22.500L0 44l22.500-3.500L12 18l22.500 10.500z'/%3E%3Ccircle cx='44' cy='44' r='7'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(135deg, #0f6d68 0%, #083c39 100%);
	background-size: 88px 88px, cover;
	color: #fff;
}
.hm-hero__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hm-hero__title { font-size: clamp(1.875rem, 4.4vw, 3.25rem); font-weight: 900; line-height: 1.4; margin-bottom: .45em; }
.hm-hero__text { font-size: 1.125rem; max-width: 34em; color: #d7ebe7; }
.hm-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hm-hero__stats {
	margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
	background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--hm-radius); overflow: hidden;
}
.hm-hero__stats > div { background: rgba(6, 46, 44, .72); padding: 18px 20px; display: flex; flex-direction: column-reverse; }
.hm-hero__stats dd { margin: 0; font-size: 2rem; font-weight: 900; line-height: 1.2; color: #ffd37a; }
.hm-hero__stats dt { font-size: .875rem; color: #cfe5e1; }

@media (max-width: 860px) {
	.hm-hero__in { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; }
}

.hm-section { padding-block: 56px; }
.hm-section--tint { background: var(--hm-tint); }
.hm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hm-section__head h2 { font-size: 1.5rem; margin: 0; }
.hm-more { font-weight: 700; font-size: .9375rem; }

.hm-cta { background: var(--hm-ink); color: #fff; padding-block: 44px; }
.hm-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hm-cta h2 { margin: 0 0 .25em; font-size: 1.5rem; }
.hm-cta p { margin: 0; color: #c9d8d4; max-width: 40em; }

/* ---------- سربرگ صفحه‌ها ---------- */
.hm-pagehead { background: var(--hm-tint); border-bottom: 1px solid var(--hm-line); padding-block: 36px 32px; }
.hm-pagehead h1 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin: 0 0 .2em; }
.hm-pagehead p { margin: 0; color: var(--hm-muted); max-width: 46em; }
.hm-pagehead--wg { background: var(--wg); color: #fff; border: 0; }
.hm-pagehead--wg p, .hm-pagehead--wg .hm-crumbs, .hm-pagehead--wg .hm-crumbs a { color: rgba(255, 255, 255, .88); }
.hm-pagehead__wg, .hm-pagehead__store { display: flex; align-items: center; gap: 20px; }
.hm-crumbs { font-size: .875rem; color: var(--hm-muted); margin-bottom: 6px; }
.hm-crumbs a { color: inherit; }

/* ---------- کارت‌ها و شبکه‌ها ---------- */
.hm-grid { display: grid; gap: 20px; }
.hm-grid--wg { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hm-grid--act { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.hm-grid--store { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.hm-card {
	background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius);
	overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.hm-card:hover, .hm-card:focus-within { border-color: var(--hm-primary); box-shadow: 0 6px 22px rgba(15, 61, 58, .12); }
.hm-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.hm-card__title { font-size: 1.125rem; margin: 0 0 .3em; }
.hm-card__text { color: var(--hm-muted); font-size: .9375rem; margin: 0 0 .6em; }
.hm-card__meta { display: block; color: var(--hm-muted); font-size: .8125rem; }
.hm-card__cats { display: block; color: var(--hm-primary); font-size: .8125rem; font-weight: 700; }
.hm-card__body { display: block; padding: 16px 18px 18px; }
.hm-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.hm-card--wg { border-top: 5px solid var(--wg, var(--hm-primary)); }
.hm-card--wg .hm-card__link { padding: 20px; }
.hm-card--act { border-top: 4px solid var(--wg, var(--hm-primary)); }
.hm-card--act .hm-card__img { display: block; }

.hm-wg__mark {
	display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
	border-radius: 14px; background: var(--wg, var(--hm-primary)); color: #fff;
	font-size: 1.625rem; font-weight: 800; margin-bottom: 12px; overflow: hidden;
}
.hm-wg__mark img { width: 100%; height: 100%; object-fit: cover; }
.hm-wg__mark--lg { width: 76px; height: 76px; font-size: 2.25rem; margin: 0; flex-shrink: 0; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .6); }

.hm-card--store .hm-card__link { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.hm-card--store .hm-card__body { padding: 0; flex: 1; min-width: 0; }
.hm-store__logo {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 64px; height: 64px; border-radius: 12px; background: var(--hm-tint);
	border: 1px solid var(--hm-line); color: var(--hm-primary); font-weight: 800; font-size: 1.5rem; overflow: hidden;
}
.hm-store__logo img { width: 100%; height: 100%; object-fit: cover; }
.hm-store__logo--lg { width: 92px; height: 92px; background: #fff; font-size: 2rem; }

.hm-chip { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--hm-tint); color: var(--hm-primary); font-size: .8125rem; font-weight: 700; text-decoration: none; margin-bottom: 6px; }
a.hm-chip:hover { background: var(--hm-primary); color: #fff; }
.hm-chip--plain { background: transparent; border: 1px solid var(--hm-line); color: var(--hm-muted); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.hm-chips .hm-chip { margin: 0; }

.hm-badge { display: inline-block; padding: 2px 12px; border-radius: 6px; font-size: .8125rem; font-weight: 700; margin-top: 6px; }
.hm-badge--discount { background: #fff3d6; color: #6b4600; border: 1px solid #ecc977; }
.hm-badge--valid { background: #def3e5; color: var(--hm-ok); }
.hm-badge--used, .hm-badge--expired { background: #ececec; color: #555; }
.hm-badge--revoked { background: #fbe1df; color: var(--hm-danger); }

/* ---------- فیلترها ---------- */
.hm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hm-filters--sub { margin-top: -4px; padding-inline-start: 8px; }
.hm-pill {
	display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--hm-line);
	background: #fff; color: var(--hm-ink); text-decoration: none; font-size: .9375rem; font-weight: 600;
}
.hm-pill:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
.hm-pill.is-active { background: var(--hm-primary); border-color: var(--hm-primary); color: #fff; }
.hm-pill--sm { padding: 2px 12px; font-size: .8125rem; }

.hm-filterform {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
	background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 16px; margin-bottom: 20px;
}
.hm-field { display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; font-weight: 700; color: var(--hm-muted); min-width: 140px; }
.hm-field--grow { flex: 1 1 200px; }
.hm-field input, .hm-field select, .hm-verify input {
	font: inherit; font-weight: 400; color: var(--hm-ink); background: #fff; min-height: 42px;
	padding: 6px 12px; border: 1px solid #b9c7c3; border-radius: 10px;
}
.hm-filterform__actions { display: flex; gap: 8px; }
.hm-note { color: var(--hm-muted); font-size: .875rem; margin: 0 0 16px; }

/* ---------- نقشه ---------- */
.hm-mapwrap { margin-bottom: 28px; }
.hm-mapwrap__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-weight: 700; }
.hm-map { height: 420px; border-radius: var(--hm-radius); border: 1px solid var(--hm-line); background: #dfe9e6; overflow: hidden; z-index: 0; }
.hm-map--single { height: 320px; }
.hm-pin span {
	display: block; width: 22px; height: 22px; margin: 0 3px; background: var(--hm-primary);
	border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.hm-pop { font-family: var(--hm-font); min-width: 150px; line-height: 1.7; text-align: right; }
.hm-pop__title { display: block; font-weight: 800; font-size: 1rem; }
.hm-pop__cat { display: block; color: var(--hm-muted); font-size: .8125rem; }
.hm-pop__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-pop__btn { background: var(--hm-primary); color: #fff !important; padding: 2px 12px; border-radius: 999px; text-decoration: none; font-size: .8125rem; font-weight: 700; }
.hm-pop__btn:hover { background: var(--hm-ink); }
.hm-dirs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hm-dirs__label { font-weight: 700; color: var(--hm-muted); font-size: .9375rem; }
.hm-h3 { font-size: 1.125rem; }

/* ---------- صفحه‌ی فروشگاه ---------- */
.hm-store { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.hm-store__side { display: grid; gap: 20px; }
@media (max-width: 900px) { .hm-store { grid-template-columns: 1fr; } .hm-store__side { order: -1; } }

.hm-discount { background: #fff; border: 2px solid var(--hm-accent); border-radius: var(--hm-radius); padding: 20px; position: relative; }
.hm-discount__h { font-size: 1rem; color: #7a5200; margin: 0 0 .4em; }
.hm-discount__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 .3em; line-height: 1.6; }
.hm-discount__terms { color: var(--hm-muted); font-size: .875rem; margin: 0 0 .7em; }
.hm-discount__code {
	direction: ltr; text-align: center; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 1.75rem; font-weight: 800; letter-spacing: .12em; padding: 10px; margin: 0 0 12px;
	background: var(--hm-tint); border: 2px dashed var(--hm-accent); border-radius: 12px;
}
.hm-discount__off { color: var(--hm-muted); margin: 0; }
.hm-discount__msg { color: var(--hm-danger); font-weight: 700; font-size: .875rem; margin: 10px 0 0; }

.hm-preview { margin-top: 14px; }
.hm-preview[hidden], .hm-discount__msg[hidden], .hm-verify__result[hidden] { display: none; }
.hm-preview img { width: 100%; border-radius: 10px; border: 1px solid var(--hm-line); }
.hm-preview__hint { font-size: .8125rem; color: var(--hm-muted); margin: 8px 0; }

.hm-info { background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 18px 20px; }
.hm-facts { margin: 0; }
.hm-facts > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hm-line); }
.hm-facts > div:last-child { border-bottom: 0; }
.hm-facts dt { flex: 0 0 96px; color: var(--hm-muted); font-size: .875rem; }
.hm-facts dd { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- مطلب ---------- */
.hm-article { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .hm-article { grid-template-columns: 1fr; } .hm-article__side { order: -1; } }
.hm-article__img { margin: 0 0 24px; }
.hm-article__img img { border-radius: var(--hm-radius); width: 100%; }
.hm-article__side .hm-facts { background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 8px 18px; }

.hm-prose { max-width: 46em; font-size: 1.0625rem; line-height: 2.05; }
.hm-prose--intro { margin-bottom: 36px; }
.hm-prose h2, .hm-prose h3 { margin-top: 1.6em; }
.hm-prose ul, .hm-prose ol { padding-inline-start: 1.5em; }
.hm-prose blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-inline-start: 4px solid var(--hm-accent); background: #fff; }
.hm-prose img { border-radius: 10px; }

/* ---------- کدهای من / بررسی ---------- */
.hm-mycodes { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.hm-mycode {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--hm-line); border-inline-start: 6px solid var(--hm-accent);
	border-radius: var(--hm-radius); padding: 14px 18px;
}
.hm-mycode--used, .hm-mycode--expired, .hm-mycode--revoked { border-inline-start-color: #aaa; opacity: .85; }
.hm-mycode__main { display: flex; flex-direction: column; min-width: 0; }
.hm-mycode__store { font-weight: 800; font-size: 1.0625rem; text-decoration: none; }
.hm-mycode__title { color: var(--hm-muted); font-size: .875rem; }
.hm-mycode__code { font-family: "SFMono-Regular", Consolas, monospace; font-weight: 800; letter-spacing: .1em; margin-top: 4px; }
.hm-mycode__side { display: flex; align-items: center; gap: 12px; }

.hm-verify { max-width: 560px; }
.hm-verify label { display: block; font-weight: 700; margin-bottom: 6px; }
.hm-verify__row { display: flex; gap: 10px; }
.hm-verify input { flex: 1; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.hm-verify__hint { color: var(--hm-muted); font-size: .875rem; margin-top: 14px; }
.hm-verify__result { margin-top: 20px; padding: 18px 20px; border-radius: var(--hm-radius); border: 2px solid var(--hm-line); background: #fff; }
.hm-verify__state { display: block; font-size: 1.375rem; margin-bottom: 4px; }
.hm-verify__msg { margin: 0 0 12px; }
.hm-verify__result--valid { border-color: var(--hm-ok); background: #effaf2; }
.hm-verify__result--valid .hm-verify__state { color: var(--hm-ok); }
.hm-verify__result--invalid, .hm-verify__result--revoked { border-color: var(--hm-danger); background: #fdf0ef; }
.hm-verify__result--invalid .hm-verify__state, .hm-verify__result--revoked .hm-verify__state { color: var(--hm-danger); }
.hm-verify__result--used, .hm-verify__result--expired { border-color: #9a7a1f; background: #fcf6e4; }
.hm-verify__result .hm-facts { margin-bottom: 14px; }

/* ---------- پیام‌ها ---------- */
.hm-empty, .hm-notice { background: #fff; border: 1px dashed #aebdb9; border-radius: var(--hm-radius); padding: 28px; text-align: center; color: var(--hm-muted); }
.hm-empty p:last-child, .hm-notice p:last-child { margin-bottom: 0; }
.hm-empty__admin { font-size: .8125rem; }

/* ---------- صفحه‌بندی ---------- */
.navigation.pagination { margin-top: 32px; }
.navigation.pagination .nav-links, .navigation.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.page-numbers {
	display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px;
	border: 1px solid var(--hm-line); border-radius: 10px; background: #fff; color: var(--hm-ink); text-decoration: none; font-weight: 700;
}
a.page-numbers:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
.page-numbers.current { background: var(--hm-primary); border-color: var(--hm-primary); color: #fff; }

/* ---------- پاورقی ---------- */
.hm-footer { background: var(--hm-ink); color: #c9d8d4; margin-top: 0; }
.hm-footer a { color: #fff; text-decoration: none; }
.hm-footer a:hover { color: var(--hm-accent); text-decoration: underline; }
.hm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-block: 44px 28px; }
.hm-footer__name { display: block; color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.hm-footer__col > strong { display: block; color: #fff; margin-bottom: 8px; }
.hm-footer__menu li { margin-bottom: 4px; }
.hm-footer__copy { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 14px; font-size: .8125rem; }
@media (max-width: 760px) { .hm-footer__grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- جستجو (فرم پیش‌فرض وردپرس) ---------- */
.search-form { display: flex; gap: 8px; margin-block: 16px; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; min-height: 42px; padding: 6px 12px; border: 1px solid #b9c7c3; border-radius: 10px; }
.search-submit { font: inherit; font-weight: 700; padding: 0 20px; border-radius: 999px; border: 0; background: var(--hm-primary); color: #fff; cursor: pointer; }

/* ---------- ویدیو (آپارات و مانند آن) ---------- */
.hm-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; border-radius: var(--hm-radius); overflow: hidden; background: #0b1a18; }
.hm-video iframe, .hm-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-prose .hm-video { margin-block: 1.4em; }

/* ---------- لیفلت در حالت راست‌به‌چپ ---------- */
.leaflet-container { font-family: var(--hm-font); }
.leaflet-popup-content { margin: 12px 14px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* نوار نصب اپ */
.hm-install { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 99; display: flex; gap: 10px; align-items: center; background: #1c2b27; color: #fff; padding: 12px 14px; border-radius: 14px; font-size: .9rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.hm-install a { color: #ffd37a; }
.hm-install__t { flex: 1; }
.hm-install__x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.hm-footer__apps a { margin-inline-end: 12px; }

/* ---------- فرم‌های عمومی (برای مودال و ورود) ---------- */
.hm-form label { display: block; font-weight: 700; font-size: .9rem; }
.hm-form input[type=text], .hm-form input[type=tel], .hm-form input[type=file], .hm-form select, .hm-form textarea { width: 100%; margin-top: 4px; padding: 9px 12px; border: 1px solid var(--hm-line); border-radius: 8px; font: inherit; background: #fff; box-sizing: border-box; }
.hm-form p { margin: 0 0 12px; }
.hm-form__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .hm-form__row { grid-template-columns: 1fr; } }
.hm-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hm-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--hm-primary); text-decoration: underline; cursor: pointer; }
.hm-linkbtn:disabled { color: var(--hm-muted); text-decoration: none; cursor: default; }

/* ---------- ورود با پیامک ---------- */
.hm-otp { max-width: 420px; margin: 0 auto; background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 22px; }
.hm-otp__intro { margin-top: 0; color: var(--hm-muted); }
.hm-otp input[name=mobile], .hm-otp input[name=code] { font-size: 1.15rem; letter-spacing: .08em; text-align: center; }
.hm-otp__msg { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: #fde2e2; color: #7f1d1d; font-size: .9rem; }
.hm-otp__msg.is-ok { background: #dff3e6; color: #14532d; }
.hm-otp__links, .hm-otp__admin { text-align: center; font-size: .875rem; }

/* ---------- مودال تکمیل اطلاعات ---------- */
.hm-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 20, 18, .55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.hm-modal__box { background: #fff; border-radius: var(--hm-radius); padding: 22px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; }
.hm-modal__h { margin: 0 0 6px; }
.hm-modal__actions { display: flex; gap: 8px; }

/* ---------- بنر تبلیغاتی ---------- */
.hm-banner { padding: 18px 0 0; }
.hm-banner__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--hm-radius); }
.hm-banner__track::-webkit-scrollbar { display: none; }
.hm-banner__slide { flex: 0 0 100%; scroll-snap-align: start; }
.hm-banner__slide a { display: block; }
.hm-banner__img { display: block; width: 100%; height: auto; border-radius: var(--hm-radius); }
.hm-banner__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.hm-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-line); }
.hm-banner__dot.is-on { background: var(--hm-primary); }

/* ---------- دکمه‌ی بازگشت و همکاری ---------- */
.hm-back { display: inline-block; margin-bottom: 8px; font-size: .9rem; font-weight: 700; color: var(--hm-primary); text-decoration: none; }
.hm-back:hover { text-decoration: underline; }
.hm-coop { background: var(--hm-card); border: 1px dashed var(--hm-accent); border-radius: var(--hm-radius); padding: 16px; margin-bottom: 16px; }
.hm-coop summary { cursor: pointer; list-style: none; text-align: center; }
.hm-coop summary::-webkit-details-marker { display: none; }
.hm-coop__form[open] summary { margin-bottom: 12px; }

/* ---------- بخش‌های فعالیت: در حال انجام / آینده / گذشته ---------- */
.hm-phases { margin-bottom: 16px; }
.hm-pill__n { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: .8em; text-align: center; }
.hm-pill.is-active .hm-pill__n { background: rgba(255, 255, 255, .25); }
.hm-chip--ongoing { background: #dff3e6; color: #14532d; }
.hm-chip--upcoming { background: #fff3d6; color: #6b4a00; }
.hm-chip--past { background: #e8ecea; color: #44514c; }
