:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #202326;
  --muted: #666b70;
  --line: #d8d4cc;
  --steel: #5e686f;
  --steel-dark: #30363a;
  --accent: #b57b3b;
  --accent-dark: #7b4f25;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.is-lightbox-open {
  overflow: hidden;
}

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: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(246, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--steel-dark);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: clamp(176px, 22vw, 230px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--steel-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  min-height: 680px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(18, 20, 22, 0.78), rgba(18, 20, 22, 0.28), rgba(18, 20, 22, 0.08)),
    url("assets/elevator-interior.webp") center / cover no-repeat;
}

.hero__overlay {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 12vw, 150px) clamp(18px, 4vw, 32px) 88px;
  color: #ffffff;
}

.hero h1 {
  max-width: 720px;
  margin: 12px 0 18px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.hero .eyebrow {
  color: #efc486;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

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

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-dark);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.section {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 1.15fr;
  gap: clamp(24px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.contact h2 {
  margin: 8px 0 0;
  color: var(--steel-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro h2 {
  white-space: nowrap;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.service-card {
  min-height: 280px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(48, 54, 58, 0.08);
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--steel-dark);
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery figure:first-child {
  grid-row: span 2;
}

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

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

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figure:first-child img {
  aspect-ratio: 4 / 5;
}

.gallery figcaption {
  padding: 14px 16px;
  color: var(--steel-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(18, 20, 22, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 96px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  object-fit: contain;
  touch-action: pan-y;
}

.lightbox__title {
  position: absolute;
  bottom: clamp(18px, 4vw, 48px);
  left: 50%;
  width: min(calc(100% - 36px), 820px);
  margin: 0;
  padding: 12px 16px;
  transform: translateX(-50%);
  background: rgba(32, 35, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: rgba(32, 35, 38, 0.74);
  color: #ffffff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__nav {
  top: 50%;
  width: 52px;
  height: 64px;
  padding-bottom: 6px;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__nav--prev {
  left: clamp(12px, 3vw, 34px);
}

.lightbox__nav--next {
  right: clamp(12px, 3vw, 34px);
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: var(--accent-dark);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.contact__text p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-list a,
.contact-list p {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel-dark);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: var(--accent);
}

.contact-list a > span:first-child,
.contact-list p > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.js-phone-label,
.js-email-label {
  display: block;
  color: var(--steel-dark);
  font-size: 1.18rem;
  font-weight: 800;
}

.contact-list__wide {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 22px 18px;
  background: var(--steel-dark);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #efc486;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(180deg, rgba(18, 20, 22, 0.84), rgba(18, 20, 22, 0.38)),
      url("assets/elevator-interior.webp") center / cover no-repeat;
  }

  .intro,
  .service-grid,
  .gallery,
  .contact,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .intro h2 {
    white-space: normal;
  }

  .gallery figure:first-child {
    grid-row: auto;
  }

  .gallery figure:first-child img,
  .gallery img {
    aspect-ratio: 4 / 3;
  }

  .lightbox__nav {
    display: none;
  }

  .contact-list__wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 590px;
  }

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