/* הטמעת מאנדיי: page sketch on top of the shared Web3D tokens + chrome.
   Values measured from the live page (computed styles, 1440px + 375px). */

@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
}

/* ---------- Reveal (site: .animation-element.fadeUp) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--w3d-ease), transform 0.8s var(--w3d-ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 0.4s ease-out; }
}
/* MOBILE NOTE: items inside horizontal swipe rows sit off-screen sideways, so they skip the reveal and are simply visible. */
@media (max-width: 1199px) { .js .cases-track > .reveal { opacity: 1; transform: none; } }
@media (max-width: 767px) { .js .h-scroll > .reveal { opacity: 1; transform: none; } }

/* ---------- Sticky header (live: fixed 45px bar, 15px links, 100px logo) ---------- */
.header-holder { min-height: 146px; }
.site-header.is-sticky {
  position: fixed;
  inset: 0 0 auto 0;
  animation: hdr-in 0.35s var(--w3d-ease);
}
.site-header.is-sticky .top-menu { display: none; } /* live overlaps the two menus here; dropped */
.site-header.is-sticky .main-bar { height: 45px; align-items: center; }
.site-header.is-sticky .site-logo { margin-top: 0; }
.site-header.is-sticky .site-logo img { width: 100px; height: auto; }
.site-header.is-sticky .main-nav > ul > li > a { font-size: 15px; line-height: 45px; }
.site-header.is-sticky .main-nav > ul > li + li > a::before { top: 12px; height: 21px; }
.site-header.is-sticky .header-cta { height: 30px; line-height: 30px; font-size: 15px; border-radius: 15px; }
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-sticky { animation: none; } }
@media (max-width: 1199px) {
  .header-holder { min-height: 60px; }
}

/* ---------- Shared bits ---------- */
.btn-arrow { min-width: 180px; min-height: 53px; }
.btn-arrow .ph { font-size: 20px; transition: transform 0.4s var(--w3d-ease); }
.btn-arrow:hover .ph { transform: translateX(-4px); }
.btn-post {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px;
  border: 1px solid var(--w3d-red); border-radius: var(--w3d-r-pill);
  background: #fff; color: var(--w3d-red); font-size: 16px; line-height: 24px;
  transition: background-color var(--w3d-t), color var(--w3d-t);
}
.btn-post:hover { background: var(--w3d-red); color: #fff; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.logo-row img { width: auto; max-height: 56px; filter: grayscale(1); opacity: 0.85; transition: filter 0.4s, opacity 0.4s; }
.logo-row li:hover img { filter: none; opacity: 1; }
.breadcrumbs { padding: 10px 0 0; }

/* Horizontal swipe rows on small screens (site uses Swiper with peek) */
@media (max-width: 767px) {
  .h-scroll {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--w3d-gutter) * -1);
    padding-inline: var(--w3d-gutter);
    scroll-padding-inline: var(--w3d-gutter);
  }
  .h-scroll::-webkit-scrollbar { display: none; }
  .h-scroll > li { scroll-snap-align: start; flex-shrink: 0; }
}

/* ================================================================
   1. #m-first
   ================================================================ */
#m-first { padding: 60px 0 100px; }
.mf-title {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 50px; font-weight: 800; line-height: 55px; letter-spacing: -1px; color: var(--w3d-ink);
  margin-bottom: 30px;
}
.mf-title img { height: 61px; width: auto; }
.mf-intro { max-width: 720px; margin: 0 auto; text-align: center; font-size: 20px; line-height: 30px; }
.mf-badges { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 22px 0 50px; }
.mf-badges img { height: 68px; width: auto; }

.mf-card {
  max-width: 1265px; margin: 0 auto;
  background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card);
  padding: 30px 35px;
}
.mf-products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  padding: 0 0 24px; margin: 0 35px; border-bottom: 1px solid var(--w3d-border);
  direction: ltr;
}
.mf-products li { display: grid; grid-template-columns: 45px 1fr; gap: 12px; align-items: center; text-align: left; }
.mf-products h3 { font: 500 18px/18px "Poppins", var(--w3d-font); letter-spacing: -1px; color: var(--w3d-heading); margin-bottom: 6px; }
.mf-products span { font: 400 13px/1.4 "Poppins", var(--w3d-font); color: var(--w3d-muted); letter-spacing: 0; }
.mf-services {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px;
  padding-top: 40px; margin: 0 35px;
}
.mf-services li {
  border: 1px solid var(--w3d-border); border-radius: var(--w3d-r-process);
  padding: 14px 13px 18px; min-height: 199px;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--w3d-ease);
}
.mf-services li:hover { border-color: var(--w3d-red); box-shadow: var(--w3d-shadow-card); transform: translateY(-4px); }
.mf-services img { width: 25px; height: 25px; margin-right: auto; margin-left: 0; }
.mf-services img.mf-mlogo { width: 104px; height: auto; }
.mf-services h3 { font-size: 19px; line-height: 24.7px; font-weight: 700; color: var(--w3d-heading); margin: 12px 0 7px; }
.mf-services p { font-size: 14px; line-height: 19.6px; color: var(--w3d-muted); }
.mf-ctas { display: flex; justify-content: center; gap: 36px; margin-top: 50px; }
.mf-ctas > div { display: flex; flex-direction: column; gap: 6px; }
.mf-ctas span { font-size: 14px; line-height: 21px; color: var(--w3d-muted); padding-right: 15px; }

/* ================================================================
   2. #m-history
   ================================================================ */
#m-history { background: var(--w3d-pink); padding: 57px 0; }
.mh-title { max-width: 875px; margin: 0 auto 30px; text-align: center; }
.mh-card {
  background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card);
  padding: 45px 88px 27px 49px;
}
.mh-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.mh-text { padding-left: 80px; }
.mh-group { display: flex; align-items: center; gap: 15px; font-size: 28px; line-height: 36.4px; font-weight: 700; color: var(--w3d-heading); margin-bottom: 20px; }
.mh-group img { height: 50px; width: auto; }
.mh-sub { font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--w3d-heading); }
.mh-sub span { color: var(--w3d-red); }
.mh-content { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--w3d-border); font-size: 17px; line-height: 25.5px; }
.mh-content p + p { margin-top: 12px; }
.mh-more { border: 0; background: none; padding: 0; color: var(--w3d-red-light); font: inherit; text-decoration: underline; cursor: pointer; }
.mh-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; margin: 25px 0 30px; font-size: 18px; line-height: 27px; color: var(--w3d-heading); }
.mh-feats li { display: flex; align-items: center; gap: 10px; }
.mh-feats img { width: 24px; height: auto; }
.mh-visual { position: relative; min-height: 470px; }
.mh-v1 { position: absolute; left: 0; top: 0; width: 72%; aspect-ratio: 480 / 340; object-fit: cover; border-radius: var(--w3d-r-card); }
.mh-ui { position: absolute; right: 2%; top: 9%; width: 40%; height: auto; border-radius: 12px; box-shadow: var(--w3d-shadow-card); }
.mh-done { position: absolute; left: 18%; top: 48%; width: 24%; height: auto; box-shadow: var(--w3d-shadow-card); }
.mh-v2 { position: absolute; left: 40%; bottom: 0; width: 36%; aspect-ratio: 215 / 140; object-fit: cover; border-radius: var(--w3d-r-card); }
.mh-logos { margin-top: 40px; }

/* ================================================================
   3. #m-process
   ================================================================ */
#m-process { padding: 130px 0; }
.mp-title { text-align: center; font-size: 35px; margin-bottom: 70px; }
.mp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 41px; margin: 0; padding: 0; list-style: none; }
.mp-steps > li { position: relative; }
.mp-steps > li + li::before {
  content: ""; position: absolute; right: -32px; top: 50%;
  width: 22px; height: 2px; background: #b7b7b7;
}
.mp-steps > li + li::after {
  content: ""; position: absolute; right: -32px; top: 50%; margin-top: -4px;
  width: 9px; height: 9px; border-left: 2px solid #b7b7b7; border-bottom: 2px solid #b7b7b7; transform: rotate(45deg);
}
.mp-step { position: relative; height: 328px; perspective: 1200px; outline: none; }
.mp-front, .mp-back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; gap: 19px;
  background: #fff; border-radius: 160px; box-shadow: var(--w3d-shadow-card);
  padding: 29px 22px 18px; text-align: center;
  backface-visibility: hidden;
  transition: transform 0.7s var(--w3d-ease), opacity 0.4s;
}
.mp-back { transform: rotateY(180deg); justify-content: center; }
.mp-step:hover .mp-front, .mp-step:focus-visible .mp-front { transform: rotateY(-180deg); }
.mp-step:hover .mp-back, .mp-step:focus-visible .mp-back { transform: rotateY(0); }
.mp-step h3 { font-size: 27px; line-height: 35.1px; font-weight: 700; color: var(--w3d-heading); max-width: 7em; }
.mp-step h3 span { display: block; color: var(--w3d-red); }
.mp-front img { width: 189px; height: 189px; border-radius: 50%; object-fit: cover; }
.mp-back p { font-size: 17px; line-height: 25.5px; color: var(--w3d-body); }
@media (prefers-reduced-motion: reduce) {
  .mp-front, .mp-back { transform: none !important; backface-visibility: visible; }
  .mp-back { opacity: 0; }
  .mp-step:hover .mp-back, .mp-step:focus-visible .mp-back { opacity: 1; }
  .mp-step:hover .mp-front, .mp-step:focus-visible .mp-front { opacity: 0; }
}
.mp-cta {
  display: grid; grid-template-columns: 480px 1fr auto; gap: 60px; align-items: center;
  margin-top: 130px;
}
.mp-cta h2 { font-size: 40px; line-height: 52px; font-weight: 700; color: var(--w3d-heading); }
.mp-cta p { font-size: 18px; line-height: 27px; color: var(--w3d-muted); }
.mp-cta > div { display: flex; flex-direction: column; gap: 6px; }
.mp-cta > div span { font-size: 14px; color: var(--w3d-muted); padding-right: 15px; }

/* ================================================================
   NEW: CASE STUDIES
   ================================================================ */
.cases { background: var(--w3d-pink); padding: var(--w3d-section) 0; }
.cases-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.cases-head p { margin-top: 12px; font-size: 19px; line-height: 28px; color: #5f5f5f; } /* 5.9:1 on #FFF5F5 */

.cases-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-card);
  overflow: hidden;
  transition: transform 0.5s var(--w3d-ease), box-shadow 0.5s var(--w3d-ease), opacity 0.8s var(--w3d-ease);
}
/* whole card clickable through the title link (one tab stop, readable link name) */
.case-link { color: inherit; }
.case-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.case-link:focus-visible { outline: none; }
.case-card:focus-within { outline: 2px solid var(--w3d-red); outline-offset: 3px; }
.js .case-card.reveal { transition: opacity 0.8s var(--w3d-ease), transform 0.5s var(--w3d-ease), box-shadow 0.5s; transition-delay: var(--d, 0s), 0s, 0s; }
@media (hover: hover) {
  .js .case-card.reveal.in-view:hover,
  .case-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13); }
  .case-card:hover .case-cta { background: var(--w3d-red); color: #fff; }
  .case-card:hover .case-cta .ph { transform: translateX(-4px); }
}

/* Media frame: coded product screens (what was built), 16:10 */
.case-media {
  aspect-ratio: 16 / 10;
  background: #eef1f5;
  padding: 18px 18px 0;
  overflow: hidden;
  border-bottom: 1px solid #e7e9ee;
}
.cm-wrap { container-type: inline-size; height: 100%; }

.case-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.case-client { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; line-height: 22px; color: var(--w3d-muted); }
.case-client strong { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--w3d-ink); letter-spacing: -0.3px; }
.case-title {
  margin: 10px 0 10px;
  font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -1px; color: var(--w3d-heading);
  text-wrap: balance;
}
.case-desc { font-size: 16px; line-height: 24px; color: #5f5f5f; } /* 6.4:1 on white */
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.case-tags li {
  font-size: 14px; line-height: 20px; padding: 4px 13px;
  border: 1px solid var(--w3d-border); border-radius: var(--w3d-r-pill);
  color: var(--w3d-heading); background: #fff; white-space: nowrap;
}
.case-result {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--w3d-border);
  font-size: 15px; line-height: 22px; color: var(--w3d-heading);
}
.case-result b { font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -1px; color: var(--w3d-red); white-space: nowrap; }
/* DESIGN NOTE: brand red is 3.1:1 on white, so the CTA label is 19px bold (WCAG "large text", 3:1) instead of the site's 16px regular. */
.case-cta {
  margin-top: auto;
  align-self: flex-end; /* CTA sits on the left edge of the card (RTL end) */
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border: 1px solid var(--w3d-red); border-radius: var(--w3d-r-pill);
  color: var(--w3d-red); font-size: 19px; font-weight: 700; letter-spacing: -0.3px;
  transition: background-color 0.4s, color 0.4s;
}
.case-result + .case-cta { margin-top: 22px; }
.case-cta .ph { font-size: 18px; transition: transform 0.4s var(--w3d-ease); }

.cases-dots { display: none; }
.cases-more { text-align: center; margin-top: 40px; }

/* ---- card screens (Velor / construction / HR flow), fluid via cqi ---- */
.cm {
  height: 100%;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 10px 30px -12px rgba(30, 40, 60, 0.3);
  padding: 4.2cqi 4.6cqi;
  font-size: 3.4cqi;
  line-height: 1.3;
  letter-spacing: 0;
  color: #323338;
  overflow: hidden;
}
.cm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9em; }
.cm-top b { font-size: 1.15em; font-weight: 800; }
.cm-tab { font-size: 0.8em; padding: 0.25em 0.8em; border-radius: 0.4em; background: #e6f0ff; color: #0060c4; font-weight: 700; }
.cm-tab.cm-on { background: #e1f7ee; color: #00804a; }
.cm-group { border-right: 0.28em solid var(--g); margin-top: 0.6em; }
.cm-group em { display: block; font-style: normal; font-weight: 800; color: var(--g); font-size: 0.9em; padding: 0 0.6em 0.3em; }
.cm-row { display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr; align-items: center; border-top: 1px solid #e6e9ef; min-height: 2.3em; font-size: 0.82em; }
.cm-row > span { padding: 0 0.6em; white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 0.4em; }
.cm-score i { display: inline-block; width: 2.2em; height: 0.36em; border-radius: 1em; background: linear-gradient(90deg, #00c875 var(--s), #e6e9ef var(--s)); }
.cm-score { direction: ltr; justify-content: flex-end; }
.cm-st { justify-content: center; align-self: stretch; background: var(--c); color: #fff; font-weight: 700; }

.cm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.cm-kpis div { border: 1px solid #e6e9ef; border-radius: 0.6em; padding: 0.55em 0.7em; }
.cm-kpis span { display: block; font-size: 0.72em; color: #676879; }
.cm-kpis b { display: block; font-size: 1.6em; font-weight: 800; line-height: 1.15; }
.cm-kpis b.warn { color: #e2445c; }
.cm-sites { margin-top: 0.8em; }
.cm-sites div { display: grid; grid-template-columns: 8.4em 1fr 2.4em; align-items: center; gap: 0.6em; font-size: 0.8em; margin-top: 0.55em; }
.cm-sites em { font-style: normal; color: #4b4f5c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sites i { display: block; height: 0.7em; width: var(--w); border-radius: 1em; background: var(--c); }
.cm-sites b { font-weight: 700; direction: ltr; text-align: left; }

.cm-trigger {
  display: flex; align-items: center; gap: 0.5em;
  padding: 0.65em 0.8em; border-radius: 0.7em;
  background: #f0f6ff; border: 1px solid #cfe1ff; color: #1f3d73; font-weight: 700; font-size: 0.9em;
}
.cm-trigger .ph { color: #0073ea; font-size: 1.2em; }
.cm-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55em; margin-top: 1.1em; }
.cm-actions::before { content: ""; position: absolute; top: -1.1em; right: 50%; width: 1px; height: 1.1em; background: #b9c6dc; }
.cm-actions div {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.45em;
  padding: 0.55em 0.65em; border: 1px solid #e6e9ef; border-radius: 0.6em; font-size: 0.78em;
}
.cm-actions .ph { grid-row: span 2; font-size: 1.5em; color: #00a35c; align-self: center; }
.cm-actions span { font-weight: 700; color: #323338; }
.cm-actions b { font-weight: 400; color: #676879; font-size: 0.9em; }

/* ================================================================
   4. #m-about
   ================================================================ */
/* DESIGN NOTE: live section starts flush (padding-top 0) under a white section; after the new pink strip it gets top spacing so its card does not touch the band edge. */
#m-about {
  background: linear-gradient(#fff 0%, #fff 60%, var(--w3d-pink) 60%, var(--w3d-pink) 100%);
  padding: 80px 0 40px;
}
.ma-card { background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card); padding: 45px 88px 40px 49px; }
.ma-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.ma-text { padding-left: 80px; }
.ma-h { display: flex; align-items: center; gap: 15px; font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--w3d-heading); }
.ma-h img { height: 56px; width: auto; }
.ma-content { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--w3d-border); font-size: 17px; line-height: 25.5px; }
.ma-content p { margin-bottom: 17px; }
.ma-content h4 { font-size: 22px; line-height: 28.6px; font-weight: 700; color: var(--w3d-red); letter-spacing: -1px; margin-bottom: 2px; }
.ma-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 27px; margin: 0 0 15px; background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card); padding: 11px 15px; }
.ma-stats dt { font-size: 18px; line-height: 27px; font-weight: 700; letter-spacing: -1px; text-align: center; }
.ma-stats dd { margin: 0; font-size: 15px; line-height: 22.5px; color: var(--w3d-muted); text-align: center; }
.ma-media { display: flex; flex-direction: column; align-items: center; }
.ma-video { position: relative; display: block; width: 100%; aspect-ratio: 637 / 265; border-radius: var(--w3d-r-card); overflow: hidden; background: #111; }
.ma-video img { width: 100%; height: 100%; object-fit: cover; }
.ma-play { position: absolute; inset: 0; display: grid; place-items: center; }
.ma-play .ph-fill { width: 68px; height: 48px; display: grid; place-items: center; background: #f00; color: #fff; border-radius: 12px; font-size: 24px; transition: transform 0.3s var(--w3d-ease); }
.ma-video:hover .ma-play .ph-fill { transform: scale(1.08); }
.ma-stars { display: flex; gap: 2px; color: #f5b800; font-size: 13px; margin-top: 18px; }
.ma-reviews-h { font-size: 20px; line-height: 30px; font-weight: 700; color: var(--w3d-heading); margin: 2px 0 16px; }
.ma-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.ma-reviews li { background: #fff; border-radius: 10px; box-shadow: var(--w3d-shadow-card); padding: 14px 12px; text-align: center; font-size: 14px; line-height: 19px; color: #555; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ma-reviews img { height: 57px; width: auto; }
.ma-clients-h { text-align: center; font-size: 22px; font-weight: 700; color: var(--w3d-heading); margin: 30px 0 22px; padding-top: 30px; border-top: 1px solid var(--w3d-border); }
.ma-logos { justify-content: center; gap: 18px 34px; }
.ma-logos img { filter: none; opacity: 1; max-height: 48px; }

/* ================================================================
   5. #ai
   ================================================================ */
#ai { background: var(--w3d-dark-radial); padding: var(--w3d-section) 0; color: #fff; }
.ai-wrap { border: 1px solid var(--w3d-dark-border); border-radius: var(--w3d-r-card); padding: 0 80px 88px; }
.ai-title { max-width: 700px; margin: 88px auto 50px; text-align: center; font-size: 40px; line-height: 44px; font-weight: 700; color: #fff; text-wrap: balance; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.ai-acc .acc-item { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.ai-acc .acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 0; border: 0; background: transparent; color: var(--w3d-red); font: 700 20px/1.3 var(--w3d-font); text-align: right; cursor: pointer; }
.ai-acc .acc-btn .ph { font-size: 24px; }
.ai-acc .acc-btn span { flex: 1; }
.ai-acc .acc-plus { position: relative; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); flex-shrink: 0; transition: background-color 0.3s, transform 0.4s var(--w3d-ease); }
.ai-acc .acc-plus::before, .ai-acc .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: #000; }
.ai-acc .acc-plus::after { transform: rotate(90deg); transition: transform 0.4s var(--w3d-ease); }
.ai-acc .acc-item.is-open .acc-plus { background: var(--w3d-red); transform: rotate(180deg); }
.ai-acc .acc-item.is-open .acc-plus::before, .ai-acc .acc-item.is-open .acc-plus::after { background: #fff; }
.ai-acc .acc-item.is-open .acc-plus::after { transform: rotate(0); }
.ai-acc .acc-panel p { padding: 0 38px 18px 0; font-size: 17px; line-height: 25.5px; color: rgba(255, 255, 255, 0.85); }
.ai-media { background: #000; border-radius: var(--w3d-r-card); overflow: hidden; }
.ai-media video { width: 100%; height: auto; display: block; }
.ai-statement { max-width: 900px; margin: 80px auto 0; text-align: center; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -1px; text-wrap: balance; }
.ai-link { text-align: center; margin-top: 30px; }
.ai-link a { color: #fff; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.ai-link a:hover { color: var(--w3d-red-light); }

/* ================================================================
   6. #m-blog
   ================================================================ */
#m-blog { background: var(--w3d-pink); padding: 65px 0 55px; }
.mb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; align-items: stretch; }
.mb-intro {
  background: var(--w3d-pink); border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-pink);
  padding: 30px; margin: 22px 0 24px 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
.mb-logos { display: flex; align-items: center; justify-content: flex-start; gap: 16px; direction: ltr; }
.mb-logos img { height: 24px; width: auto; }
.mb-logos img:first-child { height: 30px; }
.mb-intro h2 { font-size: 32px; line-height: 41.6px; font-weight: 700; color: var(--w3d-heading); }
.mb-intro .btn { align-self: flex-start; }
.mb-slider { position: relative; min-width: 0; }
.mb-track {
  display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 22px 4px 24px; margin: 0; list-style: none; scroll-behavior: smooth;
}
.mb-track::-webkit-scrollbar { display: none; }
.mb-post {
  flex: 0 0 calc(50% - 15px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card);
  padding: 20px 17px 0; overflow: hidden;
}
.mb-cat { font-size: 18px; line-height: 27px; color: var(--w3d-red); }
.mb-post h3 { font-size: 30px; line-height: 33px; font-weight: 700; color: var(--w3d-heading); margin: 4px 0 20px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mb-post p { font-size: 16px; line-height: 24px; color: var(--w3d-muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-post .btn-post { align-self: flex-start; margin-bottom: 18px; margin-top: auto; }
.mb-post img { margin: 0 -17px; width: calc(100% + 34px); max-width: none; aspect-ratio: 450 / 210; object-fit: cover; border-radius: 0 0 15px 15px; }
.mb-arrow {
  position: absolute; top: 50%; margin-top: -21px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--w3d-red); color: #fff; font-size: 18px; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(251, 85, 91, 0.35);
}
.mb-next { left: 6px; }
.mb-prev { right: 6px; display: none; }
.mb-arrow:disabled { opacity: 0; pointer-events: none; }

/* ================================================================
   7. #m-instruments
   ================================================================ */
#m-instruments { padding: 129px 0; }
.mi-title { text-align: center; font-size: 35px; margin-bottom: 20px; }
.mi-sub { text-align: center; font-size: 26px; line-height: 33.8px; font-weight: 700; color: var(--w3d-heading); margin-bottom: 50px; }
.mi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.mi-list { display: grid; gap: 26px; }
.mi-list li { display: grid; grid-template-columns: 25px 1fr; gap: 16px; }
.mi-list img { width: 25px; height: auto; margin-top: 2px; }
.mi-list h3 { font-size: 19px; line-height: 24px; font-weight: 700; color: var(--w3d-heading); margin-bottom: 5px; }
.mi-list p { font-size: 16px; line-height: 24px; color: var(--w3d-muted); }
.mi-visual { position: relative; padding: 70px 40px 70px 0; }
.mi-visual video { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--w3d-shadow-card); }
.mi-float1 { position: absolute; top: 0; left: -30px; width: 40%; height: auto; z-index: 2; border-radius: 10px; box-shadow: var(--w3d-shadow-card); }
.mi-float2 { position: absolute; bottom: 0; right: 30%; width: 44%; height: auto; z-index: 2; border-radius: 10px; box-shadow: var(--w3d-shadow-card); }

/* ================================================================
   8. #m-system
   ================================================================ */
#m-system { padding: 0 0 100px; }
.ms-title { text-align: center; font-size: 35px; margin-bottom: 65px; }
.ms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 45px; margin: 0; padding: 0; list-style: none; }
.ms-card { position: relative; background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card); padding: 22px 19px 100px; display: flex; flex-direction: column; }
.ms-logo { height: 34px; width: auto; max-width: 100%; object-fit: contain; object-position: right; }
.ms-card h3 { font-size: 19px; line-height: 24.7px; font-weight: 700; color: var(--w3d-heading); margin: 10px 0; }
.ms-card p { font-size: 17px; line-height: 25.5px; padding-bottom: 18px; border-bottom: 1px solid var(--w3d-border); }
.ms-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; padding-top: 16px; }
.ms-logos img { height: 24px; width: auto; }
.ms-btn { position: absolute; bottom: 30px; right: 50%; transform: translateX(50%); white-space: nowrap; font-size: 17px; }

/* ================================================================
   9. #main-cta
   ================================================================ */
#main-cta { background: var(--w3d-plum); padding: 50px 0; text-align: center; color: #fff; }
#main-cta h2 { font-size: 35px; line-height: 45.5px; font-weight: 400; letter-spacing: -1px; }
#main-cta h2 strong { font-weight: 700; }
.mc-actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 35px; }
.mc-wa { color: var(--w3d-red-light); font-size: 36px; display: grid; }
.mc-link a { display: inline-block; margin-top: 25px; color: #fff; font-size: 20px; }
.mc-link a:hover { color: var(--w3d-red-light); }

/* ================================================================
   10. About Web3D + FAQ
   ================================================================ */
.faq-zone { padding: 80px 0 20px; }
.about-w3d { max-width: 980px; margin: 0 auto 80px; text-align: center; }
.about-w3d h2 { display: inline-flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 700; color: var(--w3d-heading); margin-bottom: 14px; }
.about-w3d h2 img { height: 38px; width: auto; }
.about-w3d p { font-size: 18px; line-height: 28px; }
.faq-title { margin-bottom: 20px; }
.faq-nav { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 70px; }
.faq-nav a {
  padding: 13px 20px 13px 0; border-right: 4px solid #eee;
  font-size: 22px; line-height: 28px; font-weight: 700; color: var(--w3d-ink);
  transition: color 0.3s, border-color 0.3s;
}
.faq-nav a:hover, .faq-nav a.is-active { border-right-color: var(--w3d-red); color: var(--w3d-ink); }
.faq-nav a:hover { color: var(--w3d-red); }
.faq-items { display: grid; gap: 20px; }
.faq-item { background: #fff; border-radius: var(--w3d-r-card); box-shadow: var(--w3d-shadow-card); padding: 20px 24px; scroll-margin-top: 70px; }
.faq-item h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--w3d-ink); margin-bottom: 6px; }
.faq-item p { font-size: 17px; line-height: 26px; }
.faq-links { margin-top: 30px; font-size: 18px; color: var(--w3d-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1199px) {
  .mf-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-card, .ma-card { padding: 40px 44px 30px; }
  .mh-text, .ma-text { padding-left: 40px; }
  .mp-steps { gap: 28px; }
  .mp-steps > li + li::before, .mp-steps > li + li::after { display: none; }
  .mp-step h3 { font-size: 23px; line-height: 30px; }
  .mp-front img { width: 150px; height: 150px; }
  .mp-cta { grid-template-columns: 1fr 1fr; }
  .mp-cta > div { grid-column: 1 / -1; align-items: flex-start; }
  .ai-wrap { padding: 0 44px 60px; }
  .ai-grid { gap: 44px; }
  .mi-float1 { left: 0; }
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .mb-grid { grid-template-columns: 1fr; }
  .mb-intro { margin: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .mb-intro h2 { flex: 1 1 380px; }
  .mb-logos { flex-basis: 100%; }

  /* cases: 2 + peek scroll row on tablet / small laptop */
  .cases-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 24px;
    margin-inline: calc(var(--w3d-gutter) * -1);
    padding: 6px var(--w3d-gutter) 26px;
    scroll-padding-inline: var(--w3d-gutter);
  }
  .cases-track::-webkit-scrollbar { display: none; }
  .case-card { flex: 0 0 calc(46% - 12px); scroll-snap-align: start; }
  .cases-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .cases-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e7c9ca; transition: width 0.3s var(--w3d-ease), background-color 0.3s; }
  .cases-dots i.on { width: 24px; border-radius: 4px; background: var(--w3d-red); }
}

@media (max-width: 991px) {
  .mh-inner, .ma-inner, .ai-grid, .mi-grid { grid-template-columns: 1fr; }
  .mh-text, .ma-text { padding-left: 0; }
  .mh-visual { min-height: 0; aspect-ratio: 16 / 11; margin-top: 30px; max-width: 620px; width: 100%; justify-self: center; }
  .ma-media { margin-top: 30px; }
  .mi-visual { max-width: 620px; width: 100%; justify-self: center; }
  .mp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}

@media (max-width: 767px) {
  .breadcrumbs { font-size: 14px; }
  #m-first { padding: 30px 0 56px; }
  .mf-title { flex-direction: column; gap: 6px; font-size: 33px; line-height: 40px; margin-bottom: 18px; }
  .mf-title img { height: 40px; }
  .mf-intro { font-size: 17px; line-height: 25.5px; }
  .mf-badges { margin: 18px 0 30px; gap: 16px; }
  .mf-badges img { height: 52px; }
  .mf-card { padding: 22px 0 22px; }
  .mf-products { grid-template-columns: 1fr; gap: 14px; margin: 0 22px; padding-bottom: 20px; }
  .mf-services { margin: 0; padding-top: 22px; gap: 14px; }
  .mf-services li { flex-basis: 200px; min-height: 0; }
  .mf-ctas { gap: 14px; margin-top: 30px; }
  .mf-ctas .btn-arrow { min-width: 0; width: 100%; padding: 0 18px; }
  .mf-ctas > div { flex: 1; }

  #m-history { padding: 44px 0; }
  .mh-title { margin-bottom: 22px; }
  .mh-card { padding: 28px 20px 24px; }
  .mh-group, .mh-sub, .ma-h { font-size: 22px; }
  .mh-group img { height: 38px; }
  .ma-h img { height: 36px; }
  .mh-feats { grid-template-columns: 1fr 1fr; font-size: 16px; line-height: 22px; gap: 12px 10px; }
  .mh-logos { gap: 14px 18px; justify-content: center; }
  .mh-logos img { max-height: 38px; }

  #m-process { padding: 56px 0; }
  .mp-title { font-size: 26px; margin-bottom: 30px; }
  .mp-steps { gap: 16px; padding-block: 8px 20px; }
  .mp-steps > li { flex-basis: 220px; }
  .mp-step { height: 300px; }
  .mp-cta { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .mp-cta h2 { font-size: 28px; line-height: 35px; }
  .mp-cta p { font-size: 17px; line-height: 25.5px; }

  .cases-head { margin-bottom: 26px; }
  .cases-head p { font-size: 17px; line-height: 25.5px; }
  .case-card { flex-basis: 84%; }
  .case-body { padding: 20px 20px 22px; }
  .case-title { font-size: 22px; line-height: 28px; }
  .case-desc { font-size: 15px; line-height: 22.5px; }
  .case-tags { gap: 6px; margin-top: 14px; }
  .case-tags li { font-size: 13px; padding: 3px 11px; }
  .case-result b { font-size: 24px; }
  .case-media { padding: 14px 14px 0; }
  .cases-more { margin-top: 26px; }

  #m-about { padding: 56px 0 30px; }
  .ma-card { padding: 28px 20px 26px; }
  .ma-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ma-reviews { grid-template-columns: 1fr; gap: 12px; }
  .ma-reviews li { flex-direction: row; text-align: right; }
  .ma-reviews img { height: 44px; }

  .ai-wrap { padding: 0 18px 28px; }
  .ai-title { font-size: 28px; line-height: 34px; margin: 40px auto 26px; }
  .ai-acc .acc-btn { font-size: 18px; min-height: 56px; }
  .ai-statement { font-size: 24px; line-height: 32px; margin-top: 44px; }

  #m-blog { padding: 44px 0; }
  .mb-intro { padding: 24px 20px; gap: 18px; }
  .mb-intro h2 { font-size: 26px; line-height: 33px; flex-basis: 100%; }
  .mb-track { gap: 16px; padding-top: 18px; margin-inline: calc(var(--w3d-gutter) * -1); padding-inline: var(--w3d-gutter); }
  .mb-post { flex-basis: 82%; }
  .mb-post h3 { font-size: 22px; line-height: 27px; }
  .mb-arrow { display: none; }

  #m-instruments { padding: 56px 0; }
  .mi-title { font-size: 26px; }
  .mi-sub { font-size: 20px; margin-bottom: 30px; }
  .mi-visual { padding: 40px 0; }
  .mi-float1 { left: 0; }

  #m-system { padding-bottom: 56px; }
  .ms-title { font-size: 26px; margin-bottom: 30px; }
  .ms-grid { gap: 16px; padding-block: 8px 20px; }
  .ms-card { flex-basis: 82%; }

  #main-cta h2 { font-size: 26px; line-height: 34px; }

  .faq-zone { padding-top: 56px; }
  .about-w3d { margin-bottom: 50px; }
  .about-w3d h2 { font-size: 26px; }
  .about-w3d p { font-size: 16px; line-height: 25px; }
  .faq-nav { margin-bottom: 36px; }
  .faq-nav a { font-size: 17px; line-height: 23px; padding: 10px 14px 10px 0; }
  .faq-item { padding: 18px; }
  .faq-item h3 { font-size: 18px; line-height: 25px; }
  .faq-item p { font-size: 16px; line-height: 24px; }
  .faq-links { font-size: 16px; }
}
