/* الهرم — بوكس أنامل صغيرة */
@font-face { font-family: "Baloo Bhaijaan 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(fonts/baloo-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Baloo Bhaijaan 2"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(fonts/baloo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2190-2193; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/readex-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/readex-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2190-2193; }

:root {
  --cream: #FFF9F1;
  --coral: #FF8B7B; --coral-d: #E8695A;
  --mint: #8FD6C0; --mint-t: #1F6B57;
  --sky: #EAF5FD; --sky-b: #9FD0F5;
  --butter: #FFE7A3; --butter-b: #FFD06B;
  --lilac: #D9CCF5;
  --ink: #2E3150; --muted: #6B6F8A;
  --wa: #3CCB7F;
  --r: 20px;
  --head: "Baloo Bhaijaan 2", "Readex Pro", sans-serif;
  --body: "Readex Pro", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.7 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; margin: 0; line-height: 1.3; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.wide { max-width: 1100px; }
.sec { position: relative; padding: 36px 0; }
.sec h2 { font-size: 26px; margin-bottom: 16px; text-align: center; }
.bg-sky { background: var(--sky); }
.bg-butter { background: #FFF3CF; }

/* موجات بين الأقسام */
.wave { display: block; width: 100%; height: 26px; margin-bottom: -1px; }
.wave path { fill: var(--wave, var(--sky)); }
.wave.down { transform: scaleY(-1); margin: -1px 0 0; }

/* رسومات خفيفة في الخلفية */
.doodles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.doodles span { position: absolute; font: 800 34px/1 var(--head); color: var(--ink); opacity: .07; }
.doodles svg { position: absolute; width: 34px; height: 34px; opacity: .1; stroke: var(--ink); fill: none; stroke-width: 1.6; }

/* أزرار ثلاثية الأبعاد */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 58px; padding: 10px 20px; border: 0; border-radius: 18px; cursor: pointer;
  font: 800 20px/1.25 var(--head); text-decoration: none; text-align: center;
  transition: transform .08s, border-bottom-width .08s;
}
.btn-coral { background: var(--coral); color: #fff; border-bottom: 5px solid var(--coral-d); text-shadow: 0 1px 0 rgba(0,0,0,.08); }
.btn-coral:active { transform: translateY(3px); border-bottom-width: 2px; }
.btn-wa { background: var(--wa); color: #fff; border-bottom: 5px solid #2BA866; }
.btn-wa:active, .btn-light:active { transform: translateY(3px); border-bottom-width: 2px; }
.btn-light { background: #fff; color: var(--ink); border: 2px solid var(--sky-b); border-bottom-width: 5px; }
.btn[disabled] { opacity: .8; cursor: wait; animation: none; }
.pulse { animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%, 82%, 100% { transform: scale(1); } 88% { transform: scale(1.035); } 94% { transform: scale(.995); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* 1. العنوان والسعر */
.hero { position: relative; padding: 22px 0 8px; text-align: center; }
.logo { height: 34px; width: auto; margin: 0 auto 10px; }
.hero h1 { font-size: 34px; }
.hero .sub { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }
.price { font: 800 46px/1.1 var(--head); color: var(--ink); }
.price small { font-size: 24px; }
.price-note { color: var(--muted); font-size: 15px; margin: 2px 0 12px; }
.badge-mint { display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--mint-t); font: 800 16px/1 var(--head); padding: 9px 16px; border-radius: 999px; margin-bottom: 16px; }

/* 2. المعرض */
.gallery { margin-top: 6px; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; background: #fff; box-shadow: 0 2px 0 var(--sky-b); }
.g-track::-webkit-scrollbar { display: none; }
.g-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--sky-b); cursor: pointer; transition: width .2s, background .2s; }
.dots button.on { width: 26px; background: var(--coral); }
.dots button::before { content: ""; display: block; width: 32px; height: 32px; margin: -11px; } /* مساحة لمس أكبر */

/* 3. الاستمارة */
.form-sec { background: var(--sky); padding-top: 18px; }
.form-card { scroll-margin-top: 10px; }
.form-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; }
.form-head h2 { text-align: right; font-size: 24px; margin: 0; flex: 1; }
.mascot-box { position: relative; flex: none; }
.mascot { width: 76px; height: 76px; }
.bubble { position: absolute; top: -34px; right: -6px; white-space: nowrap; background: #fff; border: 2px solid var(--sky-b); border-radius: 14px; padding: 4px 10px; font: 600 13px/1.3 var(--head); }
.bubble::after { content: ""; position: absolute; right: 30px; bottom: -12px; border: 6px solid transparent; border-top-color: var(--sky-b); }
.field { margin-bottom: 14px; }
.lbl { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.input { width: 100%; height: 54px; padding: 0 14px; font-size: 16px; background: #fff; border: 2px solid var(--sky-b); border-radius: 14px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s; }
select.input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%232E3150' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") left 14px center no-repeat; padding-left: 44px; }
.input:focus { border-color: var(--ink); }
.input.bad { border-color: var(--coral-d); background-color: #FFF4F2; }
.tel { direction: ltr; text-align: right; }
.err { display: none; color: var(--coral-d); font-size: 14px; font-weight: 600; margin-top: 5px; }
.field.has-err .err { display: block; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--sky-b); border-radius: 16px; padding: 4px; }
.qty button { width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--butter); font: 800 26px/1 var(--head); cursor: pointer; border-bottom: 3px solid var(--butter-b); }
.qty button:active { transform: translateY(2px); border-bottom-width: 1px; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 42px; text-align: center; font: 800 24px/1 var(--head); }
.qty-note { color: var(--muted); font-size: 14px; flex: 1; min-width: 150px; line-height: 1.4; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 10px 8px; background: #fff; border: 2px solid var(--sky-b); border-bottom-width: 4px; border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ic { font-size: 22px; line-height: 1; }
.choice b { font: 800 18px/1.25 var(--head); }
.choice span { font-size: 15px; font-weight: 600; }
.choice .free { color: var(--mint-t); }
.choice.on { border-color: var(--coral); background: #FFF1EE; }
.choice.on::after { content: "✓"; position: absolute; top: 6px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font: 800 14px/22px var(--head); }
.choice:focus-within { outline: 3px solid var(--sky-b); outline-offset: 2px; }

/* نافذة الملف الإضافي */
.no-scroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(46,49,80,.55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal .sheet { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--cream); border-radius: 26px 26px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal .sheet { animation: none; } }
.modal .sheet { text-align: center; justify-items: center; gap: 12px; padding-top: 26px; }
.up-logo { width: 88px; height: 88px; }
.modal h3 { font-size: 23px; line-height: 1.3; }
.up-text { font: 800 19px/1.5 var(--head); line-height: 1.6; max-width: 360px; }
.up-contents { background: #fff; border: 2px solid var(--butter-b); border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.75; text-align: right; color: var(--ink); }
.up-icons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.up-icons li { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; background: #fff; border: 2px solid var(--butter-b); border-radius: 16px; padding: 8px 6px; font-size: 13px; font-weight: 600; }
.up-icons li span { font-size: 26px; line-height: 1; }
.up-btns { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
@media (min-width: 640px) { .modal { align-items: center; padding: 16px; } .modal .sheet { border-radius: 26px; } }

.total { background: var(--butter); border: 2px solid var(--butter-b); border-radius: var(--r); padding: 14px 16px; margin: 18px 0 14px; text-align: center; }
.total .t-lbl { font: 600 16px/1.2 var(--head); }
.total .t-val { display: block; font: 800 42px/1.15 var(--head); margin: 2px 0 8px; }
.total .t-val.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.lines { display: grid; gap: 6px; text-align: right; }
.line { display: flex; justify-content: space-between; gap: 8px; background: rgba(255,255,255,.65); border-radius: 10px; padding: 5px 10px; font-size: 14px; }
.line.l-folder { border-right: 4px solid var(--coral); }
.line.l-del { border-right: 4px solid var(--mint); }
.line .free { color: var(--mint-t); font-weight: 600; }

.fail { background: #FFF1EE; border: 2px solid var(--coral); border-radius: 16px; padding: 14px; margin-top: 14px; display: grid; gap: 10px; }
.fail p { font-weight: 600; text-align: center; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 4. تحت الزر */
.after { margin-top: 12px; display: grid; gap: 10px; text-align: center; }
.no-pay { font-weight: 600; color: var(--mint-t); }
.guarantee { background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 14px; border: 2px solid var(--mint); text-align: right; }
.steps-t { font-weight: 600; font-size: 14px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.steps3 .s { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border-radius: 16px; padding: 10px 6px; border: 2px solid var(--sky-b); }
.steps3 .s b { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; font: 800 16px/28px var(--head); }

/* 5. الوصف */
.inside { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.inside li { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 14px; }
.inside svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--sky); stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inside li:nth-child(4n+2) svg { background: #FFF1EE; }
.inside li:nth-child(4n+3) svg { background: #E5F6F0; }
.inside li:nth-child(4n+4) svg { background: var(--butter); }
.desc h3 { font-size: 22px; margin: 6px 0 8px; }
.desc p { margin-bottom: 10px; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.pics.one img:only-child { grid-column: 1 / -1; }

/* 6. الخريطتان */
.maps { display: grid; gap: 22px; }
.map { position: relative; background: #fff; border-radius: 24px; padding: 18px 14px 16px; border: 2px solid var(--sky-b); }
.map.extra { border-color: var(--butter-b); }
.ribbon { position: absolute; top: 14px; left: -6px; background: var(--butter-b); color: var(--ink); font: 800 15px/1 var(--head); padding: 8px 14px; border-radius: 8px 8px 8px 0; box-shadow: 0 2px 0 #E9B84F; }
.ribbon::after { content: ""; position: absolute; left: 0; bottom: -6px; border-top: 6px solid #C99632; border-left: 6px solid transparent; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 14px; }
.center img { width: 64px; height: 64px; }
.center .c-title { font: 800 24px/1.2 var(--head); }
.center .c-stats { background: var(--sky); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; }
.map.extra .center .c-stats { background: var(--butter); }
.center .c-note { color: var(--muted); font-size: 14px; }
.group-title { font: 800 16px/1.3 var(--head); margin: 14px 0 8px; color: var(--muted); }
.tree { position: relative; list-style: none; margin: 0; padding: 0 20px 0 0; display: grid; gap: 8px; }
.tree::before { content: ""; position: absolute; right: 8px; top: -14px; bottom: 26px; border-right: 3px solid var(--sky-b); border-radius: 0 0 0 0; }
.tree > li { position: relative; }
.tree > li::before { content: ""; position: absolute; right: -14px; top: 22px; width: 14px; height: 14px; border-bottom: 3px solid var(--sky-b); border-right: 3px solid var(--sky-b); border-radius: 0 0 14px 0; transform: translateY(-11px); }
.branch { border-radius: 16px; background: var(--c, var(--sky)); }
.branch summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; min-height: 52px; }
.branch summary::-webkit-details-marker { display: none; }
.branch .ico { font-size: 22px; line-height: 1; }
.branch .txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.branch .meta { display: flex; gap: 6px; align-items: center; }
.branch .nm { font: 800 16px/1.3 var(--head); }
.branch .ct { background: rgba(255,255,255,.75); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.branch .new { background: var(--ink); color: #fff; font: 800 12px/1 var(--head); padding: 5px 8px; border-radius: 999px; }
.branch .chev { font-size: 14px; transition: transform .2s; }
.branch[open] .chev { transform: rotate(180deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.chips span { background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.map .btn { margin-top: 16px; font-size: 18px; }

/* 7–9 */
.final .btn { font-size: 19px; min-height: 66px; }
.contact .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact .btn { font-size: 17px; flex-direction: column; gap: 2px; }
.contact .phone-num { display: block; font: 600 14px/1.2 var(--body); direction: ltr; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 16px 26px; }

/* صفحة الشكر */
.merci { text-align: center; padding: 26px 0 40px; }
.merci .mascot { width: 110px; height: 110px; margin: 0 auto 12px; }
.merci h1 { font-size: 26px; margin-bottom: 10px; }
.merci .call { background: var(--sky); border-radius: 16px; padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }
.sum { background: #fff; border: 2px solid var(--sky-b); border-radius: var(--r); padding: 14px 16px; text-align: right; }
.sum .r { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--sky-b); }
.sum .tot { background: var(--butter); border: 2px solid var(--butter-b); border-radius: 14px; margin-top: 12px; padding: 10px 14px; text-align: center; }
.sum .tot b { display: block; font: 800 36px/1.2 var(--head); }
.sum .remind { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.club { margin-top: 16px; background: var(--mint); color: var(--mint-t); border-radius: 16px; padding: 12px 14px; font-weight: 600; }

@media (min-width: 900px) {
  .maps { grid-template-columns: 1fr 1fr; align-items: start; }
  .map .tree { grid-template-columns: 1fr 1fr; padding: 16px 0 0; }
  .map .tree::before { right: 10%; left: 10%; top: 0; bottom: auto; border-right: 0; border-top: 3px solid var(--sky-b); border-radius: 0; }
  .map .tree > li::before { right: 50%; top: -16px; width: 0; height: 16px; border-bottom: 0; border-radius: 0; transform: none; }
  .sec h2 { font-size: 30px; }
}
