:root {
  --ink: #1a2027;
  --muted: #66707b;
  --line: #dfe5ea;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --blue: #009ed6;
  --blue-dark: #0074a8;
  --orange: #f05a36;
  --shadow: 0 18px 50px rgba(18, 33, 48, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 229, 234, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand img,
.site-footer img {
  width: 172px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #26313b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-menu > a,
.nav-group > a {
  padding: 24px 0;
}

.nav-menu a:hover {
  color: var(--blue-dark);
}

.nav-group {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: grid;
  min-width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-group:hover .sub-menu,
.nav-group:focus-within .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #31404c;
  text-transform: none;
}

.sub-menu a:hover {
  background: var(--soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: 48px;
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 74px 0 54px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  color: var(--orange);
}

.lead {
  margin: 30px 0 0;
  color: #44515d;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.primary-link {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 158, 214, 0.24);
}

.secondary-link {
  border: 1px solid var(--line);
  color: #26313b;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 158, 214, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 158, 214, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, rgba(240, 90, 54, 0.18), transparent 28%),
    var(--soft);
  background-size: 34px 34px, 34px 34px, auto, auto;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 2px solid rgba(0, 116, 168, 0.14);
  border-radius: 8px;
}

.hero-product {
  position: absolute;
  filter: drop-shadow(0 24px 28px rgba(18, 33, 48, 0.18));
}

.product-a {
  right: 46px;
  bottom: 52px;
  width: 30%;
}

.product-b {
  left: 40px;
  bottom: -60px;
  width: 48%;
}

.product-c {
  top: 42px;
  right: 18%;
  width: 34%;
}

.section-band {
  background:
    linear-gradient(135deg, rgba(244, 247, 249, 0.93), rgba(255, 255, 255, 0.88)),
    url("assets/estilo-nixzen.png") right center / 760px auto no-repeat,
    var(--soft);
}

.about,
.products,
.process,
.apps {
  padding: 82px max(16px, calc((100vw - 1160px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2,
.apps h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 740px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.about-grid p {
  margin: 0;
  color: #485662;
  font-size: 18px;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats span {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.stats strong {
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 1;
}

.process {
  overflow: hidden;
}

.process img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.category-grid {
  display: grid;
  gap: 18px;
}

.category-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card-image {
  display: grid;
  place-items: center;
  min-height: 218px;
  border-radius: 8px;
  background: #fff;
}

.card-image img {
  max-height: 210px;
  object-fit: contain;
}

.card-copy span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-copy h3 {
  margin: 8px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.card-copy p {
  max-width: 760px;
  margin: 0;
  color: #4d5b66;
  font-size: 17px;
}

.card-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.card-copy li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #35424d;
  font-size: 13px;
  font-weight: 700;
}

.apps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 50px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 249, 0.9)),
    url("assets/estilo-nixzen.png") right 45% / 680px auto no-repeat;
}

.apps-copy p:last-child {
  max-width: 740px;
  color: #4d5b66;
  font-size: 18px;
}

.app-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.app-icons img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.hero--brand {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
}

.hero-logo {
  width: min(460px, 92vw);
  height: auto;
  margin: 8px 0 0;
}

.hero-banner {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 250, 252, 0.84), rgba(237, 245, 249, 0.78)),
    url("assets/estilo-nixzen.png") center / cover no-repeat,
    linear-gradient(90deg, rgba(0, 158, 214, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 158, 214, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #f7fafc 0%, #edf5f9 58%, #fff0ea 100%);
  background-size: auto, cover, 36px 36px, 36px 36px, auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-banner::before {
  content: "NIXZEN";
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(0, 116, 168, 0.08);
  font-size: clamp(66px, 10vw, 136px);
  font-weight: 900;
  line-height: 1;
}

.banner-product {
  position: absolute;
  z-index: 1;
  width: 26%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(18, 33, 48, 0.18));
}

.banner-product--camera {
  left: 6%;
  bottom: 7%;
  width: 30%;
}

.banner-product--camera-q29 {
  right: 4%;
  bottom: 23%;
  width: 24%;
  max-height: 250px;
}

.banner-product--alarm {
  right: 8%;
  top: 8%;
  width: 28%;
}

.banner-product--monitor {
  left: 18%;
  top: 12%;
  width: 35%;
}

.banner-product--nuc {
  right: 30%;
  bottom: 9%;
  width: 27%;
}

.technology-showcase,
.catalog-section,
.related-products {
  padding: 82px max(16px, calc((100vw - 1160px) / 2));
}

.technology-showcase {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 249, 0.82)),
    url("assets/estilo-nixzen.png") left bottom / 820px auto no-repeat;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.tech-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tech-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
}

.tech-card span {
  color: #26313b;
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  padding: 82px max(16px, calc((100vw - 1160px) / 2)) 46px;
  background:
    linear-gradient(90deg, rgba(0, 158, 214, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 158, 214, 0.08) 1px, transparent 1px),
    var(--soft);
  background-size: 34px 34px, 34px 34px, auto;
}

.page-hero > div {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.catalog-jump {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px max(16px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 72px;
  z-index: 10;
}

.catalog-jump a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #31404c;
  font-size: 13px;
  font-weight: 800;
}

.catalog-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.catalog-section__heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.product-card__image {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 20px;
  background: #fff;
}

.product-card__image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.product-card__body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.product-card__body span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card__body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.product-card__body p {
  margin: 0;
  color: #53616d;
  font-size: 14px;
}

.product-code {
  color: var(--orange) !important;
  font-weight: 900;
  letter-spacing: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
  padding: 82px max(16px, calc((100vw - 1160px) / 2));
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.product-main-image {
  width: 100%;
  height: min(58vw, 560px);
  min-height: 360px;
  object-fit: contain;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  gap: 10px;
}

.product-thumbs img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-info .lead {
  font-size: 18px;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.spec-list span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #35424d;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-menu > a,
  .nav-group > a {
    padding: 13px 12px;
  }

  .sub-menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .section-heading,
  .about-grid,
  .apps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand img,
  .site-footer img {
    width: 138px;
  }

  h1 {
    font-size: 64px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .product-a {
    right: 18px;
    width: 35%;
  }

  .product-b {
    left: 4px;
    width: 58%;
  }

  .product-c {
    right: 18%;
    width: 42%;
  }

  .about,
  .products,
  .process,
  .apps {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .category-card {
    padding: 18px;
  }

  .apps {
    grid-template-columns: 1fr;
  }

  .app-icons {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1040px) {
  .technology-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .hero--brand,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 430px;
  }

  .catalog-jump {
    position: static;
  }
}

@media (max-width: 640px) {
  .technology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    min-height: 184px;
    padding: 14px;
  }

  .tech-card img {
    height: 108px;
  }

  .hero-banner {
    min-height: 350px;
  }

  .banner-product--camera {
    left: 2%;
    width: 36%;
  }

  .banner-product--camera-q29 {
    right: 0;
    bottom: 5%;
    width: 30%;
  }

  .banner-product--alarm {
    right: 2%;
    top: 6%;
    width: 30%;
  }

  .banner-product--monitor {
    left: 12%;
    top: 16%;
    width: 44%;
  }

  .banner-product--nuc {
    right: 24%;
    width: 34%;
  }

  .product-detail,
  .technology-showcase,
  .catalog-section,
  .related-products {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .product-main-image {
    min-height: 300px;
    height: auto;
  }

  .catalog-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
