.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  margin: -0.0625rem;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

:root {
  --bg-light: #f2f2f2;
  --bg-muted: #c8cfde;
  --text: #111318;
  --brand: #2338c7;
  --horizontal-screen-padding: 1.25rem;
  --nav-a-padding: 0.7rem;
  --vertical-section-padding: 5rem;
  --footer: var(--bg-light);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--footer);
}

h2 {
  font-weight: 500;
}

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

.bold {
  font-weight: 600;
}

.subtitle {
  font-size: 2.813rem;
  line-height: 1.1;
}

.header__nav .active-page {
  text-decoration: underline;
  text-underline-offset: 0.5rem;
}

.header {
  display: flex;
  align-items: center;
  padding: var(--horizontal-screen-padding);
  justify-content: space-between;
  background-color: var(--bg-light);
  z-index: 20;
  --button-size: 2.6rem;
  --button-padding: 0.5rem;
}

.header__logo {
  width: 10rem;
}

.header__nav {
  margin-right: calc(-1 * var(--nav-a-padding));
  width: max-content;
}

.header__nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.header__nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  padding: var(--nav-a-padding);
  cursor: pointer;
  font-weight: 500;
}

.header__nav-offer {
  position: relative;
}

.header__nav-offer a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.header__nav-open-button {
  display: none;
  background: none;
  border: none;
  padding: var(--button-padding);
  margin-right: calc(-1 * var(--button-padding));
  cursor: pointer;
  align-self: start;
  width: var(--button-size);
}

.header__nav-open-button img {
  width: 100%;
}

.header__nav-close-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: calc(0.95 * var(--button-size));
  display: none;
}

.header__nav-close-button img {
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-muted);
  align-items: center;
}

.hero__img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero__text-container {
  padding: 2rem;
  height: max-content;
  margin-top: -2vw;
}

.hero__title {
  margin: 0;
  font-size: 4vw;
  white-space: nowrap;
  line-height: 1.05;
  margin-bottom: 1.4vw;
  font-weight: 600;
}

.hero__description {
  font-size: min(2.5rem, 2.3vw);
  line-height: 1.3;
  max-width: 33vw;
  margin-bottom: 3vw;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1vw 1.8vw;
  border: 0;
  border-radius: 0.3rem;
  font-size: 2vw;
  color: #fff;
  background: var(--brand);
  max-width: max-content;
}

.hero__button img {
  height: 2vw;
}

/* About */
.about {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  padding: calc(0.8 * var(--vertical-section-padding))
    var(--horizontal-screen-padding) var(--vertical-section-padding)
    var(--horizontal-screen-padding);
  background-color: var(--bg-light);
}

.about__text-container {
  max-width: 37rem;
}

.about__title {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.about__p {
  margin: 0;
  line-height: 1.45;
}

.about__ul {
  padding-left: 1.5rem;
}

.about__p,
.about__ul {
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
}

.about__ul li {
  margin-bottom: 0.4rem;
}

.about__img {
  width: 40vw;
  max-width: 31rem;
}

/* Offer */
.offer {
  background: var(--bg-muted);
  text-align: center;
  padding: calc(0.8 * var(--vertical-section-padding))
    var(--horizontal-screen-padding) var(--vertical-section-padding)
    var(--horizontal-screen-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer__title {
  margin-bottom: 2.7rem;
}

.offer__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-left: 0;
}

.offer__grid a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 450;
}

.offer__grid img {
  height: 4rem;
}

.offer__grid span {
  font-size: 1.3rem;
}

/* Partners */
.partners {
  text-align: center;
  padding: calc(0.8 * var(--vertical-section-padding)) 0
    calc(var(--vertical-section-padding) - 1.1rem) 0;
  background-color: var(--bg-muted);
}

.partners__title {
  margin-bottom: 1.5rem;
}

.partners__marquee {
  display: flex;
  overflow: hidden;
  opacity: 0.8;
}

.partners__track {
  flex-shrink: 0;
  min-width: max-content;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.partners__marquee.is-ready .partners__track {
  animation: partners-loop 26s linear infinite;
}

.partners__marquee:hover .partners__track {
  animation-play-state: paused;
}

@keyframes partners-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__marquee.is-ready .partners__track {
    animation: none;
  }
}

/* Contact */
.contact {
  background: var(--bg-light);
  padding: calc(1 * var(--vertical-section-padding))
    var(--horizontal-screen-padding) calc(1 * var(--vertical-section-padding))
    var(--horizontal-screen-padding);
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.contact__img {
  width: 30vw;
  max-width: 25rem;
  height: 100%;
}

.contact__text-container {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
}

.contact__title {
  margin-bottom: 1.3rem;
}

.contact__description {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 2.1rem;
}

.contact__link-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  text-underline-offset: 0.2rem;
  font-size: 1.2rem;
}

.contact__link path {
  stroke: var(--text);
}

/* Footer */
.footer {
  --color: #292929;
  display: flex;
  gap: 1.8rem;
  justify-content: center;
  background-color: var(--footer);
  padding: 1.5rem;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color);
  text-decoration: none;
}

.footer path,
.footer a {
  stroke: var(--color);
  color: var(--color);
}

/* Downloads */
.downloads {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin-top: -3rem;
}

.downloads__title {
  margin-bottom: 1.3rem;
  font-size: 2.1rem;
}

.downloads ul {
  padding-left: 0rem;
}

.downloads li {
  list-style: none;
}

.downloads a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  text-underline-offset: 0.2rem;
  margin-bottom: 0.9rem;
}

.header__nav.isOpen {
  transform: translateX(0);
}

@media (max-width: 800px) {
  .header__nav {
    position: fixed;
    background-color: var(--bg-light);
    right: 0;
    top: 0;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .header__nav > ul {
    flex-direction: column;
    gap: 1em;
    align-items: end;
  }

  .header__nav a {
    padding: 1rem;
  }

  .header__nav-open-button {
    display: block;
  }

  .header__nav-close-button {
    display: block;
  }
}

@media screen and (max-width: 700px) {
  /* Hero */
  .hero {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: calc(0.7 * var(--vertical-section-padding));
  }

  .hero__img {
    margin-bottom: 6vw;
  }

  .hero__text-container {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
  }

  .hero__title {
    font-size: 8vw;
    margin-bottom: 0.7rem;
  }

  .hero__description {
    margin-top: 0;
    font-size: 4vw;
    margin-bottom: 6.5vw;
    padding-top: 0;
    padding-bottom: 0;
    max-width: 32rem;
  }

  .hero__button {
    font-size: 4.5vw;
    padding: 0.6rem 1rem;
  }

  .hero__button img {
    height: 4.5vw;
  }
}

@media screen and (max-width: 916px) {
  /* About */
  .about {
    flex-direction: column;
    gap: 0.5rem;
    padding-top: calc(0.6 * var(--vertical-section-padding));
    padding-bottom: calc(0.75 * var(--vertical-section-padding));
  }

  .about__title {
    font-size: 1.9rem;
  }

  .about__img {
    max-width: unset;
    width: 100%;
    max-width: 37rem;
    margin-top: 0.5rem;
  }
}

@media screen and (max-width: 700px) {
  .offer {
    padding-top: calc(0.55 * var(--vertical-section-padding));
    padding-bottom: calc(0.65 * var(--vertical-section-padding));
  }

  .offer__title {
    margin-bottom: 1.2rem;
    font-size: 1.9rem;
  }

  .offer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

  .offer__grid img {
    height: 3rem;
  }

  .offer__grid span {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 831px) {
  /* Contact */
  .contact {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-top: calc(0.65 * var(--vertical-section-padding));
    padding-bottom: calc(0.8 * var(--vertical-section-padding));
  }

  .contact__text-container {
    margin: auto;
    margin-top: 0;
  }

  .contact__img {
    display: none;
  }

  .contact__link-container {
    flex-direction: column;
    align-items: center;
  }

  .contact__title {
    font-size: 2.1rem;
  }
}

@media screen and (max-width: 831px) {
  /* Partners */
  .partners {
    padding-top: calc(0.6 * var(--vertical-section-padding));
    padding-bottom: calc(0.35 * var(--vertical-section-padding));
  }

  .partners__title {
    margin-bottom: 0.4rem;
    font-size: 2.1rem;
  }
}

@media screen and (max-width: 600px) {
  /* Footer */
  .footer .hide-small {
    display: none;
  }
}
