:root {
  --paper: #ebe6dc;
  --paper-deep: #d8d1c5;
  --ink: #11100e;
  --muted: #5e5a51;
  --red: #c62922;
  --red-dark: #8d1b18;
  --olive: #73865a;
  --olive-dark: #4f633c;
  --black: #10100f;
  --white: #f8f4ec;
  --line: rgba(17, 16, 14, 0.24);
  --shadow: 0 18px 42px rgba(17, 16, 14, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 16, 14, 0.07) 1px, transparent 1px) 0 0 / 100% 42px,
    repeating-linear-gradient(100deg, rgba(17, 16, 14, 0.035) 0 1px, transparent 1px 11px),
    var(--paper);
  font-family: "Arial Narrow", Impact, Haettenschweiler, "Segoe UI Condensed", Arial, sans-serif;
  letter-spacing: 0;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(circle at 18% 22%, rgba(17, 16, 14, 0.16) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 72% 42%, rgba(17, 16, 14, 0.13) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent 34%, rgba(17, 16, 14, 0.04));
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 12px 16px;
  background: rgba(235, 230, 220, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(17, 16, 14, 0.09);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 116px;
  height: 48px;
  padding: 0 14px;
  color: var(--white);
  background: var(--black);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(248, 244, 236, 0.1);
}

.brand-meta {
  max-width: 150px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 12px 14px 10px;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--red);
  background: rgba(17, 16, 14, 0.06);
}

.menu-toggle {
  display: none;
  width: 64px;
  height: 42px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.section-band,
.section-block,
.proof-strip,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100svh - 96px);
  padding: 54px 0 44px;
}

.hero-copy {
  position: relative;
}

.tape {
  display: inline-block;
  max-width: 560px;
  margin: 0 0 18px;
  padding: 9px 14px 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.tape-green,
.label-green {
  background: rgba(115, 134, 90, 0.72);
}

.case-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-line strong {
  color: var(--red);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 112px;
  line-height: 0.86;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1::first-line {
  color: var(--black);
}

.hero-subtitle {
  max-width: 640px;
  margin: 22px 0 0;
  padding: 14px 16px;
  color: var(--white);
  background: var(--black);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.button-ghost {
  background: rgba(248, 244, 236, 0.72);
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-media::before {
  border: 14px solid rgba(17, 16, 14, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(248, 244, 236, 0.42),
    inset 0 0 36px rgba(17, 16, 14, 0.28);
  mix-blend-mode: multiply;
}

.hero-media::after {
  background:
    linear-gradient(102deg, transparent 0 44%, rgba(248, 244, 236, 0.28) 44.4% 45%, transparent 45.5%),
    linear-gradient(78deg, transparent 0 62%, rgba(17, 16, 14, 0.13) 62.4% 62.7%, transparent 63%),
    radial-gradient(circle at 18% 82%, rgba(17, 16, 14, 0.12), transparent 28%),
    repeating-linear-gradient(92deg, rgba(17, 16, 14, 0.035) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.03) saturate(0.95);
}

.stamp {
  position: absolute;
  z-index: 2;
  display: inline-block;
  max-width: 220px;
  padding: 10px 12px 8px;
  border: 3px solid currentColor;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  mix-blend-mode: multiply;
}

.stamp-red {
  right: 22px;
  top: 86px;
  color: var(--red);
  transform: rotate(-4deg);
}

.stamp-dark {
  left: 18px;
  bottom: 20px;
  color: var(--black);
  background: rgba(235, 230, 220, 0.72);
  transform: rotate(3deg);
}

.stamp-date {
  top: 22px;
  left: 22px;
  color: var(--black);
  background: rgba(235, 230, 220, 0.68);
  font-size: 24px;
  transform: rotate(1.5deg);
}

.stamp-date small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.stamp-green {
  right: 24px;
  bottom: 116px;
  border: 0;
  color: var(--black);
  background: rgba(115, 134, 90, 0.82);
  box-shadow: 0 0 0 1px rgba(17, 16, 14, 0.18);
  mix-blend-mode: normal;
  transform: rotate(-6deg);
}

.stamp-secret {
  left: 28px;
  top: 48%;
  color: var(--red);
  background: rgba(235, 230, 220, 0.46);
  font-size: 16px;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.stamp-code {
  right: -42px;
  bottom: 262px;
  max-width: none;
  color: var(--black);
  border-width: 2px;
  background: rgba(248, 244, 236, 0.45);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  transform: rotate(90deg);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px;
  background: rgba(235, 230, 220, 0.88);
}

.proof-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--black);
  font-size: 18px;
  font-weight: 900;
}

.proof-strip strong {
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-block,
.split-section,
.contacts {
  padding: 52px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  padding: 5px 10px 4px;
  color: var(--white);
  background: var(--black);
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
}

.label-red,
.label-green {
  margin: 0;
  padding: 6px 10px 5px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.label-red {
  color: var(--white);
  background: var(--red);
}

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

.work-card {
  position: relative;
  min-height: 310px;
  padding: 18px 16px;
  border: 1px solid rgba(17, 16, 14, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 24px rgba(17, 16, 14, 0.12);
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(248, 244, 236, 0.28);
  pointer-events: none;
}

.work-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.work-card p {
  position: relative;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.work-number {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
}

.work-card-dark,
.work-card-black {
  color: var(--white);
  background:
    linear-gradient(155deg, rgba(115, 134, 90, 0.32), transparent 45%),
    var(--black);
}

.work-card-red {
  color: var(--white);
  background:
    repeating-linear-gradient(-8deg, rgba(17, 16, 14, 0.14) 0 12px, transparent 12px 24px),
    var(--red);
}

.work-card-olive {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(248, 244, 236, 0.46), transparent 42%),
    var(--olive);
}

.work-card-light {
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(17, 16, 14, 0.09), transparent 46%),
    var(--paper-deep);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-item {
  min-height: 180px;
  padding: 18px 16px;
  border-top: 4px solid var(--black);
  background: rgba(248, 244, 236, 0.34);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--black);
  font-size: 18px;
  font-weight: 900;
}

.service-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.service-item p {
  margin: 0;
  color: #2f2d29;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.deadline-strip {
  width: fit-content;
  max-width: 100%;
  margin: 34px 0 0;
  padding: 12px 18px 10px;
  color: var(--black);
  background: var(--red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.about-copy h3 {
  margin: 0 0 14px;
  font-family: Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.about-copy p {
  max-width: 650px;
  margin: 0 0 14px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.skill-list {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(248, 244, 236, 0.5);
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-row i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  background:
    linear-gradient(90deg, var(--olive) var(--value), rgba(17, 16, 14, 0.15) var(--value));
  border: 1px solid rgba(17, 16, 14, 0.22);
}

.contacts {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-link,
.contact-note {
  min-height: 118px;
  padding: 20px;
  border: 2px solid var(--ink);
  background: rgba(248, 244, 236, 0.42);
  box-shadow: 5px 5px 0 var(--ink);
}

.contact-link:hover {
  color: var(--white);
  background: var(--black);
}

.contact-link span,
.contact-note span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-link:hover span {
  color: var(--paper-deep);
}

.contact-link strong,
.contact-note strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero h1 {
    font-size: 88px;
  }

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

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

  .work-card:last-child,
  .service-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-band,
  .section-block,
  .proof-strip,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 64px;
    margin-top: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    min-width: 92px;
    height: 42px;
    font-size: 22px;
  }

  .brand-meta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 86px 10px auto;
    z-index: 30;
    display: none;
    padding: 10px;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--ink);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 15px 14px 13px;
    border: 1px solid var(--line);
    background: rgba(248, 244, 236, 0.42);
    font-size: 17px;
  }

  .hero {
    gap: 24px;
    padding: 34px 0 28px;
  }

  .tape {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 58px;
    line-height: 0.9;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

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

  .stamp {
    max-width: 180px;
    font-size: 14px;
  }

  .stamp-date {
    font-size: 19px;
  }

  .stamp-secret,
  .stamp-code {
    display: none;
  }

  .stamp-green {
    bottom: 86px;
  }

  .proof-strip,
  .contact-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: 74px;
  }

  .section-block,
  .split-section,
  .contacts {
    padding: 38px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    display: inline-block;
    margin-top: 8px;
    font-size: 38px;
  }

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

  .work-card:last-child,
  .service-item:last-child {
    grid-column: auto;
  }

  .work-card {
    min-height: 230px;
  }

  .deadline-strip {
    font-size: 18px;
  }

  .about {
    gap: 24px;
  }

  .about-copy h3 {
    font-size: 30px;
  }

  .about-copy p {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 48px;
  }

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

  .stamp-red {
    right: 10px;
    top: 42px;
  }

  .stamp-dark {
    left: 10px;
    bottom: 12px;
  }

  .stamp-date {
    left: 10px;
    top: 10px;
  }

  .stamp-green {
    right: 10px;
    bottom: 82px;
  }

  .contact-link,
  .contact-note,
  .skill-list {
    padding: 16px;
  }
}
