.zs-header,
.zs-header *,
.zs-footer,
.zs-footer * {
  box-sizing: border-box;
}

.zs-shell {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
}

.zs-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: 78px;
  color: #fff;
  background: rgba(7, 18, 34, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(5, 15, 30, 0.08);
  backdrop-filter: blur(22px);
}

.zs-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.zs-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.zs-logo:hover,
.zs-logo:focus-visible {
  color: #fff;
  text-decoration: none;
}

.zs-logo__mark {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}

.zs-logo__mark::before,
.zs-logo__mark::after {
  position: absolute;
  content: "";
  border-radius: 9px;
}

.zs-logo__mark::before {
  inset: 1px 9px 9px 1px;
  background: linear-gradient(145deg, #55c7ff, #2166eb);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.38);
}

.zs-logo__mark::after {
  inset: 9px 1px 1px 9px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.zs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin: 0;
}

.zs-nav a {
  position: relative;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.zs-nav a:hover,
.zs-nav a:focus-visible,
.zs-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.zs-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: #3b82f6;
  border-radius: 2px;
}

.zs-nav .zs-nav__action,
.zs-mobile-actions {
  display: none;
}

.zs-header__cta {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #fff;
  background: #2166eb;
  border: 1px solid transparent;
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.zs-header__cta:hover,
.zs-header__cta:focus-visible {
  color: #fff;
  background: #164fce;
  text-decoration: none;
  transform: translateY(-2px);
}

.zs-menu {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
}

.zs-menu span {
  width: 18px;
  height: 1px;
  display: block;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.zs-footer {
  clear: both;
  padding: 65px 0 28px;
  color: #fff;
  background: #071222;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.zs-contact-widget {
  position: fixed;
  z-index: 970;
  right: 22px;
  bottom: 22px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.zs-contact-widget.is-ready {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.zs-contact-widget__toggle {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 18px 8px 9px;
  color: #fff;
  background: #2166eb;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(14, 52, 113, .3);
  font: inherit;
  cursor: pointer;
}

.zs-contact-widget__toggle span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .17);
  border-radius: 50%;
}

.zs-contact-widget__toggle strong {
  font-size: 13px;
}

.zs-contact-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(350px, calc(100vw - 28px));
  display: none;
  padding: 27px;
  color: #fff;
  background: #081528;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(7, 18, 34, .34);
}

.zs-contact-widget.is-open .zs-contact-widget__panel {
  display: block;
}

.zs-contact-widget__panel > span {
  color: #64d4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.zs-contact-widget__panel h2 {
  margin: 12px 28px 8px 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
}

.zs-contact-widget__panel p {
  margin: 0 0 18px;
  color: #bdcbe0;
  font-size: 14px;
  line-height: 1.55;
}

.zs-contact-widget__panel > div {
  display: grid;
  gap: 8px;
}

.zs-contact-widget__panel a {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: #fff;
  background: #2166eb;
  border: 1px solid #2166eb;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.zs-contact-widget__panel a:last-child {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
}

.zs-contact-widget__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.zs-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 0.8fr 1fr;
  gap: 36px;
}

.zs-footer__brand p {
  max-width: 300px;
  margin: 22px 0 0;
}

.zs-footer h2 {
  margin: 2px 0 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zs-footer__grid p,
.zs-footer__grid a:not(.zs-logo) {
  color: #8595a9;
  font-size: 13px;
  line-height: 1.65;
}

.zs-footer__grid a:not(.zs-logo) {
  display: block;
  margin: 0 0 9px;
  text-decoration: none;
}

.zs-footer__grid a:not(.zs-logo):hover,
.zs-footer__grid a:not(.zs-logo):focus-visible {
  color: #fff;
  text-decoration: none;
}

.zs-footer__bottom {
  margin-top: 52px;
  padding-top: 22px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.6;
}

#services,
#integrations,
#cases,
#technologies,
#about,
#contacts,
#request {
  scroll-margin-top: 96px;
}

.hero {
  overflow: hidden;
}

.conversion-block h2,
.za-section h2 {
  overflow-wrap: anywhere;
}

/* Unified content layer for legacy and commercial page templates. */
body {
  color: #0b1525;
  background: #f4f7fb;
  font-family: Inter, Arial, sans-serif;
}

main > .hero,
main > .za-hero,
main > .zc-hero,
main > .zsm-hero,
main > .za-studio-hero,
main > nav + .hero,
main > nav + .za-hero,
main > nav + .zc-hero {
  color: #0b1525 !important;
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.15), transparent 31%),
    radial-gradient(circle at 62% 100%, rgba(85, 199, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #fff, #f1f6fc) !important;
  border-bottom: 1px solid #dbe4ef;
}

main > .hero h1,
main > .za-hero h1,
main > .zc-hero h1,
main > .zsm-hero h1,
main > .za-studio-hero h1,
main > nav + .hero h1,
main > nav + .za-hero h1,
main > nav + .zc-hero h1 {
  color: #0b1525 !important;
}

main > .hero p,
main > .hero .lead,
main > .za-hero p,
main > .zc-hero p,
main > .zsm-hero p,
main > .za-studio-hero p,
main > nav + .hero p,
main > nav + .hero .lead,
main > nav + .za-hero p,
main > nav + .zc-hero p {
  color: #60738e !important;
}

/* Service pages use their own visual family while legacy pages stay light. */
.zc-service-page main > nav + .zc-service-hero {
  color: #fff !important;
  background:
    radial-gradient(circle at 78% 16%, rgba(var(--zc-accent-rgb), 0.46), transparent 34%),
    linear-gradient(135deg, #07111f, #111c31 60%, #0b1323) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.zc-service-page main > nav + .zc-service-hero h1 {
  color: #fff !important;
}

.zc-service-page main > nav + .zc-service-hero > .za-container > div > p {
  color: #c6d3e6 !important;
}

.za-hero .za-eyebrow,
.hero .eyebrow {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.za-hero .za-hero-card {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border-color: #d8e2ef;
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.1);
}

.za-hero .za-hero-card h2,
.za-hero .za-hero-card li {
  color: #0f172a;
}

.za-hero .za-hero-card li {
  background: #f5f8fc;
  border-color: #dbe4ef;
}

.za-hero .za-btn--ghost,
.za-hero .za-btn--light,
.hero .btn--ghost {
  color: #0f172a;
  background: #fff;
  border-color: #cbd5e1;
}

.card,
.za-card {
  border-color: #dbe4ef;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.za-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1080px) {
  .zs-nav {
    gap: 16px;
  }

  .zs-header__inner {
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .zs-header {
    background: #071222;
    backdrop-filter: none;
  }

  .zs-header__cta {
    display: none;
  }

  .zs-menu {
    display: block;
  }

  .zs-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 14px;
    background: #081528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 28px 85px rgba(15, 36, 66, 0.25);
  }

  .zs-nav.is-open {
    display: grid;
  }

  .zs-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .zs-nav a:hover,
  .zs-nav a:focus-visible,
  .zs-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.07);
  }

  .zs-nav a[aria-current="page"]::after {
    display: none;
  }

  .zs-nav .zs-nav__action {
    display: flex;
    justify-content: center;
    color: #fff;
    background: #2166eb;
  }

  .zs-mobile-actions {
    position: fixed;
    z-index: 980;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 1px;
    padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: rgba(7, 18, 34, .96);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 -12px 30px rgba(7, 18, 34, .2);
    backdrop-filter: blur(16px);
  }

  .zs-contact-widget {
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .zs-contact-widget__toggle {
    min-height: 48px;
  }

  .zs-mobile-actions a {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .zs-mobile-actions a:last-child {
    background: #2166eb;
    border-color: #2166eb;
  }

  .zs-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .zs-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .zs-shell {
    width: min(calc(100% - 28px), 1240px);
  }

  .zs-header,
  .zs-header__inner {
    min-height: 68px;
  }

  .zs-nav {
    right: 14px;
    left: 14px;
  }

  .zs-footer {
    padding-top: 48px;
  }

  .zs-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .zs-footer__brand,
  .zs-footer__contacts {
    grid-column: 1 / -1;
  }

  .zs-footer__bottom {
    margin-top: 36px;
  }
}

@media (max-width: 390px) {
  .zs-footer__grid {
    grid-template-columns: 1fr;
  }

  .zs-footer__brand,
  .zs-footer__contacts {
    grid-column: auto;
  }
}

/* Public business name: readable wordmark without changing technical URLs. */
.zs-logo {
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (max-width: 680px) {
  .zs-logo {
    gap: 9px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}
