body {
  background: #0c0c0d;
  position: relative;
}
.main {
  position: relative;
}
.header {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: -2;
  max-height: 336px;
}
.footer {
  background: none;
}
.title {
  color: #fafafa;
  text-align: center;
  font-size: 42px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  padding: 106px 0;
}
.bg {
  width: 100%;
  position: relative;
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/img/hero-bg.png");
  z-index: -2;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.cards {
  padding-block: 75px;
}
.spot1,
.spot2 {
  position: absolute;
  top: 0;
  z-index: -1;
}
.spot1 {
  left: 0;
}
.spot2 {
  right: 0;
}
.cards-header {
  margin-bottom: 38px;
}
.cards-header h3 {
  color: #fafafa;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}
.cards-header p {
  color: #92949f;
  font-family: "Outfit";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.post-list {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #fafafa;
  gap: 4px;
  cursor: pointer;
}
.search {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #fafafa;
  gap: 10px;
  min-width: 260px;
  cursor: pointer;
}
.cards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cards-header-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}
.card {
  border-radius: 24px;
  background: #1e1f20;
  max-height: 5000px;
  display: flex;
  flex-direction: column;
}
.cards-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.card img {
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 50%;
}
.card-info {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.inf {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card span {
  color: #68d366;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.card h4 {
  color: #fafafa;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
}
.card-dop-info p {
  color: #fafafa;
  font-family: "Outfit";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}
.card-dop-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.card a {
  display: flex;
  padding: 12px 18px;
  justify-content: center;
  align-items: flex-start;
  color: #fafafa;
  text-align: center;
  font-family: "Outfit";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  border-radius: 36px;
  background: #005ed3;
  max-width: 100px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pag-item {
  color: #0c0c0d;
  text-align: center;
  font-family: "Outfit";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  border-radius: 24px;
  background: #eaeaec;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 12px 0px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.active-pag {
  color: #fafafa;
  background: #005ed3;
}
.trust {
  padding-bottom: 76px;
  margin-top: 29px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* Responsible design */

/* Tablet */
@media (max-width: 1439px) {
  .cards-list {
    grid-template-columns: 1fr;
  }
  .container {
    padding-inline: 114px;
  }
  .cards {
    padding-block: 60px;
  }
  .cards-header {
    margin-bottom: 20px;
    flex-direction: column;
  }
  .cards-header-menu p:first-child {
    display: none;
  }
  .post-list {
    display: none;
  }
  .trust {
    padding: 78px 112px;
  }
  .header {
    padding: 20px 18px;
  }
  .card-info {
    gap: 0;
  }
}

/* Phone */
@media (max-width: 744px) {
  .spot1,
  .spot2 {
    display: none;
  }
  .cards {
    padding-block: 47px;
  }
  .container {
    padding-inline: 12px;
  }
  .card-header h3 {
    font-size: 22px;
  }
  .card h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .card span {
    margin-bottom: 10px;
  }
  .pag-item {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .trust {
    padding: 66px 12px;
  }
  .footer {
    padding-block: 30px;
  }
}
