:root {
  color-scheme: dark;
  color: #f3f8f7;
  background: #101a25;
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a {
  color: #9ae9d2;
  text-underline-offset: 0.25em;
}
a:focus-visible {
  outline: 3px solid #ffdf91;
  outline-offset: 5px;
}
header,
footer {
  background: #12212d;
}
header {
  border-bottom: 1px solid #2b4050;
}
footer {
  margin-top: auto;
  border-top: 1px solid #2b4050;
}
.bar {
  width: min(1120px, 100% - 48px);
  margin: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.bar nav,
.language {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.bar a {
  color: #c0d5d9;
  text-decoration: none;
}
.bar a:hover {
  color: #fff;
  text-decoration: underline;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.18rem;
}
.brand img {
  object-fit: contain;
}
main {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero img {
  width: min(100%, 460px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 20px 45px #6ce6c328);
}
h1,
h2 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.5rem);
  margin: 0 0 22px;
  max-width: 13ch;
}
h2 {
  font-size: 1.45rem;
  margin-block: 0 8px;
}
p {
  margin: 0;
  color: #bbd1d6;
}
.hero p {
  max-width: 41ch;
  font-size: clamp(1rem, 2vw, 1.24rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 9px 19px;
  border: 1px solid #84d9be;
  border-radius: 10px;
  background: #a2edcf;
  color: #0e2624;
  font-weight: 750;
  text-decoration: none;
}
.button.secondary {
  background: #162936;
  color: #e2f7ef;
  border-color: #42665f;
}
.button:hover {
  filter: brightness(1.12);
}
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-block: 24px;
  border-block: 1px solid #2b4050;
}
.modes section {
  padding: 10px 10px 14px;
}
.match {
  font-size: 1.2rem;
  margin-block: 24px 46px;
}
.article {
  max-width: 720px;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.article h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.article section {
  padding-block: 22px;
  border-top: 1px solid #2b4050;
}
.article .button + section {
  margin-top: 28px;
}
.article section + p {
  margin-top: 8px;
}

@media (max-width: 650px) {
  .bar,
  main {
    width: calc(100% - 32px);
  }
  .bar {
    justify-content: flex-start;
    padding-block: 14px;
  }
  header .bar nav {
    order: 1;
    width: 100%;
  }
  .language {
    margin-left: auto;
  }
  .hero,
  .modes {
    grid-template-columns: 1fr;
  }
  .hero img {
    width: min(78vw, 320px);
  }
  .modes {
    gap: 4px;
  }
}
