:root {
  color-scheme: light;
  --ink: #14212b;
  --muted: #64707b;
  --line: #d9dedc;
  --paper: #f7f4ef;
  --panel: #ffffff;
  --green: #34756b;
  --clay: #b75f46;
  --gold: #d9b768;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green), #6e958d);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 84px 0;
}

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

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #88939b;
  border-radius: 6px;
  font-weight: 750;
  font-size: 14px;
}

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

.preview {
  min-height: 380px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(52, 117, 107, 0.16), transparent 44%),
    var(--panel);
  box-shadow: 0 20px 55px rgba(20, 33, 43, 0.08);
}

.preview-top {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

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

.preview-grid div {
  min-height: 128px;
  border-radius: 7px;
  background: #eef1ef;
  border: 1px solid #dde4e1;
}

.preview-grid div:nth-child(1) {
  grid-column: span 2;
  background: linear-gradient(90deg, var(--green), #d6e0da);
}

.preview-grid div:nth-child(3) {
  background: linear-gradient(135deg, var(--gold), #f5ecd0);
}

.section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

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

article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

article span {
  display: block;
  margin-bottom: 42px;
  color: var(--clay);
  font-size: 28px;
  font-weight: 850;
}

article p,
.service-list p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 0;
}

.service-list div {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.service-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact {
  padding: 86px 0 96px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
  margin-bottom: 26px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  nav {
    gap: 14px;
  }

  .hero,
  .section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    min-height: auto;
    padding: 62px 0;
  }

  .preview {
    min-height: 300px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

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

  nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    padding: 0 18px;
  }

  h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid div:nth-child(1) {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}
