:root {
  --yellow: #f2c811;
  --yellow-light: #ffe268;
  --ink: #171713;
  --ink-soft: #26261f;
  --paper: #f4efd9;
  --line: rgba(23, 23, 19, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--yellow);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--yellow);
  background-size: 36px 36px;
  font-family: "Courier New", Courier, monospace;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.site-header {
  border-bottom: 2px solid var(--ink);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-mark__icon {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.site-mark__icon::before,
.site-mark__icon::after {
  position: absolute;
  content: "";
  background: var(--ink);
}

.site-mark__icon::before {
  top: 7px;
  left: 2px;
  width: 12px;
  height: 2px;
}

.site-mark__icon::after {
  top: 2px;
  left: 7px;
  width: 2px;
  height: 12px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status__light {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.8s steps(2, end) infinite;
}

.construction {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  min-height: 620px;
}

.construction__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 110px) clamp(20px, 5vw, 80px);
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 clamp(30px, 5vh, 64px);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker span:first-child::before {
  content: "[ ";
}

.kicker span:last-child::after {
  content: " ]";
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Condensed", sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  line-height: 0.84;
}

.title-line--ru {
  font-size: clamp(64px, 9.3vw, 154px);
}

.title-line--accent {
  position: relative;
  z-index: 1;
  margin-left: clamp(12px, 4vw, 58px);
  padding: 0.04em 0.12em 0.1em;
  color: var(--yellow);
  background: var(--ink);
  font-size: clamp(58px, 8.5vw, 142px);
  transform: rotate(-1.5deg);
  box-shadow: 9px 9px 0 var(--yellow-light), 11px 11px 0 var(--ink);
}

.title-line--en {
  margin-top: clamp(22px, 4vh, 42px);
  border-top: 2px solid var(--ink);
  padding-top: 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(22px, 3.1vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1;
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 330px));
  gap: 28px;
  margin-top: clamp(36px, 6vh, 74px);
}

.message-grid p {
  position: relative;
  margin: 0;
  border-left: 4px solid var(--ink);
  padding-left: 16px;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1.55;
}

.construction__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  border-left: 2px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(23, 23, 19, 0.11) 49.8%, rgba(23, 23, 19, 0.11) 50.2%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, rgba(23, 23, 19, 0.11) 49.8%, rgba(23, 23, 19, 0.11) 50.2%, transparent 50.4%);
  background-size: 72px 72px;
}

.sign {
  position: relative;
  width: min(65%, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: clamp(8px, 1vw, 14px) solid var(--ink);
  color: var(--yellow);
  background: var(--ink);
  transform: rotate(4deg);
  box-shadow: 18px 18px 0 var(--yellow-light), 21px 21px 0 var(--ink);
  animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sign::before {
  position: absolute;
  inset: 13px;
  border: 2px solid var(--yellow);
  content: "";
}

.sign__symbol {
  width: 52%;
  filter: drop-shadow(4px 4px 0 rgba(242, 200, 17, 0.14));
}

.sign__label {
  position: absolute;
  right: -30px;
  bottom: 24px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--yellow-light);
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sign__bolt {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.sign__bolt--one { top: 21px; left: 21px; }
.sign__bolt--two { top: 21px; right: 21px; }
.sign__bolt--three { right: 21px; bottom: 21px; }
.sign__bolt--four { bottom: 21px; left: 21px; }

.measure {
  position: absolute;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
}

.measure--top {
  top: 18px;
  right: 30px;
  left: 30px;
  border-top: 1px solid var(--ink);
  padding-top: 6px;
}

.measure--side {
  top: 36px;
  right: 15px;
  bottom: 36px;
  flex-direction: column;
  border-right: 1px solid var(--ink);
  padding-right: 7px;
}

.visual-index {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.barrier {
  position: relative;
  z-index: 3;
  height: 70px;
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--yellow-light);
}

.barrier__track {
  position: absolute;
  inset: 0 -160px;
  background: repeating-linear-gradient(120deg, var(--ink) 0 54px, transparent 54px 108px);
  animation: track 8s linear infinite;
}

.site-footer {
  color: var(--paper);
  background: var(--ink);
}

.footer-code {
  color: var(--yellow);
}

@keyframes pulse {
  50% { opacity: 0.25; }
}

@keyframes settle {
  from { opacity: 0; transform: rotate(12deg) scale(0.88); }
  to { opacity: 1; transform: rotate(4deg) scale(1); }
}

@keyframes track {
  to { transform: translateX(108px); }
}

@media (max-width: 900px) {
  .construction {
    grid-template-columns: 1fr;
  }

  .construction__copy {
    padding-bottom: 72px;
  }

  .construction__visual {
    min-height: 390px;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .sign {
    width: min(48%, 250px);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-block: 15px;
  }

  .status span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .construction {
    min-height: 0;
  }

  .construction__copy {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .title-line--accent {
    margin-top: 8px;
    margin-left: 0;
    box-shadow: 6px 6px 0 var(--yellow-light), 8px 8px 0 var(--ink);
  }

  .message-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .construction__visual {
    min-height: 300px;
  }

  .sign {
    width: 180px;
    box-shadow: 12px 12px 0 var(--yellow-light), 15px 15px 0 var(--ink);
  }

  .sign__label {
    right: -22px;
    bottom: 16px;
    font-size: 9px;
  }

  .barrier {
    height: 52px;
  }

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

  .site-footer span:first-child {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
