/* ==========================================================================
   ردیف اول هدر: نوار سایت اصلی اپتیم (optim.ir)
   این فایل در هر دو سایت محصول (motorkhane و rusub) یکسان است؛ اگر عوض شد،
   در هر دو کپی شود. هدر خود سایت محصول (ردیف دوم) به اندازه‌ی --og-h پایین می‌آید.
   ========================================================================== */
:root { --og-h: 46px; }
@media (max-width: 767px) { :root { --og-h: 42px; } }

/* هدر سایت محصول زیر نوار اپتیم؛ ارتفاع هدر (برای padding بخش‌ها و sticky ها) هم بیشتر می‌شود */
:root, .tone-light { --header-h: calc(92px + var(--og-h)); }
@media (max-width: 767px) { :root, .tone-light { --header-h: calc(76px + var(--og-h)); } }
html { scroll-padding-top: calc(96px + var(--og-h)); }
.site-header { top: var(--og-h); }

.og-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 105; height: var(--og-h);
  background: rgba(8, 12, 18, .94); border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: #c9d3e1; font-family: Vazirmatn, Tahoma, sans-serif; direction: rtl;
}
.og-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px;
}
.og-logo { display: flex; align-items: center; gap: 10px; flex: none; color: #fff; text-decoration: none; }
.og-logo img { height: 22px; width: auto; display: block; }
.og-logo span { font-size: .78rem; font-weight: 700; color: #c9d3e1; white-space: nowrap; }
.og-logo:hover span { color: #ff8c00; }

.og-nav { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.og-nav::-webkit-scrollbar { display: none; }
.og-nav a {
  flex: none; padding: .38em .85em; border-radius: 999px; font-size: .8rem; line-height: 1.6;
  color: #c9d3e1; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s;
}
.og-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.og-nav a[aria-current="page"] { color: #ff8c00; background: rgba(255, 140, 0, .12); font-weight: 700; }

.og-back {
  flex: none; display: inline-flex; align-items: center; gap: .4em; padding: .38em 1em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: border-color .2s, color .2s;
}
.og-back:hover { border-color: #ff8c00; color: #ff8c00; }

@media (max-width: 1120px) {
  .og-logo span { display: none; }
  .og-inner { gap: 12px; }
  /* لینک‌ها با کشیدن افقی دیده می‌شوند؛ محو شدن لبه نشان می‌دهد ادامه دارد */
  .og-nav { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); padding-left: 24px; }
}
@media (max-width: 767px) {
  .og-inner { padding: 0 12px; gap: 10px; }
  .og-logo img { height: 18px; }
  .og-nav a { font-size: .74rem; padding: .32em .7em; }
  .og-back { display: none; }
}
