/* Search overlay v3. Header and footer use their preserved original designs. */
:root{--hs-ink:#344754;--hs-red:#a6052d;--hs-line:#dde4e7}
.c-header__main{border-radius:10px!important}
.c-search-popup{position:fixed!important;inset:0!important;z-index:99999!important;align-items:flex-start!important;justify-content:center!important;padding:clamp(20px,8vw,100px) 16px!important;background:rgba(28,42,51,.76)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overflow-y:auto}
.c-search-popup__content{position:relative;width:min(590px,100%)!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 auto!important;padding:22px 24px!important;border:1px solid rgba(255,255,255,.75)!important;border-radius:22px!important;background:#fff!important;box-shadow:0 35px 90px rgba(0,0,0,.26)!important}
.c-search-popup__content:before{content:"جستجو در سایت";display:block;margin-bottom:14px;color:var(--hs-ink);font-size:19px;font-weight:850}.c-search-popup__content:after{display:none!important}
.close-popup{position:absolute!important;top:17px!important;left:17px!important;width:38px;height:38px;display:grid!important;place-items:center;border-radius:11px;background:#edf1f3;color:#53646f!important;font-size:23px!important;line-height:1;cursor:pointer}.close-popup:hover{background:var(--hs-red);color:#fff!important}
#ajax-search-form label{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:9px!important;padding:7px;border:1px solid var(--hs-line);border-radius:15px;background:#f8fafb}
#ajax-search-field{width:100%;height:44px!important;padding:8px 13px!important;border:0!important;outline:0;background:transparent!important;color:var(--hs-ink);font-size:13px}.search-submit-btn{min-width:92px;height:44px!important;border:0!important;border-radius:10px!important;background:var(--hs-ink)!important;color:#fff!important}
#search-results{overflow:hidden;border-radius:14px}#search-results:empty{display:none!important;margin:0!important}#search-results ul{margin:0;padding:7px;border:1px solid #e2e7e9;border-radius:14px;background:#fff}#search-results li{padding:10px 12px;border-bottom:1px solid #edf0f2}#search-results li:last-child{border:0}#search-results a{color:#394b57;font-size:12px;line-height:1.9}
.kians-search-more{min-height:46px;display:flex!important;align-items:center;justify-content:space-between;margin-top:10px;padding:10px 16px;border-radius:12px;background:var(--hs-red);color:#fff!important;font-weight:700;transition:background .2s}.kians-search-more:hover{background:#7f0623}.kians-search-more span{font-size:19px}
@media(max-width:600px){.c-search-popup{padding-top:58px!important}.c-search-popup__content{padding:20px 16px!important;border-radius:18px!important}.c-search-popup__content:before{font-size:17px;margin-bottom:12px}.close-popup{top:12px!important;left:12px!important;width:32px;height:32px}#ajax-search-form label{grid-template-columns:1fr}.search-submit-btn{width:100%;min-width:0}}
@media(max-width:600px){.c-header__main{border-radius:8px!important}}

/* Preserve the natural ratio of the decorative hero artwork. */
.c-hero__before .before-train,.c-hero__before .before-bg { height:auto; object-fit:contain; }

.c-hero__desc-title { white-space:nowrap; }
