:root {
  --accent: #E8700A;
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-dark: color-mix(in srgb, var(--accent) 82%, #000);
  --bg: #FAF7F2;
  --bg-alt: #F3EEE6;
  --card: #fff;
  --ink: #23201C;
  --ink-2: #5E5850;
  --ink-3: #8C857B;
  --line: #E9E2D7;
  --wa: #1FA855;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(35, 32, 28, .04), 0 6px 24px rgba(35, 32, 28, .06);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.75 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; top: -40px; right: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid transparent; border-radius: 12px; padding: 10px 18px;
  font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 15px; }
.btn-lg { padding: 13px 26px; font-size: 17px; min-height: 52px; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-dark); }
.btn-line { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-line:hover { background: var(--accent-soft); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #188f47; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0;
  color: var(--accent-dark); font-weight: 600; font-size: 15px;
}
.link-btn .ic { width: 18px; height: 18px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.logo-mark .ic { width: 26px; height: 26px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-txt b { font-size: 18px; }
.logo-txt small { color: var(--ink-2); font-size: 13px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--accent); }
.top-call { margin-inline-start: 8px; }

/* ---------- hero ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 56px; }
.eyebrow { color: var(--accent-dark); font-weight: 700; font-size: 15px; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.01em; }
.hero .lead { color: var(--ink-2); font-size: 18px; margin-top: 16px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ink-3); font-size: 15px; }
.hero-note .ic { width: 18px; height: 18px; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 22px; background: var(--bg-alt); }

/* ---------- why ---------- */
.why { padding-block: 28px; border-bottom: 1px solid var(--line); background: var(--bg); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.why-ic .ic { width: 24px; height: 24px; }
.why-list b { display: block; font-size: 16px; }
.why-list p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* ---------- sections ---------- */
.sec { padding-block: 64px; }
.sec-alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); }
.sec-head p { color: var(--ink-2); margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product { overflow: hidden; display: flex; flex-direction: column; }
.product-img { aspect-ratio: 3 / 2; background: var(--bg-alt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .ph { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 45%, #fff); }
.product-img .ph .ic { width: 56px; height: 56px; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 18px; }
.product .specs { color: var(--accent-dark); font-weight: 600; font-size: 14.5px; }
.product .desc { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.product .price { font-weight: 700; font-size: 17px; }
.product .link-btn { margin-top: auto; padding-top: 10px; align-self: flex-start; }

/* faq */
.faq-wrap { max-width: 860px; }
.faq-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
#faq-q {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink); min-height: 50px;
}
#faq-q:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 500;
  min-height: 38px;
}
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-weight: 600; cursor: pointer; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: var(--ink-3); transition: transform .2s; }
.faq[open] .chev { transform: rotate(180deg); color: var(--accent); }
.faq[open] summary { color: var(--accent-dark); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); }
.faq-empty { text-align: center; color: var(--ink-2); padding: 16px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; }
.contact-info { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.phones { display: flex; flex-direction: column; gap: 12px; }
.c-phone { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.c-num { display: flex; flex-direction: column; align-items: flex-start; }
.c-num small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.contact-info .btn-wa + .btn-wa { margin-top: -8px; }
.c-phone .ic { width: 28px; height: 28px; color: var(--accent); }
.c-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.c-list li { display: flex; gap: 10px; align-items: flex-start; }
.c-list .ic { margin-top: 4px; color: var(--ink-3); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.map { position: relative; overflow: hidden; min-height: 320px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-open {
  position: absolute; bottom: 14px; right: 14px; display: inline-flex; gap: 6px; align-items: center;
  background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--shadow);
}
.map-open .ic { width: 18px; height: 18px; color: var(--accent); }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding-block: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.foot .logo img, .foot .logo-mark { width: 36px; height: 36px; }
.foot .logo-txt b { font-size: 15px; color: var(--ink); }

.fab-wa {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 20px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 30;
}
.fab-wa .ic { width: 30px; height: 30px; }

/* ---------- chat ---------- */
.chat-fab {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; padding: 0 22px 0 18px; height: 58px; font-weight: 600;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .15s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .ic { width: 26px; height: 26px; }
.chat-open .chat-fab { display: none; }

.chat {
  position: fixed; bottom: 20px; left: 20px; z-index: 50; width: 390px; height: min(640px, calc(100dvh - 40px));
  background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, .18); border: 1px solid var(--line);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-open .chat { display: flex; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head .logo-mark, .chat-head img { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.chat-head b { display: block; font-size: 16px; line-height: 1.3; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.chat-head small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.chat-x { margin-inline-start: auto; width: 40px; height: 40px; border: 0; background: var(--bg); border-radius: 12px; display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }
.msg[dir] { text-align: start; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-start-start-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); border-start-end-radius: 4px; }
.msg .src { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.msg-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 14.5px; width: auto; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick .chip { font-size: 14px; background: #fff; }
.chat-foot { border-top: 1px solid var(--line); padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: #fff; }
.chat-form { display: flex; gap: 8px; }
.chat-form textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 16px;
  max-height: 120px; min-height: 48px; line-height: 1.5; color: var(--ink); background: var(--bg);
}
.chat-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.chat-send { width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send .ic { transform: scaleX(-1); }
.chat-links { display: flex; justify-content: center; gap: 18px; margin-top: 8px; font-size: 13.5px; }
.chat-links a, .chat-links button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 2px; display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; }
.chat-links .ic { width: 16px; height: 16px; }
.chat-links a:hover, .chat-links button:hover { color: var(--accent-dark); }

.lead-form { align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lead-form b { font-size: 15.5px; }
.lead-form input, .lead-form textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); width: 100%;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .err { color: #c0392b; font-size: 14px; }
.lead-form .row { display: flex; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-call { margin-inline-start: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 40px; }
  .hero-img img { aspect-ratio: 16 / 9; border-radius: 18px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .top-in { min-height: 64px; gap: 12px; }
  .logo-txt b { font-size: 16px; }
  .logo-txt small { font-size: 12px; }
  .top-call span { display: none; }
  .top-call { width: 44px; padding: 0; }
  .hero .lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .sec { padding-block: 44px; }
  .c-phone { font-size: 22px; }
  .chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .chat-fab span { display: none; }
  .chat-fab { width: 60px; padding: 0; justify-content: center; left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
