:root {
  --font-family-primary: Nunito, sans-serif;
  --gradient-1: linear-gradient(135deg, #ff0a16 10%, #ba0009 100%);
  /*   --gradient-2: linear-gradient(214deg, #8EE2F1 0%, #CDFEDF 55%); */
  --gradient-2: linear-gradient(135deg, #ff0a16 10%, #ba0009 100%);
  --gradient-3: linear-gradient(135deg, #ff0a16 10%, #ba0009 100%);
}

* {
  box-sizing: border-box;
}

body {
  background-color: hsl(50, 12%, 98%);
  font-family: var(--font-family-primary);
  font-size: 16px;
  line-height: 1.425;
}

.layout__wrapper {
  margin: auto;
  width: 990px;
}

.section {
  padding: 40px;
}

.section__title {
  color: #000000;
  font-size: 2.15rem;
  margin: 0;
  margin-bottom: 2.5rem;
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery--grid {
  display: grid;
  grid-auto-flow: row dense;
  grid-gap: 70px;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 35px;
}

.gallery__item--highlight {
  grid-column: span 2;
}

.gallery__item:nth-child(2n) .card::before {
  background-image: var(--gradient-2);
}

.gallery__item:nth-child(3n) .card::before {
  background-image: var(--gradient-3);
}

.card {
  position: relative;
}

.mb-0{
  display: flex;
}

.rounded-100 img {
  border-radius: 50%;
}


.card-header a{
  margin: -3px 0 0 9px;
}

.card{
  margin-top: 14px;
}

.card__block--main {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 2px 5px 25px rgba(0, 0, 0, 0.15);
  min-height: 280px;
  padding: 20px;
  padding-top: 50px;
  position: relative;
  z-index: 2;
}

.card__element--user-img img,
.card__element--user-img svg {
  --size: 65px;

  background-color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  left: 10px;
  position: absolute;
  top: -90px;
  width: 40%;
}

.card__element--user-img svg {
  background-color: hsl(35, 92%, 71%);
  fill: #000;
}

.card__title {
  font-size: 1.85rem;
  font-weight: bold;
  line-height: 1.1;
  margin: 0;
}

.card__subtitle {
  color: hsl(210, 5%, 41%);
  font-size: 1rem;
  margin-top: 0.33rem;
}

.card__text {
  margin-top: 0.66rem;
}

.trade {
  bottom: 0;
  padding-top: 1.5rem !important /* @TODO temp !!!*/;
  position: absolute;
  right: 1.5rem;
  transition: transform 0.2s;
}

.trade:hover {
  transform: translateY(0.25rem);
}

.button {
  background-color: #000000;
  border: 1px solid #000000;
  box-shadow: 0 3px 0 #000000;
  border-radius: 10px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.15rem;
  padding: 0.75rem 1.5rem;
}

.button--primary {
  background-color: hsl(210, 5%, 41%);
  border-color: hsl(210, 5%, 36%);
  box-shadow: 0 5px 0 hsl(210, 5%, 20%);
}

.button--primary:hover {
  background-color: hsl(210, 5%, 51%);
  border-color: hsl(210, 5%, 41%);
}

.like {
  right: 35px;
  position: absolute;
  top: 0;
}

.like {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0.75rem;
}

.like .button-text {
  display: none;
}

.like svg {
  fill: #fff;
  height: 25px;
  width: 25px;
}
