/* مرجع واحد سربرگ و پایین صفحه (طراحی صفحه‌ی اصلی) — همه‌ی صفحه‌ها فقط همین فایل و chrome-v178.js را استفاده می‌کنند.
   ظاهر (اندازه، رنگ، فاصله) فقط اینجا؛ جایگذاری روی هر صفحه در CSS خود همان صفحه. */
:root{--cu:calc(100vw/1999);--g:#5f7a33;--hp-d:#3f5222;--ink:#14200f}
.site-head a,.site-head button,.base-foot a{text-decoration:none}
.site-head [hidden],.base-foot [hidden]{display:none!important}
.site-head,.base-foot{font-family:Vazirmatn,system-ui,sans-serif;font-size:16px;line-height:1.6;text-align:start;direction:rtl}
.nav a{white-space:nowrap}
.search-btn{border:0;background:none;display:flex;align-items:center;justify-content:center;padding:0}
@media (min-width:900px) and (min-aspect-ratio:1/1) and (min-height:520px){
  .site-head{position:relative;z-index:20;height:calc(var(--cu)*125);background:none;box-shadow:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0}
  .brand{position:absolute;left:0;top:0;width:calc(var(--cu)*460);height:calc(var(--cu)*125);display:block;margin:0;padding:0;color:#295034}
  .brand img{position:absolute;left:calc(var(--cu)*65);top:calc(var(--cu)*21);width:calc(var(--cu)*128);height:auto;margin:0}
  .brand span{position:absolute;left:calc(var(--cu)*206);top:calc(var(--cu)*69);transform:translateY(-52%);font-size:calc(var(--cu)*38);font-weight:800;line-height:1;letter-spacing:0;color:#295034;white-space:nowrap;top:calc(var(--cu)*69)}
  .nav{position:absolute;right:calc(var(--cu)*279);top:calc(var(--cu)*73);transform:translateY(-50%);display:flex;gap:calc(var(--cu)*56);margin:0;padding:0;background:none;align-items:center}
  .nav a, .nav .nav-dd>a{font-size:calc(var(--cu)*24);font-weight:500;color:var(--ink);line-height:1.6;position:relative;padding:0}
  .nav a.on{color:#39941d}
  .nav a.on::after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--cu)*-6);height:calc(var(--cu)*2.4);background:#39941d;border-radius:2px}
  .search-btn{position:absolute;right:calc(var(--cu)*187);top:calc(var(--cu)*74);transform:translateY(-50%);width:calc(var(--cu)*44);height:calc(var(--cu)*44);font-size:calc(var(--cu)*30);color:#14200f;background:none}
  .search-btn svg{width:calc(var(--cu)*30);height:calc(var(--cu)*30)}
  .btn-login{position:absolute;right:calc(var(--cu)*67);top:calc(var(--cu)*45);width:calc(var(--cu)*106);height:calc(var(--cu)*58);display:flex;align-items:center;justify-content:center;border-radius:99px;background:var(--g);color:#fff;font-size:calc(var(--cu)*24);font-weight:700;box-shadow:0 calc(var(--cu)*8) calc(var(--cu)*18) calc(var(--cu)*-8) rgba(31,90,28,.55)}
  .base-foot{position:relative;margin:0 auto;width:calc(var(--cu)*1362);height:calc(var(--cu)*62);border-top:calc(var(--cu)*1.6) solid rgba(64,115,36,.28)}
  .base-foot .foot-in{position:absolute;left:calc(var(--cu)*-53);width:calc(var(--cu)*1395);top:0;height:100%;display:flex;align-items:center;justify-content:space-between}
  .base-foot .foot-left, .base-foot .foot-right{display:flex;align-items:center;gap:calc(var(--cu)*22);margin:0;padding:0}
  .base-foot p{margin:0}
  .base-foot a, .base-foot span{font-size:calc(var(--cu)*19);color:#1a2414;text-decoration:none;display:inline-flex;align-items:center;gap:calc(var(--cu)*8);line-height:1}
  .base-foot svg{width:calc(var(--cu)*17);height:calc(var(--cu)*17);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .base-foot .foot-credit img{width:calc(var(--cu)*30);height:auto}
  .base-foot .enamad{width:calc(var(--cu)*50);min-height:calc(var(--cu)*50)}
  .base-foot .enamad img{width:calc(var(--cu)*50);height:auto;filter:none}
  .base-foot .foot-stats{position:absolute;left:calc(var(--cu)*(1000 - 265 + 53));transform:translate(-50%,-50%);top:50%;display:flex;gap:0;margin:0;padding:0;list-style:none;white-space:nowrap}
  .base-foot .foot-stats li{display:inline-flex;align-items:center;gap:calc(var(--cu)*8);padding:0 calc(var(--cu)*24);font-size:calc(var(--cu)*18);color:#4b5740}
  .base-foot .foot-stats li+li{border-inline-start:1px solid rgba(75,87,64,.22)}
  .base-foot .foot-stats b{font-size:calc(var(--cu)*20);color:#1a2414}
  .base-foot .foot-stats .dot{width:calc(var(--cu)*13);height:calc(var(--cu)*13);border-radius:50%;background:#1aa31a;flex:none}
  .base-foot .foot-in{direction:ltr}
  .base-foot .foot-stats{direction:rtl}
  .base-foot .foot-stats small{font-size:calc(var(--cu)*19);color:#4b5740}
  .base-foot .foot-stats b{font-size:calc(var(--cu)*26);font-weight:800}
  .base-foot .foot-stats svg{width:calc(var(--cu)*22);height:calc(var(--cu)*22)}
  .brand span{font-size:calc(var(--cu)*33)}
  .nav a, .nav .nav-dd>a{font-size:calc(var(--cu)*22.8)}
  .nav a, .nav .nav-dd>a{font-size:calc(var(--cu)*26)}
  .brand span{font-size:calc(var(--cu)*38)}
  .base-foot a, .base-foot span{font-size:calc(var(--cu)*17.7)}
  .base-foot .foot-stats{left:calc(var(--cu)*735)}
  .nav{top:calc(var(--cu)*75.5)}
  .brand span{top:calc(var(--cu)*72)}
  .search-btn{top:calc(var(--cu)*76);right:calc(var(--cu)*184);width:calc(var(--cu)*48);height:calc(var(--cu)*48)}
  .search-btn svg{width:calc(var(--cu)*33);height:calc(var(--cu)*33)}
  .base-foot a, .base-foot span{font-size:calc(var(--cu)*16.9)}
  .base-foot .foot-left, .base-foot .foot-right{gap:calc(var(--cu)*20)}
  .base-foot .foot-credit img{width:calc(var(--cu)*35);height:auto}
  .base-foot .foot-credit img{width:calc(var(--cu)*50);height:auto}
  .btn-login{background:var(--g);box-shadow:0 calc(var(--cu)*10) calc(var(--cu)*22) calc(var(--cu)*-10) rgba(63,82,34,.55)}
  .nav a.on{color:var(--g)}
  .nav a.on::after{background:var(--g)}
  .brand span{color:var(--hp-d)}
  .base-foot .foot-credit a{gap:calc(var(--cu)*5)}
  .base-foot .foot-credit img{width:calc(var(--cu)*48)}
  .base-foot .foot-credit img{width:calc(var(--cu)*30)!important;height:auto!important;object-fit:fill!important;margin:0!important;padding:0!important}
  .base-foot .foot-credit a{gap:calc(var(--cu)*9)}
  .base-foot .foot-credit a{gap:calc(var(--cu)*3)}
  .btn-login, .nav a, .search-btn{transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease,color .22s ease}
  @media (hover:hover){
    .btn-login:hover, .btn-login:focus-visible{transform:translateY(calc(var(--cu)*-3));box-shadow:0 calc(var(--cu)*14) calc(var(--cu)*24) calc(var(--cu)*-10) rgba(63,82,34,.6)}
    .nav a:hover, .nav a:focus-visible{transform:translateY(calc(var(--cu)*-3));color:var(--g)}
    .search-btn:hover, .search-btn:focus-visible{transform:translateY(-50%) scale(1.14);color:var(--g)}
  }
  @media (prefers-reduced-motion:reduce){
    .btn-login:hover, .nav a:hover{transform:none}
  }
  .base-foot .foot-credit img{transform:translateY(calc(var(--cu)*-3.1))}
}
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:519px){
  .site-head{position:relative;z-index:30;height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;box-shadow:none}
  .brand{position:static;width:auto;height:auto;display:flex;align-items:center;gap:8px;color:var(--hp-d)}
  .brand img{position:static;width:auto;height:36px}
  .brand span{position:static;transform:none;font-size:17px;font-weight:800;color:var(--hp-d);letter-spacing:.2px}
  .nav, .search-btn{display:none}
  .btn-login{position:static;display:flex;align-items:center;justify-content:center;width:auto;height:36px;padding:0 20px;border-radius:99px;background:var(--g);color:#fff;font-size:14px;font-weight:700;box-shadow:none}
  .base-foot{position:static;width:auto;height:auto;margin:18px 16px 0;border:0;border-top:1px solid rgba(64,115,36,.25);padding-top:14px}
  .base-foot .foot-in{position:static;width:auto;height:auto;display:flex;flex-direction:column;align-items:center;gap:12px;direction:rtl}
  .base-foot .foot-left, .base-foot .foot-right{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px;margin:0;padding:0}
  .base-foot p{margin:0}
  .base-foot a, .base-foot span{font-size:13px;color:#1a2414;text-decoration:none;display:inline-flex;align-items:center;gap:6px;line-height:1.4}
  .base-foot svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .base-foot .foot-credit img{width:28px!important;height:auto!important}
  .base-foot .foot-credit a{gap:3px}
  .base-foot .foot-stats{position:static;transform:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 0;margin:0;padding:0;list-style:none;order:-1}
  .base-foot .foot-stats li{display:inline-flex;align-items:center;gap:6px;padding:0 14px;font-size:13px;color:#4b5740}
  .base-foot .foot-stats li+li{border-inline-start:1px solid rgba(75,87,64,.22)}
  .base-foot .foot-stats b{font-size:15px;color:#1a2414}
  .base-foot .foot-stats small{font-size:12px}
  .base-foot .foot-stats .dot{width:9px;height:9px;border-radius:50%;background:#1aa31a}
}
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:519px){
  .base-foot .foot-stats li{flex-direction:row!important}
  .base-foot .foot-stats li svg{width:16px;height:16px}
}
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:519px){
  .site-head{height:64px;flex-direction:row-reverse;padding:0 14px;align-items:flex-start}
  .brand{position:relative;height:64px;width:auto;display:block;padding:0;margin:0}
  .brand img{position:absolute;left:0;top:10.7px;height:40px;width:auto}
  .brand span{position:absolute;left:71.4px;top:36.9px;transform:translateY(-52%);font-size:19.5px;line-height:1;white-space:nowrap;margin:0;letter-spacing:.2px}
  .brand{min-width:200px}
  .btn-login{align-self:flex-start;margin-top:19.9px;height:36px;padding:0 20px;background:var(--g);box-shadow:0 8px 16px -10px rgba(63,82,34,.7)}
  .base-foot .foot-tg svg, .base-foot .foot-mail svg, .base-foot .foot-terms svg{margin-inline-end:1px}
  .base-foot .foot-tg a, .base-foot .foot-mail a, .base-foot .foot-terms a{gap:7px}
  .base-foot .foot-tg{order:-1}
  .base-foot .foot-terms{order:-1}
}
.brand span{display:none}
@media (min-width:900px) and (min-aspect-ratio:1/1) and (min-height:520px){
  .brand img { left:calc(var(--cu)*62);top:calc(var(--cu)*25);width:auto;height:calc(var(--cu)*74.8) }
}
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:519px){
  .brand{min-width:0}
  .brand img{position:static;height:44px;width:auto;display:block;margin-top:16px}
  .brand{position:static;height:auto;display:flex;align-items:center}
}
@media (min-width:900px) and (min-aspect-ratio:1/1) and (min-height:520px){
  .btn-login{width:calc(var(--cu)*81.1);height:calc(var(--cu)*44.4);top:calc(var(--cu)*52.8);font-size:calc(var(--cu)*18.36)}
  .nav{right:calc(var(--cu)*210);gap:calc(var(--cu)*47.6)}
  .nav a, .nav .nav-dd>a{font-size:calc(var(--cu)*22.1)}
  .nav .search-btn{position:static;transform:none;margin-inline-start:calc(var(--cu)*-7.6);width:calc(var(--cu)*40.8);height:calc(var(--cu)*40.8)}
  .nav .search-btn svg{width:calc(var(--cu)*28.05);height:calc(var(--cu)*28.05)}
}
@media (min-width:900px) and (min-aspect-ratio:1/1) and (min-height:520px) and (hover:hover){
  .nav .search-btn:hover, .nav .search-btn:focus-visible{transform:scale(1.14)}
}
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:519px){
  .brand{height:64px;margin:0;display:flex;align-items:center}
  .brand img { margin:0;height:38.3px;display:block }
  .btn-login{align-self:center;margin-top:0}
  .base-foot .foot-credit img{transform:translateY(-2.4px)}
}

/* ===== v167: فاصله‌ی هدر دسکتاپ ۳۰٪ کمتر؛ فوتر کمی کوتاه‌تر (همه‌ی صفحه‌ها یکسان) ===== */
@media (min-width:900px) and (min-aspect-ratio:1/1) and (min-height:520px){
  .nav{right:calc(var(--cu)*191.4);gap:calc(var(--cu)*33.3)}
  .nav .search-btn{margin-inline-start:calc(var(--cu)*-5.5)}
  .base-foot{height:calc(var(--cu)*54)}
}

/* ===== v167: موشن بین صفحه‌ها (فقط محتوا؛ هدر، فوتر و نوار پایین ثابت می‌مانند) ===== */
@keyframes lbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbOut { to { opacity: 0; transform: translateY(-8px); } }
main, .scene .art { animation: lbFade .5s ease backwards; }
body.pg-cats main { animation: none; }
.hero-copy > *, .shelf .sc, .cg-card { animation: lbIn .6s cubic-bezier(.22,.7,.2,1) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-copy > :nth-child(4) { animation-delay: .18s; } .hero-copy > :nth-child(5) { animation-delay: .24s; }
.shelf .sc:nth-child(1) { animation-delay: .2s; } .shelf .sc:nth-child(2) { animation-delay: .27s; } .shelf .sc:nth-child(3) { animation-delay: .34s; }
.cg-card:nth-child(1) { animation-delay: .04s; } .cg-card:nth-child(2) { animation-delay: .09s; } .cg-card:nth-child(3) { animation-delay: .14s; } .cg-card:nth-child(4) { animation-delay: .19s; }
.cg-card:nth-child(5) { animation-delay: .24s; } .cg-card:nth-child(6) { animation-delay: .29s; } .cg-card:nth-child(7) { animation-delay: .34s; } .cg-card:nth-child(8) { animation-delay: .39s; }
html.lb-leaving main, html.lb-leaving .scene .art { animation: lbOut .2s ease forwards; }
html.lb-leaving .hero-copy > *, html.lb-leaving .shelf .sc, html.lb-leaving .cg-card { animation: none; }
@media (prefers-reduced-motion: reduce) {
  main, .scene .art, .hero-copy > *, .shelf .sc, .cg-card, html.lb-leaving main, html.lb-leaving .scene .art { animation: none !important; }
}


/* ===== v168: سایه‌ی لایت لوگوها + حالت فعالِ پررنگ و نارنجی تیره در منوی هدر ===== */
.brand img { filter: drop-shadow(0 1px 2px rgba(35,45,20,.24)); }
.foot-credit img { filter: drop-shadow(0 1px 1.5px rgba(35,45,20,.28)); }
.nav a.on { color: #C2541A; -webkit-text-stroke: .7px currentColor; }   /* پررنگ‌نمایی بدون تغییر عرض، تا با رفتن بین صفحه‌ها هیچ لینکی جابه‌جا نشود */
.nav a.on::after { background: #C2541A; }

/* ===== v170: نوار پایین موبایل در همه‌ی صفحه‌ها مثل صفحه‌ی اصلی شیشه‌ای روی تپه‌های سبز بماند ===== */
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:519px){
  body:not(.pg-h2):not(.pg-bg){isolation:isolate}
  body.pg-cats main{background:transparent}
  body:not(.pg-h2):not(.pg-bg)::before{content:"";position:fixed;left:0;right:0;bottom:0;height:calc(100vw*.612);background:url(images/mooj-01-v178.webp) center bottom/100% auto no-repeat;pointer-events:none;z-index:-1}
}

/* ===== v171: صفحه‌های «تماس با ما» و «درباره‌ی ما» (کلاس pg-fit) در دسکتاپ/تلویزیون:
   بدنه‌ی صفحه به اندازه‌ی ارتفاع پنجره؛ فوتر مثل صفحه‌ی اصلی همیشه پایین صفحه و کامل دیده می‌شود.
   --cc = مقیاس محتوا: بر پایه‌ی عرض مثل هدر، ولی اگر صفحه کوتاه‌تر از ۱۶:۹ بود بر پایه‌ی ارتفاع (تا چیزی بیرون نزند) ===== */
@media (min-width:900px) and (min-aspect-ratio:1/1) and (min-height:520px){
  body.pg-fit{--cc:min(var(--cu),calc(100vh/1125));height:100vh;height:100dvh;min-height:0}
  body.pg-fit>main{flex:1 1 0;min-height:0;overflow:auto}
}
