/* ═══════════════════════════════════════════════════════════════════
   صفحهٔ افتخارات — پارس پگاه تجارت (طرح جدید)
   honors.css · وابسته به main.css (توکن‌ها و کلاس‌های پایه)
   پیشوند: hn-
   ═══════════════════════════════════════════════════════════════════ */

/* ─── ۱) هیرو + KPI ─────────────────────────────────────────────── */
.hn-hero {
  position: relative;
  padding: calc(var(--nav-h, 72px) + clamp(48px, 8vw, 84px)) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.hn-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 22% 22%, rgba(223, 181, 79, 0.08), transparent 68%),
    radial-gradient(40% 38% at 82% 76%, rgba(43, 224, 166, 0.07), transparent 66%);
  pointer-events: none;
}
.hn-hero .wrap { position: relative; }

.hn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.72);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hn-hero__title { margin: 22px 0 0; max-width: 22ch; }
.hn-hero__latin {
  display: block;
  margin-top: 14px;
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--muted-2);
}
.hn-hero__lead { margin-top: 20px; max-width: 62ch; }

.hn-kpis {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hn-kpi {
  position: relative;
  padding: 22px 20px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel);
  overflow: hidden;
}
.hn-kpi::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 181, 79, 0.5), transparent);
  opacity: 0.7;
}
.hn-kpi__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hn-kpi__num .plus {
  font-size: 0.62em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-inline-start: 2px;
}
.hn-kpi__label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ─── ۲) اسپات‌لایت: سند شاخص ───────────────────────────────────── */
.hn-spot { padding: clamp(20px, 3vw, 34px) 0 clamp(40px, 5vw, 64px); }

.hn-spot__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--hair);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 130% at 92% 8%, rgba(223, 181, 79, 0.07), transparent 46%),
    radial-gradient(90% 110% at 6% 92%, rgba(43, 224, 166, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  isolation: isolate;
}
.hn-spot__card::before {
  content: "";
  position: absolute;
  inset-inline-end: -140px;
  top: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 181, 79, 0.13), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hn-spot__flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(223, 181, 79, 0.35);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}
.hn-spot__title {
  margin: 18px 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.hn-spot__title .ac { color: var(--gold); }
.hn-spot__excerpt {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.4vw, 1.02rem);
  line-height: 2.05;
  max-width: 56ch;
}
.hn-spot__facts {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 18px;
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  background: rgba(5, 6, 5, 0.45);
}
.hn-spot__fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}
.hn-spot__fact svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.hn-spot__fact b { color: var(--ink); font-weight: 600; }
.hn-spot__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* سند در قاب شاخص — استیج تیلت سه‌بعدی */
.hn-spot__stage { perspective: 1400px; }
.hn-spot__media {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--hair);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  box-shadow:
    0 0 0 1px rgba(5, 6, 5, 0.6),
    0 34px 80px -26px rgba(223, 181, 79, 0.16),
    0 26px 70px -30px rgba(0, 0, 0, 0.85);
  cursor: zoom-in;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}
.hn-spot__media:hover {
  border-color: rgba(223, 181, 79, 0.4);
  box-shadow:
    0 0 0 1px rgba(5, 6, 5, 0.6),
    0 40px 90px -26px rgba(223, 181, 79, 0.24),
    0 26px 70px -30px rgba(0, 0, 0, 0.85);
}
.hn-spot__media::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  pointer-events: none;
}
.hn-spot__media img {
  display: block;
  width: 100%;
  height: auto; /* اتریبیوت height در HTML را خنثی می‌کند تا aspect-ratio حاکم باشد */
  aspect-ratio: 1087 / 1536;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.94) contrast(1.02);
}
.hn-spot__zoom {
  position: absolute;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(5, 6, 5, 0.7);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.78rem;
  pointer-events: none;
}
.hn-spot__zoom svg { width: 14px; height: 14px; color: var(--gold); }
.hn-spot__stamp {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 22px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(5, 6, 5, 0.66);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  pointer-events: none;
}
.hn-spot__stamp .latin { color: var(--gold); }

/* ─── ۳) سرصفحهٔ سکشن‌ها ─────────────────────────────────────────── */
.hn-sec-head { max-width: 720px; }
.hn-sec-head .eyebrow { display: inline-flex; }
.hn-sec-head__title { margin: 16px 0 0; max-width: 22ch; }
.hn-sec-head__lead { margin: 16px 0 0; max-width: 58ch; color: var(--muted); }

/* ─── ۴) نوار فیلتر ─────────────────────────────────────────────── */
.hn-tools { padding: clamp(8px, 1.5vw, 18px) 0 8px; }
.hn-tools__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.6);
  backdrop-filter: blur(10px);
}
.hn-tools__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline-end: 6px;
  color: var(--muted-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hn-tools__label svg { width: 14px; height: 14px; }
.hn-chip {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hn-chip:hover { color: var(--ink); border-color: rgba(223, 181, 79, 0.4); transform: translateY(-1px); }
.hn-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hn-chip[aria-pressed="true"] {
  color: #1d1503;
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 6px 22px -8px rgba(223, 181, 79, 0.55);
}
.hn-chip__n { font-size: 0.72rem; opacity: 0.78; font-weight: 500; }
.hn-tools__status {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.8rem;
  white-space: nowrap;
}
.hn-tools__status b { color: var(--gold); font-weight: 700; }
.hn-tools__hint {
  margin-top: 14px;
  padding-inline: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.hn-tools__hint .latin { letter-spacing: 0.14em; }
.hn-legend { display: inline-flex; align-items: center; gap: 16px; }
.hn-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ─── ۵) دیوار افتخار (گرید اسناد) ──────────────────────────────── */
.hn-wall-sec { padding: clamp(36px, 5vw, 64px) 0 0; }
.hn-wall {
  margin-top: clamp(24px, 3.6vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(22px, 2.8vw, 30px) clamp(14px, 1.8vw, 20px);
  align-items: start;
}

.hn-card { position: relative; }
.hn-card.is-leaving { opacity: 0; transform: translateY(12px) scale(0.985); }
.hn-card.is-hidden { display: none; }
.hn-card,
.hn-card__frame { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }

/* قاب موزه‌ای سند */
.hn-card__frame {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(9px, 1.1vw, 12px);
  border: 1px solid var(--hair);
  border-radius: calc(var(--radius) - 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hn-card__frame::after {
  content: "";
  position: absolute;
  inset: clamp(9px, 1.1vw, 12px);
  border: 1px solid var(--hair-2);
  border-radius: 9px;
  pointer-events: none;
}
.hn-card__frame:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.hn-card:hover .hn-card__frame,
.hn-card:focus-within .hn-card__frame {
  transform: translateY(-6px);
  border-color: rgba(223, 181, 79, 0.38);
  box-shadow:
    0 26px 56px -22px rgba(223, 181, 79, 0.18),
    0 20px 44px -20px rgba(0, 0, 0, 0.7);
}
.hn-card__img {
  display: block;
  width: 100%;
  height: auto; /* اتریبیوت height در HTML را خنثی می‌کند تا aspect-ratio حاکم باشد */
  aspect-ratio: var(--ar, 3 / 4);
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.94) contrast(1.02);
  transition: filter 0.4s var(--ease);
}
.hn-card:hover .hn-card__img { filter: saturate(1.02) contrast(1.03); }

/* پلاک شمارهٔ سند */
.hn-card__plate {
  position: absolute;
  inset-block-start: -11px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(8, 10, 9, 0.92);
  font-family: var(--latin);
  font-style: italic;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  pointer-events: none;
}
.hn-card:hover .hn-card__plate {
  color: var(--gold);
  border-color: rgba(223, 181, 79, 0.4);
}

/* نشان بزرگ‌نمایی */
.hn-card__zoom {
  position: absolute;
  inset-block-end: 21px;
  inset-inline-end: 21px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: rgba(5, 6, 5, 0.72);
  backdrop-filter: blur(6px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.hn-card__zoom svg { width: 15px; height: 15px; }
.hn-card:hover .hn-card__zoom,
.hn-card:focus-within .hn-card__zoom { opacity: 1; transform: translateY(0); }

/* متای سند */
.hn-card__meta { padding: 13px 6px 2px; }
.hn-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.75;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s var(--ease);
}
.hn-card:hover .hn-card__title { color: var(--gold); }
.hn-card__sub {
  margin: 5px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
}

/* نقطهٔ رنگی نوع سند */
.hn-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}
.hn-dot--international { background: var(--teal); box-shadow: 0 0 8px rgba(43, 224, 166, 0.5); }
.hn-dot--national { background: var(--gold); box-shadow: 0 0 8px rgba(223, 181, 79, 0.5); }
.hn-dot--media { background: var(--muted); }

/* حالت خالی */
.hn-empty {
  display: none;
  padding: clamp(48px, 8vw, 90px) 20px;
  text-align: center;
  color: var(--muted-2);
}
.hn-empty.is-shown { display: block; }
.hn-empty .latin { display: block; margin-top: 10px; letter-spacing: 0.3em; font-size: 0.72rem; }

/* ─── ۶) خط زمان افتخارات ───────────────────────────────────────── */
.hn-timeline { padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 8vw, 100px); }

.hn-tl {
  position: relative;
  margin-top: clamp(36px, 5vw, 56px);
  max-width: 780px;
}
.hn-tl__rail {
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 13px;  /* در RTL این سمت راست است — هم‌راستای ستون نقطه‌ها */
  width: 2px;
  border-radius: 2px;
  background: var(--hair);
  overflow: hidden;
}
.hn-tl__fill {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0;
  background: linear-gradient(180deg, #f7e7b0, var(--gold) 60%, #a17d1f);
  box-shadow: 0 0 12px rgba(223, 181, 79, 0.55);
  transition: height 0.25s linear;
}
.hn-tl__list { list-style: none; margin: 0; padding: 0; }

.hn-tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: clamp(14px, 2.4vw, 26px);
  padding: 0 0 clamp(30px, 4vw, 46px);
  align-items: start;
}
.hn-tl__item:last-child { padding-bottom: 0; }

.hn-tl__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: clamp(14px, 2vw, 20px);
  justify-self: center;   /* مرکز ستون ۳۰px = مرکز ریل (13px + 1px) */
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}
.hn-tl__item.is-active .hn-tl__dot {
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(223, 181, 79, 0.12), 0 0 22px rgba(223, 181, 79, 0.4);
}

.hn-tl__year {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  transition: color 0.5s var(--ease);
  user-select: none;
}
.hn-tl__item.is-active .hn-tl__year {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hn-tl__title {
  margin: 6px 0 0;
  font-size: clamp(1.02rem, 1.7vw, 1.14rem);
  font-weight: 800;
  line-height: 1.7;
  color: var(--ink);
}
.hn-tl__text {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 2;
  max-width: 54ch;
  transition: color 0.5s var(--ease);
}
.hn-tl__item.is-active .hn-tl__text { color: var(--muted); }

/* ─── ۷) پنل CTA ────────────────────────────────────────────────── */
.hn-cta { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 130px); }
.hn-cta__panel {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 72px);
  border: 1px solid var(--hair);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(223, 181, 79, 0.09), transparent 55%),
    radial-gradient(60% 90% at 10% 100%, rgba(43, 224, 166, 0.06), transparent 55%),
    var(--panel);
  overflow: hidden;
}
.hn-cta__panel::before {
  content: "";
  position: absolute;
  inset-inline: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 181, 79, 0.55), transparent);
}
.hn-cta__title { max-width: 26ch; margin-inline: auto; }
.hn-cta__title .ac { color: var(--gold); }
.hn-cta__lead { margin: 18px auto 0; max-width: 52ch; color: var(--muted); }
.hn-cta__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hn-cta__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.hn-cta__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hn-cta__meta svg { width: 14px; height: 14px; color: var(--gold); }

/* ─── ۸) لایت‌باکس اسناد ─────────────────────────────────────────── */
.hn-lb[hidden] { display: none; }  /* ضروری: display:flex پایین، اتریبیوت hidden را خنثی می‌کند */
.hn-lb {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.hn-lb.is-in { opacity: 1; }
.hn-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 4, 0.92);
  backdrop-filter: blur(14px);
}
.hn-lb__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(94vw, 1150px);
  max-height: 100%;
  margin: 0;
}
.hn-lb__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-out);
  background: var(--panel);
}
.hn-lb__img.is-in { opacity: 1; transform: none; }

.hn-lb__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.85);
  backdrop-filter: blur(10px);
  text-align: center;
}
.hn-lb__title { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.hn-lb__sub { font-size: 0.78rem; color: var(--muted); }
.hn-lb__count {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.hn-lb__orig {
  font-size: 0.74rem;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.hn-lb__orig:hover { text-decoration: underline; }

.hn-lb__btn {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: rgba(8, 10, 9, 0.8);
  backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease-out), color 0.3s var(--ease);
}
.hn-lb__btn svg { width: 20px; height: 20px; }
.hn-lb__btn:hover {
  border-color: rgba(223, 181, 79, 0.55);
  color: var(--gold);
  transform: scale(1.06);
}
.hn-lb__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hn-lb__close { inset-block-start: clamp(14px, 3vw, 30px); inset-inline-end: clamp(14px, 3vw, 30px); }
.hn-lb__prev { inset-inline-end: clamp(14px, 3vw, 30px); top: 50%; margin-top: -23px; }
.hn-lb__next { inset-inline-start: clamp(14px, 3vw, 30px); top: 50%; margin-top: -23px; }

/* قفل اسکرول هنگام باز بودن لایت‌باکس */
html.is-hn-lb, html.is-hn-lb body { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
  .hn-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hn-spot__card { grid-template-columns: 1fr; }
  .hn-spot__stage { order: -1; max-width: 430px; margin-inline: auto; }
  .hn-spot__media img { aspect-ratio: 1087 / 1300; }
}

@media (max-width: 720px) {
  .hn-tools__bar { border-radius: var(--radius); align-items: stretch; flex-direction: column; }
  .hn-tools__status { margin-inline-start: 0; }
  .hn-tools__hint { flex-direction: column; gap: 8px; padding-inline: 16px; }
  .hn-chip { justify-content: center; }
  .hn-legend { flex-wrap: wrap; gap: 10px 14px; }

  .hn-wall { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .hn-card__plate { font-size: 0.7rem; padding: 3px 9px; inset-block-start: -9px; }
  .hn-card__title { font-size: 0.86rem; -webkit-line-clamp: 3; line-clamp: 3; }
  .hn-card__sub { font-size: 0.7rem; white-space: normal; }

  .hn-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hn-kpi { padding: 16px 14px 14px; }
  .hn-kpi__num { font-size: 1.7rem; }
  .hn-kpi__label { font-size: 0.76rem; }

  .hn-spot__facts { gap: 8px 14px; padding: 12px 14px; }
  .hn-spot__actions .btn { width: 100%; justify-content: center; }

  .hn-tl__item { grid-template-columns: 24px 1fr; gap: 12px; }
  .hn-tl__rail { inset-inline-start: 11px; }  /* مرکز ستون ۲۴px موبایل */
  .hn-tl__dot { width: 11px; height: 11px; }

  .hn-lb__prev { inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(-50%); top: auto; bottom: clamp(14px, 3vw, 30px); margin-top: 0; }
  .hn-lb__next { inset-inline-start: 50%; transform: translateX(-50%); top: auto; bottom: clamp(14px, 3vw, 30px); }
  .hn-lb__btn { width: 42px; height: 42px; }
  .hn-lb__cap { flex-direction: column; gap: 4px; border-radius: 16px; padding: 10px 14px; }
  .hn-lb__img { max-height: 74vh; }
}

/* ─── کاهش حرکت ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hn-card,
  .hn-card__frame,
  .hn-card__img,
  .hn-card__zoom,
  .hn-card__plate,
  .hn-chip,
  .hn-spot__media,
  .hn-lb,
  .hn-lb__img,
  .hn-lb__btn { transition: none; }
  .hn-card.is-leaving { transition: none; }
  .hn-card:hover .hn-card__frame,
  .hn-card:focus-within .hn-card__frame { transform: none; }
  .hn-tl__fill { transition: none; }
  .hn-lb__img { transform: none; }
  .hn-lb__img.is-in { transform: none; }
}









/* ═══════════════════════════════════════════════════════════════════
   ارتقای ۱.۱ — هیروی دوستونه + ویترین مدال داغستان
   (الحاق به انتهای honors.css — نیازی به حذف قوانین قبلی نیست)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── هیرو: گرید دوستونه (متن راست / ویترین چپ) ────────────────── */
.hn-hero {
  position: relative;
  padding: calc(var(--nav-h, 72px) + clamp(48px, 8vw, 84px)) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.hn-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 22% 22%, rgba(223, 181, 79, 0.08), transparent 68%),
    radial-gradient(40% 38% at 82% 76%, rgba(43, 224, 166, 0.07), transparent 66%);
  pointer-events: none;
}
.hn-hero .wrap { position: relative; }

.hn-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 4.5vw, 62px);
  align-items: center;
}
.hn-hero__content { min-width: 0; }

.hn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.72);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hn-hero__title { margin: 22px 0 0; max-width: 22ch; }
.hn-hero__latin {
  display: block;
  margin-top: 14px;
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--muted-2);
}
.hn-hero__lead { margin-top: 20px; max-width: 60ch; }

/* ── ویترین مدال: استیج موزه‌ای ─────────────────────────────────── */
.hn-medal {
  position: relative;
  min-width: 0;
  perspective: 1300px;
}

.hn-medal__viewport {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: clamp(420px, 46vw, 590px);
  width: 100%;
  margin-inline: auto;
  border-radius: calc(var(--radius) + 10px);
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out);
}
.hn-medal__viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(43, 224, 166, 0.55);
  border-radius: calc(var(--radius) + 10px);
}

/* هالهٔ زمرد + طلایی پشت ویترین */
.hn-medal__glow {
  position: absolute;
  inset: -6% -10%;
  background:
    radial-gradient(42% 40% at 50% 40%, rgba(43, 224, 166, 0.14), transparent 70%),
    radial-gradient(50% 46% at 50% 62%, rgba(223, 181, 79, 0.12), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

/* پرتوهای نورانی بسیار ملایم و چرخان */
.hn-medal__rays {
  position: absolute;
  inset: 12% 16%;
  background: repeating-conic-gradient(
    from 0deg at 50% 46%,
    rgba(223, 181, 79, 0.05) 0deg 7deg,
    transparent 7deg 24deg
  );
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  animation: hnRaysSpin 46s linear infinite;
  pointer-events: none;
}
@keyframes hnRaysSpin { to { transform: rotate(360deg); } }

/* حلقهٔ موزه‌ای دور ویترین */
.hn-medal__ring {
  position: absolute;
  inset: 4.5% 9%;
  border: 1px solid var(--hair);
  border-radius: 50%;
  pointer-events: none;
}
.hn-medal__ring::before,
.hn-medal__ring::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(223, 181, 79, 0.4);
}
.hn-medal__ring::before { inset-block-start: -17px; inset-inline-start: calc(50% - 17px); }
.hn-medal__ring::after  { inset-block-end: -17px; inset-inline-start: calc(50% - 17px); border-color: rgba(43, 224, 166, 0.32); }

/* اسلایدها: کراس‌فید + مقیاس نرم */
.hn-medal__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  opacity: 0;
  transform: scale(0.965);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease-out), visibility 0s linear 0.75s;
  pointer-events: none;
  visibility: hidden;
}
.hn-medal__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease-out), visibility 0s;
}

.hn-medal__zoombtn {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.hn-medal__zoombtn:focus-visible { outline: none; }
.hn-medal__zoombtn:focus-visible .hn-medal__art {
  box-shadow: 0 0 0 2px rgba(43, 224, 166, 0.5);
  border-radius: 14px;
}

.hn-medal__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
/* picture باید ارتفاع قطعی بگیرد تا زنجیرهٔ درصدیِ تصویر حل شود */
.hn-medal__art picture {
  display: block;
  height: 100%;
  min-height: 0;
  max-width: 100%;
}

/* تصویر مدال: شناور با سایهٔ نرم */
.hn-medal__slide--medal .hn-medal__img {
  display: block;
  height: auto;
  max-height: calc(100% - 24px); /* جای تنفس انیمیشن شناوری ±۱۱px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 30px 34px rgba(0, 0, 0, 0.55))
    drop-shadow(0 8px 22px rgba(223, 181, 79, 0.16));
  animation: hnMedalFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes hnMedalFloat {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50%      { transform: translateY(-11px) rotate(0.4deg); }
}
/* سایهٔ کف زیر مدال */
.hn-medal__floor {
  position: absolute;
  inset-block-end: 7%;
  inset-inline: 0;
  margin-inline: auto;
  width: 52%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 72%);
  filter: blur(3px);
  animation: hnFloorPulse 7s ease-in-out infinite;
}
@keyframes hnFloorPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50%      { transform: scaleX(0.9); opacity: 0.6; }
}

/* گواهینامه: قاب سند با پاس‌پارتو */
.hn-medal__slide--doc .hn-medal__art { padding: 0 6%; }
.hn-medal__slide--doc .hn-medal__img {
  display: block;
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding: clamp(8px, 1.2vw, 14px);
  border: 1px solid var(--hair);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    var(--panel-2);
  box-shadow:
    0 0 0 1px rgba(5, 6, 5, 0.6),
    0 30px 70px -24px rgba(0, 0, 0, 0.8),
    0 18px 50px -26px rgba(223, 181, 79, 0.18);
  transform: rotate(-1.6deg);
  transition: transform 0.55s var(--ease-out);
}
.hn-medal__slide--doc .hn-medal__zoombtn:hover .hn-medal__img { transform: rotate(0deg) translateY(-3px); }

/* نشان بزرگ‌نمایی */
.hn-medal__zoomhint {
  position: absolute;
  inset-block-end: 4%;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(5, 6, 5, 0.72);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.76rem;
  white-space: nowrap;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
  pointer-events: none;
}
.hn-medal__zoomhint svg { width: 14px; height: 14px; color: var(--gold); }
.hn-medal__zoombtn:hover .hn-medal__zoomhint,
.hn-medal__zoombtn:focus-visible .hn-medal__zoomhint { opacity: 1; translate: 0 0; }
@media (hover: none) {
  .hn-medal__zoomhint { opacity: 1; translate: 0 0; background: rgba(5, 6, 5, 0.55); }
}

/* کپشن اسلاید */
.hn-medal__cap {
  flex: 0 0 auto;
  margin-top: 12px;
  text-align: center;
  padding-inline: 12px;
}
.hn-medal__cap strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hn-medal__cap span {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--muted);
}
.hn-medal__cap time {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(223, 181, 79, 0.3);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

/* نوار ابزار: فلش‌ها + نقطه‌ها + شمارنده */
.hn-medal__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.hn-medal__nav {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: rgba(12, 15, 13, 0.7);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hn-medal__nav svg { width: 17px; height: 17px; }
.hn-medal__nav:hover {
  border-color: rgba(223, 181, 79, 0.5);
  color: var(--gold);
  transform: translateY(-1px);
}
.hn-medal__nav:focus-visible { outline: 2px solid rgba(43, 224, 166, 0.55); outline-offset: 2px; }

.hn-medal__dots { display: flex; align-items: center; gap: 8px; }
.hn-medal__dot {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 30px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.hn-medal__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right center; /* پیشرفت در RTL از راست به چپ */
}
.hn-medal__dot.is-active { background: rgba(223, 181, 79, 0.22); }
.hn-medal__dot.is-active::after { animation: hnDotFill 5.6s linear forwards; }
.hn-medal__dot:focus-visible { outline: 2px solid rgba(43, 224, 166, 0.55); outline-offset: 3px; }
@keyframes hnDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* توقف: پیشرفت نقطهٔ فعال می‌ایستد */
.hn-medal.is-paused .hn-medal__dot.is-active::after { animation-play-state: paused; }
/* بدون پخش خودکار (کاهش حرکت): نقطهٔ فعال پر و ثابت */
.hn-medal.is-static .hn-medal__dot.is-active::after { animation: none; transform: scaleX(1); }

.hn-medal__count {
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hn-medal__count b { color: var(--gold); font-weight: 800; }

/* ─── ریسپانسیو ویترین (v1.1) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hn-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hn-hero__lead { max-width: 65ch; }
  .hn-medal { max-width: 470px; margin-inline: auto; width: 100%; }
}

@media (max-width: 720px) {
  .hn-medal__viewport { aspect-ratio: 6 / 7; max-height: none; }
  .hn-medal__nav { width: 36px; height: 36px; }
  .hn-medal__dot { width: 24px; }
  .hn-medal__cap strong { font-size: 0.9rem; }
  .hn-medal__cap span { font-size: 0.74rem; }
  .hn-medal__zoomhint { font-size: 0.7rem; }
  .hn-medal__ring::before, .hn-medal__ring::after { width: 24px; height: 24px; }
  .hn-medal__ring::before { inset-block-start: -12px; inset-inline-start: calc(50% - 12px); }
  .hn-medal__ring::after { inset-block-end: -12px; inset-inline-start: calc(50% - 12px); }
}

/* ─── کاهش حرکت — ویترین (v1.1) ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hn-medal__rays { animation: none; }
  .hn-medal__slide--medal .hn-medal__img { animation: none; }
  .hn-medal__floor { animation: none; }
  .hn-medal__slide,
  .hn-medal__img { transition: none; }
  .hn-medal__slide--doc .hn-medal__img { transform: none; transition: none; }
  .hn-medal__zoombtn:hover .hn-medal__zoomhint { transition: none; }
}