@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #064288;
  --navy-dark: #04316a;
  --navy-deep: #032554;
  --navy-soft: #e8eff9;
  --gold: #deaf39;
  --gold-dark: #b98c1c;
  --green: #68a788;
  --green-dark: #528c70;
  --text: #34425a;
  --heading: #0a2e63;
  --muted: #7c8798;
  --border: #e3e9f2;
  --bg: #f6f8fc;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(6, 66, 136, 0.07);
  --shadow-md: 0 12px 32px rgba(6, 66, 136, 0.13);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --color-primary: #064288;
  --color-primary-dark: #04316a;
  --color-primary-light: #e8eff9;
  --color-gold: #deaf39;
  --color-gold-dark: #b98c1c;
  --color-gold-light: #fbf3dc;
  --color-text: #34425a;
  --color-heading: #0a2e63;
  --color-border: #e3e9f2;
  --color-muted: #7c8798;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; vertical-align: middle; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.6; margin: 0 0 0.6em; font-weight: 800; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(3, 37, 84, 0.18); }

.topband { background: linear-gradient(90deg, var(--navy-dark), var(--navy)); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.topband__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding-block: 6px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__logo { height: 70px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.5; }
.brand__text strong { font-size: 22px; font-weight: 800; }
.brand__text small { font-size: 12px; letter-spacing: 0.6px; opacity: 0.85; text-align: right; }

.navbar { background: var(--white); border-bottom: 1px solid var(--border); }

.nav { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 14px; font-size: 15px; font-weight: 600; color: var(--navy);
  white-space: nowrap; transition: color 0.2s;
}
.nav__item > .nav__link { border-bottom: 3px solid transparent; }
.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link,
.nav__item.is-active > .nav__link { color: var(--gold-dark); border-bottom-color: var(--gold); }

.nav__caret { width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav__expand { display: none; }

.nav__sub {
  position: absolute; top: 100%; right: 0; left: auto; min-width: 230px;
  background: var(--white); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s; z-index: 60;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav__subitem { position: relative; }
.nav__subitem > .nav__link { padding: 10px 20px; font-weight: 500; justify-content: space-between; }
.nav__subitem > .nav__link:hover { background: var(--navy-soft); color: var(--navy); }
.nav__subitem .nav__caret { transform: rotate(135deg); }

.nav__sub--side { top: -11px; left: auto; right: 100%; border-radius: var(--radius-sm); border-top: 3px solid var(--gold); }
.nav__subitem:hover > .nav__sub,
.nav__subitem:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 10px; width: 46px; height: 46px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.breaking { background: var(--gold); color: var(--navy-deep); }
.breaking__inner { display: flex; align-items: center; gap: 12px; padding-block: 8px; font-weight: 600; }
.breaking__label { background: var(--navy); color: var(--white); padding: 0 12px; border-radius: 8px; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 12px; border: 2px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); padding: 12px 30px; }
.btn--green:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 7px 16px; font-size: 14px; border-radius: 10px; }

.hero { background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%); padding: 48px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); padding: 0; }
.hero__text { padding: 38px 42px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero__text::after { content: ""; position: absolute; top: 50%; inset-inline-end: -1px; width: 14px; height: 28px; background: var(--navy); border-radius: 14px 0 0 14px; transform: translateY(-50%) scaleX(-1); }
.hero__title { font-size: 30px; color: var(--navy); margin-bottom: 4px; }
.hero__subtitle { font-size: 18px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.hero__rule { height: 3px; width: 100%; background: var(--border); margin-bottom: 18px; border-radius: 3px; }
.hero__desc { font-size: 15.5px; line-height: 2.1; text-align: justify; margin-bottom: 22px; }
.hero__text .btn { align-self: flex-start; }
.hero__media { background: var(--navy-dark); min-height: 360px; position: relative; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; position: absolute; inset: 0; }
.hero__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255, 255, 255, 0.85); background: radial-gradient(circle at 30% 20%, var(--navy), var(--navy-deep)); }
.hero__play { width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); border: 2px solid rgba(255, 255, 255, 0.55); display: grid; place-items: center; }
.hero__play svg { width: 32px; height: 32px; margin-inline-start: 4px; }
.hero__placeholder small { opacity: 0.6; }

.quick { padding: 36px 0 10px; }
.quick__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.quick-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 14px 34px; min-height: 196px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quick-card__icon { width: 62px; height: 62px; color: var(--navy); }
.quick-card__icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.quick-card__title { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.7; }
.quick-card__bar { position: absolute; bottom: -4px; width: 96px; height: 7px; background: var(--gold); border-radius: 6px 6px 0 0; }

.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-title { display: flex; align-items: center; gap: 14px; font-size: 20px; color: var(--heading); margin-bottom: 20px; }
.block-head .block-title { margin-bottom: 0; }
.block-title::before { content: ""; width: 48px; height: 5px; border-radius: 4px; background: var(--navy-deep); flex: none; }
.block-link { font-weight: 700; font-size: 14px; }

.stats { padding: 50px 0 20px; }
.stats__panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: var(--white); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 12px; border-radius: var(--radius); background: linear-gradient(135deg, #fbfcfe, #f1f5fb); text-align: center; }
.stat__icon { width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: grid; place-items: center; color: var(--navy); margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.stat__icon svg { width: 36px; height: 36px; stroke-width: 1.4; }
.stat__value { font-size: 24px; font-weight: 800; color: var(--navy-deep); line-height: 1.4; }
.stat__label { font-size: 14px; color: var(--text); }
.stat__label small { color: var(--muted); font-size: 12.5px; }

.news-section { padding: 50px 0 70px; }

.section { padding: 46px 0 70px; }

.page-hero { background: linear-gradient(110deg, var(--navy-dark), var(--navy)); color: var(--white); padding: 34px 0 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 5px; background: var(--gold); }
.page-hero__title { color: var(--white); font-size: 28px; margin: 6px 0 4px; }
.page-hero__lead { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 720px; }

.breadcrumb { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.92); }
.breadcrumb a:hover { color: var(--gold); }
.post-single .breadcrumb { color: var(--muted); }
.post-single .breadcrumb a { color: var(--navy); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card, .panel-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-card { padding: 30px; }
.card--hover { transition: transform 0.2s, box-shadow 0.2s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.news-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.news-card__flag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--gold); color: var(--navy-deep); font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 20px; z-index: 2; }
.news-card__thumb { position: relative; overflow: hidden; height: 170px; background: linear-gradient(135deg, var(--navy-soft), #d3e1f5); display: grid; place-items: center; color: var(--navy); }
.news-card__thumb svg { width: 52px; height: 52px; opacity: 0.55; }
.news-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.news-card__title { font-size: 17px; margin-bottom: 8px; }
.news-card__text { font-size: 14.5px; flex: 1; color: var(--text); }
.news-card__more { font-weight: 700; font-size: 14px; }

.news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.news-pagination a, .news-pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--white); font-weight: 600; }
.news-pagination .is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.post-single { padding: 40px 0 70px; }
.post-single__title { font-size: 28px; margin: 14px 0 6px; }
.post-single__meta { color: var(--muted); font-size: 14px; }
.post-single__image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 14px 0 24px; }
.post-single__back { margin-top: 32px; }

.rich-text p { margin-bottom: 1em; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; font-size: 20px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.rich-text h2::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--gold); flex: none; }
.rich-text ul, .rich-text ol { margin: 0 0 1.2em; padding-inline-start: 4px; }
.rich-text ul li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; }
.rich-text ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.85em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.rich-text ol { list-style: decimal; padding-inline-start: 24px; }
.rich-text img { max-width: 100%; border-radius: var(--radius-sm); }
.rich-text blockquote { margin: 1em 0; padding: 12px 20px; border-inline-start: 4px solid var(--gold); background: var(--navy-soft); border-radius: var(--radius-sm); }
.rich-text a { text-decoration: underline; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.data-table th, .data-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: right; }
.data-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.data-table tbody tr:nth-child(even) { background: var(--bg); }

.page-layout { display: grid; gap: 26px; }
.page-layout--side { grid-template-columns: 1fr 300px; align-items: start; }
.page-side { position: sticky; top: 190px; padding: 22px; }
.page-side__title { font-size: 17px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.page-side__list a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.page-side__list a:hover, .page-side__list a.is-active { background: var(--navy); color: var(--white); }

.desk-track { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 40px; border-top: 5px solid var(--gold); }
.desk-track__title { font-size: 19px; margin-bottom: 4px; }
.desk-track__text { margin: 0; color: var(--muted); }
.desk-card { padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; transition: transform 0.2s, box-shadow 0.2s; }
.desk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.desk-card__icon { width: 56px; height: 56px; color: var(--navy); margin-bottom: 4px; }
.desk-card__icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.desk-card__title { font-size: 17px; margin: 0; }
.desk-card__text { font-size: 14px; color: var(--muted); flex: 1; margin: 0 0 10px; }
.desk-card__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-weight: 700; font-size: 14px; color: var(--heading); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 15px; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(6, 66, 136, 0.12); }
textarea.form-control { resize: vertical; }
.form-alert { background: #fdecec; border: 1px solid #f3b9b9; color: #8a1f1f; border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; }
.form-alert li { list-style: disc inside; }

.success-box { text-align: center; padding: 20px 10px; }
.success-box__icon { width: 70px; height: 70px; border-radius: 50%; background: var(--green); color: var(--white); display: inline-grid; place-items: center; margin-bottom: 12px; }
.success-box__icon svg { width: 36px; height: 36px; stroke-width: 2.4; }
.success-box__code { font-size: 30px; font-weight: 800; letter-spacing: 3px; color: var(--navy); background: var(--navy-soft); border-radius: 12px; padding: 6px 20px; display: inline-block; }

.track-form__row { display: flex; gap: 10px; }
.track-form__row .form-control { flex: 1; }
.track-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.track-result__title { font-size: 19px; margin-bottom: 4px; }
.track-result__meta { color: var(--muted); font-size: 14px; margin: 0; }
.track-result { margin-top: 24px; }
.track-result__response { margin-top: 20px; padding: 14px 18px; background: var(--navy-soft); border-radius: 12px; }
.track-result__note { color: #8a1f1f; font-weight: 600; }
.status-badge { padding: 4px 16px; border-radius: 20px; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 14px; }
.status-badge--done { background: #dff1e8; color: #28684a; }
.status-badge--rejected { background: #fdecec; color: #8a1f1f; }
.timeline { display: flex; justify-content: space-between; gap: 6px; position: relative; }
.timeline__item { flex: 1; text-align: center; font-size: 13.5px; color: var(--muted); position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.timeline__item::before { content: ""; position: absolute; top: 9px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--border); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--border); position: relative; z-index: 1; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border); }
.timeline__item.is-done { color: var(--navy); font-weight: 700; }
.timeline__item.is-done .timeline__dot { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline__item.is-done::before { background: var(--green); }

.s137-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 44px; }
.s137-call { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: var(--white); border-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; box-shadow: var(--shadow-md); }
.s137-call__icon { width: 56px; height: 56px; color: var(--gold); }
.s137-call__icon svg { width: 100%; height: 100%; }
.s137-call__number { font-size: 64px; font-weight: 900; line-height: 1.2; color: var(--gold); }
.s137-call__text { margin-bottom: 14px; opacity: 0.9; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; position: relative; box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.step__num { position: absolute; top: -18px; inset-inline-start: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.step__title { font-size: 17px; margin: 6px 0 6px; }
.step__text { font-size: 14.5px; margin: 0; color: var(--text); }

.s137-lists { margin-bottom: 44px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--white); background: var(--green); border-radius: 50%; padding: 4px; margin-top: 5px; stroke-width: 3; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.chip { padding: 7px 18px; border-radius: 30px; background: var(--navy-soft); color: var(--navy); font-weight: 600; font-size: 14px; border: 1px solid #cfdcf0; }

.s137-form { align-items: start; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-info svg { width: 24px; height: 24px; flex: none; color: var(--navy); margin-top: 5px; }

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.82); padding-top: 50px; border-top: 5px solid var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; gap: 32px; padding: 40px 0 34px; }
.footer__about { display: flex; gap: 16px; align-items: flex-start; }
.footer__logo { height: 64px; width: auto; flex: none; }
.footer__title { color: var(--white); font-size: 17px; margin-bottom: 14px; }
.footer__text { font-size: 14px; margin: 0; }
.footer__links li { margin-bottom: 6px; }
.footer__links a { color: rgba(255, 255, 255, 0.82); font-size: 14.5px; }
.footer__links a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 10px; }
.footer__contact svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 5px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 16px 0; text-align: center; font-size: 13.5px; }

@media (max-width: 1080px) {
  .quick__grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding: 14px 10px; font-size: 14px; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { min-height: 260px; order: -1; }
  .hero__text::after { display: none; }
  .hero__text { padding: 28px 24px; }
  .stats__panel { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .page-layout--side, .s137-intro, .contact-wrap, .desk-track { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .navbar { display: none; max-height: calc(100vh - 100px); overflow-y: auto; }
  .navbar.is-open { display: block; }
  .nav { flex-direction: column; }
  .nav__item, .nav__subitem { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--border); }
  .nav__link { flex: 1; padding: 14px 6px; }
  .nav__item > .nav__link { border-bottom: 0; }
  .nav__caret { display: none; }
  .nav__expand { display: block; width: 48px; border: 0; background: transparent; cursor: pointer; position: relative; }
  .nav__expand::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-inline-end: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translate(-50%, -70%) rotate(45deg); transition: transform 0.2s; }
  .nav__expand[aria-expanded="true"]::before { transform: translate(-50%, -30%) rotate(225deg); }
  .nav__sub, .nav__sub--side { position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; display: none; background: var(--bg); border-radius: 0; padding: 0 14px 6px; flex-basis: 100%; }
  .nav__sub.is-open { display: block; }
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; }
  .nav__subitem > .nav__link { padding: 10px 6px; }
}

@media (max-width: 640px) {
  .brand__logo { height: 56px; }
  .brand__text strong { font-size: 18px; }
  .quick__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .quick__grid .quick-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats__panel { grid-template-columns: 1fr; padding: 16px; }
  .grid--2, .grid--3, .grid--4, .steps, .form-grid, .footer__grid { grid-template-columns: 1fr; }
  .page-hero__title { font-size: 23px; }
  .timeline { flex-direction: column; gap: 14px; }
  .timeline__item { flex-direction: row; text-align: right; }
  .timeline__item::before { display: none; }
  .track-form__row { flex-direction: column; }
  .hero__title { font-size: 24px; }
}

.related-links { padding: 36px 0; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--white); border: 1px solid rgba(0,0,0,.08); border-radius: 12px; transition: transform .15s, box-shadow .15s; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.related-card strong { font-size: 16px; }
.related-card span { font-size: 13.5px; opacity: .8; }
.related-card small { font-size: 12px; opacity: .6; text-align: left; }

.news-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.news-tabs a { padding: 8px 20px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); font-size: 14.5px; }
.news-tabs a.is-active { background: var(--navy, #14325c); color: #fff; border-color: transparent; }

.ext-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ext-table th, .ext-table td { padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.1); text-align: right; }
.ext-table td:last-child, .ext-table th:last-child { text-align: left; width: 130px; font-weight: 700; }
.ext-panel { grid-column: 1 / -1; order: 3; }

.portal { padding: 36px 0 8px; }
.portal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.portal-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px; background: var(--white); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; text-align: center; transition: transform .15s, box-shadow .15s; }
a.portal-item:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.portal-item__logo { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.portal-item__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.portal-item__logo svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--navy, #14325c); }
.portal-item__title { font-weight: 700; font-size: 15px; }
.portal-item.is-disabled { opacity: .6; cursor: default; }
.portal-item small { font-size: 12px; opacity: .7; }

/* ---------- دانلود فرم‌ها و درخواست‌ها ---------- */
.dl-promo { grid-template-columns: 1fr auto; }
.dl-search { margin-bottom: 32px; padding: 22px 26px; }
.dl-group { margin-bottom: 36px; }
.dl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dl-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; transition: transform 0.2s, box-shadow 0.2s; }
.dl-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dl-item[hidden], .dl-group[hidden] { display: none; }
.dl-item__badge { flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px; }
.dl-item__body { flex: 1; min-width: 0; }
.dl-item__title { font-size: 16px; margin: 0 0 2px; }
.dl-item__text { font-size: 13.5px; color: var(--muted); margin: 0 0 2px; }
.dl-item__meta { font-size: 12.5px; color: var(--gold-dark); margin: 0; }
.dl-item__btn { flex: none; }
.dl-empty { text-align: center; padding: 50px 30px; }
.dl-empty__icon { display: block; width: 60px; height: 60px; margin: 0 auto 12px; color: var(--navy); }
.dl-empty__icon svg { width: 100%; height: 100%; stroke-width: 1.3; }
.dl-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.dl-none { text-align: center; color: var(--muted); }
@media (max-width: 760px) {
  .dl-list, .dl-promo { grid-template-columns: 1fr; }
  .dl-item { flex-wrap: wrap; }
  .dl-item__btn { width: 100%; text-align: center; }
}

/* ---------- شهردار و واحدهای شهرداری ---------- */
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--navy-soft); flex: none; }
.avatar--empty { display: flex; align-items: center; justify-content: center; color: var(--navy); }
.avatar--empty svg { width: 52%; height: 52%; stroke-width: 1.3; }
.mayor-card { display: flex; align-items: center; gap: 22px; padding: 22px; margin-bottom: 26px; background: var(--navy-soft); border-radius: var(--radius); border-inline-start: 5px solid var(--gold); }
.mayor-card .avatar { width: 128px; height: 128px; }
.mayor-card__role { margin: 0; color: var(--gold-dark); font-weight: 700; font-size: 14px; }
.mayor-card__name { margin: 2px 0 10px; font-size: 24px; }
.mayor-card__name::before { display: none; }
.mayor-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.mayor-card__list li { display: flex; align-items: center; gap: 8px; padding: 0; }
.mayor-card__list li::before { display: none; }
.mayor-card__list svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.unit-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.unit-top .mayor-card { margin: 0; flex: 1; }
.unit-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.unit-index a { padding: 7px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--navy); }
.unit-index a:hover { background: var(--navy); color: var(--white); }
.unit-list { display: grid; gap: 22px; }
.unit { display: grid; grid-template-columns: 1fr 260px; gap: 28px; scroll-margin-top: 190px; }
.unit__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.unit__icon { width: 46px; height: 46px; color: var(--navy); flex: none; }
.unit__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.unit__title { margin: 0; font-size: 21px; }
.unit__desc { color: var(--muted); margin: 0 0 14px; }
.unit__sub { font-size: 15px; color: var(--navy); margin: 0 0 8px; }
.unit__services { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.unit__services li { position: relative; padding-inline-start: 22px; }
.unit__services li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.unit__person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px; background: var(--bg); border-radius: var(--radius-sm); border-top: 4px solid var(--gold); align-self: start; }
.unit__person-label { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.unit__person-name { font-size: 16px; color: var(--heading); }
.unit__person-role { font-size: 13.5px; color: var(--muted); }
.unit__contact { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy); }
.unit__contact svg { width: 16px; height: 16px; }
.unit__person .btn { margin-top: 8px; }
@media (max-width: 860px) {
  .unit { grid-template-columns: 1fr; }
  .unit-top { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .mayor-card { flex-direction: column; text-align: center; }
  .mayor-card__list li { justify-content: center; }
}

/* ---------- شبکه‌های اجتماعی و اعضای شورا ---------- */
.social-strip { padding: 34px 0 6px; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social-btn { display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 12px 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border); border-inline-start: 4px solid var(--gold); box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.social-btn__label { font-weight: 700; color: var(--navy); }
.social-btn small { color: var(--muted); font-size: 12.5px; text-align: start; }
.social-title { font-size: 16px; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.member-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px; background: var(--bg); border-radius: var(--radius-sm); border-top: 4px solid var(--gold); }
.member-card .avatar { width: 104px; height: 104px; margin-bottom: 6px; }
.member-card__name { color: var(--heading); font-size: 16.5px; }
.member-card__role { color: var(--gold-dark); font-weight: 700; font-size: 13.5px; }
.member-card__bio { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 860px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .member-grid { grid-template-columns: 1fr; } }

/* ---- فوتر: نوار شبکه‌های اجتماعی، سامانه‌ها، ریسپانسیو ---- */
.site-footer { padding-top: 0; }
.footer__social-band { background: var(--navy-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__social-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.footer__social-title { color: var(--white); font-size: 17px; margin: 0; flex: none; }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.footer__social-btn { display: flex; flex-direction: column; gap: 2px; min-width: 160px; padding: 10px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-inline-start: 4px solid var(--gold); color: var(--white); transition: background 0.2s, transform 0.2s; }
.footer__social-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.footer__social-name { font-weight: 700; font-size: 15px; }
.footer__social-btn small { color: rgba(255, 255, 255, 0.65); font-size: 12.5px; text-align: start; overflow-wrap: anywhere; }
.footer__col { min-width: 0; }
.footer__title { position: relative; padding-bottom: 10px; }
.footer__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--gold); }
.footer__about .footer__title::after { display: none; }
.footer__about .footer__title { padding-bottom: 0; }
.footer__links.footer__links--systems a { display: flex; flex-direction: column; gap: 1px; }
.footer__links--systems small { color: rgba(255, 255, 255, 0.55); font-size: 12px; line-height: 1.6; }
.footer__links a { display: inline-block; padding: 2px 0; }
.footer__contact a { color: rgba(255, 255, 255, 0.82); }
.footer__contact a:hover { color: var(--gold); }
.footer__contact span, .footer__contact a { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 24px; }
  .footer__about { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__social { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer__social-btn { min-width: 0; padding: 10px 12px; }
  .footer__links a { padding: 6px 0; }
  .footer__bottom { padding: 14px 0 18px; line-height: 1.9; }
}

/* ======== فشرده‌سازی نسخه ریسپانسیو (بدون نیاز به زوم‌اوت) ======== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* فوتر: تبلت = سه ستون کنار هم */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 22px; padding: 28px 0 22px; }
  .footer__about { grid-column: 1 / -1; align-items: center; }
  .footer__title { font-size: 15px; margin-bottom: 10px; }
  .footer__text { font-size: 13px; line-height: 1.8; }
  .footer__links a, .footer__contact li { font-size: 13px; }
  .footer__links li { margin-bottom: 2px; }
  .footer__links--systems small { font-size: 11.5px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; line-height: 1.8; }
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 28px 0 40px; }
  .block-head { margin-bottom: 14px; }
  .block-title { font-size: 18px; }

  /* صفحه اصلی */
  .hero__text { padding: 20px 16px; }
  .hero__media { min-height: 190px; }
  .hero__title { font-size: 21px; }
  .quick__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick__grid .quick-card:last-child { grid-column: auto; }
  .quick-card { padding: 16px 6px 18px; min-height: 112px; gap: 8px; border-radius: 14px; }
  .quick-card__icon { width: 36px; height: 36px; }
  .quick-card__title { font-size: 12.5px; line-height: 1.5; }
  .quick-card__bar { width: 52px; height: 5px; }
  .portal { padding: 24px 0 4px; }
  .portal__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .portal-item { padding: 12px 4px; gap: 6px; border-radius: 12px; }
  .portal-item__logo { width: 54px; height: 54px; }
  .portal-item__logo svg { width: 40px; height: 40px; }
  .portal-item__title { font-size: 12px; line-height: 1.5; }
  .portal-item small { font-size: 10.5px; }
  .panel-card { padding: 16px; }

  /* فوتر: دو ستون کنار هم و فشرده */
  .footer__social-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .footer__social-title { font-size: 13.5px; width: 100%; }
  .footer__social { gap: 8px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .footer__social-btn { padding: 7px 10px; border-radius: 9px; min-width: 0; }
  .footer__social-name { font-size: 12.5px; }
  .footer__social-btn small { font-size: 11px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 20px 0 14px; }
  .footer__about { flex-direction: row; align-items: flex-start; gap: 10px; }
  .footer__logo { height: 42px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__title { font-size: 14px; margin-bottom: 8px; padding-bottom: 7px; }
  .footer__title::after { width: 26px; height: 2px; }
  .footer__about .footer__title { font-size: 14.5px; margin-bottom: 4px; }
  .footer__text { font-size: 12px; line-height: 1.75; }
  .footer__links a { font-size: 12.5px; padding: 3px 0; }
  .footer__links--systems small { display: none; }
  .footer__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .footer__contact li { font-size: 12px; margin: 0; gap: 7px; line-height: 1.6; }
  .footer__contact li:first-child { grid-column: 1 / -1; }
  .footer__contact svg { width: 16px; height: 16px; margin-top: 3px; }
  .footer__bottom { font-size: 11.5px; padding: 10px 0 14px; line-height: 1.7; }
  .site-footer { border-top-width: 4px; }
}

.site-footer li { line-height: 1.55; }
@media (max-width: 1080px) {
  .footer__links li { margin-bottom: 5px; }
  .footer__links a { line-height: 1.5; padding: 0; }
  .footer__social-inner { padding-top: 14px; padding-bottom: 14px; }
  .footer__social-btn { padding: 7px 14px; min-width: 140px; }
}
@media (max-width: 640px) {
  .footer__links li { margin-bottom: 4px; }
  .footer__links a { padding: 1px 0; }
  .footer__contact { gap: 4px 12px; }
  .footer__links--systems a { gap: 0; }
}

/* ---- جلوگیری قطعی از سرریز افقی (علت زوم‌اوت در موبایل) ---- */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
main, section, .container, .card, .panel-card, .page-article, .page-layout > *, .grid > *, .footer__col { min-width: 0; }
main { overflow-x: clip; }
.site-header, .site-footer { overflow-x: clip; }
main :is(h1,h2,h3,h4,p,li,td,th,a,span,small,strong) { overflow-wrap: anywhere; }
.page-article table, .rich-text table, .data-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-article img, .rich-text img, iframe, video, canvas { max-width: 100%; height: auto; }
.nav__sub { max-width: calc(100vw - 24px); }

/* فشرده‌سازی تبلت (۶۴۱ تا ۸۶۰) */
@media (min-width: 641px) and (max-width: 860px) {
  body { font-size: 15px; }
  .section { padding: 34px 0 48px; }
  .quick__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .quick-card { min-height: 140px; padding: 20px 10px 22px; }
  .quick-card__icon { width: 44px; height: 44px; }
}

/* منوی اصلی: جلوگیری از شکستن به دو ردیف در دسکتاپ/لپ‌تاپ */
@media (min-width: 981px) {
  .nav { flex-wrap: nowrap; justify-content: space-between; }
  .nav__link { padding: 14px 9px; font-size: 14px; gap: 4px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .nav__link { padding: 12px 5px; font-size: 12.5px; gap: 3px; }
}

/* نوار پیام شهری (صفحه اصلی) */
.city-msg { padding: 20px 0 0; }
.city-msg__box { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, #f1f8f3, #ffffff 60%); border: 1px solid #cfe5d7; border-inline-start: 5px solid var(--green); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.city-msg__img { width: 112px; height: 112px; flex: none; border-radius: 14px; object-fit: cover; }
.city-msg__body { flex: 1; min-width: 0; }
.city-msg__kicker { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green-dark); background: #e3f1e8; padding: 2px 12px; border-radius: 20px; margin-bottom: 6px; }
.city-msg__title { font-size: 19px; margin: 0 0 4px; color: var(--heading); }
.city-msg__text { font-size: 14.5px; margin: 0; color: var(--text); }
.city-msg__btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .city-msg__box { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .city-msg__img { width: 84px; height: 84px; }
  .city-msg__body { flex-basis: calc(100% - 100px); }
  .city-msg__title { font-size: 16.5px; }
  .city-msg__text { font-size: 13.5px; }
  .city-msg__btn { width: 100%; text-align: center; }
}

/* ---------- سوالات متداول ---------- */
.faq-wrap { max-width: 880px; }
.faq-tools { display: grid; gap: 18px; padding: 20px 22px; margin-bottom: 26px; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-cat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 13px; font-weight: 600; line-height: 1.6; text-decoration: none; transition: background .18s ease, color .18s ease; }
.faq-cat span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(6, 66, 136, .12); font-size: 12px; }
.faq-cat:hover { background: #dbe7f7; }
.faq-cat.is-active { background: var(--navy); color: var(--white); }
.faq-cat.is-active span { background: rgba(255, 255, 255, .2); color: var(--white); }
.faq-search { display: grid; gap: 8px; }
.faq-search .form-label { margin: 0; }
.faq-search__row { display: flex; align-items: stretch; gap: 10px; }
.faq-search__row .form-control { flex: 1; min-width: 0; }
.faq-search__row .btn { flex: none; white-space: nowrap; }
@media (max-width: 560px) {
  .faq-tools { padding: 16px; }
  .faq-search__row { flex-direction: column; }
  .faq-search__row .btn { width: 100%; justify-content: center; }
}
.faq-group { margin-bottom: 34px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item[hidden], .faq-group[hidden], .martyr-card[hidden] { display: none; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--heading); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.faq-item[open] summary::before { content: "−"; background: var(--navy); color: var(--white); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item__answer { padding: 16px 22px 20px; line-height: 2; color: var(--text); }
.faq-help { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 12px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .faq-help { grid-template-columns: 1fr; } .promo-actions .btn { flex: 1; text-align: center; } }

/* ---------- شهدای علویجه ---------- */
.martyr-intro { text-align: center; margin-bottom: 28px; border-top: 4px solid var(--gold); }
.martyr-intro__mark { display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--navy); margin-bottom: 6px; }
.martyr-intro__mark svg { width: 100%; height: 100%; }
.martyr-intro p { margin: 0 auto 8px; max-width: 680px; line-height: 2; }
.martyr-intro__count { color: var(--gold-dark); font-weight: 700; }
.martyr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.martyr-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--navy); }
.martyr-card .avatar { width: 112px; height: 112px; margin-bottom: 6px; }
.martyr-card__name { color: var(--heading); font-size: 18px; }
.martyr-card__father { color: var(--muted); font-size: 14px; }
.martyr-card__meta { margin: 8px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; font-size: 13.5px; }
.martyr-card__meta div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; background: var(--bg); border-radius: 8px; }
.martyr-card__meta dt { color: var(--muted); }
.martyr-card__meta dd { margin: 0; color: var(--heading); font-weight: 600; }
.martyr-card__bio { font-size: 13.5px; line-height: 1.9; color: var(--text); margin: 8px 0 0; }
@media (max-width: 980px) { .martyr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .martyr-grid { grid-template-columns: 1fr; } }

/* ---------- چارت سازمانی ---------- */
.org { display: flex; flex-direction: column; align-items: center; padding: 36px 24px; overflow: hidden; }
.org__top { display: flex; justify-content: center; }
.org__line { width: 2px; height: 30px; background: var(--navy); opacity: 0.35; }
.org-box { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 28px; border-radius: 14px; font-weight: 700; text-align: center; }
.org-box--council { background: var(--gold); color: var(--navy-deep); min-width: 240px; }
.org-box--mayor { background: var(--navy); color: var(--white); min-width: 260px; padding: 16px 32px; font-size: 18px; box-shadow: var(--shadow-md); }
.org-box--mayor span { font-size: 14px; font-weight: 500; opacity: 0.85; }
.org-staff { width: 100%; max-width: 900px; padding: 18px; border: 2px dashed #b9c8e0; border-radius: var(--radius); background: var(--bg); text-align: center; }
.org-staff__title { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.org-staff__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.org-box--staff { background: var(--white); color: var(--heading); border: 1px solid #cfdcf0; padding: 9px 20px; font-size: 14.5px; border-radius: 30px; }
.org-units { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; padding-top: 22px; }
.org-units::before { content: ""; position: absolute; top: 0; right: 12.5%; left: 12.5%; height: 2px; background: var(--navy); opacity: 0.35; }
.org-unit { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); color: var(--heading); transition: transform 0.2s, box-shadow 0.2s; }
.org-unit::before { content: ""; position: absolute; top: -22px; right: 50%; width: 2px; height: 22px; background: var(--navy); opacity: 0.35; }
.org-unit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.org-unit__icon { width: 38px; height: 38px; color: var(--navy); }
.org-unit small { color: var(--muted); }
.org-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
@media (max-width: 980px) { .org-units { grid-template-columns: repeat(2, 1fr); } .org-units::before { right: 25%; left: 25%; } }
@media (max-width: 600px) {
  .org { padding: 24px 14px; }
  .org-units { grid-template-columns: 1fr; padding-top: 0; }
  .org-units::before, .org-unit::before { display: none; }
  .org-box--council, .org-box--mayor { min-width: 0; width: 100%; }
}
.unit-org-link { margin: 0 0 20px; }

/* ---------- نظرسنجی ---------- */
.survey-wrap { max-width: 820px; }
.survey-intro { margin: 0 0 22px; line-height: 2; color: var(--text); }
.survey-hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }
.survey-q { border: 0; border-bottom: 1px solid var(--border); margin: 0 0 18px; padding: 0 0 18px; min-width: 0; }
.survey-q__title { font-weight: 700; color: var(--heading); margin-bottom: 12px; padding: 0; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating__input { position: absolute; opacity: 0; pointer-events: none; }
.rating__label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--white); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.rating__num { font-weight: 800; font-size: 17px; color: var(--navy); }
.rating__text { font-size: 12.5px; color: var(--muted); }
.rating__label:hover { border-color: var(--navy); }
.rating__input:checked + .rating__label { background: var(--navy); border-color: var(--navy); }
.rating__input:checked + .rating__label .rating__num, .rating__input:checked + .rating__label .rating__text { color: var(--white); }
.rating__input:focus-visible + .rating__label { box-shadow: 0 0 0 4px rgba(6, 66, 136, 0.18); }
.survey-note { color: var(--muted); font-size: 13.5px; margin: 4px 0 18px; }
@media (max-width: 480px) { .rating__text { font-size: 11px; } .rating__label { padding: 8px 2px; } }

/* اصلاحات چارت و نظرسنجی */
.org-unit:nth-child(n+5)::before { display: none; }
@media (max-width: 980px) { .org-unit:nth-child(n+3)::before { display: none; } }
@media (max-width: 600px) {
  .org-units { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .org-unit { padding: 14px 8px; font-size: 13.5px; }
  .org-unit__icon { width: 30px; height: 30px; }
}
.rating__text { text-align: center; line-height: 1.3; }

/* ==========================================================================
   امکانات جدید: جست‌وجوی سراسری، اطلاعیه‌ها، پروژه‌ها، کارزار اتحاد،
   شهروندی، گزارش عملکرد، نقشه شهری و صفحه ۴۰۴
   ========================================================================== */

/* --------------------------- ابزارهای عمومی جدید --------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-lead {
  color: var(--muted);
  max-width: 760px;
  margin: -8px 0 22px;
  font-size: 15px;
  line-height: 2;
}

.section-note { margin: 24px 0 0; text-align: center; }

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-subtitle {
  font-size: 18px;
  color: var(--heading);
  margin: 0 0 12px;
}

.admin-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin: 6px 0 0;
}

.panel-card .block-head:first-child { margin-top: 0; }

/* سربرگ: جست‌وجو و حساب شهروندی */
.topband__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.site-search {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  min-width: 220px;
  transition: border-color 0.2s, background 0.2s;
}

.site-search:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold);
}

.site-search__input {
  flex: 1;
  min-width: 0;
  width: 210px;
  padding: 9px 13px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 13.5px;
}

.site-search__input::placeholder { color: rgba(255, 255, 255, 0.66); }
.site-search__input:focus { outline: none; }

.site-search__btn {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 44px;
  border: 0;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: inherit;
  cursor: pointer;
}

.site-search__btn svg { width: 19px; height: 19px; }
.site-search__btn:hover { background: #efc557; }

.topband__account {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.6;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.topband__account:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.topband__account svg { width: 21px; height: 21px; flex: none; }
.topband__account > span { display: flex; flex-direction: column; }
.topband__account small { font-size: 10.5px; opacity: 0.75; }
.topband__account.is-logged { border-color: rgba(222, 175, 57, 0.75); }
.topband__verified { color: #c8f3d9; }

/* ------------------------------- نشان‌ها ---------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}

.badge--notice { background: #e8eff9; color: #064288; }
.badge--announcement { background: var(--color-gold-light); color: var(--gold-dark); }
.badge--event { background: #e8f6ee; color: #1c6b3f; }
.badge--urgent { background: #fdecec; color: #b3261e; }
.badge--topic { background: #f2f4f9; color: #4a5771; }
.badge--featured { background: var(--color-gold-light); color: var(--gold-dark); }
.badge--year { background: var(--navy); color: var(--white); }
.badge--scope { background: #eef2fa; color: var(--navy-dark); }
.badge--type { background: var(--navy-soft); color: var(--navy); }

.badge--project-completed { background: #e8f6ee; color: #1c6b3f; }
.badge--project-in_progress { background: #fdf3dc; color: #8a6508; }
.badge--project-planned { background: #e8eff9; color: #064288; }
.badge--project-suspended { background: #f0f1f5; color: #5b6172; }

.badge--campaign-active { background: #e8eff9; color: #064288; }
.badge--campaign-ready { background: #e8f6ee; color: #1c6b3f; }
.badge--campaign-following { background: #fdf3dc; color: #8a6508; }
.badge--campaign-rejected { background: #fdecec; color: #b3261e; }
.badge--campaign-closed { background: #eef0f4; color: #4f596b; }
.badge--campaign-pending { background: #f2f4f9; color: #5b6172; }

.badge--citizen-approved { background: #e8f6ee; color: #1c6b3f; }
.badge--citizen-pending { background: #fdf3dc; color: #8a6508; }
.badge--citizen-rejected { background: #fdecec; color: #b3261e; }

.badge--msg-new { background: #e8eff9; color: #064288; }
.badge--msg-read { background: #f0f1f5; color: #5b6172; }
.badge--msg-answered { background: #e8f6ee; color: #1c6b3f; }
.badge--msg-closed { background: #eef0f4; color: #4f596b; }

/* -------------------------------- چیپ‌ها ---------------------------------- */
.project-status-chips,
.campaign-status-chips,
.year-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-status-chips > a,
.campaign-status-chips > a,
.year-chips > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy-soft);
  border: 1px solid #d4e0f1;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.project-status-chips > a:hover,
.campaign-status-chips > a:hover,
.year-chips > a:hover {
  background: #dbe7f7;
  color: var(--navy-dark);
}

.project-status-chips > a.is-active,
.campaign-status-chips > a.is-active,
.year-chips > a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.chip--urgent { border-color: #efc6c2 !important; background: #fdecec !important; color: #b3261e !important; }
.chip--event { border-color: #c5e5d4 !important; background: #e8f6ee !important; color: #1c6b3f !important; }
.chip--completed { border-color: #c5e5d4 !important; }
.chip--in_progress { border-color: #edd9a7 !important; }
.chip--suspended { border-color: #d8dbe2 !important; }

/* ------------------------------- نوار فوری -------------------------------- */
.urgent-band {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 18px;
  margin-bottom: 22px;
  background: #fff7f6;
  border: 1px solid #f1d2cf;
  border-inline-start: 5px solid #c0392b;
  border-radius: var(--radius-sm);
  color: #7c221b;
}

.urgent-band--page { margin-bottom: 22px; }

.urgent-band__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 2px 12px;
  border-radius: 999px;
  background: #c0392b;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 800;
}

.urgent-band__label svg { width: 17px; height: 17px; }

.urgent-band__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
}

.urgent-band__list li { position: relative; padding-inline-start: 0; font-size: 13.5px; }
.urgent-band__list a { color: #7c221b; font-weight: 600; }
.urgent-band__list a:hover { color: #c0392b; text-decoration: underline; }

/* ------------------------------- کارت فیلتر ------------------------------- */
.filter-card {
  padding: 22px 24px;
  margin-bottom: 26px;
}

.filter-card .project-status-chips { margin-bottom: 16px; }
.filter-card .project-status-chips:last-child { margin-bottom: 0; }

.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.archive-head__title {
  font-size: 20px;
  margin: 0;
  color: var(--heading);
}

.archive-head__count {
  display: inline-block;
  padding: 3px 13px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 44px 24px;
}

.empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  margin-bottom: 12px;
}

.empty-state__icon svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: 19px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 560px; margin: 0 auto 16px; }

/* -------------------------------- نوار پیشرفت ----------------------------- */
.progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.progress--lg { height: 12px; }

.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), #3d72c9 70%, var(--gold));
  transition: width 0.9s ease;
}

/* ------------------------------ اطلاعیه‌ها -------------------------------- */
.notice-section { background: linear-gradient(180deg, #fbfcff, var(--white)); }

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.notice-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.notice-card--urgent { border-top-color: #c0392b; }
.notice-card--event { border-top-color: var(--green); }
.notice-card--announcement { border-top-color: var(--gold); }

.notice-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.notice-card__date { color: var(--muted); font-size: 12px; }
.notice-card__title { font-size: 16.5px; margin: 0 0 7px; line-height: 1.8; }
.notice-card__title a { color: var(--heading); }
.notice-card__title a:hover { color: var(--navy); }
.notice-card__text { color: var(--text); font-size: 13.5px; line-height: 1.9; flex: 1; margin-bottom: 12px; }
.notice-card__more { font-size: 13px; font-weight: 700; margin-top: auto; }

/* -------------------------------- پروژه‌ها -------------------------------- */
.projects-section { background: linear-gradient(180deg, #f7f9fd, var(--white)); }

.project-grid { align-items: stretch; }

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.project-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-soft), #d5e2f4);
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__placeholder { color: var(--navy); opacity: 0.55; }
.project-card__placeholder svg { width: 54px; height: 54px; }

.project-card__status { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.project-card__topic { color: var(--gold-dark); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.project-card__title { font-size: 17px; line-height: 1.8; margin: 0 0 7px; }
.project-card__title a { color: var(--heading); }
.project-card__title a:hover { color: var(--navy); }
.project-card__text { color: var(--text); font-size: 13.5px; line-height: 1.9; flex: 1; margin-bottom: 13px; }
.project-card__body .progress { margin-bottom: 10px; }

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.project-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-card__meta svg { width: 15px; height: 15px; }
.project-card__more { font-size: 13px; font-weight: 700; margin-top: auto; }

.project-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.project-summary__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 15px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.18s;
}

.project-summary__item:hover { transform: translateY(-2px); border-color: #c8d6ec; }
.project-summary__item.is-active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(6, 66, 136, 0.12); }
.project-summary__num { font-size: 23px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.project-summary__label { font-size: 12.5px; color: var(--muted); }

.project-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.project-filters .form-row { margin: 0; }
.project-filters__actions { display: flex; align-items: center; gap: 8px; padding-bottom: 1px; flex-wrap: wrap; }

.projects-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  border-inline-start: 5px solid var(--gold);
}

/* ----------------------------- جزئیات پروژه ------------------------------- */
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.project-main { min-width: 0; }

.project-cover {
  position: relative;
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-soft);
  box-shadow: var(--shadow-sm);
}

.project-cover img { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.project-cover__badge { position: absolute; top: 16px; inset-inline-end: 16px; }

.project-body { padding: 28px 30px; }
.project-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.project-progress { margin-bottom: 20px; }

.project-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.project-progress__head strong { color: var(--navy); font-size: 17px; }
.project-description { margin-bottom: 20px; }

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: #f7f9fd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.project-fact span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.project-fact svg { width: 16px; height: 16px; }
.project-fact strong { color: var(--heading); font-size: 13.5px; font-weight: 700; }

.project-section { margin-top: 22px; padding: 26px 28px; }

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 18px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #f8fbff, #eef4fc);
  text-align: center;
}

.metric__value { font-size: 29px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.metric__unit { font-size: 12px; color: var(--gold-dark); font-weight: 700; }
.metric__label { font-size: 12.5px; color: var(--muted); }

.timeline--vertical { display: block; position: relative; }

.timeline--vertical .timeline__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-align: right;
  padding-bottom: 20px;
  position: relative;
  color: var(--text);
}

.timeline--vertical .timeline__item::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-start: 9px;
  width: 2px;
  height: calc(100% - 14px);
  background: var(--border);
}

.timeline--vertical .timeline__item:last-child { padding-bottom: 0; }
.timeline--vertical .timeline__item:last-child::before { display: none; }

.timeline--vertical .timeline__dot {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  border: 4px solid var(--white);
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy-soft);
  border-radius: 50%;
  z-index: 1;
}

.timeline--vertical .timeline__body {
  padding: 0 0 0 0;
  min-width: 0;
}

.timeline__date { display: block; color: var(--gold-dark); font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.timeline__title { font-size: 15px; margin: 0 0 3px; color: var(--heading); }
.timeline__body p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.9; }
.timeline--compact .timeline__item { padding-bottom: 15px; }
.timeline--compact .timeline__title { font-size: 14px; }

.report-list { display: grid; gap: 14px; }

.report-item {
  padding: 14px 16px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.report-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.report-item__date { color: var(--muted); font-size: 12.5px; }
.report-item__progress { color: var(--navy); font-weight: 800; font-size: 13.5px; }
.report-item__text { margin: 9px 0 0; font-size: 13.5px; color: var(--text); line-height: 1.9; }

.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy-soft);
  aspect-ratio: 16 / 9;
}

.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.map-meta p { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.map-meta svg { width: 17px; height: 17px; color: var(--navy); }

.map-distribution { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.map-distribution__title { font-size: 15px; margin-bottom: 10px; }
.map-distribution__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.map-distribution__list a {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 9px 11px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

.map-distribution__list a:hover { border-color: #c8d6ec; color: var(--navy); }
.map-distribution__list strong { font-size: 12.5px; }
.map-distribution__list small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--navy-soft); aspect-ratio: 4 / 3; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-gallery a:hover img { transform: scale(1.04); }

.project-side { position: sticky; top: 190px; display: grid; gap: 18px; }

.side-card { padding: 22px; }
.side-card__title { font-size: 16px; margin: 0 0 13px; padding-bottom: 9px; border-bottom: 3px solid var(--gold); }
.side-card__text { color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.side-card__btn { margin-top: 14px; width: 100%; }

.side-list { display: grid; gap: 7px; margin: 0; }
.side-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #f8fafd; border-radius: 9px; font-size: 12.5px; }
.side-list li span { color: var(--muted); flex: none; }
.side-list li strong { color: var(--heading); font-weight: 700; text-align: left; }
.side-list--stack li { flex-direction: column; gap: 1px; }
.side-list--stack li strong { text-align: right; }

.employer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.employer__logo { max-width: 150px; max-height: 80px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.employer__name { font-size: 15px; color: var(--heading); }
.employer__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.employer__link svg, .employer__address svg { width: 16px; height: 16px; vertical-align: -3px; }
.employer__address { color: var(--muted); font-size: 12.5px; margin: 0; }
.employer__row { display: flex; gap: 6px; font-size: 12.5px; margin: 0; }
.employer__row span { color: var(--muted); }

.related-projects { margin-top: 34px; }

/* ---------------------------- اشتراک‌گذاری -------------------------------- */
.share-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.share-box--bottom { margin-top: 26px; }
.share-box__title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.share-box__title svg { width: 18px; height: 18px; }
.share-box__list { display: flex; gap: 7px; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.share-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.share-btn--copy { background: var(--navy-soft); border-color: #d2e0f2; color: var(--navy); }

/* ------------------------------ کارزار اتحاد ------------------------------ */
.campaign-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f7faff, #fff 55%, #fdf8ec);
  border-top: 5px solid var(--gold);
}

.campaign-intro h2 { font-size: 21px; margin-bottom: 6px; }
.campaign-intro p { color: var(--text); font-size: 14px; line-height: 2; margin-bottom: 14px; }
.campaign-intro__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 210px; }
.campaign-intro__pending, .campaign-intro__verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 10px; }
.campaign-intro__pending { background: #fdf3dc; color: #8a6508; }
.campaign-intro__verified { background: #e8f6ee; color: #1c6b3f; }
.campaign-intro__pending svg, .campaign-intro__verified svg { width: 17px; height: 17px; }

.campaign-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.campaign-steps li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; }
.campaign-steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 11.5px; font-weight: 800; }

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.campaign-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.campaign-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.campaign-card__votes { color: var(--muted); font-size: 11.5px; }
.campaign-card__title { font-size: 16.5px; line-height: 1.8; margin: 0 0 7px; }
.campaign-card__title a { color: var(--heading); }
.campaign-card__title a:hover { color: var(--navy); }
.campaign-card__text { color: var(--text); font-size: 13.5px; line-height: 1.9; flex: 1; margin-bottom: 13px; }
.campaign-card__meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 12px; margin-top: 10px; }
.campaign-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.campaign-card__meta svg { width: 15px; height: 15px; }
.campaign-card__more { font-size: 13px; font-weight: 700; margin-top: 10px; }

.campaign-progress { margin-top: 2px; }
.campaign-progress__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.campaign-progress__head strong { color: var(--navy); font-size: 12px; }

.campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.campaign-single { min-width: 0; }
.campaign-article { padding: 30px; }
.campaign-article__meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.campaign-article__author, .campaign-article__date { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.campaign-article__author svg, .campaign-article__date svg { width: 16px; height: 16px; }
.campaign-article__title { font-size: 25px; line-height: 1.7; margin: 0 0 12px; }
.campaign-article__body { font-size: 14.5px; line-height: 2.1; color: var(--text); margin-bottom: 22px; }

.campaign-vote-box {
  padding: 20px;
  background: linear-gradient(160deg, #f7faff, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.campaign-vote-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.campaign-vote-box__head h2 { font-size: 16.5px; margin: 0; }
.campaign-vote-box__threshold { color: var(--gold-dark); font-size: 12.5px; font-weight: 700; }

.campaign-vote-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.vote-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 6px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.vote-stat strong { color: var(--navy); font-size: 20px; line-height: 1.4; }
.vote-stat span { color: var(--muted); font-size: 11.5px; }
.vote-stat--approve { border-color: #c5e5d4; background: #f4fbf7; }
.vote-stat--approve strong { color: #1c6b3f; }
.vote-stat--reject { border-color: #efc6c2; background: #fdf7f6; }
.vote-stat--reject strong { color: #b3261e; }

.vote-form { margin-top: 13px; }
.vote-form__hint { color: var(--muted); font-size: 12.5px; margin-bottom: 9px; }
.vote-form__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.campaign-closed-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 10px 13px; background: #f3f5f9; border-radius: 10px; color: var(--muted); font-size: 13px; }
.campaign-closed-note svg { width: 18px; height: 18px; }
.campaign-gate { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--border); }
.campaign-gate p { color: var(--text); font-size: 13px; }

.campaign-dates { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.campaign-dates span { display: inline-flex; align-items: center; gap: 5px; }
.campaign-dates svg { width: 16px; height: 16px; }
.campaign-history { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--border); }
.campaign-side { position: sticky; top: 190px; display: grid; gap: 18px; }
.campaign-track-mini { display: flex; gap: 7px; }
.campaign-track-mini .form-control { flex: 1; min-width: 0; }

/* ------------------------------ حساب شهروندی ------------------------------ */
.citizen-wrap { max-width: 940px; }
.form-wrap { max-width: 880px; }

.citizen-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  background: #eef2f9;
  border-radius: 12px;
}

.citizen-tab {
  flex: 1;
  text-align: center;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.citizen-tab.is-active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.citizen-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.citizen-info { padding: 22px; }

.citizen-card { padding: 26px 28px; }
.citizen-card__head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.citizen-avatar { display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--navy-soft); color: var(--navy); }
.citizen-avatar svg { width: 28px; height: 28px; }
.citizen-name { font-size: 19px; margin: 0 0 2px; }
.citizen-meta { color: var(--muted); font-size: 12.5px; margin: 0; }
.citizen-card__head .badge { margin-inline-start: auto; }
.citizen-note { font-size: 13.5px; line-height: 2; color: var(--text); }
.citizen-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.citizen-profile { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.citizen-profile h3 { font-size: 15px; margin-bottom: 10px; }
.citizen-logout { margin-top: 14px; }
.citizen-info__list { display: grid; gap: 11px; }
.citizen-info__list li { display: flex; gap: 9px; align-items: flex-start; }
.citizen-info__list svg { width: 21px; height: 21px; flex: none; color: var(--navy); margin-top: 3px; }
.citizen-info__list strong { display: block; color: var(--heading); font-size: 13px; }
.citizen-info__list span { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; }

.citizen-form .admin-actions { margin-top: 0; }
.form-intro { color: var(--muted); font-size: 13.5px; line-height: 2; margin-bottom: 14px; }
.form-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.verified-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #f2fbf6;
  border: 1px solid #c8e7d5;
  border-inline-start: 5px solid var(--green);
  border-radius: var(--radius-sm);
}

.verified-banner > svg { width: 26px; height: 26px; color: var(--green-dark); flex: none; }
.verified-banner > div { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.verified-banner strong { color: #1c6b3f; font-size: 13.5px; }
.verified-banner span { color: var(--text); font-size: 12.5px; }
.verified-banner a { font-size: 12.5px; font-weight: 700; }

.form-alert--success { background: #eefaf3; border-color: #bfe4d0; color: #1c6b3f; }

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px 4px;
  margin: 0 0 20px;
  min-width: 0;
}

.form-fieldset legend {
  padding: 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin: 8px 0 4px;
  cursor: pointer;
}

.form-check input { margin-top: 6px; flex: none; }
.form-privacy { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.form-privacy svg { width: 19px; height: 19px; flex: none; color: var(--green-dark); margin-top: 3px; }

.mayor-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.mayor-form { padding: 26px 28px; }
.mayor-contact-side { display: grid; gap: 18px; }
.footer__contact--side { display: grid; gap: 7px; }
.footer__contact--side li { color: var(--text); font-size: 12.5px; margin: 0; }
.footer__contact--side svg { color: var(--navy); }

.my-messages { display: grid; gap: 10px; }
.my-messages li { padding: 10px 12px; background: #f8fafd; border: 1px solid var(--border); border-radius: 10px; }
.my-messages__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.my-messages__head strong { font-size: 12.5px; color: var(--heading); }
.my-messages small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.my-messages__reply { margin: 7px 0 0; padding-top: 7px; border-top: 1px dashed var(--border); color: var(--text); font-size: 12px; line-height: 1.9; }

.track-card { padding: 28px; }
.track-help { text-align: center; padding: 20px 0 4px; }
.track-help h2 { font-size: 19px; }
.track-help p { color: var(--muted); max-width: 620px; margin: 0 auto 14px; }
.track-result__code { color: var(--muted); font-size: 13px; font-weight: 700; }
.track-result__text { color: var(--text); font-size: 13.5px; }
.track-response { margin-top: 16px; padding: 14px 16px; background: #f2fbf6; border: 1px solid #c8e7d5; border-radius: var(--radius-sm); }
.track-response h3 { font-size: 14.5px; color: #1c6b3f; }
.track-response p { margin: 0; font-size: 13px; }

/* ----------------------------- جست‌وجو و ۴۰۴ ------------------------------ */
.search-wrap { max-width: 920px; }
.search-hero { padding: 24px 26px; margin-bottom: 22px; }
.search-hero__row { display: flex; gap: 10px; align-items: stretch; }
.search-hero__row .form-control { flex: 1; }
.search-hero__hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.search-empty { margin-top: 10px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.search-suggestions a { padding: 5px 14px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 12.5px; font-weight: 600; }
.search-suggestions a:hover { background: var(--navy); color: var(--white); }
.search-tabs { margin-bottom: 16px; }
.search-tabs a span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-inline-start: 4px; border-radius: 999px; background: rgba(6, 66, 136, 0.1); font-size: 10.5px; }
.search-tabs a.is-active span { background: rgba(255, 255, 255, 0.2); }
.search-results { display: grid; gap: 12px; }

.search-result {
  padding: 17px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--navy-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, transform 0.18s;
}

.search-result:hover { border-inline-start-color: var(--gold); transform: translateY(-1px); }
.search-result__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.search-result__meta { color: var(--muted); font-size: 11.5px; }
.search-result__title { font-size: 16.5px; margin: 0 0 5px; line-height: 1.8; }
.search-result__title a { color: var(--heading); }
.search-result__text { color: var(--text); font-size: 13.5px; line-height: 1.9; margin-bottom: 6px; }
.search-result__text mark, .search-result__title mark { background: #fff0bd; color: inherit; padding: 0 2px; border-radius: 3px; }
.search-result__link { font-size: 12.5px; font-weight: 700; }

.notfound-wrap { max-width: 780px; }
.notfound-panel { text-align: center; padding: 34px 30px 30px; border-top: 6px solid var(--gold); }
.notfound-code { display: block; font-size: 66px; font-weight: 900; line-height: 1.1; color: var(--navy-soft); letter-spacing: 4px; }
.notfound-title { font-size: 23px; margin: 2px 0 6px; }
.notfound-text { color: var(--muted); max-width: 560px; margin: 0 auto 18px; font-size: 14px; }

.site-search--wide {
  max-width: 560px;
  margin: 0 auto 22px;
  background: #f7f9fd;
  border: 1px solid var(--border);
  min-width: 0;
}

.site-search--wide .site-search__input { color: var(--text); width: 100%; }
.site-search--wide .site-search__input::placeholder { color: var(--muted); }
.site-search--wide .site-search__btn { width: auto; padding: 0 18px; gap: 6px; font-size: 13px; font-weight: 700; }

.notfound-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.notfound-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 8px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.notfound-links a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.notfound-links svg { width: 23px; height: 23px; color: var(--navy); }
.notfound-links a:hover svg { color: var(--gold); }

/* ---------------------------- گزارش عملکرد -------------------------------- */
.performance-filters { display: grid; gap: 14px; }
.performance-filters .news-tabs { margin-bottom: 0; }
.performance-year { margin-bottom: 32px; }

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.performance-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.performance-card__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-soft); }
.performance-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.performance-card__body { display: flex; flex-direction: column; flex: 1; padding: 17px 19px 19px; }
.performance-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.performance-card__title { font-size: 16px; line-height: 1.8; margin: 0 0 6px; }
.performance-card__title a { color: var(--heading); }
.performance-card__text { color: var(--text); font-size: 13px; line-height: 1.9; flex: 1; }
.performance-card__actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.performance-single { max-width: 880px; }
.performance-article { padding: 30px; }
.performance-article__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.performance-article__cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; }
.performance-article__lead { font-size: 15px; color: var(--text); line-height: 2; border-inline-start: 4px solid var(--gold); padding-inline-start: 13px; }

/* ------------------------------ نقشه شهری --------------------------------- */
.map-page { padding: 26px; }
.map-page__notice { display: flex; align-items: flex-start; gap: 13px; padding: 15px 17px; margin-bottom: 18px; background: #f2f7ff; border: 1px solid #d5e3f5; border-radius: var(--radius-sm); }
.map-page__notice > svg { width: 30px; height: 30px; flex: none; color: var(--navy); margin-top: 2px; }
.map-page__notice strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 3px; }
.map-page__notice p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.9; }
.map-embed--page { aspect-ratio: 16 / 8; margin-bottom: 20px; }
.map-page__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.map-page__item { padding: 15px 16px; background: #f8fafd; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.map-page__item > span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); margin-bottom: 7px; }
.map-page__item svg { width: 19px; height: 19px; }
.map-page__item strong { display: block; font-size: 13.5px; color: var(--heading); margin-bottom: 2px; }
.map-page__item p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.map-page__item a { font-size: 12px; font-weight: 700; }

/* ------------------------- گالری و رویدادهای صفحه اصلی -------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-card { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.gallery-card img, .gallery-card__placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy-soft); color: var(--navy); }
.gallery-card__placeholder svg { width: 38px; height: 38px; opacity: 0.6; }
.gallery-card figcaption { padding: 8px 12px; font-size: 12.5px; color: var(--heading); font-weight: 600; text-align: center; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-card { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.event-card__date { flex: none; width: 56px; padding: 7px 4px; text-align: center; background: var(--navy); color: var(--white); border-radius: 10px; }
.event-card__date strong { display: block; font-size: 20px; line-height: 1.3; }
.event-card__date small { display: block; font-size: 10.5px; opacity: 0.85; }
.event-card__body h3 { font-size: 14.5px; margin: 0 0 3px; }
.event-card__body p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }

/* -------------------------------- پاسخگو ---------------------------------- */
@media (max-width: 1180px) {
  .site-search { min-width: 180px; }
  .site-search__input { width: 160px; }
  .notice-grid, .campaign-grid, .performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topband__inner { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .topband__tools { order: 3; width: 100%; margin-inline-start: 0; }
  .site-search { flex: 1; min-width: 0; }
  .site-search__input { width: 100%; }
  .topband__account { flex: none; }
  .project-layout, .campaign-layout, .citizen-grid, .mayor-contact-layout { grid-template-columns: minmax(0, 1fr); }
  .project-side, .campaign-side { position: static; }
  .project-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-page__meta { grid-template-columns: 1fr; }
  .campaign-intro { grid-template-columns: minmax(0, 1fr); }
  .campaign-intro__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .campaign-intro__actions .btn { flex: 1; }
}

@media (max-width: 760px) {
  .notice-grid, .campaign-grid, .performance-grid { grid-template-columns: minmax(0, 1fr); }
  .project-filters { grid-template-columns: 1fr; }
  .project-filters__actions { width: 100%; }
  .project-filters__actions .btn { flex: 1; }
  .project-facts { grid-template-columns: 1fr; }
  .map-distribution__list { grid-template-columns: 1fr; }
  .campaign-vote-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-steps { grid-template-columns: 1fr; }
  .search-hero__row { flex-direction: column; }
  .search-hero__row .btn { width: 100%; }
  .notfound-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: 1fr; }
  .notfound-code { font-size: 52px; }
  .project-body, .campaign-article, .performance-article, .map-page, .mayor-form, .citizen-card { padding: 20px; }
  .project-section { padding: 20px; }
  .filter-card { padding: 18px; }
  .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-summary__item:first-child { grid-column: 1 / -1; }
  .urgent-band { flex-direction: column; gap: 7px; }
  .urgent-band__list { flex-direction: column; gap: 3px; }
  .share-box { align-items: flex-start; }
}

@media (max-width: 640px) {
  .brand { gap: 9px; }
  .topband__account { padding: 6px 9px; font-size: 11.5px; }
  .topband__account svg { width: 18px; height: 18px; }
  .topband__account small { display: none; }
  .site-search { min-height: 40px; }
  .site-search__input { padding: 8px 10px; font-size: 12.5px; }
  .site-search__btn { width: 40px; }
  .project-summary { gap: 8px; }
  .project-summary__num { font-size: 20px; }
  .project-summary__label { font-size: 11.5px; }
  .campaign-intro__actions { flex-direction: column; }
  .form-wrap, .citizen-wrap { width: 100%; }
  .citizen-tabs { flex-direction: column; }
  .citation { display: none; }
  .notfound-panel { padding: 26px 16px; }
  .notfound-links a { font-size: 11.5px; padding: 11px 5px; }
  .map-embed--page { aspect-ratio: 4 / 3; }
  .project-gallery { grid-template-columns: 1fr; }
  .share-btn { font-size: 11px; padding: 4px 9px; }
}


.member-card--link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.member-card--link:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.member-card__more { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.member-profile { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.member-profile__side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; background: var(--bg); border-radius: var(--radius-sm); border-top: 4px solid var(--gold); }
.member-profile__side .avatar { width: 140px; height: 140px; margin-bottom: 8px; }
.member-profile__lead { font-size: 16px; font-weight: 700; color: var(--heading); margin-top: 0; }
@media (max-width: 720px) { .member-profile { grid-template-columns: 1fr; } }

.choice-list { display: grid; gap: 8px; }
.choice-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--white); transition: border-color .15s, background .15s; }
.choice-item:hover { border-color: var(--navy); }
.choice-item input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.choice-item:has(input:checked) { border-color: var(--navy); background: rgba(6, 66, 136, 0.06); }

/* ---- Clock & calendar band (above footer) ---- */
.clockcal { background: var(--bg); padding: 28px 0; border-top: 1px solid var(--border); }
.clockcal__wrap { display: flex; align-items: center; gap: 28px; }
.clockcal__card { flex: 1; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 28px 24px; min-width: 0; }
.clockcal__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.clockcal__title { font-size: 20px; margin: 0; color: var(--heading); }
.clockcal__sep { width: 1px; height: 28px; background: var(--border); }
.clockcal__today { color: var(--gold-dark); font-weight: 700; font-size: 16px; }
.clockcal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.clockcal__item h3 { color: var(--gold-dark); font-size: 15px; margin: 0 0 10px; }
.clockcal__item strong { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.clockcal__item span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.clockcal__zodiac { display: flex !important; align-items: center; justify-content: center; gap: 8px; }
.clockcal__zodiac [data-cc="zodiac-icon"] { font-size: 26px; color: var(--gold-dark); line-height: 1; margin: 0; }
.clockcal__zodiac [data-cc="zodiac"] { font-size: 14px; color: var(--text); margin: 0; }
.clockcal__clock { flex: none; width: 190px; text-align: center; }
.clockcal__face { width: 170px; height: 170px; display: block; margin: 0 auto 8px; }
.clockcal__digital { font-size: 22px; font-weight: 700; letter-spacing: 1px; color: #3a3a3a; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .clockcal__wrap { flex-direction: column-reverse; align-items: stretch; }
  .clockcal__grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .clockcal__card { padding: 18px 16px; }
  .clockcal__sep { display: none; }
}

/* ---- Home slider (above the mayor video) ---- */
.slides { padding: 28px 0 0; }
.slider { position: relative; height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow-md); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 37, 84, 0.88) 0%, rgba(3, 37, 84, 0.45) 45%, rgba(3, 37, 84, 0.08) 100%); }
.slide--y-top .slide__shade { background: linear-gradient(180deg, rgba(3, 37, 84, 0.88) 0%, rgba(3, 37, 84, 0.45) 45%, rgba(3, 37, 84, 0.08) 100%); }
.slide--y-center .slide__shade { background: linear-gradient(180deg, rgba(3, 37, 84, 0.2) 0%, rgba(3, 37, 84, 0.65) 50%, rgba(3, 37, 84, 0.2) 100%); }
.slide--plain .slide__shade { background: radial-gradient(circle at 20% 20%, rgba(222, 175, 57, 0.18), transparent 55%); }
.slide__body { position: relative; z-index: 2; padding: 34px 56px 52px; width: 100%; max-width: 760px; color: var(--sc, var(--white)); text-align: var(--ta, right); margin-right: 0; margin-left: auto; }
/* مکان متن روی اسلاید: افقی (راست/وسط/چپ) و عمودی (بالا/وسط/پایین) */
.slide--x-right .slide__body { margin-right: 0; margin-left: auto; }
.slide--x-center .slide__body { margin-right: auto; margin-left: auto; }
.slide--x-left .slide__body { margin-right: auto; margin-left: 0; }
.slide--y-top { align-items: flex-start; }
.slide--y-center { align-items: center; }
.slide--y-bottom { align-items: flex-end; }
.slide__title { color: var(--sc, var(--white)); font-size: var(--ts, 30px); font-weight: var(--tw, 800); font-style: var(--ti, normal); line-height: 1.5; margin: 0 0 10px; }
.slide__text { margin: 0 0 18px; font-size: var(--xs, 16px); font-weight: var(--xw, 400); font-style: var(--xi, normal); line-height: 2; color: var(--sc, rgba(255, 255, 255, 0.9)); }
.btn--gold { background: var(--gold); color: #3b2c00; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.slider__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s; }
.slider__nav:hover { background: rgba(255, 255, 255, 0.38); }
.slider__nav--next { left: 14px; }
.slider__nav--prev { right: 14px; }
.slider__dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slider__dot { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: width 0.25s, background 0.25s; }
.slider__dot.is-active { width: 28px; background: var(--gold); }
@media (max-width: 760px) {
  .slider { height: 320px; }
  .slide__body { padding: 20px 20px 46px; }
  .slide__title { font-size: calc(var(--ts, 30px) * 0.7); }
  .slide__text { font-size: calc(var(--xs, 16px) * 0.875); line-height: 1.9; margin-bottom: 12px; }
  .slider__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* گزارش ناشناس سامانه ۱۳۷ */
[hidden] { display: none !important; }
.anon-toggle { background: var(--bg); border: 1.5px dashed var(--gold); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; font-size: 14px; }
.anon-toggle input { width: 18px; height: 18px; }
.anon-hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }
#anon-size-msg { color: #8a1f1f; font-weight: 700; }

.tourism-cats { margin-top: 20px; display: grid; gap: 12px; }
.tourism-cats .faq-item { padding: 0; }
