.service-hero{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  align-items:center;
  gap:clamp(24px,5vw,66px);
  padding-block:24px 48px;
}
.service-hero>div{min-width:0}
.service-hero h1{max-width:22ch;font-size:clamp(1.85rem,3.8vw,3.25rem);line-height:1.19}
html[lang=fa] .service-hero h1{line-height:1.42;letter-spacing:0}
.service-hero .wp-copy{margin-top:14px;max-width:57ch}
.service-hero .wp-image img{width:100%;aspect-ratio:1.72;object-fit:cover}
.service-list>.wp-heading{margin-bottom:21px}
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.services-home-heading{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  column-gap:16px;
}
.services-home-heading>.more-link{align-self:flex-end}
.service-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:white;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.service-card .wp-image{border:0;border-bottom:1px solid var(--line);border-radius:0}
.service-card img{width:100%;aspect-ratio:1.65;object-fit:cover}
.service-card>div{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:15px}
.service-card h3{font-size:1.12rem;line-height:1.4}
.service-card h3 a:hover,.service-card h3 a:focus-visible{color:var(--deep)}
.service-card p{margin:7px 0 9px;color:var(--muted);line-height:1.65;font-size:.96rem}
.service-card .more-link{margin-top:auto}
.service-detail{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:21px 37px;
}
.service-detail:has(>.wp-image){grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);align-items:center}
.service-detail:has(>.service-references){grid-template-columns:minmax(0,1.5fr) minmax(0,.65fr)}
.service-detail h2{margin-bottom:11px}
.service-detail .wp-copy{max-width:84ch}
.service-detail ul{margin-top:13px}
.service-detail li+li{margin-top:5px}
.service-detail .wp-image img{aspect-ratio:1.65;object-fit:cover}
.service-related{display:flex;gap:8px 22px;flex-wrap:wrap;margin-top:14px}
.service-page .service-hero h1{max-width:none;font-size:clamp(1.48rem,2.7vw,2.35rem)}
.service-page .service-hero .wp-copy,
.service-page .service-detail .wp-copy{text-align:justify}
.service-page .service-detail:not(:has(>.wp-image)) :is(.wp-copy,.wp-copy>p){max-inline-size:none}
.service-page .service-detail[id]{scroll-margin-block-start:calc(var(--home-header) + 10px)}
.service-page :is(.service-related,.service-card) .more-link{color:var(--accent)}
.service-page .service-hero img[src$="/paut-workshop.webp"]{aspect-ratio:3/2;max-height:none}
.service-page .service-hero img[src$="/heavy-plate-rolling.webp"]{aspect-ratio:4/3;max-height:none}
.service-page .service-card img[src$="/heavy-plate-rolling.webp"]{object-position:center top}
.service-references{
  align-self:start;
  border-inline-start:2px solid #d7809a;
  border-radius:4px;
  padding:13px 16px;
  background:#f7f8f9;
}
.service-references h3{margin:0;font-size:1rem}
@media(max-width:770px){
  .service-hero{grid-template-columns:1fr;gap:16px}
  .service-hero .wp-image img{max-height:320px}
  .service-detail:has(>.wp-image),.service-detail:has(>.service-references){grid-template-columns:1fr}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:510px){
  .service-grid{grid-template-columns:minmax(0,1fr)}
  .service-hero{padding-block:12px 27px}
  .services-home-heading{align-items:flex-start}
}
