:root {
  color-scheme: dark;
  --black: #000;
  --base: #101012;
  --panel: #18181b;
  --ink: #f6f4f2;
  --soft: #c5c3c4;
  --line: #38363a;
  --red: #c92029;
  --bright-red: #ff6067;
  --wrap: min(100% - 104px, 1320px);
  font: 100%/1.55 "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--base); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bright-red); outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 3; padding: 12px; translate: 0 -150%; background: var(--panel); }
.skip:focus { translate: 0; }

.top { background: var(--black); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 98px; gap: 22px; }
.brand { width: clamp(128px, 15vw, 164px); display: block; flex: none; }
.brand img { height: auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 2.85rem); }
nav a { font-size: .95rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--bright-red); }
nav .nav-contact { border: 1px solid #636166; padding: 9px 16px; border-radius: 4px; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1d1d1e; }
.hero-photo, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { height: 100%; object-fit: cover; object-position: 52% 57%; }
.hero::after { content: ""; background: linear-gradient(90deg,rgba(9,9,11,.95),rgba(9,9,11,.78) 34%,rgba(9,9,11,.15) 72%,rgba(9,9,11,.05)),linear-gradient(0deg,rgba(9,9,11,.47),transparent 34%); }
.hero-inner { min-height: clamp(540px, 52vw, 740px); display: flex; align-items: center; padding-block: 64px 76px; }
.hero-text { max-width: 780px; }
h1, h2 { letter-spacing: -.062em; font-weight: 790; }
h1 { font-size: clamp(3.9rem, 7.5vw, 8rem); line-height: .98; }
h1 em { color: var(--bright-red); font-style: normal; }
.hero-text p { max-width: 430px; margin-block: 22px 27px; color: #eeeef0; font-size: clamp(1rem, 1.55vw, 1.25rem); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 22px; border-radius: 4px; font-weight: 720; text-decoration: none; transition: background-color .18s; }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { background: #a81a22; }

.section { padding-block: clamp(56px, 7.1vw, 100px); }
.section-heading { margin-bottom: clamp(26px, 3.7vw, 48px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--bright-red); font-size: .875rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; flex: none; background: currentColor; }
h2 { font-size: clamp(2.65rem, 5.1vw, 5.2rem); line-height: 1; }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.5rem); letter-spacing: -.033em; line-height: 1.2; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.service-grid article { padding: 24px 22px 25px; border-left: 1px solid var(--line); }
.service-grid article:first-child { padding-left: 0; border-left: 0; }
.service-grid p { margin-top: 9px; color: var(--soft); }
.service-icon { position: relative; display: block; width: 42px; height: 40px; margin-bottom: 16px; border-radius: 5px; color: var(--bright-red); background: #302024; }
.service-icon::before, .service-icon::after { content: ""; position: absolute; }
.icon-road::before { inset: 9px 13px; border-inline: 2px solid currentColor; transform: skew(-20deg); }
.icon-road::after { top: 9px; bottom: 9px; left: 20px; border-left: 2px dashed currentColor; transform: skew(-20deg); }
.icon-asphalt::before { inset: 10px 10px 9px; background: repeating-linear-gradient(to bottom,currentColor 0 2px,transparent 2px 7px); transform: skew(-20deg); }
.icon-paving::before { inset: 10px; border: 2px solid currentColor; background: linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat; }
.icon-water::before { top: 11px; left: 14px; width: 14px; height: 18px; border: 2px solid currentColor; border-radius: 0 75% 75% 75%; transform: rotate(41deg); }

.projects { background: #1a191c; border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(10px,1.55vw,22px); }
.project-photo { display: block; position: relative; overflow: hidden; background: #2c2c2f; border-radius: 5px; }
.project-photo img { height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .28s ease; }
.project-photo:hover img { transform: scale(1.045); }
.photo-plus { position: absolute; right: 10px; bottom: 10px; background: #121214e8; color: #fff; width: 34px; height: 34px; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; border-radius: 4px; }
.project-photo:hover .photo-plus, .project-photo:focus-visible .photo-plus { background: var(--red); }

.contact { background: var(--panel); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
address { font-style: normal; font-size: 1.125rem; }
address strong { display: block; font-size: clamp(1.15rem,2vw,1.45rem); margin-bottom: 7px; }
.button-map { margin-top: 22px; border: 1px solid #626066; }
.button-map:hover { background: #303035; }
footer { background: var(--black); color: var(--soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 74px; font-size: .875rem; }

dialog { width: min(92vw,1100px); max-width: none; max-height: 94dvh; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #000e; }
.dialog-bar, .dialog-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 15px; }
.dialog-bar p { font-variant-numeric: tabular-nums; color: var(--soft); }
dialog button { background: #252529; color: var(--ink); font: inherit; font-weight: 680; border: 1px solid #626066; border-radius: 4px; padding: 7px 12px; cursor: pointer; }
dialog button:hover { background: #404046; }
dialog img { max-height: min(69dvh,720px); object-fit: contain; background: #101012; }

@media (max-width: 1000px) {
  :root { --wrap: calc(100% - 64px); }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .service-grid article:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 40px); }
  .top-inner { min-height: 85px; flex-wrap: wrap; padding-block: 11px; gap: 7px 20px; }
  nav { gap: clamp(.85rem,4vw,1.25rem); }
  nav .nav-contact { padding: 6px 10px; }
  .hero-inner { min-height: 500px; padding-block: 70px 83px; }
  .hero-photo img { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg,rgba(9,9,11,.86),rgba(9,9,11,.38)),linear-gradient(0deg,rgba(9,9,11,.36),transparent 45%); }
  h1 { font-size: clamp(2.7rem,12vw,5.4rem); }
  .hero-text p { max-width: 340px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 12px; }
  nav { width: 100%; justify-content: space-between; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { padding-inline: 0; border-left: 0; }
  .service-grid article + article { border-top: 1px solid var(--line); }
  .photo-plus { right: 6px; bottom: 6px; width: 29px; height: 29px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 17px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

