/* KEN SYSTEMS — telecom equipment and repair landing */

:root {
  --bg: #f0eee7;
  --ink: #181818;
  --muted: #6d675e;
  --line: rgba(24, 24, 24, 0.16);
  --yellow: #f4c542;
  --orange: #f26a2e;
  --blue: #244dff;
  --card: #fffaf0;
  --font: "Archivo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 24, 24, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(24, 24, 24, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  font-family: var(--font);
  line-height: 1.65;
}

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

.rail {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  width: 124px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
}

.logo {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ken-mark {
  display: grid;
  gap: 5px;
}

.ken-mark i {
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
}

.ken-mark i:nth-child(2) {
  width: 72%;
  background: var(--orange);
}

.ken-mark i:nth-child(3) {
  width: 44%;
  background: var(--blue);
}

.logo b {
  font-size: 0.92rem;
  line-height: 1.12;
  letter-spacing: 0.08em;
}

.language,
.menu {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.menu {
  display: none;
}

.menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.nav {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.nav a:hover {
  color: #ffffff;
}

main,
footer {
  width: min(1120px, calc(100% - 170px));
  margin-left: calc((100% - min(1120px, calc(100% - 170px))) / 2 + 70px);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: end;
  padding: 70px 0 90px;
  border-bottom: 3px solid var(--ink);
}

.tag {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 1030px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7.2vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-row p,
.network p,
.equipment p,
.process p,
.contact p {
  color: var(--muted);
}

.hero-row div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  background: var(--orange);
  color: #ffffff;
  border: 0;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.ghost {
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
}

.network {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  padding: 88px 0;
  border-bottom: 3px solid var(--ink);
}

.signal-box {
  position: relative;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 10px 10px 0 var(--ink);
}

.signal-box span {
  position: absolute;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
}

.signal-box span:nth-child(1) {
  width: 72px;
  height: 72px;
  top: 32px;
  left: 34px;
}

.signal-box span:nth-child(2) {
  width: 106px;
  height: 106px;
  right: 32px;
  top: 82px;
  background: var(--blue);
}

.signal-box span:nth-child(3) {
  width: 82px;
  height: 82px;
  left: 96px;
  bottom: 42px;
  background: var(--orange);
}

.equipment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 88px 0;
  border: 3px solid var(--ink);
  background: var(--ink);
}

.equipment article {
  min-height: 280px;
  padding: 22px;
  background: var(--card);
}

.equipment article:nth-child(2),
.equipment article:nth-child(5) {
  background: var(--yellow);
}

.equipment article:nth-child(4),
.equipment article:nth-child(7) {
  background: #ffffff;
}

.process {
  padding: 88px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.steps div {
  min-height: 230px;
  padding: 22px;
  border: 3px solid var(--ink);
  background: #ffffff;
}

.steps b {
  display: block;
  margin-bottom: 58px;
  color: var(--orange);
  font-size: 1.25rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 0.85fr 1fr;
  gap: 18px;
  padding: 88px 0;
}

address,
form {
  padding: 22px;
  border: 3px solid var(--ink);
  background: #ffffff;
  font-style: normal;
}

address p {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

address span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

input,
textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px;
  border: 3px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

form .button {
  width: 100%;
}

footer {
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 3px solid var(--ink);
}

@media (max-width: 980px) {
  .rail {
    position: sticky;
    top: 12px;
    left: auto;
    bottom: auto;
    width: min(1120px, calc(100% - 24px));
    height: auto;
    margin: 12px auto;
    flex-direction: row;
    align-items: center;
  }

  .logo {
    display: flex;
    align-items: center;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px;
    background: var(--ink);
  }

  .nav.is-open {
    display: grid;
  }

  .menu {
    display: block;
  }

  main,
  footer {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
  }

  .hero-row,
  .network,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .signal-box {
    max-width: 360px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.7rem;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

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