@font-face {
  font-family: "Manrope";
  src: url("manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("manrope-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f3ef;
  --surface: #fffdf9;
  --surface-2: #e8e7e3;
  --text: #17191b;
  --muted: #62676d;
  --line: #d8d5ce;
  --steel: #7a828a;
  --graphite: #24272b;
  --red: #d12922;
  --red-dark: #a51e19;
  --shadow: 0 18px 50px rgba(25, 27, 29, 0.12);
  --radius: 8px;
  --gutter: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(36, 39, 43, 0.04) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(245, 243, 239, 0.9);
  border-bottom: 1px solid rgba(216, 213, 206, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.hero-actions,
.contact-actions,
.service-preview {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--graphite);
  border-radius: 6px;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  background: #f8f6f1;
}

.brand-mark::before {
  top: 10px;
}

.brand-mark span {
  top: 16px;
}

.brand-mark::after {
  top: 22px;
  background: var(--red);
}

.site-nav {
  gap: 6px;
  padding: 5px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav a {
  padding: 9px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  gap: 12px;
}

.header-phone {
  padding: 11px 15px;
  color: #fff;
  background: var(--graphite);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  min-height: 100svh;
  padding: 122px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.94;
  font-weight: 800;
  overflow-wrap: break-word;
}

.hero-copy p {
  margin: 26px 0 0;
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 24px rgba(209, 41, 34, 0.22);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-media {
  position: relative;
  min-height: 470px;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 39, 43, 0.14);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 9px;
  background: var(--red);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: 270px;
  padding: 16px 18px;
  color: #fff;
  background: rgba(23, 25, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.media-note strong,
.media-note span {
  display: block;
}

.media-note strong {
  font-size: 15px;
}

.media-note span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.service-preview {
  grid-column: 1 / -1;
  align-self: end;
  margin: 16px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
  background: var(--graphite);
}

.service-preview a {
  position: relative;
  flex: 1;
  min-height: 104px;
  padding: 24px 28px;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.service-preview a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.service-preview a::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 46px;
  height: 3px;
  background: var(--red);
}

.service-preview strong,
.service-preview span {
  display: block;
}

.service-preview strong {
  font-size: 17px;
}

.service-preview span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.section {
  padding: clamp(78px, 10vw, 132px) var(--gutter);
}

.section-intro {
  max-width: 710px;
}

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

.section-intro h2,
.contact h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02;
  font-weight: 800;
}

.section-intro p,
.contact p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  background: var(--line);
  border: 1px solid var(--line);
}

.services-grid article {
  min-height: 380px;
  padding: 30px;
  background: var(--surface);
}

.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 42px;
  border-radius: 7px;
  background: var(--graphite);
}

.door-icon {
  background:
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, 0.26) 8px 10px),
    var(--graphite);
}

.panel-icon {
  background:
    linear-gradient(90deg, var(--red) 0 7px, transparent 7px),
    repeating-linear-gradient(180deg, #7d858d 0 9px, #626970 9px 11px);
}

.motor-icon {
  position: relative;
}

.motor-icon::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.service-icon {
  background:
    linear-gradient(135deg, transparent 0 42%, var(--red) 42% 58%, transparent 58%),
    var(--graphite);
}

.services-grid h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
}

.services-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.services-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.services-grid li {
  padding: 7px 10px;
  color: var(--graphite);
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.section-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.54fr);
  gap: 44px;
  max-width: none;
  align-items: end;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 22vw);
  gap: 14px;
  margin-top: 46px;
}

.gallery-item {
  display: block;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 25, 27, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.process {
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.08) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--graphite);
}

.process-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 64px;
  align-items: start;
}

.process .section-intro h2 {
  color: #fff;
}

.process .section-intro p {
  color: rgba(255, 255, 255, 0.7);
}

.process ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.process li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px;
  background: #2d3034;
}

.process li > span {
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
}

.process h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.process p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin: clamp(72px, 9vw, 118px) var(--gutter);
  padding: clamp(34px, 5vw, 62px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 9px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--gutter);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 16, 18, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

@media (max-width: 1080px) {
  .site-nav {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 108px;
  }

  .hero-media {
    min-height: 420px;
  }

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

  .process-panel,
  .contact,
  .section-intro-row {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-phone {
    display: none;
  }

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

  .hero h1 {
    max-width: 350px;
    font-size: 36px;
    line-height: 1.02;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-media {
    min-height: 300px;
  }

  .media-note {
    left: 18px;
    right: 18px;
    max-width: none;
  }

  .service-preview {
    display: grid;
  }

  .service-preview a,
  .service-preview a:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .services-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .services-grid article {
    min-height: auto;
  }

  .gallery {
    grid-auto-rows: 290px;
  }

  .gallery-item-large {
    grid-column: auto;
    grid-row: auto;
  }

  .process li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }

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

  .site-footer {
    flex-direction: column;
  }
}
