:root {
  --ink: #102033;
  --muted: #5f6f82;
  --line: #dce5ee;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --blue: #1769c2;
  --cyan: #13a8c8;
  --green: #20a36b;
  --amber: #f0a12b;
  --navy: #0b1a2b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background: var(--paper);
}

a {
  color: inherit;
}

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

.shell {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 229, 238, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.05;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  border: 1px solid rgba(23, 105, 194, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f2f7fc);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
}

.brand-mark img {
  width: 56px;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.brand-copy span {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 40px;
  padding: 8px 12px;
  text-decoration: none;
  color: #284057;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.mobile-menu {
  display: none;
}

.hero {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(11, 26, 43, 0.92), rgba(11, 26, 43, 0.74) 52%, rgba(23, 105, 194, 0.7)),
    url("/images/ntpc-infra.png") center / cover;
}

.hero-inner {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 76px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
}

.signal-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 18, 31, 0.66);
  padding: 22px;
  border-radius: 8px;
}

.signal-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.1rem;
}

.signal-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-row:first-of-type {
  border-top: 0;
}

.signal-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(19, 168, 200, 0.18);
  color: #79e5f7;
  font-weight: 900;
}

.signal-row strong {
  display: block;
  color: #fff;
  line-height: 1.3;
}

.signal-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.section {
  padding: 78px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--navy);
  color: #fff;
}

.section-head {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

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

.service-card,
.project-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  padding: 24px;
}

.service-card h3,
.project-card h3,
.article-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.25;
}

.service-card p,
.project-card p,
.article-card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #eaf5fb;
  color: #17607a;
  font-size: 0.78rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 32px;
  align-items: start;
}

.about-highlights,
.about-statement-card {
  display: grid;
  gap: 14px;
}

.about-highlights div,
.about-statement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.about-highlights strong {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-highlights p,
.about-statement-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.about-hero p {
  max-width: 780px;
  color: #30475d;
  font-size: 1.1rem;
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 40px;
  align-items: start;
}

.content-block h2,
.about-statement-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.content-block p {
  color: #30475d;
}

.about-statement-card h2 + p {
  margin-bottom: 22px;
}

.about-service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-service-list span {
  display: flex;
  align-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: #30475d;
  font-weight: 750;
}

.product-network {
  background:
    linear-gradient(180deg, #ffffff, #f4f8fb);
}

.product-security {
  background: #fff;
}

.product-communications {
  background:
    linear-gradient(180deg, #f4f8fb, #ffffff);
}

.product-surveillance {
  background: #fff;
}

.product-overview {
  background: var(--soft);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.solution-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.05);
}

.solution-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.solution-card p {
  color: var(--muted);
}

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

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

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

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

.product-card {
  display: grid;
  grid-template-rows: 140px 1fr;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.06);
}

.product-logo {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.product-logo img {
  width: min(100%, 250px);
  max-height: 92px;
  object-fit: contain;
}

.product-card div:last-child {
  padding: 20px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.security-grid .product-logo img {
  width: min(100%, 220px);
  max-height: 96px;
}

.communications-grid .product-logo img {
  width: min(100%, 280px);
  max-height: 96px;
}

.surveillance-grid .product-logo img {
  width: min(100%, 320px);
  max-height: 98px;
}

.proof-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  border-left: 4px solid var(--green);
  padding: 14px 16px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  color: #30475d;
  font-weight: 650;
}

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

.project-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.project-card img,
.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dfe9f2;
  flex: 0 0 auto;
}

.project-image-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #4a6178;
  text-align: center;
  font-weight: 850;
}

.project-image-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 6px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe9f2;
}

.client-section {
  background: #fff;
}

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

.client-card {
  display: grid;
  grid-template-rows: 124px auto;
  gap: 12px;
  align-items: center;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  text-align: center;
}

.client-card img {
  width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.client-card span {
  color: #30475d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.project-card .body,
.article-card {
  padding: 22px;
}

.project-card .body {
  display: flex;
  flex: 1;
  min-height: 270px;
  flex-direction: column;
}

.project-card .tag-list {
  margin-top: auto;
  padding-top: 10px;
}

.project-meta {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.process-step {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

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

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: center;
  padding: 44px;
  border-radius: 8px;
  background: #0f2b45;
  color: #fff;
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.contact-list div {
  display: grid;
  gap: 3px;
}

.contact-list dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: anywhere;
}

.contact-card a {
  display: block;
  color: #8de8f5;
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #0a7cff, #1769c2 58%, #13a8c8);
  color: #fff;
  box-shadow: 0 16px 34px rgba(10, 124, 255, 0.28);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 850;
}

.floating-chat:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(10, 124, 255, 0.34);
}

.floating-chat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a7cff;
  font-weight: 950;
}

.page-hero {
  padding: 64px 0;
  background: var(--soft);
}

.content {
  max-width: 820px;
  padding: 56px 0;
}

.content h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.content :is(p, li) {
  color: #30475d;
}

.content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 35, 55, 0.08);
}

@media (max-width: 900px) {
  .nav {
    position: relative;
    align-items: center;
    padding: 10px 0;
    min-height: 70px;
  }

  .brand {
    gap: 9px;
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    width: 58px;
    height: 46px;
  }

  .brand-mark img {
    width: 45px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy span {
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 54px rgba(16, 32, 51, 0.18);
  }

  .mobile-menu-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 7px;
    color: #284057;
    text-decoration: none;
    font-weight: 850;
  }

  .mobile-menu-panel a:hover {
    background: var(--soft);
    color: var(--blue);
  }

  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu-actions a {
    justify-content: center;
    background: #eef6ff;
    color: var(--blue);
    text-align: center;
  }

  .hero-inner,
  .split,
  .about-panel,
  .about-page-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 62px 0 42px;
  }

  .service-grid,
  .project-grid,
  .process,
  .article-grid,
  .product-grid,
  .solution-grid,
  .client-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .nav {
    position: relative;
    align-items: center;
    padding: 10px 0;
    min-height: 70px;
  }

  .brand {
    gap: 9px;
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    width: 58px;
    height: 46px;
  }

  .brand-mark img {
    width: 45px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy span {
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    gap: 5px;
    place-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 54px rgba(16, 32, 51, 0.18);
  }

  .mobile-menu-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 7px;
    color: #284057;
    text-decoration: none;
    font-weight: 850;
  }

  .mobile-menu-panel a:hover {
    background: var(--soft);
    color: var(--blue);
  }

  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu-actions a {
    justify-content: center;
    background: #eef6ff;
    color: var(--blue);
    text-align: center;
  }

  .hero {
    background-position: center;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .signal-panel,
  .contact-band {
    padding: 18px;
  }

  .floating-chat {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 8px 13px 8px 8px;
    font-size: 0.88rem;
  }

  .floating-chat-icon {
    width: 32px;
    height: 32px;
  }

  .section {
    padding: 54px 0;
  }

  .service-grid,
  .project-grid,
  .process,
  .article-grid,
  .product-grid,
  .about-service-list,
  .solution-grid,
  .client-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

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

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

  .product-card {
    grid-template-rows: 120px 1fr;
    min-height: auto;
  }

  .product-logo {
    min-height: 120px;
    padding: 18px;
  }
}
