:root {
  --paper: #fbfcfd;
  --ink: #05276f;
  --muted: #7a8391;
  --line: #d9dee6;
  --line-soft: #edf0f4;
  --dot: #cfd5dd;
  --blue: #0b2d78;
  --blue-soft: #eef3fb;
  --green: #4f7b67;
  --orange: #b46a42;
  --header-height: 58px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 0;
  height: 100dvh;
  margin: 0;
  color: #1f2937;
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1.4px),
    var(--paper);
  background-size: 16px 16px;
  font-family: Verdana, Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
}

.topline {
  width: min(1184px, calc(100% - 64px));
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: var(--muted);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.mark {
  position: relative;
  width: 30px;
  height: 22px;
  display: inline-block;
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
}

.mark::before {
  width: 24px;
  height: 15px;
  left: 0;
  top: 0;
  border: 2px solid var(--muted);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(11, 45, 120, 0.08), rgba(79, 123, 103, 0.08)),
    rgba(255, 255, 255, 0.45);
}

.mark::after {
  width: 14px;
  height: 2px;
  left: 7px;
  bottom: 0;
  border-top: 2px solid var(--muted);
}

.mark span {
  position: absolute;
  z-index: 1;
  left: 7px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.mark span::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 6px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.board {
  width: min(1184px, calc(100% - 64px));
  height: calc(100dvh - var(--header-height) - var(--header-height));
  margin: 0 auto;
}

.field {
  position: relative;
  height: 100%;
  border: 1px solid #c8ced8;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 222, 230, 0.65) 1px, transparent 1px),
    linear-gradient(rgba(217, 222, 230, 0.65) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size:
    16px 16px,
    16px 16px,
    80px 80px,
    80px 80px,
    auto;
}

.axis {
  position: absolute;
  pointer-events: none;
  opacity: 0.72;
}

.axis-x {
  left: 8%;
  right: 8%;
  top: 50%;
  border-top: 1px solid var(--line);
}

.axis-y {
  top: 13%;
  bottom: 13%;
  left: 50%;
  border-left: 1px solid var(--line);
}

.identity-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(354px, calc(100% - 48px));
  min-height: 184px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 38px 28px;
  border: 1px solid #cbd1db;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 2px 0 rgba(5, 39, 111, 0.04),
    0 13px 22px rgba(67, 78, 94, 0.1);
  transform: translate(-50%, -50%);
}

h1,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  color: #313846;
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-chip {
  position: absolute;
  z-index: 1;
  color: #6f7784;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d2d8e1;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.service-chip {
  padding: 8px 10px;
  letter-spacing: 1px;
}

.chip-software {
  left: calc(50% - 286px);
  top: calc(50% - 116px);
  border-left: 3px solid var(--blue);
}

.chip-systems {
  right: calc(50% - 258px);
  top: calc(50% - 72px);
  border-left: 3px solid var(--green);
}

.chip-data {
  left: calc(50% - 188px);
  top: calc(50% + 122px);
  border-left: 3px solid var(--orange);
}

@media (max-width: 520px) {
  :root {
    --header-height: 52px;
  }

  .topline,
  .board {
    width: min(100% - 28px, 1184px);
  }

  .wordmark {
    font-size: 18px;
  }

  .service-chip {
    display: none;
  }
}
