.hp-hero-host{
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg,var(--hh-bg) 0 50%,var(--hh-bg-right) 100%);
  color:var(--hh-text);
  min-height:620px;
  padding:72px 0 0;
}

.hp-hero-host::after{
  content:"";
  position:absolute;
  z-index:7;
  left:0;
  right:0;
  bottom:-1px;
  height:var(--hh-curve-height,0px);
  background:var(--hh-curve);
  border-radius:46px 46px 0 0;
  pointer-events:none;
}

.hp-hero-host__inner{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(480px,1.1fr);
  gap:54px;
  align-items:stretch;
  min-height:max(470px,var(--hh-visual-height,560px));
}

.hp-hero-host__copy{
  position:relative;
  z-index:3;
  max-width:620px;
  align-self:center;
  padding-bottom:72px;
}

.hp-hero-host__badge{display:inline-flex;padding:5px 11px;margin-bottom:18px;border-radius:6px;background:var(--hh-badge-bg);color:var(--hh-badge-color);font-size:13px;}
.hp-hero-host h1{margin:0 0 26px;color:var(--hh-title);}
.hp-hero-host__lead{max-width:570px;margin:-8px 0 24px;color:var(--hh-text);font-size:18px;}
.hp-hero-host__features{display:grid;gap:13px;margin:0 0 26px;}
.hp-hero-host__features div{display:flex;align-items:center;gap:12px;font-size:17px;}
.hp-hero-host__features i{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;color:var(--hh-accent);font-style:normal;}
.hp-hero-host__price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 24px;font-size:17px;}
.hp-hero-host__price b{color:var(--hh-accent);font-size:22px;}
.hp-hero-host__price del{opacity:.75;}
.hp-hero-host__cta{display:inline-flex;align-items:center;justify-content:center;min-width:160px;min-height:54px;padding:0 28px;border-radius:999px;background:var(--hh-button-bg);color:var(--hh-button-color);text-decoration:none;transition:.2s ease;}
.hp-hero-host__cta:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.25);}
.hp-hero-host__guarantee{display:block;margin-top:18px;color:var(--hh-accent);font-size:15px;}

.hp-hero-host__visual{
  position:relative;
  min-height:var(--hh-visual-height,560px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  align-self:stretch;
}

.hp-hero-host__visual::before{
  content:"%";
  position:absolute;
  right:75%;
  top:16%;
  font-size:320px;
  color:rgba(255,255,255,.035);
}

.hp-hero-host__browser{
  position:absolute;
  left:3%;
  top:11%;
  width:70%;
  height:58%;
  border:12px solid #fff;
  border-radius:16px;
  background:#6b4d22;
  box-shadow:0 28px 60px rgba(0,0,0,.35);
  overflow:hidden;
}

.hp-hero-host__browser::before{content:"";position:absolute;inset:42px 0 0;background:radial-gradient(circle at 50% 70%,#d78d2a 0 16%,#493011 17% 32%,#172117 33% 100%);}
.hp-hero-host__browser>span{position:relative;z-index:2;display:inline-block;width:9px;height:9px;margin:14px 0 0 8px;border-radius:50%;background:#dfe5df;}
.hp-hero-host__browser>span:first-child{margin-left:16px;}

/* الوضع العادي إذا تم تعطيل اللصق من الإدارة */
.hp-hero-host__main-image{
  position:relative;
  z-index:2;
  display:block;
  width:auto;
  max-width:var(--hh-image-width,78%);
  max-height:var(--hh-image-height,620px);
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 28px 28px rgba(0,0,0,.36));
  transform:translate(var(--hh-image-x,0px),var(--hh-image-y,0px)) scale(var(--hh-image-scale,1));
  transform-origin:center bottom;
}

/* لصق الصورة بشكل حقيقي مع نهاية الـHero */
.hp-hero-host.is-image-bottom .hp-hero-host__main-image{
  position:absolute;
  left:71%;
  bottom:var(--hh-image-bottom,0px);
  width:auto;
  max-width:var(--hh-image-width,78%);
  max-height:var(--hh-image-height,620px);
  transform:
    translateX(-50%)
    translate(var(--hh-image-x,0px),var(--hh-image-y,0px))
    scale(var(--hh-image-scale,1));
  transform-origin:center bottom;
}

.hp-hero-host__percent{position:absolute;z-index:4;left:1%;top:21%;width:92px;height:92px;display:grid;place-items:center;border-radius:50%;background:var(--hh-accent);color:#07130f;font-size:48px;box-shadow:0 0 35px color-mix(in srgb,var(--hh-accent) 65%,transparent);}

.hp-hero-host__rating{
  position:absolute;
  z-index:5;
  left:50%;
  bottom:32px;
  transform:translateX(-50%);
  width:min(780px,70%);
  display:grid;
  gap:6px;
  text-align:center;
}
.hp-hero-host__rating b{font-size:18px;}
.hp-hero-host__rating span{font-size:16px;}

@media(max-width:1000px){
  .hp-hero-host{padding-top:56px;}
  .hp-hero-host__inner{grid-template-columns:1fr;gap:20px;}
  .hp-hero-host__copy{max-width:none;padding-bottom:24px;}
  .hp-hero-host__visual{min-height:min(var(--hh-visual-height,560px),520px);}
  .hp-hero-host__rating{position:relative;left:auto;bottom:auto;transform:none;width:100%;padding:18px 0 26px;}
  .hp-hero-host__browser{left:8%;width:68%;}
}

@media(max-width:640px){
  .hp-hero-host{padding:42px 0 0;}
  .hp-hero-host h1{font-size:42px;}
  .hp-hero-host__features div{font-size:15px;}
  .hp-hero-host__visual{min-height:360px;}
  .hp-hero-host__main-image,
  .hp-hero-host.is-image-bottom .hp-hero-host__main-image{
    max-width:min(var(--hh-image-width,92%),96%);
    max-height:min(var(--hh-image-height,420px),420px);
  }
  .hp-hero-host__browser{left:0;top:15%;width:84%;height:58%;}
  .hp-hero-host__percent{width:68px;height:68px;font-size:34px;}
  .hp-hero-host__rating span{font-size:14px;}
}
