/*
Theme Name: ZasNet Modern
Theme URI: https://test.zasx.net/
Author: ZasNet
Description: Premium ZasNet WordPress theme matching the dark/light reference layouts.
Template: astra
Version: 1.3.0
Text Domain: zasnet-modern
*/

:root,
html:not(.zn-light),
body.zn-theme-dark {
  --zn-bg: #061014;
  --zn-page: #081319;
  --zn-panel: #0b1518;
  --zn-card: #101820;
  --zn-card-strong: #12202a;
  --zn-text: #ffffff;
  --zn-muted: #aab4b8;
  --zn-line: rgba(255, 255, 255, .12);
  --zn-soft-line: rgba(255, 255, 255, .08);
  --zn-accent: #669b00;
  --zn-accent-2: #86c900;
  --zn-shadow: 0 22px 55px rgba(0, 0, 0, .36);
  --zn-glow: 0 0 34px rgba(102, 155, 0, .24);
}

html.zn-light {
  --zn-bg: #f5f7f3;
  --zn-page: #f8faf6;
  --zn-panel: #ffffff;
  --zn-card: #ffffff;
  --zn-card-strong: #ffffff;
  --zn-text: #101820;
  --zn-muted: #5f6b70;
  --zn-line: rgba(16, 24, 32, .11);
  --zn-soft-line: rgba(16, 24, 32, .08);
  --zn-accent: #669b00;
  --zn-accent-2: #78b900;
  --zn-shadow: 0 16px 42px rgba(16, 24, 32, .12);
  --zn-glow: 0 0 26px rgba(102, 155, 0, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.zn-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0, rgba(102, 155, 0, .12), transparent 28rem),
    var(--zn-bg);
  color: var(--zn-text);
  font-family: Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

html.zn-light body.zn-body {
  background: var(--zn-bg);
}

a { color: inherit; }
img { max-width: 100%; }

.zn-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(1240px, calc(100vw - 32px));
  min-height: 74px;
  margin: 18px auto 14px;
  padding: 13px 18px;
  border: 1px solid var(--zn-line);
  border-radius: 20px;
  background: rgba(6, 16, 20, .94);
  box-shadow: var(--zn-shadow);
  backdrop-filter: blur(18px);
}

html.zn-light .zn-topbar {
  background: rgba(255, 255, 255, .96);
}

.zn-brand,
.zn-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--zn-text);
  font-weight: 950;
  text-decoration: none;
}

.zn-brand img,
.zn-footer-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.zn-brand b,
.zn-footer-logo b {
  font-size: 18px;
  line-height: 1;
}

.zn-main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.zn-main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  color: var(--zn-muted);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.zn-main-nav a:hover,
.zn-main-nav a.is-active {
  color: var(--zn-accent-2);
  background: rgba(102, 155, 0, .09);
}

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

.zn-cabinet,
.zn-btn,
.zn-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--zn-accent-2), var(--zn-accent));
  color: #fff !important;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(102, 155, 0, .24);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.zn-cabinet:hover,
.zn-btn:hover,
.zn-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(102, 155, 0, .28);
}

.zn-btn.ghost,
.zn-btn.secondary {
  border: 1px solid var(--zn-line);
  background: rgba(255, 255, 255, .04);
  color: var(--zn-text) !important;
  box-shadow: none;
}

html.zn-light .zn-btn.ghost,
html.zn-light .zn-btn.secondary {
  background: #fff;
}

.zn-theme-switch,
.zn-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--zn-line);
  border-radius: 12px;
  background: transparent;
  color: var(--zn-text);
  cursor: pointer;
}

.zn-theme-switch::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--zn-accent-2);
  box-shadow: 0 0 0 6px rgba(102, 155, 0, .16);
}

.zn-menu-toggle { display: none; }

.zn-wrap {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--zn-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 12%, rgba(102, 155, 0, .18), transparent 24rem),
    linear-gradient(180deg, var(--zn-panel), var(--zn-page));
  box-shadow: var(--zn-shadow);
}

html.zn-light .zn-wrap {
  background:
    radial-gradient(circle at 82% 12%, rgba(102, 155, 0, .1), transparent 24rem),
    linear-gradient(180deg, #fff, #fbfcfa);
}

.zn-section {
  padding: 42px;
}

.zn-section + .zn-section {
  border-top: 1px solid var(--zn-soft-line);
}

.zn-page { padding-top: 46px; }

.zn-hero {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 34px;
  align-items: center;
  min-height: 560px;
}

.zn-hero > div:first-child {
  position: relative;
  z-index: 2;
}

.zn-hero h1,
.zn-head h1 {
  margin: 0 0 20px;
  color: var(--zn-text);
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: .98;
  letter-spacing: 0;
}

.zn-hero h1 em,
.zn-head h1 em {
  color: var(--zn-accent-2);
  font-style: normal;
}

.zn-lead,
.zn-head p,
.zn-card p {
  color: var(--zn-muted);
  margin: 0;
}

.zn-lead {
  max-width: 560px;
  font-size: 19px;
}

.zn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.zn-hero-art,
.zn-orbit,
.zn-map,
.zn-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--zn-line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(6, 16, 20, .78), rgba(6, 16, 20, .05)),
    url("https://www.zasx.net/new/assets/img/hero-family-zasnet.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

html.zn-light .zn-hero-art,
html.zn-light .zn-orbit,
html.zn-light .zn-page-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .04)),
    url("https://www.zasx.net/new/assets/img/hero-family-zasnet.png") center / cover no-repeat;
}

.zn-hero-art::after,
.zn-page-hero::after {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 72% 50%, transparent 0 20%, rgba(102, 155, 0, .42) 21%, transparent 23%, transparent 35%, rgba(102, 155, 0, .34) 36%, transparent 38%),
    radial-gradient(ellipse at 60% 60%, transparent 0 30%, rgba(102, 155, 0, .2) 31%, transparent 33%);
  transform: rotate(-10deg);
}

.zn-metrics,
.zn-grid,
.zn-mini-tariffs,
.zn-tariff-list,
.zn-products,
.zn-posts {
  display: grid;
  gap: 18px;
}

.zn-metrics,
.zn-grid.four,
.zn-mini-tariffs,
.zn-tariff-list,
.zn-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zn-grid,
.zn-posts,
.zn-tariff-list.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zn-metric,
.zn-card,
.zn-product,
.zn-post {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--zn-line);
  border-radius: 20px;
  background: var(--zn-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

html.zn-light .zn-metric,
html.zn-light .zn-card,
html.zn-light .zn-product,
html.zn-light .zn-post {
  box-shadow: 0 12px 32px rgba(16, 24, 32, .08);
}

.zn-metric:hover,
.zn-card:hover,
.zn-product:hover,
.zn-post:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 155, 0, .48);
  box-shadow: var(--zn-shadow), var(--zn-glow);
}

.zn-metric {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.zn-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(102, 155, 0, .58);
  border-radius: 50%;
  color: var(--zn-accent-2);
  font-weight: 950;
}

.zn-metric b,
.zn-card h3,
.zn-product h3,
.zn-post h3 {
  margin: 0 0 8px;
  color: var(--zn-text);
  font-size: 20px;
  line-height: 1.15;
}

.zn-metric span,
.zn-product span,
.zn-post small {
  color: var(--zn-muted);
  font-size: 14px;
}

.zn-card {
  padding: 24px;
}

.zn-card.hot,
.zn-card.feature,
.zn-card:nth-child(2).hot {
  border-color: rgba(102, 155, 0, .95);
  box-shadow: inset 0 0 0 1px rgba(102, 155, 0, .22), var(--zn-glow);
}

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

.zn-head h2 {
  max-width: 760px;
  margin: 0;
  color: var(--zn-text);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}

.zn-head p {
  max-width: 560px;
  font-size: 16px;
}

.zn-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.zn-price {
  color: var(--zn-text);
  font-size: 46px;
  font-weight: 950;
  line-height: 1;
  margin: 14px 0 12px;
}

.zn-price span {
  color: var(--zn-muted);
  font-size: 15px;
  font-weight: 800;
}

.zn-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--zn-muted);
  font-size: 15px;
}

.zn-list li {
  position: relative;
  padding-left: 24px;
}

.zn-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zn-accent-2);
  box-shadow: 0 0 0 4px rgba(102, 155, 0, .13);
}

.zn-select,
.zn-tabs button,
.zn-form input,
.zn-form select,
.zn-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--zn-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--zn-text);
  padding: 13px 16px;
  outline: 0;
  font: inherit;
}

html.zn-light .zn-select,
html.zn-light .zn-tabs button,
html.zn-light .zn-form input,
html.zn-light .zn-form select,
html.zn-light .zn-form textarea {
  background: #fff;
}

.zn-select option,
.zn-form option {
  color: #101820;
}

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

.zn-tabs button {
  width: auto;
  min-width: 140px;
  cursor: pointer;
}

.zn-tabs button.active,
.zn-tabs button:hover {
  border-color: var(--zn-accent);
  background: var(--zn-accent);
  color: #fff;
}

.zn-form {
  display: grid;
  gap: 14px;
}

.zn-form textarea {
  min-height: 132px;
  resize: vertical;
}

.zn-form button {
  width: 100%;
  min-height: 52px;
}

.zn-map {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(102, 155, 0, .16), rgba(255, 255, 255, .02)),
    url("https://www.zasx.net/new/assets/img/contacts-office-hero.png") center / cover no-repeat;
}

.zn-map-card {
  display: inline-block;
  max-width: 270px;
  margin: 150px 0 0 42%;
  border-radius: 16px;
  background: var(--zn-card);
  color: var(--zn-text);
  padding: 16px 18px;
  box-shadow: var(--zn-shadow);
}

.zn-page-hero {
  min-height: 440px;
}

.zn-page-hero.video {
  background:
    linear-gradient(90deg, rgba(6, 16, 20, .88), rgba(6, 16, 20, .08)),
    url("https://www.zasx.net/new/assets/img/video-surveillance-hero.png") center right / contain no-repeat;
}

.zn-page-hero.equipment {
  background:
    linear-gradient(90deg, rgba(6, 16, 20, .86), rgba(6, 16, 20, .08)),
    url("https://www.zasx.net/new/assets/img/equipment-hero.png") center right / contain no-repeat;
}

html.zn-light .zn-page-hero.video {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .12)),
    url("https://www.zasx.net/new/assets/img/video-surveillance-hero.png") center right / contain no-repeat;
}

html.zn-light .zn-page-hero.equipment {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .12)),
    url("https://www.zasx.net/new/assets/img/equipment-hero.png") center right / contain no-repeat;
}

.zn-page-hero > div {
  position: relative;
  z-index: 2;
  width: min(620px, 62%);
  padding: 48px;
}

.zn-page-hero h1,
.zn-page h1,
.zn-404 h1 {
  margin: 0 0 18px;
  color: var(--zn-text);
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1;
}

.zn-product {
  padding: 18px;
}

.zn-product img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 16px;
  padding: 12px;
}

.zn-product .zn-btn {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
}

.zn-post {
  overflow: hidden;
}

.zn-post img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.zn-post div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.zn-post .zn-link {
  margin-top: auto;
}

.zn-link {
  color: var(--zn-accent-2);
  font-weight: 950;
  text-decoration: none;
}

.zn-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(102, 155, 0, .42);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(102, 155, 0, .22), rgba(102, 155, 0, .05));
  padding: 26px;
}

.zn-footer-cta h1,
.zn-footer-cta h2 {
  color: var(--zn-text);
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.zn-site-footer {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 26px;
  width: min(1240px, calc(100vw - 32px));
  margin: -6px auto 32px;
  border: 1px solid var(--zn-line);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: var(--zn-panel);
  color: var(--zn-muted);
  padding: 30px 36px;
  box-shadow: var(--zn-shadow);
}

html.zn-light .zn-site-footer {
  background: #fff;
}

.zn-site-footer nav,
.zn-site-footer div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.zn-site-footer strong {
  color: var(--zn-text);
  font-size: 15px;
}

.zn-site-footer a,
.zn-site-footer span,
.zn-site-footer small {
  color: var(--zn-muted);
  font-size: 14px;
  text-decoration: none;
}

.zn-site-footer a:hover {
  color: var(--zn-accent-2);
}

.zn-socials {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
}

.zn-socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--zn-line);
  border-radius: 50%;
  color: var(--zn-text);
  font-weight: 900;
}

.zn-404 {
  display: grid;
  place-items: center;
  min-height: 620px;
  text-align: center;
}

.zn-404 strong {
  display: block;
  color: var(--zn-text);
  font-size: clamp(130px, 18vw, 230px);
  line-height: .76;
  text-shadow: var(--zn-glow);
}

.zn-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

@media (max-width: 1180px) {
  .zn-topbar {
    grid-template-columns: 1fr auto;
  }

  .zn-menu-toggle {
    display: inline-grid;
  }

  .zn-main-nav,
  .zn-header-actions {
    display: none;
  }

  body.zn-menu-open .zn-main-nav,
  body.zn-menu-open .zn-header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body.zn-menu-open .zn-main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .zn-hero,
  .zn-split {
    grid-template-columns: 1fr;
  }

  .zn-hero-art {
    min-height: 420px;
  }

  .zn-products,
  .zn-grid.four,
  .zn-mini-tariffs,
  .zn-tariff-list,
  .zn-quick {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body.zn-body {
    font-size: 15px;
  }

  .zn-topbar,
  .zn-wrap,
  .zn-site-footer {
    width: min(100% - 20px, 1240px);
  }

  .zn-section {
    padding: 28px 22px;
  }

  .zn-hero {
    min-height: auto;
  }

  .zn-hero h1,
  .zn-head h1,
  .zn-page-hero h1,
  .zn-page h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .zn-head {
    display: block;
  }

  .zn-metrics,
  .zn-grid,
  .zn-grid.four,
  .zn-mini-tariffs,
  .zn-tariff-list,
  .zn-tariff-list.three,
  .zn-products,
  .zn-posts,
  .zn-quick,
  .zn-site-footer {
    grid-template-columns: 1fr;
  }

  .zn-hero-art,
  .zn-page-hero,
  .zn-map {
    min-height: 330px;
  }

  .zn-page-hero > div {
    width: 100%;
    padding: 28px;
  }

  .zn-footer-cta {
    display: block;
  }

  .zn-footer-cta .zn-btn {
    margin-top: 18px;
  }
}

@media (max-width: 430px) {
  .zn-topbar {
    min-height: 68px;
    margin-top: 10px;
    border-radius: 16px;
  }

  .zn-section {
    padding: 24px 18px;
  }

  .zn-wrap {
    border-radius: 18px;
  }

  .zn-card,
  .zn-product,
  .zn-post,
  .zn-metric {
    border-radius: 18px;
    padding: 20px;
  }

  .zn-product img {
    height: 170px;
  }

  .zn-actions .zn-btn,
  .zn-cabinet {
    width: 100%;
  }
}

.zn-control-card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.zn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 14px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.zn-button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.zn-control-card select,
.zn-filter-row a,
.zn-filter-row button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  padding: 12px 16px;
}

.zn-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.zn-filter-row .is-active,
.zn-filter-row a:hover,
.zn-filter-row button:hover {
  background: var(--accent);
  color: #fff;
}

.zn-table-card {
  margin-top: 18px;
}

.zn-table-wrap {
  overflow-x: auto;
}

.zn-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.zn-compare-table th,
.zn-compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}

.zn-compare-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.zn-steps {
  counter-reset: zn-step;
}

.zn-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 18px 20px;
}

.zn-faq details + details {
  margin-top: 12px;
}

.zn-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.zn-cabinet-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.zn-news-grid,
.zn-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.zn-news-thumb,
.zn-product-image {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(102, 155, 0, .12);
  margin-bottom: 16px;
}

.zn-news-thumb img,
.zn-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zn-product-image img {
  object-fit: contain;
  padding: 16px;
}

.zn-map {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 20px;
  margin-top: 22px;
}

.zn-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.zn-pagination a,
.zn-pagination span {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

@media (max-width: 1024px) {
  .zn-news-grid,
  .zn-equipment-grid,
  .zn-cabinet-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .zn-news-grid,
  .zn-equipment-grid,
  .zn-cabinet-features {
    grid-template-columns: 1fr;
  }

  .zn-control-card {
    align-items: stretch;
    flex-direction: column;
  }
}
