@font-face {
  font-family: "Toxigenesis";
  src: url("../fonts/Toxigenesis-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111214;
  --panel: #1a1b1e;
  --panel-soft: #24262a;
  --paper: #f8f7f3;
  --yellow: #ffc400;
  --yellow-soft: #ffda4a;
  --muted: #b6b7ba;
  --line: #42444a;
  --content: 86rem;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Toxigenesis", "Bahnschrift SemiCondensed", "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", Impact, sans-serif;
  color-scheme: dark;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  overflow-x: clip;
  background: var(--ink);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 78% -8%, rgb(255 196 0 / 0.09) 0, transparent 30rem),
    repeating-linear-gradient(125deg, transparent 0 3.75rem, rgb(255 255 255 / 0.035) 3.75rem 3.82rem, transparent 3.82rem 7.5rem),
    linear-gradient(155deg, #1b1c20 0 48%, var(--ink) 48% 100%);
  color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 0.2rem solid var(--yellow);
  outline-offset: 0.3rem;
}

.page-shell {
  position: relative;
  isolation: isolate;
  width: min(100% - 2rem, var(--content));
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(1.25rem, 3vw, 3rem) 1.5rem;
}

.page-shell::before {
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  z-index: -1;
  width: min(36rem, 44vw);
  height: 7rem;
  background:
    linear-gradient(145deg, transparent 0 24%, var(--yellow) 24% 28%, transparent 28% 50%),
    linear-gradient(145deg, transparent 0 46%, rgb(255 196 0 / 0.42) 46% 48%, transparent 48% 70%),
    linear-gradient(145deg, transparent 0 68%, rgb(255 196 0 / 0.16) 68% 69%, transparent 69% 100%);
  content: "";
  pointer-events: none;
}

.language-switch {
  position: absolute;
  top: clamp(1.25rem, 3vw, 3rem);
  right: 0;
  z-index: 1;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgb(17 18 20 / 0.88);
}

.language-switch a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
}

.language-switch a:hover {
  border-color: var(--yellow);
}

.language-switch a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
}

.language-switch img {
  display: block;
  width: 1.5rem;
  height: 1rem;
  border-radius: 0.1rem;
  object-fit: cover;
}

.brand-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto;
  gap: 1.5rem 4rem;
  align-items: end;
  padding-bottom: 1.35rem;
}

.brand-header::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(72%, 52rem);
  height: 0.45rem;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.5rem) 100%, 0 100%);
  content: "";
}

.brand-link {
  display: block;
  width: min(100%, 35rem);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.slogan {
  width: fit-content;
  margin: 0;
  justify-self: end;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  line-height: 1.1;
  text-align: right;
}

main {
  padding-block: clamp(2rem, 3.5vw, 3.5rem) clamp(3rem, 6vw, 6rem);
}

.hero {
  display: grid;
  grid-template-areas:
    "copy contacts"
    "availability contacts";
  grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.92fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.hero-copy {
  grid-area: copy;
}

.eyebrow,
h1,
h2 {
  font-family: var(--font-display);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--yellow);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.025em;
}

.availability {
  position: relative;
  display: flex;
  grid-area: availability;
  align-items: center;
  justify-content: center;
  max-width: 36rem;
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid var(--yellow);
  border-right: 0.25rem solid transparent;
  background: linear-gradient(105deg, rgb(255 196 0 / 0.08), transparent 72%);
}

.availability strong {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.services {
  margin-top: clamp(3.5rem, 7vw, 7rem);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.05;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 1rem;
  border-left: 0.28rem solid var(--yellow);
  background: linear-gradient(105deg, var(--panel-soft), rgb(36 38 42 / 0.25));
  font-weight: 700;
}

.service-icon {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--yellow);
}

.contacts {
  position: relative;
  grid-area: contacts;
  padding: clamp(1.35rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  border-top: 0.3rem solid var(--yellow);
  background: linear-gradient(145deg, rgb(30 31 34 / 0.98), rgb(17 18 20 / 0.98));
}

.contact-group + .contact-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-group h3 {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-group address {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
}

.contact-group a {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.35vw, 2rem);
  overflow-wrap: anywhere;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.08em;
}

.contact-group--primary a {
  color: var(--yellow);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
}

.contact-group a:hover {
  color: var(--yellow-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

.company-details {
  display: grid;
  gap: 0.25rem;
}

.error-page main {
  display: grid;
  min-height: 70vh;
  place-content: center;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 1rem;
}

@media (max-width: 64rem) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .page-shell::before {
    display: none;
  }

  .brand-header,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "copy"
      "contacts"
      "availability";
  }

  .brand-header {
    align-items: start;
    padding-top: 3rem;
  }

  .slogan {
    justify-self: start;
    text-align: left;
  }

  .availability {
    max-width: none;
  }
}

@media (max-width: 34rem) {
  .page-shell {
    width: min(100% - 1.25rem, var(--content));
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .contacts {
    padding: 1rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
