.programs-block {
  padding: 90px 0 90px;
  background: #f6f6f6;
}

.programs-block__container {
  width: 1176px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.programs-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

.programs-block__title {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 47.5px;
  line-height: 0.98;
  font-weight: 400;
  color: #1a1a1a;
}

.programs-block__all {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .25s ease;
}

.programs-block__all:hover {
  background: #006adb;
}

.programs-block__all-icon {
  font-size: 44px;
  line-height: 1;
  color: #006adb;
  transition: color .25s ease;
}

.programs-block__all:hover .programs-block__all-icon {
  color: #ffffff;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15.85px;
}

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 298px;
  background: #ffffff;
  border-radius: 19.46px;
  padding: 20px 20px 24px;
  text-decoration: none;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.program-card:hover {
  box-shadow: 7px 7px 6.4px rgba(0, 141, 233, 1);
  transform: translate(-2px, -2px);
}

.program-card__top {
  position: relative;
  min-height: 128px;
  display: block;
}

.program-card__hours {
  position: relative;
  z-index: 2;
  min-width: 70.54px;
  height: 27.41px;
  padding: 0 12px;
  border: 0.65px solid #004cc4;
  border-radius: 26.11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 13.05px;
  line-height: 1;
  font-weight: 400;
  color: #004cc4;
  box-sizing: border-box;
}

.program-card__image {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 124px;
  height: 124px;
  object-fit: contain;
  display: block;
}

.program-card__title {
  position: relative;
  z-index: 2;
  margin-top: auto;
  font-family: Inter, Arial, sans-serif;
  font-size: 24.52px;
  line-height: 1.04;
  font-weight: 400;
  color: #1a1a1a;
  word-break: break-word;
}

@media (max-width: 1270px) {
  .programs-block__container {
    width: 100%;
    max-width: calc(100% - 40px);
  }

  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-card__top {
    min-height: 120px;
  }

  .program-card__image {
    width: 104px;
    height: 104px;
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .programs-block {
    padding: 56px 0 56px;
  }

  .programs-block__container {
    max-width: calc(100% - 24px);
  }

  .programs-block__head {
    align-items: center;
    margin-bottom: 28px;
    gap: 16px;
  }

  .programs-block__title {
    font-size: 28px;
    line-height: 1.02;
  }

  .programs-block__all {
    width: 52px;
    height: 52px;
  }

  .programs-block__all-icon {
    font-size: 30px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .program-card {
    min-height: 210px;
    padding: 16px 16px 18px;
    border-radius: 16px;
  }

  .program-card__top {
    min-height: 96px;
  }

  .program-card__image {
    width: 88px;
    height: 88px;
    top: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .program-card__hours {
    min-width: 64px;
    height: 26px;
    font-size: 12px;
    padding: 0 10px;
  }

  .program-card__title {
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.06;
  }

  .program-card:hover {
    transform: none;
    box-shadow: none;
  }
}