/* Al-Masrya — public site. One stylesheet, no frameworks. */
:root {
  /* from the Al-Masrya logo */
  --ink: #13183F;          /* mountain navy */
  --ink-2: #1E2560;
  --ink-3: #2A3270;
  --word: #343C6D;         /* wordmark */
  --blue: #4457AC;
  --sky: #809CF0;
  --red: #D2481E;          /* flame — the accent */
  --red-d: #B23A13;
  --stripe: linear-gradient(90deg, var(--blue) 0 62%, var(--sky) 62% 86%, var(--red) 86% 100%);
  --paper: #FFFFFF;
  --tint: #F3F4F7;
  --steel: #586276;
  --line: #DCE0E7;
  --ok: #0B7A4B;           /* exit-sign green, only for success */
  --ok-bg: #E6F4EC;
  --err-bg: #FBEAEA;

  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, Tahoma, sans-serif;

  --r-sign: 4px;
  --r-ctl: 8px;
  --r-card: 12px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --head-h: 68px;
  --sp: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.75 var(--f-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 800; line-height: 1.35; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

.i { width: 1.25em; height: 1.25em; flex: none; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--steel); }
.small { font-size: .875rem; }

/* ---------- type ---------- */
.h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .5em; }
.h3 { font-size: 1.2rem; margin-bottom: .6em; }
.lead { font-size: 1.125rem; color: var(--steel); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- the safety sign: the one signature element ---------- */
.sign {
  --sign-bg: var(--red);
  display: inline-grid; place-items: center; flex: none;
  background: var(--sign-bg); color: #fff; border-radius: var(--r-sign);
}
.sign .i { width: 70%; height: 70%; }
.sign--sm { width: 40px; height: 40px; }
.hero-mark { width: clamp(240px, 30vw, 420px); height: auto; overflow: visible; }
.sign--ok { --sign-bg: var(--ok); width: 72px; height: 72px; margin-bottom: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .55em 1.3em; border: 2px solid transparent; border-radius: var(--r-ctl);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 40px; padding: .35em 1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .6em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--steel); cursor: pointer; }
.icon-btn:hover { background: var(--err-bg); color: var(--red); }
.link { color: var(--red); font-weight: 600; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-head::after { content: ""; position: absolute; inset: auto 0 -3px 0; height: 3px; background: var(--stripe); }
.head-row { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand-txt { display: grid; line-height: 1.2; }
.brand-mark { height: 46px; width: auto; }
.brand-txt b { font-family: var(--f-head); font-size: 1.3rem; font-weight: 800; color: var(--word); }
.brand-txt small { font-size: .72rem; font-weight: 600; color: var(--red); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav > a { padding: 8px 9px; border-radius: 6px; text-decoration: none; font-size: .95rem; color: var(--word); white-space: nowrap; }
.nav > a:hover, .nav > a[aria-current] { color: var(--ink); background: var(--tint); }
.nav > a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); }
.nav-search { position: relative; display: flex; align-items: center; margin-inline-start: 8px; }
.nav-search .i { position: absolute; inset-inline-start: 10px; width: 18px; height: 18px; opacity: .7; pointer-events: none; }
.nav-search input {
  width: 160px; height: 38px; padding-inline: 34px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--tint); color: var(--ink); transition: width .2s, background-color .2s;
}
.nav-search input::placeholder { color: var(--steel); }
.nav-search input:focus { width: 210px; background: #fff; outline: none; border-color: var(--blue); }
.head-actions { display: flex; align-items: center; gap: 6px; }
.lang, .cart-link, .menu-btn, .search-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; font-size: .9rem; font-weight: 600;
}
.lang:hover, .cart-link:hover, .menu-btn:hover, .search-link:hover { background: var(--tint); }
.badge {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; line-height: 19px; text-align: center; font-weight: 700;
}
.menu-btn { display: none; }
.menu-btn .i { width: 26px; height: 26px; }

@media (min-width: 1201px) {
  .nav-search { display: none; }
}
@media (max-width: 1200px) { .search-link { display: none !important; } }
@media (max-width: 1200px) {
  .menu-btn { display: inline-flex; }
  .head-call span { display: none; }
  .head-call { padding-inline: 10px; }
  .nav {
    position: fixed; inset: calc(var(--head-h) + 3px) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gut) 20px;
    background: #fff; border-bottom: 3px solid var(--blue); box-shadow: 0 20px 30px -20px rgba(19,24,63,.35);
    max-height: calc(100dvh - var(--head-h)); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .18s, transform .18s; }
  .nav > a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav > a[aria-current] { box-shadow: inset 3px 0 0 var(--red); padding-inline-start: 12px; }
  .nav-search { display: flex; margin: 14px 0 0; }
  .nav-search input, .nav-search input:focus { width: 100%; height: 46px; }
}
@media (max-width: 420px) {
  .brand-txt small { display: none; }
  .head-row { gap: 8px; }
  .lang span { display: none; }
  .head-actions { gap: 0; }
  .brand { gap: 8px; }
  .brand-mark { height: 36px; }
  .brand-txt b { font-size: 1.05rem; }
  .head-call { padding-inline: 9px; }
  .lang, .cart-link, .menu-btn { padding: 0 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; border-top: 3px solid transparent; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity .8s; }
.hero-media video.is-playing { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,24,63,.93) 0%, rgba(19,24,63,.8) 55%, rgba(19,24,63,.55) 100%);
}
[dir="rtl"] .hero-media::after { background: linear-gradient(270deg, rgba(19,24,63,.93) 0%, rgba(19,24,63,.8) 55%, rgba(19,24,63,.55) 100%); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
  min-height: min(78vh, 680px); padding-block: clamp(64px, 10vw, 120px) clamp(96px, 12vw, 140px);
}
.hero h1 { display: grid; gap: .25em; margin-bottom: 22px; }
.hero-name { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.15; letter-spacing: -.01em; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 600; color: rgba(255,255,255,.88); }
.hero-lead { max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.82); margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.play-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: none; color: #fff; cursor: pointer; font-weight: 600;
}
.play-link > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.play-link .i { width: 18px; height: 18px; margin-inline-start: 2px; }
.play-link:hover > span { background: var(--red); border-color: var(--red); }
[dir="rtl"] .play-link .i { transform: scaleX(-1); margin-inline: 0 2px; }
.hero-sign { margin: 0; display: grid; justify-items: center; gap: 18px; }
.hero-sign figcaption { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; color: var(--sky); }

/* one orchestrated entrance: the sign lights up, then the copy settles */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .m-peak { animation: peak .8s cubic-bezier(.2,.7,.2,1) both; transform-box: fill-box; transform-origin: 50% 100%; }
  .hero-mark .m-peak:nth-of-type(2) { animation-delay: .12s; }
  .hero-mark .m-peak:nth-of-type(3) { animation-delay: .22s; }
  .hero-mark .m-flame { animation: flame-on .9s cubic-bezier(.2,.7,.2,1) both .45s; transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes peak { from { opacity: 0; transform: translateY(24px) scaleY(.85); } }
  @keyframes flame-on { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.08); } }
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: 40px; }
  .hero-sign { order: -1; justify-items: start; margin-bottom: 20px; }
  .hero-sign figcaption { display: none; }
  .hero-mark { width: 132px; }
}

/* ---------- pledges bar (overlaps hero) ---------- */
.pledges { position: relative; z-index: 2; margin-top: -56px; }
.pledge-row {
  display: grid; grid-template-columns: repeat(4, 1fr); list-style: none;
  background: var(--paper); border-radius: var(--r-card); box-shadow: 0 18px 40px -18px rgba(19,24,63,.35); padding: 0;
}
.pledge-row li { display: flex; align-items: center; gap: 12px; padding: 22px 24px; font-weight: 600; line-height: 1.45; }
.pledge-row li + li { border-inline-start: 1px solid var(--line); }
.pledge-row .i { width: 30px; height: 30px; color: var(--red); }
@media (max-width: 900px) {
  .pledge-row { grid-template-columns: 1fr 1fr; }
  .pledge-row li:nth-child(3) { border-inline-start: 0; }
  .pledge-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .pledges { margin-top: -40px; }
  .pledge-row li { padding: 16px 14px; font-size: .92rem; gap: 10px; }
  .pledge-row .i { width: 24px; height: 24px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--sp); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--tint { background: var(--tint); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lead { color: rgba(255,255,255,.75); }
.section > .wrap > .h2, .section > .wrap > div > .h2 { position: relative; padding-inline-start: 22px; }
.section > .wrap > .h2::before, .section > .wrap > div > .h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .38em; width: 14px; height: 13px; background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.h2 { position: relative; }
.empty .h2 { padding-inline-start: 0 !important; }
.empty .h2::before { display: none; }

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.codes { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.codes > div { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--r-sign); overflow: hidden; }
.codes dt { padding: 8px 14px; font-size: .9rem; color: var(--steel); }
.codes dd { margin: 0; padding: 8px 14px; background: var(--ink); color: #fff; font-family: var(--f-head); font-weight: 800; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 8px; } }

/* services */
.service { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 48px; }
.service--flip .service-img { order: 2; }
.service-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-card); background: var(--line); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { margin-top: .3em; width: 20px; height: 20px; color: #fff; background: var(--red); border-radius: 3px; padding: 3px; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; margin-top: 36px; }
  .service--flip .service-img { order: 0; }
}

/* stats */
.stats { background: var(--blue); color: #fff; padding-block: 44px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; list-style: none; text-align: center; }
.stats-row li { display: grid; justify-items: center; gap: 2px; }
.stats-row i { font-size: 1.6rem; opacity: .85; }
.stats-row b { font-family: var(--f-head); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats-row span { opacity: .9; }

/* clients */
.clients { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.client {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 72px; padding: 14px 18px;
  border: 1px solid var(--line); border-inline-start: 4px solid var(--ink); border-radius: var(--r-ctl); background: var(--paper);
  text-align: start; font-weight: 600; line-height: 1.4;
}
button.client { cursor: pointer; transition: border-color .15s; }
button.client:hover { border-color: var(--red); }
.client-meta { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--steel); font-weight: 500; }
.client-meta .i { width: 18px; height: 18px; }

/* gallery */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); gap: 10px; margin-top: 28px; }
.gallery a { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-ctl); background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.g-video { background: var(--ink-2) !important; display: grid !important; place-items: center; }
.g-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; }
.g-play .i { width: 26px; height: 26px; margin-inline-start: 3px; }
.gallery + .center { margin-top: 28px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--red); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; color: var(--steel); max-width: 68ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 20px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .i { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-sign); background: rgba(255,255,255,.08); color: #fff; }
.info-list b { display: block; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.65); }
.info-list a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.info-list a:hover { text-decoration: underline; }
.map {
  display: grid; place-items: center; margin-top: 48px; height: 340px; border-radius: var(--r-card); overflow: hidden;
  background: var(--ink-2) repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.03) 18px 36px);
}
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } .map { height: 260px; } }

/* ---------- cards & forms ---------- */
.card { background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); }
.section--ink .card { border: 0; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; }
.form label > span { font-size: .9rem; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
textarea, :where(input:not([type=hidden], [type=checkbox], [type=radio], .hp)) {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C5CBD6; border-radius: var(--r-ctl); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19,24,63,.15); }
.note { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: var(--r-ctl); margin: 0; font-weight: 500; }
.note--ok { background: var(--ok-bg); color: var(--ok); }
.note--err { background: var(--err-bg); color: var(--red-d); display: block; }

/* ---------- inner pages ---------- */
.page-head { background: var(--tint); padding-block: clamp(32px, 5vw, 56px) 28px; border-bottom: 1px solid var(--line); }
.page-head .muted { margin: 8px 0 20px; }
.page-head--short .h1 { margin-bottom: 18px; }
.search-bar { position: relative; display: flex; gap: 8px; max-width: 620px; }
.search-bar > .i { position: absolute; inset-inline-start: 14px; top: 14px; color: var(--steel); pointer-events: none; }
.search-bar input { padding-inline-start: 44px !important; min-height: 50px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { padding: 6px 14px; border: 1px solid #C5CBD6; border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; }
.chips a small { color: var(--steel); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a[aria-current] small { color: rgba(255,255,255,.7); }
.count { margin-bottom: 16px; font-size: .92rem; }

.products { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr)); gap: clamp(10px, 2vw, 20px); }
.products--4 { margin-top: 20px; }
.product-card { display: grid; gap: 8px; text-decoration: none; height: 100%; }
.pc-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-card); background: var(--tint); border: 1px solid var(--line); }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.pc-name { font-weight: 600; line-height: 1.45; }
.product-card:hover .pc-name { color: var(--red); }
.pc-price { color: var(--steel); font-size: .95rem; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-ctl); text-decoration: none; }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding-block: 48px; }
.empty > .i { width: 48px; height: 48px; color: var(--steel); margin-bottom: 8px; }
.empty .btn { margin-top: 12px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 20px; font-size: .9rem; color: var(--steel); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs .i { width: 14px; height: 14px; }
[dir="rtl"] .crumbs .i, [dir="rtl"] .lb-next .i { transform: scaleX(-1); }

.pd { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pd-media { position: sticky; top: calc(var(--head-h) + 20px); }
.pd-main { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-card); background: var(--tint); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-noimg .i { width: 64px; height: 64px; color: var(--steel); }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; background: var(--tint); cursor: pointer; }
.pd-thumbs button[aria-current] { border-color: var(--red); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .h1 { margin-bottom: 10px; }
.pd-price { font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; color: var(--red); margin-bottom: 20px; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.buy .btn { flex: 1 1 200px; }
.buy-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.buy-msg a { color: inherit; }
.pd-info > .btn--outline { width: 100%; margin-bottom: 28px; }
.pd-desc { margin-bottom: 28px; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } .pd-media { position: static; } }

.qty { display: inline-flex; align-items: stretch; border: 1px solid #C5CBD6; border-radius: var(--r-ctl); overflow: hidden; height: 54px; background: #fff; }
.qty button { width: 44px; border: 0; background: var(--tint); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--line); }
.qty input { width: 58px !important; min-height: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm { height: 40px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 44px !important; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.specs th { width: 42%; font-weight: 600; background: var(--tint); }
.specs a { text-decoration: none; }

/* cart */
.cart-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart-lines { list-style: none; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-img img { width: 88px; height: 88px; object-fit: contain; border-radius: var(--r-ctl); background: var(--tint); border: 1px solid var(--line); }
.cl-body { display: grid; }
.cl-name { font-weight: 600; text-decoration: none; }
.cl-name:hover { color: var(--red); }
.cl-sum { min-width: 90px; text-align: end; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font-size: 1.15rem; }
.cart-total b { font-family: var(--f-head); font-size: 1.5rem; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 12px; }
  .cl-img img { width: 64px; height: 64px; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cl-sum { grid-column: 3; grid-row: 1; align-self: start; min-width: 0; }
  .cart-line > form:last-child { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* order tracking */
.order-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0; counter-reset: s; }
.steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 600; color: var(--steel); font-size: .95rem; }
.steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: #fff; z-index: 1; }
.steps li + li::before { content: ""; position: absolute; top: 20px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); }
.steps .is-done { color: var(--ok); }
.steps .is-done > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .is-done + li::before, .steps li.is-done::before { background: var(--ok); }
.steps .is-now { color: var(--ink); }
.steps .is-now > span { border-color: var(--red); color: var(--red); }
.order-lines .tot th, .order-lines .tot td { font-weight: 800; font-family: var(--f-head); border-bottom: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.8); padding-top: clamp(48px, 7vw, 80px); font-size: .95rem; }
.site-foot h3 { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 36px; }
.foot-logo { display: inline-block; padding: 14px 18px; background: #fff; border-radius: var(--r-card); margin-bottom: 18px; }
.foot-logo img { height: 92px; width: auto; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--red); }
.foot-links { list-style: none; display: grid; gap: 8px; }
.foot-links a, .foot-contact a { text-decoration: none; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; text-decoration: underline; }
.foot-contact { list-style: none; display: grid; gap: 12px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .i { margin-top: .25em; color: var(--red); }
.subscribe { display: flex; gap: 8px; margin-top: 10px; }
.subscribe input { min-height: 46px !important; background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.2) !important; color: #fff; }
.subscribe input::placeholder { color: rgba(255,255,255,.5); }
.site-foot .note { margin-bottom: 8px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.6); }
.foot-bottom a { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: #fff; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35);
}
.wa-float .i { width: 30px; height: 30px; }
@media (max-width: 560px) { .wa-float { width: 50px; height: 50px; inset-inline-end: 14px; bottom: 14px; } .wa-float .i { width: 26px; height: 26px; } }
.wa-float:hover { background: #178a45; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,14,32,.95); color: #fff; }
.lightbox::backdrop { background: rgba(8,14,32,.6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 64px 72px 8px; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; }
.lb-stage iframe { width: min(100%, 1100px); aspect-ratio: 16/9; height: auto; max-height: calc(100dvh - 120px); border: 0; }
.lb-cap { text-align: center; padding: 8px 16px 18px; margin: 0; color: rgba(255,255,255,.8); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.lb-btn:hover { background: var(--red); }
.lb-close { top: 14px; inset-inline-end: 14px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
.lb-prev .i { transform: scaleX(-1); }
[dir="rtl"] .lb-prev .i { transform: none; }
@media (max-width: 600px) { .lb-stage { padding: 64px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 1201px) and (max-width: 1340px) { .brand-txt small { display: none; } .head-call span { display: none; } }
.site-foot { position: relative; }
.site-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--stripe); }

/* ---------- projects (blog) ---------- */
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.row-between .h2, .row-between .h3 { margin: 0; }
.pj-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.pj-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .15s; }
.pj-card:hover { border-color: var(--blue); }
.pj-img { display: grid; place-items: center; aspect-ratio: 4/3; background: var(--tint); overflow: hidden; position: relative; }
.pj-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--stripe); }
.pj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pj-img .i { width: 40px; height: 40px; color: var(--steel); }
.pj-card:hover .pj-img img { transform: scale(1.04); }
.pj-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.pj-meta { font-size: .85rem; color: var(--blue); font-weight: 600; }
.pj-title { font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; line-height: 1.45; }
.pj-card:hover .pj-title { color: var(--red); }
.pj-sum { color: var(--steel); font-size: .95rem; line-height: 1.65; }

.pj-hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); min-height: clamp(280px, 46vh, 460px); display: flex; align-items: flex-end; }
.pj-hero--plain { min-height: 0; }
.pj-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pj-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(19,24,63,.94) 0%, rgba(19,24,63,.55) 55%, rgba(19,24,63,.15) 100%); }
.pj-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--stripe); }
.pj-hero-txt { padding-block: 40px 44px; }
.pj-hero .h1 { max-width: 24ch; margin: 10px 0 10px; }
.pj-lead { max-width: 60ch; color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 0; }
.pj-back { display: inline-flex; align-items: center; gap: 4px; color: var(--sky); text-decoration: none; font-weight: 600; font-size: .95rem; }
.pj-back .i { width: 16px; height: 16px; transform: scaleX(-1); }
[dir="rtl"] .pj-back .i { transform: none; }
.pj-back:hover { color: #fff; }
.pj-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pj-body-txt { font-size: 1.08rem; overflow-wrap: anywhere; min-width: 0; }
.pj-body-txt .ticks { margin-bottom: 1em; }
.pj-facts { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); border-top: 4px solid var(--blue); }
.pj-facts dl { margin: 0 0 10px; display: grid; gap: 14px; }
.pj-facts dt { font-size: .85rem; color: var(--steel); }
.pj-facts dd { margin: 0; font-weight: 600; }
.pj-gal-title { margin-top: clamp(32px, 5vw, 56px); }
.pj-gallery { margin-top: 16px; }
@media (max-width: 860px) { .pj-layout { grid-template-columns: minmax(0, 1fr); } .pj-facts { position: static; } }
.pj-facts { min-width: 0; } .pj-facts .btn { white-space: normal; text-align: center; }

/* key project (home) */
.pj-big { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); text-decoration: none; background: var(--ink); color: #fff; border-radius: var(--r-card); overflow: hidden; }
.pj-big .pj-img { aspect-ratio: auto; min-height: 360px; height: 100%; }
.pj-big .pj-img::after { inset: 0 0 0 auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--blue) 0 62%, var(--sky) 62% 86%, var(--red) 86%); }
[dir="rtl"] .pj-big .pj-img::after { inset: 0 auto 0 0; }
.pj-big:hover .pj-img img { transform: scale(1.03); }
.pj-big-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.5vw, 44px); }
.pj-big-title { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.4; }
.pj-big .pj-sum { color: rgba(255,255,255,.78); font-size: 1rem; }
.pj-facts-row { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.pj-facts-row span { display: grid; font-weight: 600; }
.pj-facts-row small { font-size: .8rem; font-weight: 500; color: var(--sky); }
.pj-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: #fff; font-weight: 700; }
.pj-more .i { width: 18px; height: 18px; color: var(--red); }
[dir="rtl"] .pj-more .i { transform: scaleX(-1); }
.pj-big:hover .pj-more { color: var(--sky); }
.pj-grid--after { margin-top: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
@media (max-width: 860px) {
  .pj-big { grid-template-columns: minmax(0, 1fr); }
  .pj-big .pj-img { min-height: 0; aspect-ratio: 4/3; }
  .pj-big .pj-img::after, [dir="rtl"] .pj-big .pj-img::after { inset: auto 0 0 0; width: auto; height: 4px; background: var(--stripe); }
}

/* captcha */
.captcha { display: grid; gap: 6px; }
.captcha > label > span { font-size: .9rem; font-weight: 600; }
.captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-row img { width: 160px; height: 52px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--tint); }
.captcha-row .captcha-new { width: 44px; height: 44px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.captcha-row .captcha-new:hover { background: var(--tint); color: var(--blue); }
.captcha-row input { flex: 1 1 120px; max-width: 180px; font-size: 1.25rem !important; letter-spacing: .3em; text-align: center; }
