*, 
*::before, 
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: "Poppins", serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  color: var(--color-very-dark-blue);
}

:root {
  --color-white: hsl(0, 0%, 100%);

  --color-very-dark-blue: hsl(234, 12%, 34%);
  --color-grayish-blue: hsl(229, 6%, 66%);
  --color-very-light-gray: hsl(0, 0%, 98%);

  --color-red: hsl(0, 78%, 62%);
  --color-cyan: hsl(180, 62%, 55%);
  --color-orange: hsl(34, 97%, 64%);
  --color-blue: hsl(212, 86%, 64%);
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--color-very-light-gray);
  min-height: 100vh;
  min-height: 100svh;
  height: 100%;
  padding: 80px 32px;
}

.heading {
  max-width: 540px;
  text-align: center;
}

.heading__subtitle {
  font-weight: 275;
  font-size: 36px;
  letter-spacing: 0.01em;
}

.heading__title {
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.01em;
  margin-top: 11px;
}

.heading__text {
  font-size: 15px;
  line-height: 1.67;
  letter-spacing: 0.01em;
  opacity: 0.5;
  margin-top: 16px;
}

.page__cards {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 30px;
  row-gap: 30px;
  margin-top: 64px;
  max-width: 1110px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 8px;
  padding: 32px;
  background-color: var(--color-white);
  box-shadow: 0 15px 30px -11px rgba(131, 166, 210, 0.5);
}

.card:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.card:nth-child(2) {
  grid-column: 2;
  grid-row: 1; 
}

.card:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / span 2; 
}

.card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.card__title {
  font-weight: 600;
  font-size: 20px;
}

.card__text {
  font-size: 13px;
  line-height: 177%;
  letter-spacing: 0.01em;
  margin-top: 6px;
  opacity: 0.5;
}

.card__img {
  height: 64px;
  width: 64px;
  margin-top: 40px;
  align-self: flex-end;
}

.card__img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.card:before {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  background-color: transparent;
  width: 100%;
  height: 4px;
  box-shadow: 0 15px 30px -11px rgba(131, 166, 210, 0.5);
}

.border__color--red:before {
  background-color: var(--color-red);
}

.border__color--cyan:before {
  background-color: var(--color-cyan);
}

.border__color--orange:before {
  background-color: var(--color-orange);
}

.border__color--blue:before {
  background-color: var(--color-blue);
}

@media (max-width: 768px) {
  .page {
    padding: 85px 32px 78px 32px;
  }

  .page__cards {
    display: flex;
    flex-direction: column;
    align-items: unset
  }

  .card {
    padding: 28px;
  }

  .card__img {
    margin-top: 33px;
    height: 57px;
    width: 57px;
    row-gap: 25px;
  }
}
