.services {
  padding: 80px 5% 120px;
  background: #f4f2ee;
  color: #0c0d0f;
  color-scheme: light;
  scroll-margin-top: 24px;
}
.services-inner { max-width: 1720px; margin-inline: auto; }
.services-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: 52px; }
.services-heading h2 { margin: 0; font-size: clamp(54px, 5.2vw, 100px); font-weight: 600; line-height: 1.04; letter-spacing: -.065em; }
.services-heading p { flex: 0 0 320px; margin: 8px 0 0; color: #2a2927; font-size: 16px; line-height: 1.5; text-align: right; }
.services-layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.service-list { border-top: 1px solid #2a2927; }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 128px;
  padding: 24px 16px 24px 0;
  border: 0;
  border-bottom: 1px solid #d7d5d1;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-radius 220ms var(--ease-out);
}
.service-number { color: #767a80; font-size: 12px; font-variant-numeric: tabular-nums; transition: transform 220ms var(--ease-out); }
.service-name { font-size: clamp(34px, 3.7vw, 72px); font-weight: 600; line-height: 1.06; letter-spacing: -.065em; transition: transform 220ms var(--ease-out); }
.service-description { color: #2a2927; font-size: 15px; line-height: 1.5; transition: color 220ms var(--ease-out); }
.service-row.is-active { background: #111; color: #fff; border-color: transparent; border-radius: 10px; }
.service-row.is-active .service-description { color: #ffffffb8; }
.service-row.is-active .service-number { color: #ffffffb8; transform: translateX(12px); }
.service-row.is-active .service-name { transform: translateX(8px); }
.service-row:focus-visible { outline: 2px solid #e0171f; outline-offset: 4px; z-index: 1; }
.services-visual { position: sticky; top: 112px; height: min(760px, calc(100svh - 160px)); min-height: 440px; overflow: hidden; border-radius: 18px; background: #e5e2dc; }
.service-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 300ms var(--ease-out), transform 550ms var(--ease-out); }
.service-image.is-active { opacity: 1; transform: scale(1); }
.services-image-count { position: absolute; bottom: 14px; left: 14px; background: #fff; color: #2a2927; border-radius: 30px; padding: 8px 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.service-mobile-image { display: none; }
@media(max-width:1200px) {
  .services-layout { gap: 24px; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
  .service-row { grid-template-columns: 24px minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; min-height: 120px; }
  .service-description { font-size: 14px; }
  .services-heading p { flex-basis: 250px; }
}
@media(max-width:900px) {
  .services { padding: 64px 4% 80px; scroll-margin-top: 16px; }
  .services-heading { flex-direction: column; gap: 22px; margin-bottom: 36px; }
  .services-heading h2 { font-size: clamp(48px, 8vw, 68px); max-width: 600px; }
  .services-heading p { flex-basis: auto; max-width: 440px; text-align: left; margin: 0; }
  .services-layout { display: block; }
  .services-visual { display: none; }
  .service-list { border-top: 0; }
  .service-row, .service-row.is-active { grid-template-columns: 64px minmax(0, 1fr); min-height: 129px; gap: 14px; padding: 24px 0; border-radius: 0; border-color: #d7d5d1; background: transparent; color: #0c0d0f; cursor: default; }
  .service-number, .service-description { display: none; }
  .service-name { grid-column: 2; grid-row: 1; font-size: clamp(24px, 7.8vw, 36px); line-height: 1.06; white-space: nowrap; }
  .service-row.is-active .service-name, .service-row.is-active .service-number { transform: none; }
  .service-mobile-image, .service-row.is-active .service-mobile-image { display: block; grid-column: 1; grid-row: 1; width: 64px; height: 80px; object-fit: cover; border-radius: 8px; margin: 0; }
}
@media(prefers-reduced-motion:reduce) {
  .service-row, .service-name, .service-number, .service-description, .service-image { transition: none; }
}
