/* ============================================================
   صفحة الهبوط — هوية خضراء داكنة بطابع تحريري
   ============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }

/* ---------- التنقل ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--g-950);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .25s, border-color .25s;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; direction: rtl; }
.nav-links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav-links a { color: #b9cdc4; font-weight: 500; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav .logo { color: #f3f7f4; }
.nav .logo .logo-mark { background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions .btn { white-space: nowrap; }
.nav .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .18); }
.nav .lang-switch button { color: #b9cdc4; }
.nav .lang-switch button.active { background: var(--gold); color: #fff; }
.nav .btn-ghost { border-color: rgba(255, 255, 255, .22); color: #e6efe9; }
.nav .btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.nav .btn-primary { background: var(--gold); }
.nav .btn-primary:hover { background: #97751f; }

/* عند التمرير بعد البطل: شريط فاتح */
.nav.scrolled { background: #fff; border-color: var(--line); }
.nav.scrolled .logo { color: var(--ink); }
.nav.scrolled .logo .logo-mark { background: var(--g-900); }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover { color: var(--g-700); }
.nav.scrolled .lang-switch { border-color: var(--line); }
.nav.scrolled .lang-switch button { color: var(--muted); }
.nav.scrolled .lang-switch button.active { background: var(--g-900); color: #fff; }
.nav.scrolled .btn-ghost { border-color: var(--line); color: var(--ink-2); }
.nav.scrolled .btn-primary { background: var(--g-700); }

/* ---------- البطل ---------- */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  background: var(--g-950);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #eef5f1;
  padding: 76px 0 86px;
}
.hero::after {
  content: ''; position: absolute; inset-inline-start: -180px; bottom: -260px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 138, 46, .14), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold-soft); font-weight: 700; font-size: 13.5px; letter-spacing: .3px;
  margin-bottom: 20px;
}
.kicker-rule { width: 44px; height: 2px; background: var(--gold); flex: 0 0 auto; }

.hero-text { min-width: 0; container-type: inline-size; }
.hero-text h1 {
  font-size: clamp(22px, 8.5cqi, 48px); font-weight: 900; line-height: 1.5;
  margin: 0 0 18px; color: #f7faf8;
}
.hero-headline { display: block; white-space: nowrap; }
html[lang="en"] .hero-text h1 { font-size: clamp(18px, 6.8cqi, 44px); }
.hl {
  background-image: linear-gradient(transparent 62%, rgba(176, 138, 46, .45) 0);
  padding: 0 2px;
}
.hero-sub { font-size: 17px; color: #b9cdc4; max-width: 520px; margin: 0 0 30px; line-height: 1.8; }

.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-link {
  color: #e6efe9; font-weight: 700; font-size: 15px;
  border-bottom: 2px solid rgba(214, 178, 94, .5); padding-bottom: 3px;
  transition: border-color .15s, color .15s;
}
.hero-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.hero-trust { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: #8fa89d; font-size: 13.5px; font-weight: 500; }
.hero-trust i { color: var(--gold-soft); font-size: 17px; }

/* معاينة السيرة */
.hero-visual { display:flex; flex-direction:column; align-items:center; min-width:0; }
.hero-stack { position:relative; isolation:isolate; width:360px; aspect-ratio:210/297; --hero-page-scale:.453571; --hero-rear-x:28px; --hero-swap-travel:32px; }
html[lang="en"] .hero-stack { --hero-rear-x:-28px; }
.hero-cv-wrap {
  position:absolute; inset:0; width:100%; height:100%; overflow:hidden; border-radius:3px;
  box-shadow:0 18px 38px -20px rgba(0,0,0,.42);
  background: #fff; direction: ltr;
  transform:translateX(0); z-index:2;
}
.hero-stack .canvas-showcase { width:100%; height:100%; }
.hero-stack .canvas-demo-page { position:absolute; top:0; left:0; width:210mm; }
.hero-stack .cv-page { transform:scale(var(--hero-page-scale)); transform-origin:top left; box-shadow:none; }
.hero-cv-back {
  position: absolute; inset:0;
  width:100%; height:100%; overflow:hidden; border-radius:3px;
  background:#fff; direction:ltr; z-index:1;
  transform:translateX(var(--hero-rear-x)) translateY(6px) rotate(2deg);
  box-shadow:0 12px 28px -18px rgba(0,0,0,.3);
}
.hero-model-footer { position:absolute; top:calc(100% + 24px); inset-inline:0; width:100%; z-index:3; pointer-events:none; text-align:center; cursor:default; }
.hero-model-footer p { margin:0 0 10px; color:#b9cdc4; font-size:13px; font-weight:500; line-height:1.6; }
.hero-canvas-link { color:var(--gold-soft); font-weight:700; pointer-events:auto; }
.hero-canvas-link:hover { text-decoration:underline; text-underline-offset:3px; }
.hero-canvas-link:focus-visible { outline:2px solid var(--gold-soft); outline-offset:3px; border-radius:2px; }
.tpl-card[id] { scroll-margin-top:100px; }
.hero-template-highlight { outline:3px solid var(--g-900); outline-offset:4px; animation:heroTemplateHighlight 1.6s ease-in-out infinite; }
.studio-inner.hero-template-highlight { border-radius:16px; outline-offset:8px; }
@media (max-width:767px) {
  .studio-inner.hero-template-highlight { outline-offset:-6px; }
}
@keyframes heroTemplateHighlight {
  0%,100% { box-shadow:0 0 0 5px rgba(6,53,42,.06); }
  50% { box-shadow:0 0 0 10px rgba(6,53,42,.14); }
}
@media (prefers-reduced-motion:reduce) {
  .hero-template-highlight { animation:none; box-shadow:0 0 0 5px rgba(6,53,42,.08); }
}
.hero-demo-controls { width:100%; pointer-events:none; }
.hero-demo-controls .hero-model-controls { display:block; width:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.hero-model-controls .canvas-progress-track { background:#ffffff1f; }
.hero-model-controls .canvas-model-dots { --canvas-dot-active:var(--gold-soft); --canvas-dot-muted:#ebdfbf; }
.hero-demo-controls .hero-progress-fill { display:block; width:100%; height:100%; background:var(--gold-soft); transform:scaleX(0); transform-origin:left center; will-change:transform; }
html[dir="rtl"] .hero-progress-fill { transform-origin:right center; }
.hero-stack { touch-action:pan-y; cursor:grab; }
.hero-stack:focus-visible { outline:2px solid var(--gold-soft); outline-offset:12px; }
.hero-stack.is-dragging { cursor:grabbing; user-select:none; -webkit-user-select:none; }
.hero-stack.is-dragging .hero-cv-wrap { transform:translateX(var(--hero-drag-x,0px)) rotate(var(--hero-drag-rotate,0deg)); }

/* ---------- الشريط المتحرك ---------- */
.ticker { background: var(--g-900); border-block: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.ticker-track {
  display: flex; width: max-content; white-space: nowrap; padding: 11px 0;
  animation: tickerMove 36s linear infinite;
}
.ticker-group { display: flex; flex: 0 0 auto; width: max-content; min-width: 100vw; align-items: center; justify-content: space-around; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { flex: 0 0 auto; unicode-bidi: isolate; color: #9fb8ad; font-size: 13.5px; font-weight: 700; padding: 0 18px; }
.ticker-item::after { content: '✦'; color: var(--gold); margin-inline-start: 36px; font-size: 11px; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ---------- الأقسام ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--g-50); color: var(--g-800); border: 1px solid var(--g-100);
  font-size: 13px; font-weight: 800; padding: 6px 16px; border-radius: 8px; margin-bottom: 14px;
}
.premium-tag { background: var(--gold-bg); color: var(--gold); border-color: #ecd9a8; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }

/* المزايا */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px 26px; box-shadow: none; transition: border-color .2s; }
.feature:hover { border-color: var(--g-600); }
.f-ic {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--g-50); border: 1px solid var(--g-100); margin-bottom: 16px;
}
.f-ic i { font-size: 24px; color: var(--g-700); }
.feature h3 { margin: 0 0 8px; font-size: 17.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* فلاتر القوالب */
.tpl-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.tpl-filters button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; padding: 8px 22px; font-size: 14px; font-weight: 700; transition: all .15s;
}
.tpl-filters button:hover { border-color: var(--g-600); color: var(--g-700); }
.tpl-filters button.active { background: var(--g-900); color: #fff; border-color: var(--g-900); }
.tpl-filters [data-f="canvas"] i { color: var(--gold, #b08a2e); }
@media(max-width:480px) { .tpl-filters button { padding-inline:12px; } }

/* شبكة القوالب */
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; scroll-margin-top: 84px; }
.tpl-card {
  background: #fff; border: 1px solid #e0e7e0; border-radius: 13px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; position: relative; cursor: pointer;
}
/* Show the top 70% of the unchanged A4 sheet in compact catalogue cards. */
.tpl-thumb { flex: none; width: 100%; aspect-ratio: 210 / 208; border-bottom:1px solid #c6d8ce; overflow: hidden; position: relative; background: #fff; direction: ltr; cursor: zoom-in; }
.tpl-thumb .cv-page { position: absolute; top: 0; left: 0; margin: 0; box-shadow: none; transform: scale(var(--tpl-page-scale, .45)); transform-origin: top left; }
.tpl-thumb > .cv-page ~ .cv-page { display: none; }
.tpl-thumb .canvas-demo-page { height: 100%; }
.tpl-model-controls .canvas-demo-controls { margin: 0; }
.tpl-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.tpl-card-link { display: block; color: inherit; }
.tpl-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tpl-card-title h3 { margin: 0; font-size: 21px; font-weight: 800; }
.tpl-card-type { flex: none; font-size: 10px; font-weight: 500; padding: 3px 7px; border-radius: 5px; color: #7c7e66; background: #f6f2e8; }
.tpl-card-type.is-free { color: #46715b; background: #eaf3ed; }
.tpl-card-type.is-hybrid { color: #536480; background: #edf0f5; }
.tpl-card-description { margin: 0; min-height: 41px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tpl-card-features { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 7px; }
.tpl-card-features li { display: flex; gap: 7px; align-items: baseline; font-size: 12px; line-height: 1.55; }
.tpl-card-features li::before { content: '✓'; color: #047857; font-weight: 700; flex: none; }
.tpl-card-body .template-offer { margin: 0 0 12px; padding: 8px 10px; font-size: 12px; }
.tpl-card-body .ats-learn-link { align-self: flex-start; margin: 0 0 15px; font-size: 13px; }
.tpl-card-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid #eaf0e9; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-card-bottom .template-price { column-gap: 8px; row-gap: 1px; padding: 0; border: 0; border-radius: 0; background: none; }
.tpl-card-bottom .template-price strong { font-size: 22px; }
.tpl-card-bottom .template-price del { font-size: 12px; color: #8b9690; }
.tpl-card-bottom .badge-free { padding: 0; border: 0; background: none; color: var(--g-900); font-size: 23px; font-weight: 800; }
.tpl-preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-height: 40px; padding: 7px 12px; border: 1px solid #06352a; border-radius: 8px; background: #06352a; color: #fff; font-size: 12px; font-weight: 700; }
.tpl-preview-button i { font-size: 16px; }
.tpl-preview-button:hover { background: #114b3d; border-color: #114b3d; }
.tpl-preview-button:focus-visible { outline: 3px solid #d6b25e; outline-offset: 3px; }
.template-eye {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #d7e6df; border-radius: 50%; background: #fff; color: #06352a;
  box-shadow: 0 4px 15px #06352a24; font-size: 22px; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .template-eye:hover { background: #06352a; color: #fff; transform: scale(1.06); }
}
.template-eye:focus-visible, .landing-preview-close:focus-visible { outline: 3px solid #d6b25e; outline-offset: 3px; }
.preview-is-open { overflow: hidden; }
.landing-preview-dialog {
  width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid #d7e6df; border-radius: 18px; color: var(--ink); background: #eef3f0;
  box-shadow: 0 24px 100px #001c1570; overflow: hidden;
}
.landing-preview-dialog::backdrop { background: #001c15b8; }
.landing-preview-dialog[open] { animation: previewIn .2s ease-out; }
.landing-preview-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.landing-preview-header > div { flex: 1; min-width: 0; }
.landing-preview-header h2 { margin: 0; font-size: 22px; }
.landing-preview-header p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.landing-preview-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }
.landing-preview-body { max-height: calc(100dvh - 135px); padding: 16px; overflow: auto; overscroll-behavior: contain; direction: ltr; }
.landing-preview-size { margin-inline: auto; }
#landingPreviewHost { width: 794px; transform-origin: top left; }
#landingPreviewHost .cv-page { margin: 0; box-shadow: 0 5px 24px #06352a16; }
@keyframes previewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing-preview-dialog[open] { animation: none; } }
@media (max-width: 560px) {
  .landing-preview-header { padding: 12px; gap: 8px; }
  .landing-preview-header h2 { font-size: 19px; }
  .landing-preview-header p { font-size: 12px; }
}

/* الاستوديو */
.studio-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 56px; align-items: center; }
.studio-text,.studio-visual { min-width: 0; }
.studio-text h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; margin: 14px 0 14px; }
.studio-text p { color: var(--muted); margin-bottom: 18px; }
.studio-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.studio-list li { padding-inline-start: 30px; position: relative; font-weight: 500; }
.studio-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 6px; background: var(--g-50); color: var(--g-800);
  border: 1px solid var(--g-100);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900;
}

.studio-mock { padding: 22px; display: flex; gap: 18px; }
.sm-palette { display: flex; flex-direction: column; gap: 10px; }
.sm-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--g-50); color: var(--g-800); border: 1px solid var(--g-100);
  font-size: 13px; font-weight: 700;
  border-radius: 9px; padding: 9px 14px; white-space: nowrap;
  animation: chipFloat 3s ease-in-out infinite;
}
.sm-chip i { font-size: 16px; color: var(--g-700); }
@keyframes chipFloat { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
html[dir="ltr"] .sm-chip { animation-name: chipFloatLtr; }
@keyframes chipFloatLtr { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.sm-page { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--shadow-sm); }
.sm-row { height: 11px; border-radius: 5px; background: #e4eae6; margin-bottom: 9px; }
.sm-row.accent { background: var(--g-600); }
.w60 { width: 60%; } .w40 { width: 40%; }
.sm-block { height: 48px; border-radius: 7px; background: #f0f4f1; margin: 14px 0; }
.sm-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sm-bars i { display: block; height: 7px; border-radius: 5px; background: #e4eae6; position: relative; overflow: hidden; }
.sm-bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--g-600); border-radius: 5px; animation: growBar 2.4s ease both infinite alternate; }
@keyframes growBar { from { width: 18%; } to { width: var(--w); } }
.sm-dots { display: flex; gap: 7px; }
.sm-dots i { width: 13px; height: 13px; border-radius: 50%; background: #e4eae6; }
.sm-dots i.on { background: var(--g-700); }

/* كيف تعمل — سكة أفقية */
.how-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.how-rail::before {
  content: ''; position: absolute; top: 29px; inset-inline: 12%;
  border-top: 2px dashed var(--line); z-index: 0;
}
.how-step { text-align: center; padding: 0 10px; position: relative; z-index: 1; }
.how-num {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px;
  background: #fff; border: 2px solid var(--g-100);
  display: flex; align-items: center; justify-content: center;
}
.how-num i { font-size: 24px; color: var(--g-700); }
.how-step b {
  display: inline-block; color: var(--gold); font-size: 13px; font-weight: 900;
  letter-spacing: 1px; margin-bottom: 4px;
}
.how-step h3 { margin: 0 0 7px; font-size: 17px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14px; }

/* الأسعار */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 30px 26px; display: flex; flex-direction: column; position: relative; box-shadow: none; }
.price-card.featured { border: 2px solid var(--g-700); box-shadow: var(--shadow); }
.price-card.studio-price { border-top: 3px solid var(--gold); }
.price-flag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--g-900); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 99px; white-space: nowrap;
}
html[dir="ltr"] .price-flag { transform: translateX(-50%); }
.price-head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.price-head h3 { margin: 0 0 8px; font-size: 17px; color: var(--muted); }
.price-num { font-size: 38px; font-weight: 900; color: var(--ink); }
.price-num small { font-size: 15px; color: var(--muted); font-weight: 700; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { padding-inline-start: 26px; position: relative; font-size: 14.5px; }
.price-card li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--g-600); font-weight: 900; }
.pay-note {
  display: flex; align-items: flex-start; gap: 10px; justify-content: center;
  text-align: start; color: var(--muted); font-size: 13.5px; margin: 28px auto 0; max-width: 760px;
  background: #fff; border: 1px solid var(--line); padding: 13px 18px; border-radius: 10px;
}
.pay-note i { color: var(--gold); font-size: 18px; flex: 0 0 auto; }

/* Shared FAQ styles are loaded from faq.css on the homepage and contact page. */
#ats-faq { scroll-margin-top:90px; }

/* CTA */
.cta-band {
  background: var(--g-950);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #fff; padding: 76px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(25px, 3.4vw, 35px); margin: 0 0 12px; font-weight: 900; color: #f7faf8; }
.cta-band p { margin: 0 0 26px; color: #9fb8ad; }

/* التذييل */
.footer { background: var(--g-950); border-top: 1px solid rgba(255, 255, 255, .07); padding: 46px 0; }
.footer .logo { color: #f3f7f4; }
.footer .logo .logo-mark { background: rgba(255, 255, 255, .08); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; color: #8fa89d; font-size: 14px; }
.footer-copy { font-size: 12.5px !important; opacity: .75; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* Cards far below the fold skip rendering until the visitor scrolls near them. */
.tpl-card { content-visibility: auto; contain-intrinsic-size: auto 640px; }

/* ---------- استجابة ---------- */
@media (max-width: 1020px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-rail { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .how-rail::before { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-kicker { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .studio-inner { grid-template-columns: minmax(0,1fr); }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
}
@media (max-width: 600px) {
  .tpl-grid { grid-template-columns: 1fr; gap: 22px; }
  .tpl-card { border-radius: 12px; }
  .tpl-card-body { padding: 19px 20px; }
  .tpl-card-title h3 { font-size: 22px; }
  .tpl-card-description { min-height: 0; }
  .tpl-card-features { margin: 14px 0 19px; }
  .tpl-card-bottom .template-price strong { font-size: 25px; }
  .tpl-preview-button { padding-inline: 16px; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .how-rail { grid-template-columns: 1fr; }
  .nav-inner { gap: 8px; padding-inline: 10px; height: 64px; flex-wrap: nowrap; }
  .nav .logo { gap: 5px; font-size: clamp(16px, 4vw, 20px); flex-shrink: 0; }
  .nav .logo-mark { width: 26px; height: 30px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { font-size: clamp(11px, 2.9vw, 13px); padding: 8px 6px; min-height: 40px; }
  .nav-actions .btn-ghost { display: inline-flex; order: 1; }
  .nav-actions .btn-primary { order: 2; }
  .nav-actions .lang-switch { order: 3; flex-shrink: 0; }
  .nav .lang-switch button { font-size: 11px; padding: 8px 6px; min-height: 38px; }
  .hero { padding: 48px 0 84px; }
  .hero-sub { font-size:15px; line-height:1.75; }
  .hero-stack { width:300px; --hero-page-scale:.377976; --hero-rear-x:18px; --hero-swap-travel:18px; }
  html[lang="en"] .hero-stack { --hero-rear-x:-18px; }
}
@media (max-width:360px) {
  .hero-stack { width:260px; --hero-page-scale:.327579; --hero-swap-travel:14px; }
}
