:root {
  --legir-blue: #00a1d9;
  --legir-blue-2: #0298cd;
  --legir-navy: #003056;
  --legir-teal: #32c8c7;
  --legir-yellow: #ffdb3e;
  --legir-red: #df2d2d;
  --ink: #0b1117;
  --steel: #17212b;
  --muted: #647282;
  --line: #dfe6ec;
  --panel: #ffffff;
  --panel-soft: #f5f8fb;
  --shadow: 0 24px 70px rgba(0, 48, 86, 0.18);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--legir-navy);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 48, 86, 0.12);
  backdrop-filter: blur(18px);
}

.topbar {
  background: var(--legir-navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
}

.topbar__inner {
  width: min(calc(100% - 40px), var(--container));
  min-height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a {
  color: #ffffff;
}

.topbar span:nth-child(2) {
  margin-right: auto;
}

.nav {
  width: min(calc(100% - 40px), var(--container));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 128px;
  padding: 8px 0;
}

.brand img {
  width: 128px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #23313e;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--legir-blue), var(--legir-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

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

.nav-cta {
  padding: 12px 18px;
  color: #ffffff;
  background: var(--legir-navy);
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 48, 86, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--legir-navy);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 18%, rgba(0, 161, 217, 0.22), transparent 28%),
    linear-gradient(135deg, #07131f 0%, #003056 48%, #07131f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 219, 62, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--legir-blue), var(--legir-yellow), var(--legir-red));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__shell {
  position: relative;
  width: min(calc(100% - 40px), var(--container));
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 74px;
}

.hero__content,
.hero__visual,
.section-copy,
.section-head,
.contact__copy,
.contact-form {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--legir-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #aeeeff;
}

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

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 4.6rem;
  font-weight: 900;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 24px;
  font-size: 3rem;
  font-weight: 900;
}

h3 {
  font-size: 1.24rem;
}

.hero__lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn span {
  line-height: 1;
}

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

.btn--primary {
  color: #06111b;
  background: linear-gradient(135deg, var(--legir-yellow), #ffffff 48%, var(--legir-teal));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.btn--ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__trust span {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero__visual {
  position: relative;
  min-height: 560px;
  transform-style: preserve-3d;
  perspective: 1100px;
}

.operation-card {
  position: absolute;
  inset: 54px 42px 54px 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #07131f;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.45);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.operation-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.operation-card__media,
.operation-card__media img {
  width: 100%;
  height: 100%;
}

.operation-card__media img {
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.operation-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(0, 48, 86, 0.9));
}

.operation-card__overlay {
  position: absolute;
  left: 34px;
  top: 34px;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 68px);
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 48, 86, 0.72);
  backdrop-filter: blur(14px);
}

.operation-card__overlay span,
.hero-tile span,
.project-card span,
.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--legir-yellow);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-card__overlay strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  white-space: nowrap;
}

.hero-tile {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  width: 220px;
  min-height: 152px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.hero-tile img {
  width: 100%;
  height: 102px;
  object-fit: cover;
}

.hero-tile span {
  padding: 12px 14px 14px;
  margin: 0;
  color: #ffffff;
  line-height: 1.25;
}

.hero-tile--top {
  top: 18px;
  right: 0;
  transform: translateZ(80px) rotateY(-3deg);
}

.hero-tile--bottom {
  left: 0;
  bottom: 16px;
  transform: translateZ(60px) rotateY(5deg);
}

.hero-gauge {
  position: absolute;
  right: 28px;
  bottom: 54px;
  z-index: 5;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 219, 62, 0.32) 0 4px, transparent 5px),
    conic-gradient(from 260deg, var(--legir-blue), var(--legir-teal), var(--legir-yellow), transparent 74%);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  animation: spinSoft 9s linear infinite;
}

.hero-gauge span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.hero-gauge span:nth-child(2) {
  inset: 38px;
}

.hero-gauge span:nth-child(3) {
  inset: 57px;
  background: #ffffff;
}

@keyframes spinSoft {
  to {
    transform: rotate(360deg);
  }
}

.signal-strip {
  width: min(calc(100% - 40px), var(--container));
  margin: -48px auto 0;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.signal-strip div {
  padding: 24px 28px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  display: block;
  color: var(--legir-navy);
  font-size: 1.25rem;
  line-height: 1.1;
}

.signal-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 116px 0;
}

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

.section-copy p,
.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  display: grid;
  grid-template-columns: 0.92fr 0.78fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 46px;
}

.section-head h2 {
  margin-bottom: 0;
}

.about {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 0.75fr;
  gap: 72px;
  align-items: center;
}

.about-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.about-panel__image {
  position: relative;
}

.about-panel__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 48, 86, 0.38));
}

.about-panel__image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.about-panel__body {
  padding: 30px;
}

.about-panel__body h3 {
  color: var(--legir-navy);
  font-size: 1.6rem;
}

.about-panel__body p {
  color: var(--muted);
}

.about-panel ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.about-panel li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
  color: #24313d;
  font-weight: 700;
}

.about-panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--legir-blue);
  border-radius: 50%;
  background: #ffffff;
}

.services {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 48, 86, 0.98), rgba(10, 18, 28, 0.98)),
    radial-gradient(circle at 12% 18%, rgba(255, 219, 62, 0.16), transparent 26%);
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

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

.service-card {
  min-height: 254px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 219, 62, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.service-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  color: var(--legir-navy);
  background: linear-gradient(135deg, var(--legir-yellow), #ffffff);
  border-radius: var(--radius);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  color: #ffffff;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
}

.stats-section {
  padding: 34px 0;
  background: linear-gradient(90deg, var(--legir-blue), var(--legir-teal) 46%, var(--legir-yellow));
}

.stats-grid {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--legir-navy);
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
}

.stat-card p {
  margin: 0;
  color: #10212f;
  font-weight: 800;
}

.certifications {
  background: #ffffff;
}

.cert__grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.cert-plate {
  position: relative;
  min-height: 210px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 161, 217, 0.13), transparent 48%),
    #ffffff;
  box-shadow: 0 20px 55px rgba(0, 48, 86, 0.1);
  transform-style: preserve-3d;
}

.cert-plate::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border: 18px solid rgba(0, 161, 217, 0.13);
  border-radius: 50%;
}

.cert-plate span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--legir-blue);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cert-plate h3 {
  margin-bottom: 8px;
  color: var(--legir-navy);
  font-size: 2rem;
}

.cert-plate p {
  color: var(--muted);
  font-weight: 700;
}

.projects {
  background: var(--panel-soft);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 260px;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b1117;
  box-shadow: 0 20px 50px rgba(0, 48, 86, 0.13);
}

.project-card--large {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.07);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 25, 45, 0.88));
}

.project-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
}

.project-card h3 {
  margin-bottom: 0;
  max-width: 520px;
}

.testimonials {
  background: #ffffff;
}

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

.testimonial-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 18px 45px rgba(0, 48, 86, 0.08);
}

.testimonial-card p {
  color: #23313e;
  font-size: 1.05rem;
}

.testimonial-card span {
  color: var(--legir-blue);
  font-weight: 900;
}

.contact {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #07131f;
}

.contact__media {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.1);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(50, 200, 199, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(0, 48, 86, 0.94), rgba(7, 19, 31, 0.98));
}

.contact__content,
.map-wrap {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.contact__content {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 50px;
  padding: 112px 0 34px;
}

.contact__copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.04rem;
}

.contact-list {
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.contact-list li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--legir-yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
  color-scheme: dark;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--legir-yellow);
  box-shadow: 0 0 0 3px rgba(255, 219, 62, 0.14);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: #d8f9ff;
  font-weight: 700;
}

.map-wrap {
  padding: 0 0 112px;
}

.map-wrap iframe {
  width: 100%;
  height: 430px;
  border: 0;
  border-radius: var(--radius);
  filter: saturate(0.9) contrast(1.05);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: #06111b;
}

.footer__inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.7fr 0.7fr;
  gap: 34px;
}

.footer__brand img {
  width: 128px;
  padding: 8px;
  margin-bottom: 18px;
  background: #ffffff;
  border-radius: var(--radius);
}

.footer h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.footer p {
  margin-bottom: 12px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.84);
}

.footer a:hover {
  color: var(--legir-yellow);
}

.footer__bottom {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.footer__bottom a {
  margin: 0;
  color: #ffffff;
}

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

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

.tilt-card {
  transition: transform 0.2s ease;
  will-change: transform;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero__shell,
  .about__grid,
  .cert__grid,
  .contact__content {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 520px;
  }

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

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .nav {
    width: min(calc(100vw - 28px), 390px);
    margin-left: 14px;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    position: fixed;
    top: 13px;
    left: calc(100dvw - 58px);
    z-index: 130;
  }

  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 80px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid rgba(0, 48, 86, 0.14);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .hero__shell {
    min-height: auto;
  }

  .hero__shell {
    padding: 66px 0 88px;
  }

  .hero__content {
    max-width: 390px;
  }

  .hero__lead,
  .hero__actions,
  .hero__trust {
    max-width: 390px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero__visual {
    min-height: 470px;
  }

  .operation-card {
    inset: 46px 24px 52px 0;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

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

  .section {
    padding: 82px 0;
  }

  .project-gallery,
  .testimonial-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-auto-rows: 300px;
  }

  .project-card--large {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nav,
  .section__inner,
  .hero__shell,
  .stats-grid,
  .contact__content,
  .map-wrap,
  .footer__inner,
  .footer__bottom {
    width: calc(100vw - 28px);
    max-width: var(--container);
  }

  h1 {
    font-size: 2rem;
    overflow-wrap: anywhere;
    max-width: calc(100vw - 28px);
  }

  h2 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1.04rem;
    max-width: calc(100vw - 28px);
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__visual {
    min-height: 500px;
  }

  .operation-card {
    inset: 108px 0 42px 0;
    transform: none;
  }

  .operation-card__overlay {
    left: 22px;
    top: auto;
    bottom: 24px;
    max-width: calc(100% - 44px);
  }

  .hero-tile {
    width: calc(50% - 6px);
  }

  .hero-tile--top {
    top: 0;
    right: 0;
  }

  .hero-tile--bottom {
    top: 0;
    bottom: auto;
    left: 0;
  }

  .hero-gauge {
    right: 18px;
    bottom: 54px;
    width: 96px;
    height: 96px;
  }

  .service-grid,
  .stats-grid,
  .cert-plates,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card,
  .stat-card,
  .cert-plate,
  .testimonial-card {
    padding: 24px;
  }

  .contact__content {
    padding-top: 82px;
  }

  .map-wrap iframe {
    height: 340px;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
