:root {
  --ink: #17201c;
  --muted: #5c6861;
  --line: #d9e0dc;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --green: #315f3d;
  --green-dark: #1e3c28;
  --gold: #c07b2d;
  --shadow: 0 18px 48px rgba(23, 32, 28, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 245, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow .24s ease, background-color .24s ease, padding .24s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 245, .78);
  box-shadow: 0 12px 34px rgba(23, 32, 28, .12);
}

.brand {
  text-decoration: none;
}

.brand img {
  width: 100px;
  height: auto;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  image-rendering: auto;
}

.brand-combo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.brand-combo img {
  width: 100px;
  height: 80px;
  padding: 0;
  flex: 0 0 100px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.brand-combo span {
  display: grid;
  gap: 1px;
  color: var(--green);
  font-size: clamp(15px, 1.55vw, 19px);
  line-height: .96;
}

.brand-combo strong {
  display: block;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

.main-nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
}

.main-nav a:hover {
  background: #edf2ee;
}

.main-nav a[aria-current="page"] {
  color: var(--green);
  background: #edf2ee;
}

.main-nav .nav-cta,
.button.primary {
  color: #fff;
  background: var(--green);
}

.main-nav .nav-cta:hover,
.button.primary:hover {
  background: var(--green-dark);
}

.hero {
  --hero-photo: url("imagenes/portada.png");
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 34px;
  padding: 90px clamp(18px, 5vw, 64px) 44px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .88), rgba(23, 32, 28, .42)),
    var(--hero-photo) center / cover;
  transition: background-image .6s ease;
}

.page-hero {
  padding: 92px clamp(18px, 5vw, 64px) 62px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .9), rgba(23, 32, 28, .52)),
    url("obras/obra10.jpg") center / cover;
}

.quality-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .9), rgba(23, 32, 28, .52)),
    url("imagenes/capitalhumano.jpg") center / cover;
}

.machinery-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .9), rgba(23, 32, 28, .48)),
    url("maquinaria/maquinaria_cubagrua.jpg") center / cover;
}

.works-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .9), rgba(23, 32, 28, .36)),
    url("imagenes/WhatsApp Image 2026-05-18 at 10.17.38.jpeg") center / cover;
}

.clients-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .9), rgba(23, 32, 28, .55)),
    url("obras/obra3.jpg") center / cover;
}

.certificates-hero {
  background:
    linear-gradient(90deg, rgba(23, 32, 28, .9), rgba(23, 32, 28, .58)),
    url("obras/obra30.jpg") center / cover;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 19px;
}

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

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

.hero .eyebrow {
  color: #f0b96b;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: .98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 660px;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}

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

.button {
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 32, 28, .12);
}

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

.button.secondary:hover {
  background: #f1f4f2;
}

.hero-card {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(23, 32, 28, .18);
}

.hero-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card img {
  width: 100%;
  border-radius: 6px;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

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

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

.service-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 28, .06);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.service-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(49, 95, 61, .35);
  box-shadow: 0 18px 42px rgba(23, 32, 28, .11);
}

.service-certification {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 28, .06);
}

.service-certification h3 {
  margin-bottom: 6px;
}

.service-certification p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.service-grid p,
.split p,
.contact-band p {
  color: var(--muted);
}

.policy-text {
  max-width: 980px;
  margin: 0 auto;
}

.policy-text .section-head {
  max-width: 760px;
}

.policy-text p,
.policy-text li {
  color: var(--muted);
}

.policy-text ul {
  margin: 22px 0;
  padding-left: 22px;
}

.policy-text li {
  margin: 0 0 14px;
}

.policy-date {
  font-weight: 700;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  gap: 36px;
  align-items: center;
  background: #eef2ec;
}

.split img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split img.certificate-preview {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

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

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.image-grid img:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow);
  filter: saturate(1.04);
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .55fr);
  gap: 22px;
  align-items: stretch;
}

.showcase-stage {
  min-height: 100%;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #101612;
  box-shadow: var(--shadow);
}

.showcase-stage img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
  transition: opacity .22s ease, transform .45s ease;
}

.showcase-stage.is-changing img {
  opacity: .28;
  transform: scale(1.03);
}

.showcase-stage figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 22, 18, .78);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.showcase-controls {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.showcase-controls button {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 124px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 800 16px/1.2 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.showcase-controls button:hover,
.showcase-controls button.is-active {
  transform: translateY(-2px);
  border-color: rgba(49, 95, 61, .55);
  box-shadow: 0 12px 28px rgba(23, 32, 28, .1);
}

.showcase-controls img {
  width: 104px;
  height: 94px;
  border-radius: 6px;
  object-fit: cover;
}

.work-card {
  width: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
}

.work-card-inner {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .45s ease;
}

.work-card.is-flipped .work-card-inner {
  transform: rotateY(180deg);
}

.work-card-front,
.work-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: 0 10px 28px rgba(23, 32, 28, .08);
}

.work-card-front img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.work-card-back {
  padding: 22px;
  color: #fff;
  background: var(--green);
  text-align: center;
  transform: rotateY(180deg);
}

.work-card-back strong {
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.15;
}

.work-card:focus-visible {
  outline: 3px solid rgba(192, 123, 45, .55);
  outline-offset: 4px;
  border-radius: 8px;
}

.image-grid.machines,
.image-grid.works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-grid.machines,
.image-grid.works {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 118px;
  grid-auto-flow: dense;
}

.image-grid.machines img,
.image-grid.works .work-card {
  height: 100%;
}

.image-grid.machines img {
  aspect-ratio: auto;
}

.image-grid.machines img:nth-child(1),
.image-grid.machines img:nth-child(6),
.image-grid.works .work-card:nth-child(6n + 1),
.image-grid.works .work-card:nth-child(6n + 4) {
  grid-column: span 6;
  grid-row: span 3;
}

.image-grid.machines img:nth-child(2),
.image-grid.machines img:nth-child(3),
.image-grid.machines img:nth-child(4),
.image-grid.machines img:nth-child(5),
.image-grid.works .work-card:nth-child(6n + 2),
.image-grid.works .work-card:nth-child(6n + 3),
.image-grid.works .work-card:nth-child(6n + 5),
.image-grid.works .work-card:nth-child(6n + 6) {
  grid-column: span 3;
  grid-row: span 2;
}

.image-grid.works .work-card {
  overflow: hidden;
  border-radius: 8px;
}

.image-grid.works .work-card-inner {
  height: 100%;
  aspect-ratio: auto;
  transform: none;
}

.image-grid.works .work-card.is-flipped .work-card-inner {
  transform: none;
}

.image-grid.works .work-card-front,
.image-grid.works .work-card-back {
  backface-visibility: visible;
}

.image-grid.works .work-card-back {
  inset: auto 0 0;
  min-height: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  background: linear-gradient(180deg, rgba(23, 32, 28, 0), rgba(23, 32, 28, .86));
  text-align: left;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.image-grid.works .work-card:hover .work-card-back,
.image-grid.works .work-card:focus-visible .work-card-back {
  opacity: 1;
  transform: translateY(0);
}

.image-grid.works .work-card-back strong {
  max-width: 92%;
  font-size: clamp(14px, 1.7vw, 19px);
  line-height: 1.18;
}

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

.client-card {
  min-height: 174px;
  display: grid;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 95, 61, .35);
  box-shadow: 0 14px 34px rgba(23, 32, 28, .09);
}

.client-card img {
  width: 100%;
  height: 128px;
  object-fit: contain;
}

.client-wordmark span {
  min-height: 128px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.azvi-logo span {
  color: #114a96;
  font-size: 34px;
}

.aqualia-logo span {
  color: #1b76ba;
  font-size: 34px;
  text-transform: lowercase;
}

.pinus-logo span {
  color: #2f7130;
}

.royal-logo span {
  color: #365d8d;
}

.sun-logo span {
  color: #c07b2d;
}

.bio-logo span {
  color: #4d8d42;
}

.verinsur-logo span {
  color: #1f7f45;
  text-transform: uppercase;
}

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

.certificate-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(23, 32, 28, .06);
}

.certificate-list a:hover {
  border-color: rgba(49, 95, 61, .45);
  transform: translateX(4px);
}

.certificate-list span {
  font-weight: 800;
}

.certificate-list strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 64px) 72px;
  padding: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.contact-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  background: #101612;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.contact-details,
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 28, .06);
}

.contact-details dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 3px 0 0;
  font-weight: 700;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5cf;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: 16px/1.4 Arial, Helvetica, sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(49, 95, 61, .18);
  border-color: var(--green);
}

.contact-form button {
  cursor: pointer;
  font: 800 15px/1 Arial, Helvetica, sans-serif;
}

.map-section {
  padding: 0 clamp(18px, 5vw, 64px) 72px;
}

.map-section iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .58s ease, transform .58s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-trigger {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 20px;
  background: rgba(16, 22, 18, .88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  grid-column: 2;
  grid-row: 2;
  place-self: center;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.lightbox-caption {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  text-align: center;
  font-weight: 700;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font: 800 26px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.lightbox-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-card {
    max-width: 360px;
  }

  .service-grid,
  .service-grid.three,
  .image-grid,
  .image-grid.machines,
  .image-grid.works,
  .logo-grid,
  .certificate-list {
    grid-template-columns: 1fr 1fr;
  }

  .image-grid.machines,
  .image-grid.works {
    grid-auto-rows: auto;
  }

  .image-grid.machines img,
  .image-grid.works .work-card {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto;
  }

  .image-grid.machines img,
  .image-grid.works .work-card-inner {
    aspect-ratio: 4 / 3;
  }

  .project-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .project-showcase {
    align-items: start;
  }

  .showcase-stage {
    grid-column: 1 / -1;
  }

  .showcase-controls {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-controls button {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .showcase-controls img {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
  }

  .menu-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 9px 12px 9px 36px;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 6px;
    font: 800 13px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 16px;
    height: 2px;
    display: block;
    position: absolute;
    left: 12px;
    background: currentColor;
    border-radius: 999px;
  }

  .menu-toggle span:nth-child(1) {
    top: 14px;
  }

  .menu-toggle span:nth-child(2) {
    top: 20px;
  }

  .menu-toggle span:nth-child(3) {
    top: 26px;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height .24s ease, opacity .18s ease;
  }

  .site-header.is-open .main-nav {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    font-size: 13px;
    text-align: center;
  }

  .hero,
  .page-hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .page-hero {
    padding-top: 56px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text,
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .contact-band {
    margin: 0 16px 52px;
  }

  .map-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
    width: auto;
  }

  .brand img {
    width: 100px;
  }

  .brand-combo {
    width: auto;
  }

  .brand-combo img {
    width: 100px;
    height: 80px;
    flex-basis: 100px;
  }

  .brand-combo span {
    font-size: clamp(15px, 5vw, 18px);
  }


  .main-nav {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .service-grid.three,
  .image-grid,
  .image-grid.machines,
  .image-grid.works,
  .logo-grid,
  .certificate-list,
  .showcase-controls {
    grid-template-columns: 1fr;
  }

  .showcase-stage img {
    min-height: 280px;
  }

  .showcase-controls button {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .showcase-controls img {
    width: 96px;
    height: 76px;
  }

  .contact-band {
    padding: 24px;
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    max-width: none;
    width: 100%;
  }

  .certificate-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .map-section iframe {
    min-height: 320px;
  }

  .image-lightbox {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    padding: 12px;
  }

  .lightbox-image {
    max-height: 72vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .hero-card:hover,
  .service-grid article:hover,
  .image-grid img:hover,
  .client-card:hover,
  .showcase-controls button:hover {
    transform: none;
  }
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(780px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(23, 32, 28, .2);
  transition: opacity .22s ease, transform .22s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.cookie-banner h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.cookie-banner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-actions .button {
  padding: 12px 16px;
}

.cookie-actions a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions .button,
  .cookie-actions a {
    width: 100%;
    text-align: center;
  }
}
