:root {
  --color-bg: #F5F5F7;
  --color-bg-block: #ffffff;
  --color-text: #666666;
  --color-link: #E31E24;
  --gap: 24px;
  --elems: 2;
}

.programs {
  padding: 0 0 128px 0;
  background-color: var(--color-bg);
}

.programs__title {
  font-weight: 900;
  font-size: 40px;
  line-height: 120%;
  margin-bottom: 32px;
    font-family: "Museo Sans Cyrl";
}

.programs__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.program {
  width: calc((100% - (var(--elems) - 1) * var(--gap)) / var(--elems));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--gap);
  justify-content: space-between;
  border-radius: 20px;
  background-color: var(--color-bg-block);
  padding: 24px;
}

.program__desc {
  width: 100%;
  max-width: 43%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
    position: relative;
    height: 100%
}

.program__subtitle {
  font-weight: 900;
  line-height: 120%;
  margin-bottom: 12px;
  color: var(--black, #242624);
  font-variant-numeric: lining-nums tabular-nums;
  font-family: "Museo Sans Cyrl";
  font-size: 18px;
  font-style: normal;
  line-height: 120%; /* 21.6px */
}

.program__subtitle:hover {
  color: #E31E24;
}

.program__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--color-text);
  margin-bottom: 28px;
}

.program__link {
  width: 102px;
  position: absolute;
    left: 0;
    bottom: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 137.5%;
  color: var(--color-link);
  transition: .3s;
}

.program__link:hover {
  color: #BF1217;
}

.program__link::after {
  width: 6px;
  height: 6px;
  display: block;
  content: "";
  position: absolute;
  right: 0px;
  top: 7px;
  border-right: 1.6px solid var(--color-link);
  border-bottom: 1.6px solid var(--color-link);
  transform: rotate(316deg);
  transform-origin: center;
  transition: 0.3s;
  z-index: 1;
}

.program__link:hover::after {
  border-right: 1.6px solid #BF1217;
  border-bottom: 1.6px solid #BF1217;
}

.program__img {
  width: 100%;
  height: 205px;
  max-width: 280px;
  object-fit: cover;
  border-radius: 24px;
}

.load-more {
  display: none;
}

.load-more.programs__item {
  display: flex;
}

@media(max-width: 768px) {
  .program {
    width: 100%;
  }
  .programs {
    padding-bottom: 60px;
  }
}

@media(max-width: 576px) {
  .program {
    flex-direction: column-reverse;
  }
  .program__desc {
    max-width: unset;
  }
  .programs__title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .program__img {
    height: auto;
    max-height: 240px;
    max-width: unset;
  }
}
