:root {
  --blue-950: #041d3d;
  --blue-900: #063466;
  --blue-800: #075096;
  --blue-700: #086cc8;
  --blue-600: #0b82e6;
  --blue-100: #e9f5ff;
  --cyan-400: #3bd1ff;
  --green-500: #20b486;
  --gold-500: #d4a943;
  --ink: #122236;
  --muted: #60718a;
  --line: #dbe7f3;
  --panel: #ffffff;
  --panel-soft: #f5f9fd;
  --shadow: 0 18px 45px rgba(4, 29, 61, 0.12);
  --radius: 8px;
  --header-height: 78px;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Hiragino Sans GB",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

:focus-visible {
  outline: 3px solid rgba(59, 209, 255, 0.72);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 29, 61, 0.94), rgba(4, 29, 61, 0.62));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    height 0.25s ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue-950);
  box-shadow: 0 12px 34px rgba(4, 29, 61, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 260px;
  gap: 12px;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(11, 130, 230, 0.26);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 4px;
  color: currentColor;
  opacity: 0.76;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(10px, 1.4vw, 22px);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  color: currentColor;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(11, 130, 230, 0.22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  color: #fff;
  background: var(--blue-950);
}

.hero-carousel,
.hero-slide {
  min-height: min(760px, 92vh);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(4, 29, 61, 0.88), rgba(4, 29, 61, 0.46) 45%, rgba(4, 29, 61, 0.08)),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.8s ease,
    transform 1.2s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 70%, rgba(59, 209, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(4, 29, 61, 0.08), rgba(4, 29, 61, 0.36));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: var(--header-height);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .section-kicker {
  color: #9be8ff;
}

.section-kicker::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1,
.hero h2 {
  width: min(880px, 100%);
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h2 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.hero-slogan {
  margin: 24px 0 0;
  color: #c6f3ff;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions,
.cta-inner .btn {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  gap: 9px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 16px 36px rgba(11, 130, 230, 0.26);
}

.btn-ghost {
  margin-left: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--blue-900);
  background: #fff;
  box-shadow: 0 16px 34px rgba(4, 29, 61, 0.18);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: 92px;
  z-index: 2;
  width: min(360px, calc(100% - 40px));
  padding: 22px;
  background: rgba(4, 29, 61, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.hero-panel span {
  color: #9be8ff;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.hero-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.carousel-controls {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: 30px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.carousel-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  cursor: pointer;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: #fff;
}

.section {
  position: relative;
  padding: 92px 0;
}

.page-main > .section:first-child {
  padding-top: calc(var(--header-height) + 82px);
}

.page-main > .section:first-child::before {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--header-height) + 180px);
  content: "";
  background:
    radial-gradient(circle at 18% 30%, rgba(59, 209, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(233, 245, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.page-main > .section:first-child > .container {
  position: relative;
}

.section.tinted {
  background:
    linear-gradient(180deg, #f7fbff, #fff),
    radial-gradient(circle at 10% 10%, rgba(11, 130, 230, 0.08), transparent 38%);
}

.section-head {
  width: min(820px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.cta-inner h2,
.contact-info h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-head p,
.contact-info > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.stat-card {
  min-height: 142px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(4, 29, 61, 0.06);
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  color: var(--blue-900);
  font-size: 28px;
  line-height: 1.2;
}

.stat-card em {
  font-style: normal;
}

.stat-wide strong {
  font-size: 22px;
}

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

.service-card,
.about-panel,
.solution-card,
.value-card,
.cert-card,
.business-block,
.contact-form,
.contact-info,
.honor-column,
.ip-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(4, 29, 61, 0.07);
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card::after {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  content: "";
  background: radial-gradient(circle, rgba(59, 209, 255, 0.2), transparent 68%);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 130, 230, 0.34);
  box-shadow: var(--shadow);
}

.service-card > svg,
.about-panel > svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 8px;
}

.service-card h3,
.about-panel h3,
.solution-card h3,
.business-block h3 {
  margin: 18px 0 10px;
  color: var(--blue-950);
  font-size: 21px;
  line-height: 1.3;
}

.service-card p,
.about-panel p,
.solution-card p,
.business-block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue-700);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.advantages {
  background:
    linear-gradient(120deg, rgba(4, 29, 61, 0.04), transparent 35%),
    #fff;
}

.advantage-list {
  display: grid;
  gap: 14px;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 16px 18px;
  color: var(--blue-950);
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(4, 29, 61, 0.06);
}

.advantage-item svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--blue-700);
}

.cta-band {
  padding: 74px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(4, 29, 61, 0.94), rgba(8, 108, 200, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(59, 209, 255, 0.34), transparent 34%);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.cta-inner h2 {
  color: #fff;
}

.cta-inner p {
  max-width: 840px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.about-panel {
  padding: 28px;
}

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

.cert-card {
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  background: var(--panel-soft);
}

.cert-card div {
  padding: 18px;
}

.cert-card span {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.cert-card h3 {
  margin: 8px 0 0;
  color: var(--blue-950);
  font-size: 18px;
  line-height: 1.35;
}

.honor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
}

.honor-column {
  padding: 26px;
}

.honor-column h3,
.ip-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-950);
  font-size: 22px;
}

.honor-column h3 svg {
  color: var(--gold-500);
}

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

.mini-cert-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-cert-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.mini-cert-grid figcaption {
  padding: 10px;
  color: var(--blue-950);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.badge-grid span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--blue-950);
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #f6fbff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.honor-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 14px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.honor-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ip-block {
  padding: 28px;
}

.ip-block + .ip-block {
  margin-top: 22px;
}

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

.patent-grid article,
.software-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.patent-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.patent-grid strong {
  display: block;
  padding: 16px;
  color: var(--blue-950);
  font-size: 18px;
}

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

.software-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.software-grid span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  color: var(--blue-950);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.cert-card img,
.mini-cert-grid img,
.honor-strip img,
.patent-grid img,
.software-grid img {
  cursor: zoom-in;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 29, 61, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer__dialog {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.image-viewer__image {
  width: 100%;
  max-height: calc(100vh - 128px);
  object-fit: contain;
  background: #f5f9fd;
}

.image-viewer__caption {
  margin: 0;
  padding: 14px 18px;
  color: var(--blue-950);
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.image-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(4, 29, 61, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
}

.image-viewer__close svg {
  width: 18px;
  height: 18px;
}

.business-detail {
  background:
    linear-gradient(180deg, #fff, #f7fbff 62%, #fff),
    linear-gradient(90deg, rgba(11, 130, 230, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 130, 230, 0.08) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.business-block {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
}

.business-block + .business-block {
  margin-top: 18px;
}

.block-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-400));
  border-radius: 8px;
}

.block-icon svg {
  width: 32px;
  height: 32px;
}

.block-content > span {
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
}

.block-content h3 {
  margin-top: 4px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
  background: var(--blue-100);
  border: 1px solid rgba(11, 130, 230, 0.18);
  border-radius: 8px;
}

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

.solution-card {
  padding: 24px;
}

.solution-card p + p {
  margin-top: 12px;
}

.solution-card strong {
  color: var(--blue-900);
}

.solution-wide {
  grid-column: span 3;
}

.future {
  overflow: hidden;
}

.future::before {
  position: absolute;
  inset: 10% auto auto 0;
  width: 42%;
  height: 80%;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 130, 230, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 130, 230, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.32;
  pointer-events: none;
}

.values-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  display: grid;
  min-height: 138px;
  place-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 900;
}

.value-card svg {
  width: 34px;
  height: 34px;
  color: var(--blue-700);
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(4, 29, 61, 0.94), rgba(8, 108, 200, 0.92)),
    url("../images/hero/hero-smart-city.jpg") center/cover;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.contact-info h2 {
  color: var(--blue-950);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-list a,
.contact-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--blue-950);
  font-weight: 800;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--blue-700);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(11, 130, 230, 0.1);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--green-500);
  font-weight: 800;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-950);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-header {
    gap: 14px;
  }

  .brand {
    min-width: 230px;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }

  .business-card-grid,
  .software-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    color: var(--blue-950);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 38px rgba(4, 29, 61, 0.16);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .hero-carousel,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    background-image:
      linear-gradient(90deg, rgba(4, 29, 61, 0.9), rgba(4, 29, 61, 0.56)),
      var(--hero-bg);
  }

  .hero-inner {
    padding-top: 110px;
  }

  .hero-panel {
    right: 20px;
    bottom: 82px;
    left: 20px;
    width: auto;
  }

  .carousel-controls {
    right: auto;
    bottom: 28px;
    left: 20px;
  }

  .section {
    padding: 72px 0;
  }

  .page-main > .section:first-child {
    padding-top: calc(var(--header-height) + 54px);
  }

  .split,
  .contact-grid,
  .honor-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .business-card-grid,
  .cert-grid,
  .about-grid,
  .solution-grid,
  .software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-wide {
    grid-column: span 2;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-text strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .hero-carousel,
  .hero-slide {
    min-height: 760px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    width: min(320px, 100%);
  }

  .btn-ghost {
    margin-left: 0;
  }

  .hero-panel {
    padding: 18px;
  }

  .stats-grid,
  .business-card-grid,
  .cert-grid,
  .about-grid,
  .solution-grid,
  .software-grid,
  .patent-grid,
  .mini-cert-grid,
  .values-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .solution-wide {
    grid-column: auto;
  }

  .business-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .block-icon {
    width: 58px;
    height: 58px;
  }

  .honor-column,
  .ip-block,
  .contact-info,
  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
