.service-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #eef1ef 0%, #f7f8f6 100%);
  color: var(--ink);
}

.service-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 26, 29, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 26, 29, 0.02) 1px, transparent 1px),
    linear-gradient(128deg, transparent 0 54%, rgba(25, 26, 29, 0.04) 54.1% 54.3%, transparent 54.4% 100%),
    linear-gradient(0deg, rgba(25, 26, 29, 0.022), rgba(25, 26, 29, 0.022)) 76% 26% / 220px 110px no-repeat,
    linear-gradient(0deg, rgba(25, 26, 29, 0.018), rgba(25, 26, 29, 0.018)) 14% 72% / 180px 84px no-repeat;
  background-size: 88px 88px, 88px 88px, auto, auto, auto;
  opacity: 0.62;
  pointer-events: none;
}

.service-section .container {
  position: relative;
  z-index: 1;
}

.service-section .section-head {
  max-width: 360px;
  margin-bottom: clamp(30px, 4vw, 44px);
}

.service-section .section-kicker {
  margin-bottom: 10px;
}

.service-section .section-head h2 {
  font-size: clamp(1.22rem, 1.6vw, 1.44rem);
  line-height: 1.2;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
  min-height: 0;
  padding: clamp(30px, 4vw, 42px);
  border: 1px solid rgba(25, 26, 29, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(25, 26, 29, 0.06);
  backdrop-filter: blur(8px);
  isolation: isolate;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 22px 24px 22px auto;
  width: min(28vw, 264px);
  z-index: 0;
  border-radius: 6px;
  opacity: 0.62;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    filter 0.24s ease,
    box-shadow 0.24s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 18px 36px rgba(25, 26, 29, 0.08);
}

.service-row::after {
  content: "";
  position: absolute;
  inset: auto 26px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 26, 29, 0.18), transparent);
}

.service-row:hover,
.service-row:focus-within {
  transform: translateY(-4px);
  border-color: rgba(25, 26, 29, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 60px rgba(25, 26, 29, 0.1);
}

.service-row:hover::before,
.service-row:focus-within::before {
  opacity: 0.9;
  transform: translate3d(0, -3px, 0);
  filter: saturate(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 22px 44px rgba(25, 26, 29, 0.1);
}

.service-row:hover .service-number,
.service-row:focus-within .service-number {
  color: rgba(45, 107, 87, 1);
}

.service-row-flow::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(212, 226, 247, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(53, 97, 173, 0.16)),
    url("../../assets/images/services-flow.jpg?v=2026042308");
  background-position: 0 0, 0 0, 72% center;
  background-size: cover, cover, cover;
}

.service-row-accounting::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(210, 224, 246, 0.4)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(51, 90, 154, 0.16)),
    url("../../assets/images/services-accounting.jpg?v=2026042308");
  background-position: 0 0, 0 0, 68% center;
  background-size: cover, cover, cover;
}

.service-row-workspace::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(208, 223, 246, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(48, 89, 156, 0.16)),
    url("../../assets/images/services-workspace.jpg?v=2026042308");
  background-position: 0 0, 0 0, 70% center;
  background-size: cover, cover, cover;
}

.service-number {
  align-self: start;
  padding-top: 3px;
  color: rgba(45, 107, 87, 0.88);
  font-size: 0.9rem;
}

.service-row h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  line-height: 1.38;
  overflow-wrap: normal;
  word-break: keep-all;
}

.service-row p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.service-row > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

@media (max-width: 920px) {
  .service-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .service-section .section-head {
    margin-bottom: 28px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .service-row::before {
    position: relative;
    inset: auto;
    grid-column: 1;
    width: 100%;
    height: clamp(104px, 34vw, 140px);
    opacity: 0.82;
  }

  .service-row::after {
    inset-inline: 18px;
  }

  .service-number {
    padding-top: 0;
  }

  .service-row h3 {
    font-size: clamp(1.02rem, 5.2vw, 1.24rem);
    line-height: 1.48;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .service-row p {
    font-size: 0.88rem;
    line-height: 1.82;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (max-width: 360px) {
  .service-row {
    padding: 12px;
  }

  .service-row::before {
    height: 100px;
  }

  .service-row::after {
    inset-inline: 14px;
  }
}
