/**
 * Persian homepage — client revision, Oct 2026.
 * Single scoped design layer (no successive overriding patches).
 * English, Russian, inner pages and approved Hero remain untouched.
 */

html[lang="fa-IR"] .sc-home-evidence {--sc-fa-evidence-shift:0px;}

/* 01 — Group: restrained brand strip, authentic names, temporary Sarv mark. */
html[lang="fa-IR"] .sc-family--band {
  background:#fff;
  padding-block:clamp(34px,4.3vw,62px);
  border-block:1px solid #e7edf1;
}
html[lang="fa-IR"] .sc-family--band .sc-family__intro {
  margin-bottom:22px;
}
html[lang="fa-IR"] .sc-family--band .sc-section__title {
  font-size:clamp(27px,2.65vw,41px);
  line-height:1.35;
}
html[lang="fa-IR"] .sc-family--band .sc-section__lead {
  max-width:none;
  width:100%;
  white-space:nowrap;
  font-size:clamp(11px,.87vw,14px);
  line-height:1.75;
  text-align:right;
}
html[lang="fa-IR"] .sc-family--band .sc-family__list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin-top:25px;
  border-block:1px solid #e3ebf0;
}
html[lang="fa-IR"] .sc-family--band .sc-family__member {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:11px;
  min-height:146px;
  padding:19px 12px;
  border:0;
  border-inline-start:1px solid #e3ebf0;
  background:transparent;
  text-align:center;
  transition:background-color .22s ease;
}
html[lang="fa-IR"] .sc-family--band .sc-family__member:first-child {
  border-inline-start:0;
}
html[lang="fa-IR"] .sc-family--band .sc-family__member:hover {
  background:#f5f9fc;
}
html[lang="fa-IR"] .sc-family--band .sc-family__logo-placeholder {
  width:89px;
  height:70px;
  display:flex;
  justify-content:center;
  align-items:center;
  border:0;
  background:transparent;
}
html[lang="fa-IR"] .sc-family--band .sc-family__logo-placeholder img {
  width:84px;
  height:60px;
  object-fit:contain;
}
html[lang="fa-IR"] .sc-family--band .sc-family__wordmark {
  margin:0;
  line-height:1.5;
  font-size:clamp(16px,1.25vw,19px);
  font-weight:650;
  text-align:center !important;
  color:#173b58;
}

/* 02 — Achievements: SINGLE original Hero line geometry, not tiled watermark.
   Do not repeat or enlarge the mark into an illegible pattern field. */
html[lang="fa-IR"] .sc-stat-band--brand {
  background-color:#063c7b;
  background-image:
    linear-gradient(100deg,rgba(0,40,97,.73),rgba(1,55,123,.82)),
    url("../../images/brand/sarv-brand-texture.webp");
  background-repeat:no-repeat,repeat;
  background-size:cover,400px 400px;
  background-blend-mode:normal,overlay;
  overflow:hidden;
}
html[lang="fa-IR"] .sc-stat-band--brand::after {
  /* The filled, client-approved Sarv mark, NOT the line-sketch SVG. */
  mask-image:url("../../images/brand/logo-mark.png") !important;
  mask-repeat:no-repeat !important;
  mask-position:center !important;
  mask-size:min(72vw,980px) auto !important;
  background-color:#86c5ed !important;
  opacity:.16 !important;
  transform:translate3d(0,var(--sc-fa-evidence-shift,0px),0) scale(1.12);
  will-change:transform;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat-band__list {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(10px,1.5vw,22px);
  margin-block:32px;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  min-width:0;
  padding:clamp(19px,2.1vw,32px) 15px !important;
  text-align:center !important;
  border:1px solid rgb(255 255 255 / 23%) !important;
  border-radius:2px;
  background:rgb(6 45 98 / 33%);
  transition:border-color .25s ease,transform .3s ease;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat::before {
  content:"";
  position:absolute;
  display:block;
  inset-block-start:0;
  inset-inline:0 !important;
  height:3px;
  background:linear-gradient(to left,#f43b46 0%,#ed232f 100%);
  transform-origin:right center;
}
/* Same 1.1-second reveal as the existing number counter, never a fake
   percentage: the red identity rule completes as the figure counts up. */
html.sc-reveal-enabled[lang="fa-IR"] .sc-stat-band--brand .sc-stat-band__list .sc-stat::before {
  transform:scaleX(0);
  transition:transform 1100ms cubic-bezier(.2,.7,.2,1);
}
html.sc-reveal-enabled[lang="fa-IR"] .sc-stat-band--brand .sc-stat-band__list.is-visible .sc-stat::before {
  transform:scaleX(1);
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__ring,
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__grade {
  display:none !important;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat :is(.sc-stat__value,.sc-stat__label,.sc-stat__context) {
  width:100%;
  text-align:center !important;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__value {
  font-size:clamp(28px,3vw,45px);
  line-height:1.3;
  font-variant-numeric:tabular-nums;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat__label {
  margin-top:12px;
}
html[lang="fa-IR"] .sc-stat-band--brand .sc-stat:hover {
  transform:translateY(-4px);
  border-color:rgb(255 255 255 / 54%) !important;
}
html[lang="fa-IR"] .sc-stat-band__why {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 28px;
  margin:26px 0 0;
  padding:18px 0 0;
  border-top:1px solid rgb(255 255 255 / 24%);
}
html[lang="fa-IR"] .sc-stat-band__why-item {
  padding:13px 24px 13px 0;
  text-align:right !important;
  border-bottom:1px solid rgb(255 255 255 / 13%);
}
html[lang="fa-IR"] .sc-stat-band__why-item::before {
  width:15px;
  height:2px;
}

/* Clear technical-consultation action on the product-solution finder. */
html[lang="fa-IR"] .sc-product-finder .sc-finder__help-action {
  color:#fff !important;
  background:#09699f !important;
  border:1px solid #09699f !important;
  text-decoration:none;
  min-height:44px;
  padding:10px 19px;
  border-radius:3px;
  box-shadow:none;
  transition:background-color .2s ease,border-color .2s ease;
}
html[lang="fa-IR"] .sc-product-finder .sc-finder__help-action :is(.sc-button__label,.sc-button__arrow) {
  color:#fff !important;
}
html[lang="fa-IR"] .sc-product-finder .sc-finder__help-action:is(:hover,:focus-visible) {
  background:#06466c !important;
  border-color:#06466c !important;
}
/* 03 — CEO: photograph in editorial space, no blue image card;
   actual approved brand mark overlaps its bottom-right corner. */
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__panel {
  overflow:hidden;
}
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait {
  position:relative;
  display:flex !important;
  justify-content:center;
  align-items:flex-end;
  min-height:0;
  margin:0;
  padding:0 0 12px;
  transform:translateY(-32px);
  background:transparent;
  border:0 !important;
  isolation:isolate;
}
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait::after {
  content:none;
}
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait > img:not(.sc-leadership__floating-mark) {
  display:block;
  width:min(100%,320px);
  height:clamp(240px,25vw,345px);
  max-height:none;
  object-fit:cover;
  object-position:center 24%;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  filter:grayscale(.15) saturate(.82) contrast(1.04);
  mask-image:linear-gradient(to bottom,#000 0%,#000 66%,transparent 100%);
  position:relative;
  z-index:1;
}
html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__floating-mark {
  position:absolute !important;
  z-index:2 !important;
  inset-inline-end:4% !important;
  inset-block-end:0 !important;
  width:100px !important;
  height:73px !important;
  opacity:.48 !important;
  max-height:none !important;
  object-fit:contain;
  filter:none !important;
  mask-image:none !important;
  background:transparent;
  box-shadow:none !important;
  border:0;
}
html[lang="fa-IR"] .sc-leadership__action .sc-button,
html[lang="fa-IR"] .sc-leadership__action .sc-button__label,
html[lang="fa-IR"] .sc-leadership__action .sc-button__arrow {
  color:#09679d !important;
}
html[lang="fa-IR"] .sc-leadership__action .sc-button:hover {
  color:#034873 !important;
}

/* 04 — Partners: a two-part editorial spread, NOT six identikit cards. */
html[lang="fa-IR"] .sc-fa-partners {
  position:relative;
  padding:clamp(42px,6vw,82px) 0;
  background:#f1f6f9;
  overflow:hidden;
}
html[lang="fa-IR"] .sc-fa-partners::before {
  content:none;
}
html[lang="fa-IR"] .sc-fa-partners__composition {
  display:grid;
  grid-template-columns:minmax(265px,.78fr) minmax(0,1.48fr);
  min-height:350px;
  box-shadow:0 20px 48px rgb(8 57 91 / 7%);
}
html[lang="fa-IR"] .sc-fa-partners__intro {
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  overflow:hidden;
  gap:22px;
  padding:clamp(26px,3vw,46px);
  background:#073d78;
  color:#fff;
}
html[lang="fa-IR"] .sc-fa-partners__graphic {
  position:absolute;
  z-index:-1;
  inset:-18%;
  background:#acd7f3;
  opacity:.16;
  mask-image:url("../../images/brand/logo-mark.png");
  mask-size:90% auto;
  mask-position:center;
  mask-repeat:no-repeat;
  pointer-events:none;
}
html[lang="fa-IR"] .sc-fa-partners__intro .sc-eyebrow {
  margin:0;
  color:#b4d9ed;
  font-size:14px;
}
html[lang="fa-IR"] .sc-fa-partners__intro .sc-section__title {
  margin:0;
  max-width:25rem;
  font-size:clamp(25px,2.2vw,37px);
  line-height:1.62;
  font-weight:700;
  color:#fff;
}
html[lang="fa-IR"] .sc-fa-partners__rule {
  display:block;
  width:75px;
  height:3px;
  background:#ee343a;
}
html[lang="fa-IR"] .sc-fa-partners__logos {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(150px,1fr));
  gap:0;
  margin:0;
  background:#fff;
  border:0;
  box-shadow:none;
}
html[lang="fa-IR"] .sc-fa-partners__logo {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:0;
  aspect-ratio:auto;
  margin:0;
  padding:clamp(13px,1.8vw,30px);
  background:#fff;
  border:0;
  border-inline-start:1px solid #e8eff3;
  border-bottom:1px solid #e8eff3;
  border-radius:0;
  transition:background-color .25s ease;
}
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(n+4) {
  border-bottom:0;
}
html[lang="fa-IR"] .sc-fa-partners__logo img {
  display:block;
  width:100%;
  max-width:190px;
  height:clamp(65px,6.5vw,94px);
  max-height:none;
  object-fit:contain;
  object-position:center;
  mix-blend-mode:multiply;
  filter:grayscale(1) contrast(1.1);
  opacity:.86;
  transition:filter .25s ease,opacity .25s ease,transform .25s ease;
}
/* Optical, not box-size, normalization for six differently proportioned marks.
   Source artwork stays unchanged and CMS images remain editable. */
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(1) img { max-width:160px; }
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(2) img { max-width:97px; }
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(3) img { max-width:150px; }
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(4) img { max-width:132px; }
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(5) img { max-width:110px; }
html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(6) img { max-width:118px; }
html[lang="fa-IR"] .sc-fa-partners__logo:hover {
  background:#f4f9fc;
}
html[lang="fa-IR"] .sc-fa-partners__logo:hover img {
  filter:grayscale(0) contrast(1.04);
  opacity:1;
  transform:scale(1.045);
}

/* 05 — Final invitation: same SINGLE hero outline geometry, never a tiled sea. */
html[lang="fa-IR"] .sc-final-cta--editorial {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#064982;
}
html[lang="fa-IR"] .sc-final-cta--editorial::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  background-color:#b8d7ee;
  opacity:.14;
  mask-image:url("../../images/brand/logo-mark.png");
  mask-size:min(54vw,740px) auto;
  mask-position:left center;
  mask-repeat:no-repeat;
}
html[lang="fa-IR"] .sc-final-cta--editorial .sc-final-cta__pattern {
  display:none !important;
}
html[lang="fa-IR"] .sc-final-cta--editorial .sc-container {
  position:relative;
  z-index:1;
}

/* Prior client UX: only one Calls CTA and one final CTA. */
html[lang="fa-IR"] .sc-calls__empty-action .sc-button {
  color:#123d5b !important;
  border-color:#136ca7 !important;
  background:#fff !important;
}
html[lang="fa-IR"] .sc-calls__empty-action .sc-button :is(.sc-button__label,.sc-button__arrow) {
  color:#123d5b !important;
}
html[lang="fa-IR"] .sc-calls__empty-action .sc-button:hover {
  background:#e6f3fa !important;
}

/* Prior client editorial direction: single line on desktop, natural mobile. */
html[lang="fa-IR"] .sc-home-news__headline .sc-section__lead {
  width:max-content;
  max-width:100%;
  white-space:nowrap;
  font-size:clamp(12px,1vw,15px);
  text-align:right;
}

@media(prefers-reduced-motion:reduce) {
  html[lang="fa-IR"] .sc-stat-band--brand::after {
    transform:none;
    will-change:auto;
  }
  html.sc-reveal-enabled[lang="fa-IR"] .sc-stat-band--brand .sc-stat-band__list .sc-stat::before {
    transform:scaleX(1);
    transition:none;
  }
}
/* Mobile-first content reflow; never force a horizontal scrollbar. */
@media(max-width:1024px) {
  html[lang="fa-IR"] .sc-fa-partners__composition {
    grid-template-columns:1fr;
  }
  html[lang="fa-IR"] .sc-fa-partners__intro {
    min-height:220px;
  }
  html[lang="fa-IR"] .sc-fa-partners__logos {
    grid-template-rows:repeat(2,minmax(125px,1fr));
  }
}
@media(max-width:850px) {
  html[lang="fa-IR"] .sc-family--band .sc-section__lead,
  html[lang="fa-IR"] .sc-home-news__headline .sc-section__lead {
    white-space:normal;
    width:auto;
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__panel {
    display:flex !important;
    flex-direction:column;
    gap:20px;
    align-items:stretch;
  }
  html[lang="fa-IR"] .sc-leadership--editorial .sc-leadership__portrait {
    width:100%;
    transform:translateY(-12px);
  }
}
@media(max-width:700px) {
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat-band__list {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  html[lang="fa-IR"] .sc-stat-band__why {
    grid-template-columns:1fr;
  }
  html[lang="fa-IR"] .sc-fa-partners__logos {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,minmax(112px,1fr));
  }
  html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(n) {
    border-bottom:1px solid #e8eff3;
  }
  html[lang="fa-IR"] .sc-fa-partners__logo:nth-child(n+5) {
    border-bottom:0;
  }
  html[lang="fa-IR"] .sc-fa-partners__logo img {
    height:60px;
  }
  html[lang="fa-IR"] .sc-family--band .sc-family__list {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  html[lang="fa-IR"] .sc-family--band .sc-family__member {
    min-height:113px;
    padding:14px 6px;
  }
  html[lang="fa-IR"] .sc-family--band .sc-family__wordmark {
    font-size:14px;
  }
  html[lang="fa-IR"] .sc-family--band .sc-family__logo-placeholder {
    height:52px;
  }
  html[lang="fa-IR"] .sc-family--band .sc-family__logo-placeholder img {
    height:48px;
    width:71px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html[lang="fa-IR"] .sc-family--band .sc-family__member,
  html[lang="fa-IR"] .sc-stat-band--brand .sc-stat,
  html[lang="fa-IR"] .sc-fa-partners__logo,
  html[lang="fa-IR"] .sc-fa-partners__logo img {
    transition:none;
    transform:none !important;
  }
}
