:root {
  --ink: #17201d;
  --muted: #5c6862;
  --paper: #f7f7f3;
  --white: #ffffff;
  --line: #dfe3dd;
  --moss: #31594b;
  --moss-dark: #203d34;
  --clay: #b65b34;
  --brand-yellow: #ffd928;
  --steel: #3d5564;
  --shadow: 0 20px 45px rgba(16, 26, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(20, 28, 24, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: clamp(54px, 6vw, 68px);
  border-radius: 6px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.22));
  transition: filter 180ms ease;
}

.site-header.is-scrolled .brand-logo,
.site-header.solid .brand-logo {
  filter: drop-shadow(0 1px 8px rgba(20, 28, 24, 0.12));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--clay);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/images/hero-dpedrov.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 18, 16, 0.78), rgba(12, 18, 16, 0.43) 48%, rgba(12, 18, 16, 0.08)),
    linear-gradient(0deg, rgba(12, 18, 16, 0.52), rgba(12, 18, 16, 0.02) 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 72px;
  color: var(--white);
}

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

.hero .eyebrow {
  color: #f0c0a8;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--brand-yellow);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

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

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

.button.primary {
  color: var(--white);
  background: var(--clay);
}

.button.primary:hover {
  background: #984a2b;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

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

.social-button {
  gap: 8px;
}

.social-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.service-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 86px clamp(18px, 6vw, 82px);
  background: var(--moss-dark);
  color: var(--white);
}

.feature-copy {
  max-width: 580px;
  justify-self: end;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.88);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--clay);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.works-section {
  width: min(1240px, calc(100% - 36px));
}

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

.work-card {
  min-height: 330px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 30, 27, 0.08);
}

.work-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 676px;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.work-card.large img {
  min-height: 570px;
}

.work-card div {
  padding: 18px;
}

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

.work-card h3 {
  margin-bottom: 0;
}

.process-band {
  padding: 86px clamp(18px, 6vw, 82px);
  background: var(--white);
}

.section-heading.compact {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.process-steps {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-steps div {
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
}

.process-steps span {
  color: var(--steel);
  font-weight: 900;
}

.process-steps p {
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: clamp(28px, 5vw, 70px);
  padding: 96px clamp(18px, 6vw, 82px);
  background: var(--ink);
  color: var(--white);
}

.contact-copy {
  max-width: 720px;
  justify-self: end;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.contact-form label span {
  color: var(--muted);
  font-size: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
}

.contact-form textarea {
  min-height: 126px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(255, 217, 40, 0.38);
  border-color: var(--clay);
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--moss-dark);
  font-size: 14px;
  font-weight: 800;
}

.form-status[data-status="pending"] {
  color: #75631b;
}

.form-status[data-status="success"] {
  color: #17633d;
}

.form-status[data-status="error"] {
  color: #a13522;
}

.contact-form address {
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
}

.contact-form address strong {
  color: var(--ink);
  font-size: 18px;
}

.contact-form address a {
  color: var(--ink);
  text-decoration-color: rgba(23, 32, 29, 0.28);
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  font-size: 14px;
}

.social-links span {
  width: 100%;
  color: var(--muted);
  font-weight: 800;
}

.social-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.social-links a {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.social-links a:hover,
.footer-links a:hover {
  color: var(--clay);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 58px);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.privacy-content {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 86px;
}

.privacy-content h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 68px);
}

.privacy-content h2 {
  margin-top: 36px;
  font-size: 26px;
}

.privacy-content p {
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 1040px) {
  .services-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .feature-split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .feature-copy,
  .contact-copy {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open,
  .site-nav.always-visible {
    display: flex;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .site-nav.always-visible {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .privacy-page .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    height: 52px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 120px 0 46px;
  }

  h1 {
    font-size: clamp(44px, 16vw, 62px);
  }

  .hero h1 {
    max-width: 7.3ch;
    font-size: clamp(42px, 14vw, 56px);
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

  .services-grid,
  .works-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .feature-split,
  .process-band,
  .contact-section {
    padding: 70px 16px;
  }

  .work-card,
  .work-card.large {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .work-card img,
  .work-card.large img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .contact-form {
    padding: 24px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
