:root {
  color-scheme: light;
  --brand-orange: #ed6a2d;
  --brand-orange-dark: #cf521b;
  --ink: #070707;
  --paper: #ffffff;
  --soft: #f4f2ed;
  --line: #d9d6cf;
  --muted: #5d5a55;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 4px;
}

::selection {
  background: var(--brand-orange);
  color: var(--ink);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 2px solid var(--ink);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.header-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 190px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.3vw, 30px);
}

nav a,
.header-phone {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding-block: 8px;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  background: var(--brand-orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.header-phone {
  flex: 0 0 auto;
  padding: 11px 16px;
  background: var(--brand-orange);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 78px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: 104px;
  background: #e8e3dc;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 96%) 0%,
    rgb(255 255 255 / 90%) 30%,
    rgb(255 255 255 / 58%) 48%,
    rgb(255 255 255 / 8%) 68%,
    transparent 78%
  );
}

.hero::after {
  z-index: 1;
  width: 150px;
  height: 20px;
  left: 5%;
  bottom: 44px;
  background: var(--brand-orange);
  transform: skewX(-42deg);
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  width: min(690px, 62%);
  padding: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
  background: rgb(255 255 255 / 86%);
  box-shadow: 14px 14px 0 var(--brand-orange);
  backdrop-filter: blur(8px);
}

.hero-copy::before {
  position: absolute;
  width: 68px;
  height: 12px;
  top: -7px;
  right: 32px;
  background: var(--brand-orange);
  content: "";
  transform: skewX(-42deg);
}

.section-muted {
  background: var(--soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--brand-orange-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--brand-orange);
  content: "";
  transform: skewX(-38deg);
}

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

h1,
h2,
h3 {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.3vw, 78px);
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: uppercase;
}

h2 {
  max-width: 800px;
  margin-bottom: 38px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.14;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  min-width: 150px;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  background: var(--brand-orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 30px;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.card::after {
  position: absolute;
  width: 58px;
  height: 10px;
  right: -8px;
  bottom: 15px;
  background: var(--brand-orange);
  content: "";
  transform: skewX(-42deg);
}

.card:hover {
  box-shadow: 8px 8px 0 var(--brand-orange);
  transform: translate(-3px, -3px);
}

.card p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.projects-list {
  display: grid;
  gap: 54px;
}

.project-card {
  padding: clamp(22px, 3.4vw, 42px);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--brand-orange);
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  margin-bottom: 30px;
}

.project-number,
.project-category {
  display: block;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-number {
  color: var(--brand-orange-dark);
  font-size: 15px;
}

.project-category {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.project-intro h3 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3.6vw, 42px);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.project-intro p {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 17px;
}

.project-intro .project-closing {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
}

.project-gallery {
  display: grid;
  gap: 12px;
}

.project-gallery-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;
}

.project-gallery-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-photo {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--soft);
}

.project-gallery-four .project-photo {
  aspect-ratio: 3 / 4;
}

.project-photo-main {
  grid-column: span 2;
  grid-row: span 2;
}

.project-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-photo::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 88%);
  color: var(--ink);
  content: "+";
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.project-photo:hover img {
  transform: scale(1.035);
}

.placeholder {
  padding: 24px;
  border-left: 7px solid var(--brand-orange);
  background: var(--paper);
  color: var(--muted);
}

.steps {
  counter-reset: mixbud-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: mixbud-step;
  position: relative;
  min-height: 190px;
  padding: 74px 24px 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.steps li::before {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--brand-orange);
  content: "0" counter(mixbud-step);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
}

.steps span {
  margin-top: 8px;
  color: var(--muted);
}

#kontakt {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: var(--brand-orange);
}

#kontakt::after {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -180px;
  border: 46px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

#kontakt .container {
  position: relative;
  z-index: 1;
}

#kontakt .eyebrow {
  color: var(--ink);
}

#kontakt .eyebrow::before {
  background: var(--ink);
}

.contact-list {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-style: normal;
}

.contact-list a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer {
  padding: 30px 0;
  background: var(--ink);
  color: var(--paper);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .header-content {
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-block: 14px;
  }

  nav {
    width: 100%;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-copy {
    width: min(610px, 78%);
  }

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

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: relative;
  }

  .header-content {
    min-height: 70px;
  }

  .brand img {
    width: 150px;
  }

  .header-phone {
    padding: 9px 11px;
    font-size: 12px;
  }

  nav {
    display: none;
  }

  .section,
  .hero {
    padding-block: 62px;
  }

  .hero {
    min-height: 760px;
    align-items: end;
    padding-top: 330px;
  }

  .hero-media img {
    object-position: 68% center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgb(255 255 255 / 4%) 0%,
      rgb(255 255 255 / 12%) 32%,
      rgb(255 255 255 / 88%) 57%,
      rgb(255 255 255 / 98%) 100%
    );
  }

  .hero::after {
    width: 110px;
    height: 17px;
    left: auto;
    right: 4%;
    bottom: 26px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 58px);
  }

  .hero-copy {
    width: 100%;
    padding: 24px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 9px 9px 0 var(--brand-orange);
  }

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

  .project-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-gallery-six,
  .project-gallery-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery-six {
    grid-auto-rows: 230px;
  }

  .project-photo-main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .card,
  .steps li {
    min-height: 0;
  }

  #kontakt::after {
    opacity: 0.16;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
