:root {
  --blue: #004f8b;
  --blue-dark: #003765;
  --blue-light: #0a72bd;
  --yellow: #ffe400;
  --yellow-soft: #fff16e;
  --red: #c61515;
  --ink: #050505;
  --panel: #efefef;
  --panel-shadow: #9aa2a8;
  --green: #35ff66;
  --violet: #5928d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(155deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px) 0 0 / 94px 94px,
    radial-gradient(circle at 50% 10%, #f9feff 0, #c9dce3 34%, #93adb7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0,
      rgba(0, 0, 0, 0.18) 2px,
      transparent 2px,
      transparent 5px
    ),
    #03140a;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

body.is-loaded .preloader {
  visibility: hidden;
  opacity: 0;
}

.loading-window {
  width: min(560px, 100%);
  padding: 20px;
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  background: #061e0f;
  border: 3px solid #b9c2b9;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.25),
    inset -2px -2px 0 rgba(0, 0, 0, 0.8),
    0 0 0 2px #111,
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.loading-caption {
  margin-bottom: 12px;
  font-size: clamp(22px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(53, 255, 102, 0.65);
}

.loading-copy,
.loading-status {
  font-size: 15px;
  line-height: 1.45;
}

.loading-track {
  width: 100%;
  height: 28px;
  margin: 14px 0;
  padding: 3px;
  background: #020702;
  border: 2px inset #b8b8b8;
}

.loading-fill {
  width: 0%;
  height: 100%;
  background:
    repeating-linear-gradient(
      to right,
      var(--green) 0,
      var(--green) 14px,
      #061e0f 14px,
      #061e0f 18px
    );
  transition: width 0.22s steps(2, end);
}

.site-shell {
  width: min(1780px, calc(100% - 28px));
  margin: 8px auto 0;
  border: 2px solid #131313;
  background: rgba(221, 234, 238, 0.78);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.masthead {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 6px 16px 5px;
  background:
    linear-gradient(90deg, rgba(0, 79, 139, 0.09), rgba(255, 255, 255, 0.92), rgba(0, 79, 139, 0.1)),
    repeating-linear-gradient(135deg, rgba(0, 79, 139, 0.14) 0 2px, transparent 2px 28px);
  border-bottom: 2px solid #151515;
}

.logo-panel {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.pixel-logo {
  width: min(155px, 54vw);
  height: auto;
  display: block;
  transform: translateZ(0);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: contrast(1.38) saturate(1.45);
}

.logo-panel p {
  margin: 0;
  color: #111;
  font-size: clamp(11px, 1.7vw, 15px);
  font-weight: 800;
}

.retro-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  background: linear-gradient(#005f9f, var(--blue-dark));
  border-bottom: 2px solid #151515;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  overflow-x: auto;
}

.retro-nav a {
  flex: 0 0 auto;
  padding: 10px clamp(15px, 3vw, 34px);
  color: #fff;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 900;
  text-decoration: none;
  text-shadow: 1px 1px 0 #00233c;
}

.retro-nav a[aria-current="page"] {
  color: var(--yellow-soft);
}

.retro-nav a:hover {
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.16);
}

.retro-layout {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(520px, 1fr) minmax(220px, 270px);
  gap: 8px;
  padding: 8px;
  align-items: start;
}

.panel,
.hero-board {
  border: 2px solid #161616;
  background: var(--panel);
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 var(--panel-shadow);
}

.panel h2 {
  margin: 0;
  padding: 5px 9px;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.05;
  background: linear-gradient(#0069ae, #004777);
  border-bottom: 2px solid #151515;
  text-shadow: 1px 1px 0 #00233c;
}

.services-panel ul {
  margin: 0;
  padding: 10px 12px 10px 38px;
  list-style: none;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.2;
}

.services-panel li {
  position: relative;
  margin-bottom: 9px;
}

.services-panel li::before {
  position: absolute;
  left: -26px;
  top: 0.52em;
  width: 10px;
  height: 10px;
  content: "";
  background: #8ba36d;
  border: 2px solid #29351d;
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-board {
  position: relative;
  min-height: 316px;
  display: grid;
  grid-template-columns: minmax(84px, 130px) minmax(0, 1fr) minmax(84px, 130px);
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.32) 0,
      rgba(255, 255, 255, 0.32) 4px,
      transparent 4px,
      transparent 11px
    ),
    linear-gradient(135deg, var(--yellow), #ffd400 56%, #ffeb37);
}

.side-stack {
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 2;
  gap: 8px;
  align-self: start;
}

.hero-board::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.35) 48% 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 7px);
  opacity: 0.45;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 auto;
  max-width: 1000px;
  font-size: clamp(22px, 2vw, 38px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: none;
}

.main-cta {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  color: #111;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(#fff38a, #ffc900);
  border: 3px solid #111;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.9),
    inset -2px -2px 0 rgba(0, 0, 0, 0.24),
    5px 5px 0 rgba(0, 0, 0, 0.25);
}

.main-cta:hover {
  color: #fff;
  background: linear-gradient(#6c32ff, var(--violet));
  text-shadow: 1px 1px 0 #111;
}

.main-cta:focus-visible {
  outline: 4px solid var(--red);
  outline-offset: 4px;
}

.pixel-robot {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 194px;
  image-rendering: pixelated;
  filter: contrast(1.3);
  opacity: 0.86;
}

.robot-left {
  justify-self: start;
}

.robot-head,
.robot-body,
.robot-lines {
  position: absolute;
  display: block;
}

.robot-head {
  left: 18px;
  top: 12px;
  width: 78px;
  height: 78px;
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(0, 255, 179, 0.7) 31% 36%, transparent 37%),
    linear-gradient(#d9f4ff, #7d8790);
  border: 4px solid #222;
  box-shadow:
    12px 0 0 rgba(196, 0, 255, 0.42),
    -10px 10px 0 rgba(0, 188, 255, 0.38);
}

.robot-head::before,
.robot-head::after {
  position: absolute;
  top: 24px;
  width: 12px;
  height: 12px;
  content: "";
  background: #111;
}

.robot-head::before {
  left: 18px;
}

.robot-head::after {
  right: 18px;
}

.robot-body {
  left: 0;
  top: 96px;
  width: 118px;
  height: 76px;
  background:
    repeating-linear-gradient(to bottom, #444 0 6px, #d9d9d9 6px 12px),
    #c7c7c7;
  border: 4px solid #222;
  box-shadow:
    18px 10px 0 rgba(196, 0, 255, 0.5),
    -14px -6px 0 rgba(0, 188, 255, 0.5);
}

.robot-lines {
  left: 8px;
  top: 184px;
  width: 136px;
  height: 22px;
  background: repeating-linear-gradient(to bottom, #1d1d1d 0 4px, transparent 4px 8px);
}

.robot-right {
  justify-self: end;
  transform: scaleX(-1);
}

.news-panel article {
  padding: 5px 10px 2px;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.1;
}

.news-panel time {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.news-panel p {
  margin: 0;
}

.clients-panel {
  grid-column: 1 / span 2;
}

.broken-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 78px 78px 1fr 78px 78px;
  gap: clamp(12px, 4vw, 42px);
  align-items: center;
  justify-items: center;
  padding: 12px 22px;
  font-size: clamp(19px, 2vw, 28px);
}

.broken-img {
  position: relative;
  width: 58px;
  height: 48px;
  background: #fff;
  border: 3px solid #9a9a9a;
}

.broken-img::before {
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: 30px;
  height: 22px;
  content: "";
  background:
    linear-gradient(135deg, transparent 50%, #9a9a9a 51%) left bottom / 20px 18px no-repeat,
    radial-gradient(circle at 12px 8px, #9a9a9a 0 4px, transparent 5px);
}

.broken-img::after {
  position: absolute;
  left: -8px;
  top: 20px;
  width: 76px;
  height: 4px;
  content: "";
  background: #d42121;
  transform: rotate(46deg);
}

.counter-panel {
  min-height: 106px;
}

.odometer {
  margin: 8px 12px;
  padding: 7px;
  background: #777;
  border: 3px solid #111;
  border-radius: 8px;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.55),
    inset -2px -2px 0 rgba(0, 0, 0, 0.45);
}

.odometer span {
  display: block;
  padding: 5px 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0 3px, transparent 3px 9px),
    linear-gradient(#2b2b2b, #060606 48%, #3b3b3b 50%, #151515);
  border: 2px solid #111;
  border-radius: 6px;
  text-shadow: 0 2px 0 #000;
}

.offer-panel {
  position: relative;
}

.offer-content {
  min-height: 82px;
  position: relative;
  padding: 12px 88px 10px 12px;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.05;
}

.offer-content strong,
.offer-content span {
  display: block;
}

.offer-content strong {
  font-size: clamp(17px, 1.55vw, 23px);
}

.offer-content b {
  position: absolute;
  right: 16px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #111;
  font-size: 15px;
  transform: rotate(-12deg);
  clip-path: polygon(
    50% 0,
    61% 34%,
    98% 35%,
    68% 56%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 56%,
    2% 35%,
    39% 34%
  );
  background: #ffd84a;
  border: 2px solid #8a6d00;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.35));
}

.banner-panel {
  min-height: 92px;
}

.banner-panel p {
  display: grid;
  min-height: 52px;
  place-items: center;
  margin: 0;
  padding: 18px;
  color: #111;
  font-size: clamp(16px, 1.5vw, 21px);
  text-align: center;
  background: linear-gradient(135deg, #fff, #d8d8d8);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding: 8px 16px;
  font-size: clamp(13px, 1.35vw, 20px);
  text-align: center;
  background: linear-gradient(#e3e3e3, #c2c2c2);
  border-top: 2px solid #111;
}

@media (max-width: 1120px) {
  .retro-layout {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .side-stack {
    grid-column: 1 / span 2;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-board {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .hero-copy h1 {
    font-size: clamp(25px, 3.6vw, 39px);
  }

  .news-panel,
  .offer-panel,
  .banner-panel {
    grid-column: span 1;
  }

  .counter-panel,
  .banner-panel {
    grid-column: span 1;
  }

  .clients-panel {
    grid-column: span 2;
  }

  .robot-right {
    display: none;
  }

  .pixel-robot {
    transform: scale(0.7);
    transform-origin: left center;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 14px);
    margin-top: 7px;
  }

  .masthead {
    min-height: 72px;
    padding: 10px 10px 8px;
  }

  .pixel-logo {
    width: min(140px, 52vw);
  }

  .retro-nav {
    justify-content: flex-start;
  }

  .retro-layout {
    display: flex;
    flex-direction: column;
    padding: 8px;
  }

  .hero-board {
    order: 1;
  }

  .services-panel {
    order: 2;
  }

  .news-panel {
    order: 3;
  }

  .side-stack {
    order: 3;
    grid-template-columns: 1fr;
  }

  .clients-panel {
    order: 4;
  }

  .counter-panel {
    order: 5;
  }

  .offer-panel {
    order: 6;
  }

  .banner-panel {
    order: 7;
  }

  .panel,
  .hero-board {
    margin-bottom: 10px;
  }

  .hero-board {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px 12px 20px;
  }

  .pixel-robot {
    position: relative;
    left: auto;
    bottom: auto;
    width: 155px;
    height: 148px;
    justify-self: center;
    margin-top: 8px;
    transform: scale(0.72);
    transform-origin: center top;
  }

  .hero-copy {
    width: 100%;
    order: 1;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 7.1vw, 32px);
  }

  .pixel-robot {
    order: 2;
  }

  .main-cta {
    width: min(100%, 360px);
    padding: 13px 12px;
    font-size: clamp(18px, 6vw, 24px);
  }

  .services-panel ul {
    font-size: 19px;
  }

  .broken-row {
    grid-template-columns: repeat(2, 58px);
    justify-content: center;
    gap: 18px 28px;
    padding: 18px 10px;
  }

  .broken-row strong {
    grid-column: 1 / -1;
    order: -1;
  }

  .offer-content {
    padding-right: 105px;
  }
}

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