/* AR-TEK Service Images: proportions measured from original project files.
 * Service photos (sdppi, sni, pi, ls, pertek, customs) = 1122 × 1402 px (~4:5).
 * Preserve the whole image; DO NOT crop or stretch existing assets.
 * Loaded after service-modern-v3.css to override earlier landscape ratios.
 */

/* Hero: make room for portrait photography without forcing a landscape crop. */
.svc3 .svc3-hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(30px, 4.4vw, 64px);
  align-items: center;
}
.svc3 .svc3-hero-visual {
  width: 100%;
  max-width: 400px;
  justify-self: end;
  padding-bottom: 12px;
  min-width: 0;
}
.svc3 .svc3-hero-photo {
  aspect-ratio: 1122 / 1402;
  width: 100%;
  height: auto;
  max-height: none;
  background: #eef3f8;
  border-radius: 18px;
}
.svc3 .svc3-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}
.svc3 .svc3-hero-photo::after { content: none; }
.svc3 .svc3-floating-note {
  left: auto;
  right: 0;
  bottom: -5px;
  max-width: 96%;
}

/* Services index: editorial two-column rows, real portrait photos, no cropping. */
.svc3 .svc3-listing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.svc3 .svc3-listing-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  min-width: 0;
  align-items: stretch;
}
.svc3 .svc3-listing-media {
  aspect-ratio: 1122 / 1402;
  min-width: 0;
  width: 100%;
  height: 100%;
  background: #eef3f8;
}
.svc3 .svc3-listing-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}
.svc3 .svc3-listing-card-content { min-width: 0; padding: 20px; }
.svc3 .svc3-listing-card:hover .svc3-listing-media img { transform: none !important; }

@media (max-width: 860px) {
  .svc3 .svc3-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .svc3 .svc3-hero-visual { justify-self: center; max-width: 360px; }
}
@media (max-width: 740px) {
  .svc3 .svc3-listing-grid { grid-template-columns: minmax(0, 1fr); }
  .svc3 .svc3-hero-photo { aspect-ratio: 1122 / 1402; max-height: none; }
}
@media (max-width: 410px) {
  .svc3 .svc3-listing-card { grid-template-columns: minmax(0, 40%) minmax(0, 60%); }
  .svc3 .svc3-listing-card-content { padding: 13px; }
  .svc3 .svc3-listing-card h3 { font-size: 16px; }
  .svc3 .svc3-listing-card p { font-size: 12px; }
  .svc3 .svc3-listing-category { font-size: 9px; left: 8px; bottom: 8px; }
  .svc3 .svc3-hero-visual { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc3 .svc3-hero-photo img,
  .svc3 .svc3-listing-media img { transition: none !important; }
}
