.services-page {
  padding: 22px 24px 54px;
}

.services-inner {
  width: min(100%, 1240px);
  display: grid;
  gap: 24px;
  margin: 0 auto;
}

.services-group {
  border: 1px solid rgba(228, 231, 239, 0.92);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.06);
  overflow: hidden;
  padding: 22px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.services-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(17, 17, 17, 0.08);
  border-color: rgba(255, 207, 36, 0.28);
}

.services-group-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: 1px solid #edf0f5;
}

.services-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.services-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffc937 0%, #f1b316 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.services-icon-glyph {
  font-size: 1rem;
  line-height: 1;
  filter: saturate(0);
}

.services-group-title h1 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 800;
  color: #2f2f2f;
}

.services-group-title::after {
  content: "";
  flex: 1;
  min-width: 22px;
  height: 1px;
  margin-left: 2px;
  background: #e9edf3;
}

.services-group-header p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #5a6372;
}

.services-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #edf0f5;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.95));
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.04);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.service-row:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 207, 36, 0.26);
  box-shadow: 0 24px 40px rgba(17, 17, 17, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 251, 239, 0.94));
}

.service-row:hover .services-icon,
.services-group:hover .services-icon {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 12px 22px rgba(241, 179, 22, 0.24);
}

.service-thumb {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d2c56, #153e72 50%, #0e2342);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.service-thumb-image::before {
  display: none;
}

.service-thumb-image {
  min-height: 180px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-thumb-photo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: transform 320ms ease, filter 320ms ease;
}

.service-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 38%, rgba(255, 208, 55, 0.16), transparent 16%),
    radial-gradient(circle at 76% 62%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(0deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04));
  transition: opacity 240ms ease, transform 260ms ease;
}

.service-row:hover .service-thumb {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(9, 34, 70, 0.22);
}

.service-row:hover .service-thumb::before {
  opacity: 0.85;
  transform: scale(1.04);
}

.service-row:hover .service-thumb-photo {
  transform: scale(1.03);
  filter: saturate(1.03);
}

.thumb-chip {
  display: none;
}

.thumb-scene {
  position: absolute;
  inset: 0;
}

.scene-monitor,
.scene-screen,
.scene-laptop,
.scene-server,
.scene-appbox,
.scene-box,
.scene-phone,
.scene-shield,
.scene-cloud,
.scene-person,
.scene-badge,
.scene-connector,
.scene-sync,
.scene-lob-lines,
.scene-app-pills,
.scene-locks {
  position: absolute;
}

.scene-risk .scene-monitor {
  left: 14px;
  top: 14px;
  width: 116px;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(180deg, #3d6f99, #1b3854);
}

.scene-risk .scene-monitor::before {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 100%);
  background-size: 100% 12px, 16px 100%;
}

.scene-risk .scene-person {
  right: 16px;
  bottom: 8px;
  width: 38px;
  height: 58px;
  border-radius: 18px 18px 8px 8px;
  background: radial-gradient(circle at 50% 18%, #5f6c76 18%, transparent 19%), linear-gradient(180deg, #2c4154 24%, #13273d 24%);
}

.scene-risk .scene-badge {
  left: 63px;
  top: 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #f7bc1b, #d78300);
  color: #fff2b0;
  font-size: 0.62rem;
  font-weight: 800;
}

.scene-mfa .scene-shield {
  left: 20px;
  top: 16px;
  width: 70px;
  height: 72px;
  clip-path: polygon(50% 0, 94% 18%, 86% 72%, 50% 100%, 14% 72%, 6% 18%);
  background: linear-gradient(180deg, #ffd54b, #f1a90d);
  box-shadow: 0 0 18px rgba(255, 190, 40, 0.4);
}

.scene-mfa .scene-phone {
  right: 26px;
  top: 18px;
  width: 50px;
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a3151, #0f2340);
}

.scene-mfa .scene-phone::before {
  content: "MFA";
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.scene-mfa .scene-locks span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.scene-mfa .scene-locks span:nth-child(1) { left: 14px; bottom: 16px; }
.scene-mfa .scene-locks span:nth-child(2) { right: 14px; top: 12px; }
.scene-mfa .scene-locks span:nth-child(3) { right: 10px; bottom: 18px; }

.scene-screen {
  left: 42px;
  top: 18px;
  width: 112px;
  height: 58px;
  border-radius: 6px;
  background: linear-gradient(180deg, #31648f, #17324f);
}

.scene-screen::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -8px;
  height: 8px;
  background: #24384b;
  border-radius: 0 0 8px 8px;
}

.scene-app-pills {
  left: 54px;
  top: 28px;
  display: flex;
  gap: 5px;
}

.scene-app-pills span {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #19456d;
  font-size: 0.52rem;
  font-weight: 700;
}

.scene-laptop {
  left: 20px;
  top: 28px;
  width: 104px;
  height: 54px;
  border-radius: 6px;
  background: linear-gradient(180deg, #3d6894, #17314f);
}

.scene-laptop::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -8px;
  height: 8px;
  background: #8ea1b0;
  border-radius: 0 0 10px 10px;
}

.scene-cloud {
  right: 18px;
  top: 28px;
  width: 62px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 40%, #6ec2ff, #2182d4);
}

.scene-lob-lines {
  left: 138px;
  top: 40px;
  width: 26px;
  height: 2px;
  background: #79c7ff;
  box-shadow: 0 8px 0 #79c7ff, 0 16px 0 #79c7ff;
}

.scene-server {
  left: 18px;
  top: 14px;
  width: 56px;
  height: 74px;
  border-radius: 6px;
  background: linear-gradient(180deg, #183758, #0d1e33);
}

.scene-connector {
  left: 86px;
  top: 48px;
  width: 34px;
  height: 3px;
  background: #80c9ff;
}

.scene-appbox {
  right: 18px;
  top: 34px;
  width: 56px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, #254e78, #10263d);
}

.scene-box {
  top: 30px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, #21476f, #11253d);
}

.scene-box-left { left: 18px; }
.scene-box-right { right: 18px; }

.scene-sync {
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #6dc0ff;
  border-right-color: transparent;
  border-left-color: rgba(255,255,255,0.22);
}

.service-copy h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 800;
  color: #1f5fae;
  transition: color 200ms ease, transform 200ms ease;
}

.service-copy p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #545d6b;
  transition: color 200ms ease;
}

.service-row:hover .service-copy h2 {
  color: #114784;
  transform: translateX(2px);
}

.service-row:hover .service-copy p {
  color: #454e5c;
}

.service-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #2d76c7 0%, #1f5fae 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(31, 95, 174, 0.14);
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 200ms ease;
}

.service-row:hover .service-link {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(31, 95, 174, 0.2);
}

.service-row:hover .service-link::after {
  transform: translateX(4px);
}

@media (max-width: 980px) {
  .services-group-header,
  .services-group-grid {
    grid-template-columns: 1fr;
  }

  .services-group-title::after {
    display: none;
  }
}
