:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f2742;
  --muted: #5b6f84;
  --brand: #0b6fb8;
  --brand-2: #0a4e85;
  --line: #e2e8f0;
  --ok: #1f9d55;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(2, 20, 44, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 2rem;
}

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

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

.brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--brand-2);
}

.brand span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-2);
  background: #e9f4ff;
}

.cta {
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  background: var(--brand-2);
}

.menu-btn {
  display: none;
}

.hero {
  background: linear-gradient(rgba(9, 31, 56, 0.6), rgba(9, 31, 56, 0.78)),
    radial-gradient(circle at right, #3f8fcf 0%, #174269 40%, #0a2339 100%);
  color: #fff;
  padding: 5.3rem 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.2rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.1;
}

.hero p {
  width: min(100%, 680px);
  font-size: 1.06rem;
  opacity: 0.95;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 14px;
  background: #04192c;
}

.hero-video-card {
  background: rgba(5, 24, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0.7rem;
}

.hero-animate {
  opacity: 0;
  transform: translateY(26px);
  animation: heroFade 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.5s;
}

.delay-4 {
  animation-delay: 0.7s;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.24rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2rem;
}

.glass-kpis {
  margin-top: -3.2rem;
  position: relative;
  z-index: 2;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.kpi h3 {
  margin: 0;
  color: var(--brand-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.panel-dark {
  background: linear-gradient(180deg, #0f3356, #0a2741);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-dark .section-sub,
.panel-dark .list {
  color: #dce8f5;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.image-stack {
  display: grid;
  gap: 1rem;
}

.image-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 220px;
  object-fit: cover;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.section-soft {
  background: linear-gradient(180deg, #f8fbff, #f2f8ff);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-grid img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 28px rgba(2, 20, 44, 0.15);
}

.cta-band {
  background: linear-gradient(100deg, #0b355a, #0a4b7e 55%, #0a5b98);
  color: #fff;
}

.cta-band-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band .section-sub {
  color: #d9e8f7;
  margin-bottom: 0;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eaf6ef;
  color: var(--ok);
  font-weight: 700;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #dceaf8, #b6d0eb);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cdd7e3;
  border-radius: 10px;
  padding: 0.74rem 0.8rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--line);
  background: #f1f5f9;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  flex-wrap: wrap;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.center {
  text-align: center;
}

.classic-home .section {
  padding: 3.4rem 0;
}

.hero-video-top {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #0a2339;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 20, 35, 0.35), rgba(5, 20, 35, 0.7));
}

.classic-hero-text {
  position: absolute;
  z-index: 2;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
}

.classic-hero-text h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 5.4vw, 3.5rem);
  letter-spacing: 1px;
}

.classic-hero-text p {
  margin: 0;
  font-size: 1rem;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2rem;
  align-items: start;
}

.about-block img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.service-tab {
  text-align: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid #c5d3e2;
  color: var(--brand-2);
  border-radius: 8px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.service-tab.is-active {
  background: #0a4e85;
  color: #fff;
  border-color: #0a4e85;
}

.service-tabs-static span {
  text-align: center;
  padding: 0.5rem 0.5rem;
  border: 1px solid #c5d3e2;
  color: #2d4f6e;
  border-radius: 3px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.services-like-reference {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.9rem;
}

.service-ref-item {
  text-align: center;
}

.service-ref-item img {
  width: 122px;
  height: 122px;
  border-radius: 999px;
  margin: 0 auto 0.55rem;
  object-fit: cover;
  border: 3px solid #e6edf4;
}

.service-ref-item h3 {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.35px;
  color: #233f5a;
}

.service-ref-note {
  max-width: 840px;
  margin: 1rem auto 0;
  font-size: 1.02rem;
}

.service-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.service-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.classic-note {
  margin: 1.2rem 0 0;
  font-size: 1.1rem;
  text-align: center;
  color: var(--ink);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}

.client-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 68px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #6b7789;
}

.classic-footer {
  background: #f9fbfd;
}

.classic-footer-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding: 1.2rem 0 0.4rem;
}

.classic-footer h4 {
  margin: 0 0 0.35rem;
}

.foot-muted {
  margin: 0 0 0.32rem;
  color: var(--muted);
}

/* Classic reference-like feel overrides */
.classic-home {
  background: #fff;
}

.section-plain {
  background: #fff;
  border-top: 1px solid #edf1f5;
}

.topbar {
  background: #fff;
  backdrop-filter: none;
}

.hero-video-top {
  min-height: 58vh;
}

.classic-hero-text h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 1.4px;
}

.classic-hero-text p {
  font-size: 0.9rem;
  letter-spacing: 0.6px;
}

.about-block img,
.service-panel img,
.photo-grid img,
.utility-grid img {
  border-radius: 4px;
  box-shadow: none;
}

.panel,
.card,
.client-logo {
  border-radius: 4px;
  box-shadow: none;
}

.service-tabs {
  margin-bottom: 0.8rem;
}

.service-tab {
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

.service-panel .panel {
  display: grid;
  align-content: center;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.utility-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 1px solid #e3e8ef;
}

.photo-grid img {
  height: 185px;
  border-radius: 4px;
}

.photo-grid img:hover {
  transform: none;
  box-shadow: none;
}

.clients-band {
  background: #fafbfc;
}

.client-logo {
  min-height: 58px;
  background: #fff;
}

.contact-strip .panel {
  background: #fff;
}

.classic-footer {
  border-top: 1px solid #dbe3ec;
  background: #f7f9fc;
}

@media (max-width: 960px) {
  .kpis,
  .cards,
  .mini-gallery,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .contact,
  .split-hero,
  .hero-layout,
  .about-block,
  .services-like-reference,
  .service-panel,
  .classic-footer-wrap {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0.46rem 0.75rem;
    font-weight: 700;
    color: var(--brand-2);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .kpis,
  .cards,
  .mini-gallery,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    grid-template-columns: 1fr;
  }

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

  .photo-grid img {
    height: 220px;
  }

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