:root {
  --black: #040707;
  --red: #ec1e27;
  --red-strong: #b8121a;
  --yellow: #fecd08;
  --ink: #15191b;
  --ink-soft: #4d575c;
  --surface: #fff;
  --surface-alt: #f2f4f5;
  --line: #dde2e4;
  --header-h: 72px;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red-strong);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 3px solid var(--red-strong);
  outline-offset: 3px;
}

.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand img {
  width: auto;
  height: 46px;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  font: 600 0.95rem/1 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (width <= 940px) {
  .js .nav-toggle {
    display: flex;
  }

  .js .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgb(0 0 0 / 8%);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    width: min(1160px, 100% - 32px);
    margin-inline: auto;
    padding: 8px 0 16px;
  }

  .js .site-nav a {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav a[aria-current="true"] {
    border-bottom-color: var(--line);
    box-shadow: inset 4px 0 0 var(--red);
    padding-left: 14px;
  }

  /* Without JavaScript the menu stays visible and wraps under the logo. */
  html:not(.js) .site-header {
    position: static;
    height: auto;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .site-nav ul {
    flex-wrap: wrap;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--header-h);
  background: var(--black);
  color: #fff;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: clamp(56px, 10vw, 120px);
}

.hero-kicker {
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--yellow);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 34em;
  margin: 20px 0 32px;
  font-size: 1.15rem;
  color: rgb(255 255 255 / 86%);
}

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

.hero-mark {
  justify-self: center;
  width: min(100%, 380px);
}

.hero-stripes {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--yellow) 50% 100%);
}

@media (width <= 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 260px;
    opacity: 0.18;
  }
}

/* Buttons */

.button {
  display: inline-block;
  padding: 14px 24px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
}

.button-primary {
  background: var(--yellow);
  color: var(--black);
}

.button-primary:hover {
  background: #fff;
}

.button-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 60%);
}

.button-ghost:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 8%);
}

/* Sections */

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-alt {
  background: var(--surface-alt);
}

.section-title {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  background: var(--red);
}

.section-intro {
  max-width: 40em;
  margin: 0 0 32px;
  color: var(--ink-soft);
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.about-body p {
  margin: 0 0 16px;
  max-width: 40em;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.5;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 16px 0 0;
  border-top: 3px solid var(--black);
}

.facts strong {
  display: block;
  font: 700 1.3rem/1.2 var(--font-head);
  text-transform: uppercase;
}

.facts span {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (width <= 760px) {
  .about,
  .facts {
    grid-template-columns: 1fr;
  }
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding: 28px 24px;
  background: var(--surface);
  border-top: 4px solid var(--red);
}

.service:nth-child(even) {
  border-top-color: var(--yellow);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
}

/* Partners */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners li {
  display: grid;
  place-items: center;
  height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
}

.partners img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* Location */

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

.location address {
  font-style: normal;
  margin-bottom: 16px;
}

.map {
  margin: 0;
}

.map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
}

.map figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (width <= 760px) {
  .location {
    grid-template-columns: 1fr;
  }

  .map iframe {
    height: 300px;
  }
}

/* Contact */

.contact {
  background: var(--black);
  color: #fff;
}

.contact .section-intro {
  color: rgb(255 255 255 / 80%);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 20px 24px;
  border-left: 4px solid var(--yellow);
  background: rgb(255 255 255 / 6%);
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 75%);
}

.contact-link {
  font: 700 clamp(1.4rem, 3vw, 1.8rem) / 1.3 var(--font-head);
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: var(--yellow);
}

@media (width <= 760px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.site-footer {
  padding-block: 24px;
  background: #000;
  color: rgb(255 255 255 / 75%);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer p {
  margin: 0;
}

.to-top,
.group-link {
  color: #fff;
}

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

/* Language switch: a text link, always visible beside the menu. */

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 2;
}

/* Both languages are shown; the current one is filled, so the label can't be
   read as the language of the page you're on. */
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 600 0.9rem/1 var(--font-body);
}

.lang-switch > * {
  padding: 8px 10px;
  color: var(--ink);
  text-decoration: none;
}

.lang-switch [aria-current="true"] {
  background: var(--ink);
  color: var(--surface);
}

.lang-switch a:hover {
  background: var(--surface-alt);
}

.site-nav {
  order: 1;
  margin-left: auto;
}
