* {
  box-sizing: border-box;
}

.main {
  width: 100%;
  max-width: 1920px;
  padding: 4rem 8rem;
  margin: 0 auto;
  font-family: "Overpass", sans-serif;
}

.main:first-of-type {
  background-image: url("https://assets.fanatec.com/image/upload/v1760127598/pages/where-to-buy/bg-panel-01.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header {
  color: #000;
  font-family: "Tomorrow", sans-serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.subheader {
  color: #0f0f0f;
  font-family: Overpass;
  font-size: 21px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.card {
  display: flex;
  flex: 0 0 calc(33.333% - 1rem);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  gap: 0.5rem;
  max-width: 550px;
  height: 250px;
  background-color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 50%;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  gap: 1rem;
}

.location {
  color: #4e929f;
  font-family: Tomorrow;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
}

.name {
  color: #0f0f0f;
  font-family: Overpass;
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link {
  color: #000;
  font-family: Overpass;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  text-transform: uppercase;
  flex: 0 0 calc(100% - 0.25rem);
}

.link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: inherit;
}

.link a::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("https://assets.fanatec.com/image/upload/v1760127483/pages/where-to-buy/icon-external.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .main {
    padding: 2rem 1rem !important;
    max-width: 1920px !important;
  }

  .cards {
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }

  .card {
    flex: 0 0 calc(100%) !important;
    max-width: 100% !important;
    height: 250px !important;
    padding: 0.5rem !important;
  }

  .header {
    font-size: 28px !important;
    text-align: left !important;
  }

  .subheader {
    font-size: 18px !important;
    text-align: left !important;
  }

  .logo {
    width: 40% !important;
  }

  .text {
    width: 60% !important;
    gap: 0.5rem !important;
  }

  .name {
    font-size: 21px !important;
  }

  .location {
    font-size: 18px !important;
  }

  .link {
    font-size: 14px !important;
    flex: 0 0 calc(100% - 0.5rem) !important;
  }

  .links {
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
}
