:root {
  color-scheme: dark;
  font-family: "SFMono-Regular", "Roboto Mono", "IBM Plex Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --background: #0c0e0d;
  --foreground: #e6eae7;
  --muted: #9aa29d;
  --subtle: #737b76;
  --line: #252d29;
  --accent: #ff6247;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background: var(--background);
}

.site-header {
  height: 78px;
  padding: 0 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}

.brand__wordmark {
  display: block;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__cursor {
  display: block;
  width: 10px;
  height: 20px;
  background: var(--accent);
  animation: cursor-blink 0.9s step-end infinite;
  will-change: opacity;
}

.header-nav,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-nav {
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.025em;
}

.language-switcher {
  gap: 10px;
}

.language-switcher button {
  padding: 6px 0;
  color: var(--subtle);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: color 150ms ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active {
  color: var(--foreground);
}

.language-switcher span {
  color: #3c4440;
}

.header-email {
  text-decoration: none;
  transition: color 150ms ease;
}

.header-email:hover,
.header-email:focus-visible {
  color: var(--foreground);
}

.hero,
.services,
.contact {
  padding-inline: 49px;
}

.hero {
  height: 400px;
  padding-top: 111px;
}

.command {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.hero h1 {
  margin: 27px 0 0;
  max-width: 920px;
  font-size: clamp(52px, 5vw, 70px);
  font-weight: 750;
  letter-spacing: -0.048em;
  line-height: 1;
}

.hero__intro {
  max-width: 690px;
  margin: 33px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 560;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.services {
  height: 527px;
  padding-top: 7px;
}

.services__list {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
}

.service {
  min-height: 79px;
  display: grid;
  grid-template-columns: 79px 402px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px dashed var(--line);
}

.service__number {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.service h3,
.service p {
  margin: 0;
}

.service h3 {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.service p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 520;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.contact {
  height: 285px;
  padding-top: 70px;
  border-top: 1px dashed var(--line);
}

.contact__email {
  display: table;
  margin-top: 25px;
  color: var(--foreground);
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration-color: var(--foreground);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

.site-footer {
  height: 58px;
  padding: 0 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.02em;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .services,
  .contact,
  .site-footer {
    padding-inline: 28px;
  }

  .hero {
    height: auto;
    min-height: 390px;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(46px, 8.2vw, 64px);
  }

  .services {
    height: auto;
    padding-top: 10px;
    padding-bottom: 88px;
  }

  .service {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 20px;
    min-height: 104px;
    padding: 20px 0;
  }

  .service__number {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 5px;
  }

  .service p {
    grid-column: 2;
  }

  .contact {
    height: auto;
    min-height: 270px;
    padding-top: 64px;
    padding-bottom: 72px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .services,
  .contact,
  .site-footer {
    padding-inline: 20px;
  }

  .site-header {
    height: 70px;
  }

  .header-nav {
    gap: 0;
  }

  .header-email {
    display: none;
  }

  .hero {
    min-height: 390px;
    padding-top: 84px;
    padding-bottom: 70px;
  }

  .hero h1 {
    max-width: 330px;
    margin-top: 20px;
    font-size: clamp(43px, 13vw, 56px);
    line-height: 1.02;
  }

  .hero__intro {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.6;
  }

  .services {
    padding-bottom: 74px;
  }

  .service {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .service h3 {
    font-size: 19px;
  }

  .service p {
    font-size: 14px;
  }

  .contact {
    min-height: 252px;
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .contact__email {
    margin-top: 24px;
    font-size: clamp(22px, 6.5vw, 31px);
    overflow-wrap: anywhere;
    text-underline-offset: 6px;
  }

  .contact p {
    font-size: 14px;
  }

  .site-footer {
    height: auto;
    min-height: 78px;
    padding-block: 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
