:root {
  --ink: #073949;
  --text: #27364b;
  --muted: #65758b;
  --line: #dbe3ec;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --brand-soft: #e7f1f4;
  --brand: #044f67;
  --brand-dark: #03394a;
  --accent: #7fb7c8;
  --shadow: 0 22px 60px rgba(20, 33, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background: var(--surface);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(219, 227, 236, 0.78);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(20, 33, 61, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.site-nav .nav-contact {
  color: #ffffff;
  background: var(--brand);
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact:focus-visible {
  color: #ffffff;
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(244, 247, 251, 0.96), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 88% 16%, rgba(4, 79, 103, 0.14), transparent 28%);
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.55rem, 5.8vw, 5.35rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: 0;
}

p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-lead {
  max-width: 620px;
  color: #33445c;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--brand);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: cover;
  object-position: left top;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
  max-width: 1120px;
}

.intro-grid p {
  margin-bottom: 0;
  color: #3a4b62;
  font-size: 1.12rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.metrics article {
  padding: 30px;
  background: #ffffff;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.28rem;
}

.metrics span {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 6vw, 80px);
  background: var(--soft);
}

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

.module-list article,
.tech-points article {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.module-list p,
.tech-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.technology {
  background: #ffffff;
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 28px;
  align-items: stretch;
}

.tech-layout > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: var(--soft);
}

.tech-points {
  display: grid;
  gap: 16px;
}

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

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 18px;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.carousel-slide.is-clone {
  pointer-events: none;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

figure img,
.image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.image-button:hover img,
.image-button:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
}

figcaption {
  padding: 14px 16px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8c4d2;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--brand);
  transform: scale(1.35);
}

.carousel-dot.is-next {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand);
  opacity: 0.95;
}

.carousel-dot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 34px;
  align-items: center;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--ink), var(--brand-dark));
}

.contact h2,
.contact p,
.contact .eyebrow {
  color: #ffffff;
}

.contact p {
  max-width: 720px;
  margin-bottom: 0;
  opacity: 0.88;
}

address {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.1);
}

address a {
  font-size: 1.35rem;
  font-weight: 800;
}

address span {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.94rem;
  background: #ffffff;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  background: #ffffff;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(20, 33, 61, 0.88);
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.image-modal p {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 980px) {
  .hero,
  .split,
  .tech-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
    max-height: none;
  }

  .carousel-slide {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(20, 33, 61, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .intro-grid,
  .metrics,
  .module-list {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin: 0 20px;
  }

  .carousel-slide {
    flex-basis: 100%;
  }

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

@media (max-width: 460px) {
  .brand span {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .tech-layout > img {
    min-height: 260px;
  }
}
