@font-face {
  font-family: 'Raleway';
  src: url('/assets/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/assets/OpenSans-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  height: 100%;
  display: flex;
  flex-direction: column;
}

img {
  width: 100%;
  height: auto;
}

a,
p,
span,
ul,
li {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff;
  font-family: 'Raleway', sans-serif;
  margin: 0;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.button {
  background-color: #c1272d;
  color: #fff;
  border-radius: 16px;
  width: max-content;
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 8px;
}

.desktop {
  display: none !important;
}

.mobile {
  display: block !important;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  border-bottom: 1px solid rgb(38, 38, 38);
  padding: 12px 48px;
}

.header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.section--centered {
  align-self: center;
}

.view[hidden] {
  display: none;
}

.view:not([hidden]) {
  animation: view-in 0.35s ease;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]) {
    animation: none;
  }
}

.section--overlayed {
  padding-top: 35%;
}

.section__caption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  color: #c1272d;
  text-transform: uppercase;
}

.section__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
}

.section__subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #999;
}

.section__badge {
  display: inline-flex;
  padding: 16px;
  border-radius: 16px;
  background-color: #111111;
  border: 1px solid rgb(38, 38, 38);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.bottom-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-text__item,
.bottom-text__divider {
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cards__item {
  display: flex;
  justify-content: center;
}

.card {
  max-width: 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #111111;
  border: 1px solid rgb(38, 38, 38);
  border-radius: 16px;
  cursor: pointer;
  transition: border 0.2s ease;
  text-decoration: none;
}

.card__image-wrapper {
  width: 100%;
  height: 60px;
  overflow: hidden;
  flex-shrink: 0;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .button:hover {
    background-color: #fff;
    color: #000;
  }

  .card:hover {
    border: 1px solid #fff;
  }

  .card:hover .card__image {
    transform: scale(1.05);
  }
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.card__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #999;
}

.overlay__image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.overlay__image img {
  object-fit: cover;
  height: 200px;
  width: 100vw;
  display: block;
}

.overlay__image::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 2;
  pointer-events: none;
}

.overlay__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.hint {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgb(38, 38, 38);
}

.hint__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.hint__subtitle {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #999;
}

.hint__discount {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-between;
}

.hint__discount-input {
  display: inline-flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background-color: #111111;
  border: 1px solid rgb(38, 38, 38);
}

.button--hint {
  padding: 12px 24px;
  min-width: 96px;
  margin: 0;
}

.button--hint.button--active {
  background-color: #fff;
  color: #000;
  cursor: auto;
}

.hint__note {
  font-size: 12px;
  line-height: 1.4;
  color: #999;
}

.link {
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.footer {
  border-top: 1px solid rgb(38, 38, 38);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__text {
  border: 1px solid rgb(38, 38, 38);
  border-radius: 8px;
  padding: 8px 16px;
}

@media screen and (min-width: 992px) {
  .desktop {
    display: block !important;
  }

  .mobile {
    display: none !important;
  }

  .section--overlayed {
    padding-top: 5%;
  }

  .section__caption {
    font-size: 16px;
  }

  .section__title {
    font-size: 52px;
  }

  .section__subtitle {
    font-size: 18px;
    max-width: 800px;
  }

  .section__badge {
    font-size: 18px;
    padding: 24px;
  }

  .button {
    font-size: 18px;
    padding: 16px 48px;
  }

  .button--hint {
    padding: 16px 24px;
    min-width: 110px;
  }

  .hint__note {
    font-size: 16px;
  }

  .link {
    font-size: 16px;
  }

  .card {
    max-width: 400px;
    width: 100%;
  }

  .card__image-wrapper {
    height: 100%;
    max-height: 150px;
  }

  .card__title {
    font-size: 20px;
  }

  .bottom-text__item,
  .bottom-text__divider {
    font-size: 16px;
  }

  .hint-container,
  .hint {
    padding: 24px;
  }

  .hint__title {
    font-size: 24px;
  }

  .hint__subtitle {
    font-size: 18px;
  }
}