:root {
  --ink: #062c68;
  --muted: #5d708f;
  --line: #d7e4f5;
  --paper: #f4f8fd;
  --white: #ffffff;
  --brand: #0b8fe8;
  --brand-dark: #063b83;
  --accent: #16b7f2;
  --shadow: 0 18px 45px rgba(6, 44, 104, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.topbar-contact,
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.social-links {
  justify-content: flex-end;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--brand-dark);
  background: rgba(11, 143, 232, 0.08);
  border: 1px solid rgba(11, 143, 232, 0.18);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-links a:hover,
.topbar a:hover {
  color: var(--brand);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
  background: var(--brand);
  transform: translateY(-1px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: min(238px, 48vw);
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #26383f;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 26px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 3px;
  background: var(--brand);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links .active-link {
  color: var(--brand);
}

.nav-links .active-link::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 116px);
  padding: 96px 24px 28px;
  color: var(--white);
  overflow: hidden;
  background: #031c47;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 28, 71, 0.9), rgba(5, 61, 131, 0.62), rgba(11, 143, 232, 0.08));
  pointer-events: none;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 4s ease;
}

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

.page-hero {
  display: grid;
  align-items: end;
  min-height: 430px;
  padding: 96px 24px 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 28, 71, 0.92), rgba(5, 61, 131, 0.68), rgba(11, 143, 232, 0.12)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.page-hero-content {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 850px;
}

.hero-content,
.hero-metrics,
.section-heading,
.intro-grid,
.service-grid,
.product-table,
.timeline,
.gallery,
.testimonial,
.quote-section,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-slider-controls {
  position: absolute;
  top: 50%;
  right: 24px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(3, 18, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  pointer-events: auto;
}

.hero-slider-btn:hover,
.hero-slider-btn:focus-visible {
  background: var(--brand);
}

.hero-slider-dots {
  position: absolute;
  right: 0;
  bottom: 132px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.hero-slider-dots button.active {
  width: 28px;
  background: var(--accent);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0aa6f2, #052f6a);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong,
.stats-panel strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.hero-metrics span,
.stats-panel span {
  color: var(--muted);
  font-weight: 700;
}

.section-pad {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 820px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 34px;
  align-items: end;
}

.section-heading.split > p {
  color: var(--muted);
}

.intro-grid,
.service-grid,
.timeline,
.gallery {
  display: grid;
  gap: 24px;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.intro-grid article,
.quote-form,
.quote-panel,
.stats-panel {
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-grid article {
  padding: 30px;
  border-top: 4px solid var(--brand);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 900;
}

.intro-grid p,
.service-card p,
.timeline p,
.quote-copy p,
.footer p {
  color: var(--muted);
}

.services,
.process,
.quote-section {
  background: var(--white);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card img {
  aspect-ratio: 4 / 3;
}

.service-card div {
  padding: 24px;
}

.product-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--brand-dark));
  font-weight: 800;
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

.timeline div {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-buttons button {
  min-height: 40px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons .active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.gallery {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-page-grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  cursor: zoom-in;
}

.gallery figure img {
  transition: transform 0.25s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figure.is-hidden {
  display: none;
}

.gallery figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(19, 33, 40, 0.84);
  border-radius: 6px;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 18, 42, 0.86);
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-dialog img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: #03122a;
}

.lightbox-caption {
  margin: 0;
  padding: 16px 22px;
  color: var(--ink);
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(3, 18, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--brand);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 62px;
  color: var(--white);
  background: rgba(3, 18, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  cursor: pointer;
  font-size: 44px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--brand);
}

.testimonial {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
}

.quote-panel,
.stats-panel {
  padding: 38px;
}

.quote-mark {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 80px;
  line-height: 0.75;
}

blockquote {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.stats-panel {
  display: grid;
  gap: 28px;
}

.quote-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 30px;
  border-radius: 8px;
}

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

.quote-form label:nth-child(4),
.quote-form button,
.form-status {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
}

.quote-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
  padding: 58px 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer,
body::after {
  background: #041f4d;
}

.footer h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 18px;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 10px;
}

.contact-details p {
  margin-bottom: 16px;
}

.contact-details strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand .brand-logo {
  width: min(260px, 100%);
  height: 64px;
  padding: 4px 8px;
  background: var(--white);
  border-radius: 6px;
}

@media (max-width: 980px) {
  .topbar {
    justify-content: center;
    gap: 8px 18px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .topbar-contact {
    display: none;
  }

  .social-links {
    justify-content: center;
    gap: 14px;
  }

  .navbar {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .hero {
    min-height: calc(100vh - 70px);
  }

  .page-hero {
    min-height: 380px;
  }

  .intro-grid,
  .service-grid,
  .timeline,
  .gallery,
  .testimonial,
  .quote-section,
  .footer,
  .section-heading.split {
    grid-template-columns: 1fr 1fr;
  }

  .gallery figure {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .hero-content,
  .hero-metrics,
  .section-heading,
  .intro-grid,
  .service-grid,
  .product-table,
  .timeline,
  .gallery,
  .testimonial,
  .quote-section,
  .footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding: 76px 16px 20px;
  }

  .hero-slider-controls {
    right: 16px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero-slider-dots {
    bottom: 278px;
  }

  .page-hero {
    min-height: 340px;
    padding: 70px 16px 48px;
  }

  .page-hero-content {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    margin-bottom: 42px;
  }

  .hero-metrics,
  .intro-grid,
  .service-grid,
  .timeline,
  .gallery,
  .testimonial,
  .quote-section,
  .footer,
  .section-heading.split,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .section-pad {
    padding: 64px 0;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .quote-panel,
  .stats-panel,
  .quote-form {
    padding: 24px;
  }
}
