:root {
  --zs-services-header-offset: 154px;
  --zs-services-theme: #317dc9;
  --zs-services-border: #a8a8a8;
  --zs-services-text: #303030;
}

.zs-services-body {
  background: #fff;
  color: var(--zs-services-text);
}

.zs-services-page {
  padding-top: var(--zs-services-header-offset);
}

.zs-services-hero {
  position: relative;
  z-index: 1;
}

.zs-services-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(44px, 5.8vw, 78px);
  background: #fff;
  clip-path: polygon(0 100%, 100% 58%, 100% 100%);
  z-index: 2;
}

.zs-services-hero__backdrop {
  position: relative;
}

.zs-services-hero__backdrop img {
  display: block;
  width: 100%;
  height: auto;
}

.zs-services-hero .zs-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-services-hero__content {
  width: min(60%, 1120px);
  text-align: center;
}

.zs-services-hero__title {
  margin: 0 0 1.4rem;
  color: #fff;
  font-size: 3.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 3px 8px 8px rgba(0, 0, 0, 0.7);
}

.zs-services-hero__flow {
  display: grid;
  grid-template-columns: minmax(48px, 72px) 308px 1fr 308px minmax(48px, 72px);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.zs-services-hero__side h3 {
  margin: 0;
  color: #90cc37;
  font-size: 2.1875rem;
  font-weight: 700;
  -webkit-text-stroke: 1px #fff;
  text-transform: uppercase;
}

.zs-services-hero__center {
  text-align: center;
}

.zs-services-hero__center img {
  max-width: 94px;
  width: 100%;
  height: auto;
}

.zs-services-hero__center h3 {
  margin: 0.625rem 0 0;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 500;
  -webkit-text-stroke: 1px #000;
}

.zs-services-hero__bubble {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 308px;
  min-height: 308px;
  padding: 0;
}

.zs-services-hero__bubble-ring {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.zs-services-hero__bubble-copy {
  position: relative;
  z-index: 1;
  width: 74%;
}

.zs-services-hero__bubble-copy p {
  margin: 0;
  padding: 0.5rem 0;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
}

.zs-services-tabs {
  position: relative;
  z-index: 3;
  margin: -2px 0 70px;
  padding-top: 24px;
  background: #fff;
}

.zs-services-tabs__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 50px;
}

.zs-services-tabs__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--zs-services-border);
  background: #fff;
  color: #000;
  font-size: 1.125rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.zs-services-tabs__button.is-active {
  border-color: var(--zs-services-theme);
  background: var(--zs-services-theme);
  color: #fff;
}

.zs-services-panel {
  scroll-margin-top: calc(var(--zs-services-header-offset) + 24px);
}

.zs-services-panel__list {
  display: grid;
  gap: 50px;
}

.zs-services-item {
  display: flex;
  align-items: center;
  gap: 0;
}

.zs-services-item__media {
  width: 30%;
  border: 1px solid #ddd;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.zs-services-item__media img {
  display: block;
  width: 100%;
  height: auto;
}

.zs-services-item__content {
  width: 65%;
  margin-left: auto;
  padding: 1rem 0 1rem 5.5%;
}

.zs-services-item__title {
  margin: 0;
  color: var(--zs-services-text);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.33;
  text-transform: uppercase;
}

.zs-services-item__desc {
  margin: 37px 0 58px;
  color: #555;
  font-size: 1rem;
  line-height: 1.875;
}

.zs-services-item__desc p {
  margin: 0 0 0.5rem;
}

.zs-services-item__desc p:last-child {
  margin-bottom: 0;
}

.zs-services-item__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--zs-services-theme);
  color: #fff;
  font-size: 1.125rem;
  line-height: 40px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.zs-services-item__button:hover {
  opacity: 0.88;
}

.zs-services-item__button::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 1440px) {
  .zs-services-hero__content {
    width: 68%;
  }

  .zs-services-hero__title {
    font-size: 1.875rem;
  }

  .zs-services-hero__flow {
    grid-template-columns: 56px 250px 1fr 250px 56px;
  }

  .zs-services-hero__bubble {
    width: 250px;
    min-height: 250px;
  }

  .zs-services-hero__bubble-copy {
    width: 72%;
  }

  .zs-services-hero__bubble-copy p {
    font-size: 1rem;
  }

  .zs-services-hero__center img {
    max-width: 80px;
  }

  .zs-services-hero__center h3 {
    font-size: 1.625rem;
  }

  .zs-services-hero__side h3 {
    font-size: 1.875rem;
  }
}

@media (max-width: 1200px) {
  .zs-services-hero__content {
    width: 80%;
  }

  .zs-services-hero__title {
    font-size: 2.1875rem;
  }

  .zs-services-hero__flow {
    grid-template-columns: 48px 220px 1fr 220px 48px;
  }

  .zs-services-hero__bubble {
    width: 220px;
    min-height: 220px;
  }

  .zs-services-hero__bubble-copy {
    width: 70%;
  }

  .zs-services-hero__bubble-copy p {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }

  .zs-services-hero__center img {
    max-width: 70px;
  }

  .zs-services-hero__center h3 {
    font-size: 1.375rem;
  }

  .zs-services-hero__side h3 {
    font-size: 1.5625rem;
  }

  .zs-services-item__title {
    font-size: 1.625rem;
  }
}

@media (max-width: 992px) {
  .zs-services-tabs__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .zs-services-tabs__button {
    min-height: 56px;
    white-space: normal;
  }

  .zs-services-item {
    gap: 1.25rem;
  }

  .zs-services-item__media {
    width: 38%;
  }

  .zs-services-item__content {
    width: 62%;
    padding: 0;
  }

  .zs-services-item__title {
    font-size: 1.5rem;
  }

  .zs-services-item__desc {
    margin: 1.25rem 0 1.8rem;
    line-height: 1.75;
  }
}

@media (max-width: 950px) {
  .zs-services-hero__content {
    width: 88%;
  }

  .zs-services-hero__title {
    font-size: 1.75rem;
  }

  .zs-services-hero__flow {
    grid-template-columns: 44px 200px 1fr 200px 44px;
  }

  .zs-services-hero__bubble {
    width: 200px;
    min-height: 200px;
  }

  .zs-services-hero__bubble-copy {
    width: 72%;
  }

  .zs-services-hero__side h3 {
    font-size: 1.25rem;
  }

  .zs-services-hero__center h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .zs-services-page {
    overflow-x: hidden;
  }

  .zs-services-hero .zs-wrap {
    position: static;
    display: block;
  }

  .zs-services-hero__backdrop {
    min-height: 260px;
    background: linear-gradient(135deg, #143f83, #0d1f52);
  }

  .zs-services-hero__backdrop img {
    min-height: 260px;
    object-fit: cover;
  }

  .zs-services-hero__content {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .zs-services-hero__title {
    margin-bottom: 0;
    font-size: 2rem;
  }

  .zs-services-tabs {
    margin: -2px 0 56px;
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .zs-services-hero__flow {
    display: none;
  }

  .zs-services-hero__content {
    text-align: center;
  }

  .zs-services-hero__title {
    font-size: 1.8rem;
  }

  .zs-services-tabs__nav {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
  }

  .zs-services-panel__list {
    gap: 32px;
  }

  .zs-services-item {
    flex-wrap: wrap;
  }

  .zs-services-item__media,
  .zs-services-item__content {
    width: 100%;
  }

  .zs-services-item__content {
    padding: 0;
  }

  .zs-services-item__title {
    font-size: 1.4rem;
  }

  .zs-services-item__desc {
    margin: 1rem 0 1.4rem;
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}