.zn-services-page {
  width: min(1580px, calc(100% - 64px));
  margin: 0 auto 72px;
  color: var(--text, #0f172a);
}

.zn-services-hero,
.zn-services-catalog {
  border: 1px solid rgba(102, 155, 0, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 14%, rgba(140, 198, 63, .20), transparent 34%),
    rgba(255, 255, 255, .90);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .08);
}

.zn-services-hero {
  width: 100%;
  display: grid;
  gap: 18px;
  min-height: 320px;
  margin: 28px auto 28px;
  padding: clamp(34px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .92) 43%, rgba(255, 255, 255, .18) 72%),
    url("/new/assets/img/services/services-hero-visual.svg") right center / auto 100% no-repeat,
    radial-gradient(circle at 80% 14%, rgba(140, 198, 63, .20), transparent 34%),
    rgba(255, 255, 255, .90);
}

.zn-services-hero h1,
.zn-services-catalog h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: 0;
}

.zn-services-hero h1 {
  max-width: 780px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .96;
}

.zn-services-hero p {
  max-width: 720px;
  margin: 0;
  color: #50606c;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.zn-services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.zn-services-catalog {
  width: 100%;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
}

.zn-services-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.zn-services-head-actions {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
}

.zn-services-head h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.zn-services-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1ed760, #72ea00);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.zn-services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.zn-services-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(102, 155, 0, .18);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 11px 15px;
  font-weight: 900;
  cursor: pointer;
}

.zn-services-tab span {
  min-width: 24px;
  border-radius: 999px;
  background: rgba(102, 155, 0, .10);
  color: #669b00;
  padding: 3px 7px;
  font-size: 12px;
}

.zn-services-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #1fcf63, #6ee500);
  color: #fff;
  box-shadow: 0 14px 28px rgba(102, 155, 0, .20);
}

.zn-services-tab.is-active span {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.zn-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.zn-service-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(102, 155, 0, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.zn-service-card[hidden],
.zn-service-card.is-hidden {
  display: none !important;
}

.zn-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 155, 0, .34);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .10);
}

.zn-service-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  border: 2px solid #20f000;
  border-radius: 14px;
  color: #20d000;
  overflow: hidden;
}

.zn-service-media:before,
.zn-service-media:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.zn-service-media:before {
  left: 18px;
  top: 38px;
}

.zn-service-media:after {
  right: 18px;
  bottom: 28px;
}

.zn-service-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.zn-service-media svg {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zn-service-media svg text {
  fill: currentColor;
  stroke: none;
  font-size: 9px;
  font-weight: 900;
  font-family: Arial, sans-serif;
}

.zn-service-copy {
  display: grid;
  min-height: 154px;
  gap: 10px;
}

.zn-service-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.12;
}

.zn-service-copy p {
  margin: 0;
  color: #596978;
  line-height: 1.45;
}

.zn-service-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.zn-service-bottom strong {
  color: #0f172a;
  font-size: 17px;
  white-space: nowrap;
}

.zn-service-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.zn-service-order {
  min-width: 118px;
  min-height: 44px;
  padding: 10px 16px;
}

.zn-service-cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #454545, #242424);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
  cursor: pointer;
}

.zn-service-cart-btn span,
.zn-services-cart-toggle span {
  position: relative;
  width: 22px;
  height: 18px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.zn-service-cart-btn span:before,
.zn-services-cart-toggle span:before {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 14px;
  height: 10px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.zn-service-cart-btn span:after,
.zn-services-cart-toggle span:after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 12px 0 0 currentColor;
}

.zn-services-cart {
  position: relative;
  z-index: 18;
  width: auto;
  margin: 0;
  color: #0f172a;
}

.zn-services-cart-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 142px;
  min-height: 46px;
  border: 1px solid rgba(102, 155, 0, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, #1ed760, #72ea00);
  color: #fff;
  box-shadow: 0 22px 44px rgba(102, 155, 0, .28);
  font-weight: 900;
  cursor: pointer;
}

.zn-services-cart-toggle b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
}

.zn-services-cart-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(390px, calc(100vw - 36px));
  margin-top: 0;
  border: 1px solid rgba(102, 155, 0, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 70px rgba(15, 23, 42, .20);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.zn-services-cart.is-open .zn-services-cart-panel {
  display: grid;
}

.zn-services-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.zn-services-cart-head button,
.zn-cart-item button {
  border: 0;
  background: transparent;
  color: #669b00;
  font-weight: 900;
  cursor: pointer;
}

.zn-services-cart-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 14px 16px;
}

.zn-services-cart-list p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
}

.zn-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, .9);
}

.zn-cart-item span {
  display: grid;
  gap: 2px;
}

.zn-cart-item small {
  color: #64748b;
}

.zn-services-cart-order {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
}

.zn-services-cart-order:disabled {
  opacity: .48;
  cursor: not-allowed;
}

[data-theme="dark"] .zn-services-hero,
[data-theme="dark"] .zn-services-catalog {
  background:
    radial-gradient(circle at 80% 14%, rgba(140, 198, 63, .13), transparent 34%),
    rgba(8, 18, 21, .86);
  border-color: rgba(140, 198, 63, .16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}

[data-theme="dark"] .zn-services-hero {
  background:
    linear-gradient(90deg, rgba(8, 18, 21, .94) 0%, rgba(8, 18, 21, .88) 43%, rgba(8, 18, 21, .24) 72%),
    url("/new/assets/img/services/services-hero-visual.svg") right center / auto 100% no-repeat,
    radial-gradient(circle at 80% 14%, rgba(140, 198, 63, .13), transparent 34%),
    rgba(8, 18, 21, .86);
}

[data-theme="dark"] .zn-services-hero h1,
[data-theme="dark"] .zn-services-catalog h2,
[data-theme="dark"] .zn-service-copy h3,
[data-theme="dark"] .zn-service-bottom strong {
  color: #fff;
}

[data-theme="dark"] .zn-services-hero p,
[data-theme="dark"] .zn-service-copy p {
  color: rgba(226, 232, 240, .76);
}

[data-theme="dark"] .zn-services-tab,
[data-theme="dark"] .zn-service-card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .82);
}

[data-theme="dark"] .zn-services-cart {
  color: #fff;
}

[data-theme="dark"] .zn-services-cart-panel {
  background: rgba(8, 18, 21, .94);
  border-color: rgba(255, 255, 255, .10);
}

[data-theme="dark"] .zn-cart-item {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .10);
}

@media (max-width: 1180px) {
  .zn-services-page {
    width: min(100% - 28px, 980px);
  }

  .zn-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .zn-services-page {
    width: min(100% - 22px, 560px);
    margin-bottom: 34px;
  }

  .zn-services-hero,
  .zn-services-catalog {
    border-radius: 24px;
  }

  .zn-services-hero {
    min-height: 0;
    padding: 28px 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
      url("/new/assets/img/services/services-hero-visual.svg") right bottom / 120% auto no-repeat,
      rgba(255, 255, 255, .90);
  }

  .zn-services-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .zn-services-head-actions {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .zn-services-count {
    display: none;
  }

  .zn-services-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zn-services-tab {
    justify-content: center;
    padding: 10px 8px;
  }

  .zn-services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .zn-service-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 14px;
  }

  .zn-service-media {
    width: 86px;
    border-radius: 12px;
  }

  .zn-service-media span {
    width: 48px;
    height: 48px;
  }

  .zn-service-media svg {
    width: 54px;
    height: 54px;
  }

  .zn-service-copy {
    min-height: 0;
  }

  .zn-service-copy h3 {
    font-size: 18px;
  }

  .zn-service-copy p {
    font-size: 14px;
  }

  .zn-service-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .zn-service-actions {
    display: grid;
    grid-template-columns: 1fr 46px;
  }

  .zn-service-order {
    width: 100%;
  }

  .zn-services-cart-toggle {
    min-width: 128px;
    min-height: 42px;
    border-radius: 999px;
    padding: 9px 13px;
  }

  .zn-services-cart {
    width: auto;
  }

  .zn-services-cart-panel {
    position: static;
    width: min(100%, 360px);
    margin-top: 10px;
  }
}
