/* رأس الرئيسية على الجوال (≤760px) — نموذج «٣ مع الزر الذهبي من ٤». شكل فقط: لا يُحذف نص ولا يتغيّر ترتيب HTML.
   سطح أكبر: العناصر المضافة مخفية والتخطيط كما كان. */
.route-strip,.route-to{display:contents}
.route-from,.route-track,.route-to-label{display:none}
/* تحييد قاعدة styles.css «.hero h1 span{display:block;color:var(--g700)}» لهذا الوسم: العنوان على الشاشات الواسعة كما كان */
.hero h1 .h1-accent{display:inline;color:inherit}
@media (min-width:761px){.hero-single-grid .route-strip + h1{margin-top:2px}}
/* عدّاد تحميلات آيفون مخفي من زره (الرئيسية، كل المقاسات) بطلب المالك؛ script.js يملؤه ويُظهره فنتجاوزه */
.hero-actions .button-ios-home .ios-home-count-badge{display:none!important}

@keyframes thPulse{0%{box-shadow:0 0 0 0 rgba(245,184,46,.65)}70%{box-shadow:0 0 0 14px rgba(245,184,46,0)}100%{box-shadow:0 0 0 0 rgba(245,184,46,0)}}
@keyframes thShine{0%{transform:translateX(-120px) skewX(-20deg)}60%,100%{transform:translateX(520px) skewX(-20deg)}}
@keyframes thTravel{0%{inset-inline-start:0;opacity:0}15%,85%{opacity:1}100%{inset-inline-start:calc(100% - 9px);opacity:0}}
@keyframes thFlag{0%{opacity:0;transform:rotateY(-90deg)}1.6%{opacity:1;transform:rotateY(0)}7.5%{opacity:1;transform:rotateY(0)}9.09%{opacity:0;transform:rotateY(90deg)}100%{opacity:0;transform:rotateY(90deg)}}
@keyframes thTextShine{0%{background-position:100% 0}100%{background-position:-150% 0}}
@keyframes thBolt{0%,70%,100%{opacity:1;transform:scale(1)}76%{opacity:.25;transform:scale(.85)}82%{opacity:1;transform:scale(1.18)}88%{opacity:.5}94%{opacity:1;transform:scale(1)}}
@keyframes thArrow{0%,100%{transform:translateX(0)}50%{transform:translateX(-6px)}}

@media (max-width:760px){
  /* الرأس فوق البطاقة الخضراء (غير ثابت) */
  .site-header{position:absolute;top:0;inset-inline:0;background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:60;transform:none!important}
  .site-header .brand-copy strong,.site-header .brand-copy strong *{color:#fff}
  .site-header .brand-copy small,.site-header .brand-copy small *{color:#BFE0D0}
  .site-header .brand-copy small{white-space:normal;overflow:visible;text-overflow:clip;max-width:230px;line-height:1.35}
  .site-header .brand-copy small *{white-space:normal;overflow:visible;text-overflow:clip}
  .site-header .connection-state,.site-header .connection-state *{color:#fff}
  .site-header .connection-state{background:rgba(255,255,255,.14);border-radius:999px}

  .hero-compact{padding-top:80px;padding-bottom:6px;background:#EEF7F2}
  .hero-compact .hero-orb{display:none}
  .hero-copy{display:grid;grid-template-columns:minmax(0,1fr);position:relative;row-gap:0}
  .hero-copy::before{content:"";grid-column:1;grid-row:1 / 8;justify-self:stretch;align-self:stretch;z-index:0;margin:-80px -14px -20px;border-radius:0 0 28px 28px;box-shadow:0 16px 32px rgba(6,78,59,.25);
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2' opacity='.08'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(165deg,#0E7A57 0%,#064E3B 58%,#04382B 100%)}
  .hero-copy>*{grid-column:1;position:relative;z-index:1}
  .hero-copy>.route-strip{grid-row:1;justify-self:stretch}
  .hero-copy>h1,.hero-copy>.hero-lead,.hero-copy>.hero-actions{justify-self:stretch}
  .hero-copy>h1{grid-row:2}
  .hero-copy>.hero-lead{grid-row:3}
  .hero-copy>.hero-actions{grid-row:4;margin-bottom:6px}
  .hero-copy>.payment-methods{grid-row:5;margin-top:16px}
  .hero-copy .payment-strip li{background:#fff;border-radius:8px;padding:3px 4px;height:auto}
  .hero-copy .payment-bank-note,.hero-copy .payment-bank-note *{color:#E8F6EE}
  .hero-copy .payment-trust-subtext,.hero-copy .payment-trust-subtext *{color:#CFE8DC}
  .hero-copy>.social-links{margin-top:30px}
  .hero-copy>.payment-trust-subtext{grid-row:6}
  .hero-copy>.hero-instant{grid-row:7}
  .hero-copy>.social-links{grid-row:8}
  .hero-copy>.hero-trust{grid-row:9}

  /* شريط المسار: تدفع باليورو ← تصل في سوريا */
  .route-strip{display:flex;align-items:center;gap:10px;padding:8px 12px;margin:0 0 12px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2)}
  .route-from{display:grid;justify-items:center;gap:3px;font-size:11px;color:#CFE8DC}
  .route-euro{width:44px;height:38px;border-radius:19px;background:#E8F6EE;color:#0B6B4F;display:flex;align-items:center;justify-content:center;font-size:17px;direction:ltr}
  /* أعلام دول الدفع ورمزا € و$: مستطيلة، يقلب كل عنصر كالبطاقة ليظهر التالي (11 عنصرًا × 2 ث) */
  .route-flags{display:block;position:relative;width:46px;height:31px;perspective:240px}
  .route-flags>*{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.28);opacity:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:thFlag 22s linear infinite}
  .route-sym{display:flex;align-items:center;justify-content:center;background:#FFD84D;color:#14301F;font-size:21px;font-weight:800;line-height:1}
  .route-flags>*:nth-child(1){animation-delay:0s}
  .route-flags>*:nth-child(2){animation-delay:2s}
  .route-flags>*:nth-child(3){animation-delay:4s}
  .route-flags>*:nth-child(4){animation-delay:6s}
  .route-flags>*:nth-child(5){animation-delay:8s}
  .route-flags>*:nth-child(6){animation-delay:10s}
  .route-flags>*:nth-child(7){animation-delay:12s}
  .route-flags>*:nth-child(8){animation-delay:14s}
  .route-flags>*:nth-child(9){animation-delay:16s}
  .route-flags>*:nth-child(10){animation-delay:18s}
  .route-flags>*:nth-child(11){animation-delay:20s}
  .route-track{display:block;position:relative;flex:1;height:38px}
  .route-track::before{content:"";position:absolute;top:50%;inset-inline:0;border-top:2px dashed rgba(255,255,255,.45)}
  .route-track i{position:absolute;top:calc(50% - 4px);inset-inline-start:0;width:9px;height:9px;border-radius:50%;background:#FFD84D;animation:thTravel 2.4s linear infinite}
  .route-track i:nth-child(2){animation-delay:.8s}.route-track i:nth-child(3){animation-delay:1.6s}
  .route-to{display:grid;justify-items:center;gap:3px}
  .hero-single-grid .route-to .operator-logos{margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:6px!important}
  .route-to .operator-logos::before,.route-to .operator-logos::after{display:none}
  .hero-single-grid .route-to .operator-logos a{width:auto;height:auto;min-width:0;padding:0;display:flex;flex:0 0 auto}
  .hero-single-grid .route-to .operator-logos a img,.hero-single-grid .route-to .operator-logos a img[src*="operator-syriatel"]{width:auto!important;height:38px!important;max-height:none;max-width:none;object-fit:contain;border-radius:8px}
  .hero-single-grid .route-to .operator-logos a img[src*="operator-syriatel"]{height:33px!important}
  .hero-single-grid .route-to .operator-logos a img:not([src*="operator-syriatel"]){height:41px!important}
  .route-to-label{display:block;font-size:11.5px;color:#CFE8DC;white-space:nowrap}
  /* «فورًا»: ذهبية بلمعان يمر عليها، وبرق يومض */
  .route-instant{display:inline-flex;align-items:center;gap:2px;font-weight:800}
  .route-instant span{background:linear-gradient(100deg,#FFD84D 35%,#FFFFFF 50%,#FFD84D 65%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:thTextShine 2.6s linear infinite}
  .route-bolt{animation:thBolt 2.6s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(255,216,77,.8))}

  .hero-copy h1{margin:0 0 8px;color:#fff;font-size:27px;line-height:1.4}
  .hero-copy h1 .h1-accent{display:inline!important;width:auto!important;color:#FFD84D!important;text-decoration:none;background:none!important;padding:0}
  .hero-copy .hero-lead{margin:0 0 14px;color:#CFE8DC;font-size:13.5px;line-height:1.65}

  /* الأزرار: Google Play الذهبي أولًا، ثم ابدأ، ثم iPhone */
  .hero-actions{display:grid;gap:10px}
  .install-actions{display:contents}
  .hero-actions .button-download{order:1;position:relative;overflow:hidden;min-height:64px;padding:8px 18px;border:0;border-radius:18px;background:#FFD84D;color:#14301F;animation:thPulse 2.2s ease-out infinite}
  .hero-actions .button-download::after{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;width:60px;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0));animation:thShine 3.4s ease-in-out infinite}
  .hero-actions .button-download .download-button-copy{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:0;width:100%;color:#14301F}
  .hero-actions .button-download .download-button-copy>span:first-child{grid-column:1;grid-row:1;font-size:12px}
  .hero-actions .button-download .download-button-meta{grid-column:1;grid-row:2;font-size:22px;justify-self:start}
  .hero-actions .button-download .download-count-badge{grid-column:2;grid-row:1 / 3}
  .hero-actions .button-download .download-count-badge,.hero-actions .button-download .download-count-badge *{color:#14301F}
  .hero-copy .hero-actions a.button.button-primary{order:1;background:#fff!important;color:#064E3B!important;border:0!important;min-height:54px;font-size:18px;box-shadow:none!important}
  .hero-copy .hero-actions a.button.button-primary .service-cta-label{color:#064E3B!important}
  /* الرمز SVG بلون أسود افتراضيًا: تلوينه بالأخضر الداكن (#064E3B) لنص الزر الأبيض */
  .hero-copy .hero-actions a.button.button-primary .service-cta-icon{display:inline-block!important;width:24px;height:24px;opacity:1;filter:brightness(0) saturate(100%) invert(20%) sepia(58%) saturate(1030%) hue-rotate(128deg) brightness(92%) contrast(98%)!important}
  .hero-actions .install-actions.store-badges{display:flex;order:2}
  /* ترتيب الجوال: العنوان ← الشرح ← ابدأ ← الشارتان ← الدفع ← الثقة ← التوفر ← التواصل */
  .hero-copy>.hero-actions{order:1}
  .hero-copy>.payment-methods{order:3}
  .hero-copy>.payment-trust-subtext{order:4}
  .hero-copy>.hero-availability{order:5}
  .hero-copy>.social-links{order:6}
  .hero-copy .payment-strip{flex-wrap:wrap;row-gap:6px;max-width:200px;margin-inline:auto}
  .hero-actions .button-ios-home{order:3;min-height:44px;padding:6px 14px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;box-shadow:none}
  .hero-actions .button-ios-home *{color:#fff}
  .hero-actions .button-ios-home .ios-home-copy{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px}
  .hero-actions .button-ios-home .ios-home-label{display:flex;gap:5px;font-size:13px}
  .hero-actions .button-ios-home .ios-home-meta{display:flex;align-items:center;gap:8px}

  /* ضغط عمودي: تظهر رموز التواصل الاجتماعي في الشاشة الأولى (S Ultra نحو 384×680) */
  .site-header{padding-top:4px;padding-bottom:0;min-height:0}
  .site-header .header-inner{min-height:52px;height:52px}
  .site-header .brand-mark,.site-header .brand img{width:36px;height:36px}
  .hero-compact{padding-top:58px}
  .hero-copy::before{margin-top:-58px}
  .route-strip{padding:4px 10px;margin:0 0 8px;gap:8px}
  .route-flags{width:40px;height:27px}
  .route-from{gap:2px}
  .route-track{height:28px}
  .route-to{gap:1px}
  .hero-single-grid .route-to .operator-logos a img[src*="operator-syriatel"]{height:28px!important}
  .hero-single-grid .route-to .operator-logos a img:not([src*="operator-syriatel"]){height:35px!important}
  .hero-single-grid .hero-copy>h1{font-size:28px!important;line-height:1.25!important;margin:2px 0 6px!important}
  .hero-copy .hero-lead{font-size:13px;line-height:1.5;margin:0 0 10px}
  .hero-actions{gap:8px}
  .hero-actions .button-download{min-height:52px;padding:4px 16px}
  .hero-actions .button-download .download-button-meta{font-size:20px}
  .hero-copy .hero-actions a.button.button-primary{min-height:46px;font-size:17px}
  .hero-actions .button-ios-home{min-height:36px;padding:3px 14px}
  .hero-copy>.hero-actions{margin-top:0;margin-bottom:0}
  .hero-copy>.payment-methods{margin-top:10px}
  .hero-copy .payment-trust-subtext{margin:4px 0 0;font-size:11.5px;line-height:1.5}
  .hero-copy>.hero-instant{margin-top:6px;padding-top:5px;padding-bottom:5px;font-size:12px}
  .route-strip{margin-bottom:6px}
  .hero-copy .hero-lead{line-height:1.45;margin-bottom:8px}

  /* الإطار الأخضر يملأ الشاشة الأولى كاملة، وآخر سطر فيه رموز التواصل الاجتماعي */
  /* الصفوف كلها auto: المساحة الزائدة من ارتفاع الإطار (100svh) تتوزع بالتساوي على الصفوف 1–8،
     فتتباعد العناصر بانتظام، وصف التواصل الاجتماعي (align-self:end) يبقى ملاصقًا لأسفل الإطار */
  .hero-copy{grid-template-rows:none}
  /* .hero-copy تبدأ عند 58px (حشوة .hero-compact): الإطار من أعلى الصفحة حتى أسفل الشاشة تمامًا، والرموز فوق حافته بـ16px */
  .hero-copy::before{grid-row:1 / 9;margin-top:-58px;margin-bottom:-16px;min-height:100vh;min-height:100svh}
  .hero-copy>.social-links{align-self:end;margin-top:10px}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){
  .route-track i{display:none}
  .route-flags>*{animation:none;opacity:0}
  .route-flags>*:first-child{opacity:1}
  .route-instant span{animation:none;color:#FFD84D;background:none}
  .route-bolt{animation:none}
  .hero-actions .button-download{animation:none}
  .hero-actions .button-download::after{display:none}
}
