:root {
  --container-max-width: 980px;
  --gap: 20px;
}

.catalog-container {
  max-width: var(--container-max-width);
  margin: 20px auto 20px;
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 980px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.course-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  position: relative; /* важно для позиционирования оверлея */
}

.course-card:hover {
  transform: translateY(-5px);
}

/* Блок с картинкой и заголовком поверх неё */
.course-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  font-weight: 400;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(55%); /* затемнение картинки */
}

/* Затемняющий слой (альтернатива filter — можно использовать и его, и градиент) */
.course-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); /* лёгкая дополнительная тонировка */
  pointer-events: none;
}

.course-title-overlay {
  position: absolute;
  top: 45px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* тень для читаемости */
  margin: 0;
  z-index: 2;
}
.course-title-overlay-za {
  position: absolute;
  top: 20px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* тень для читаемости */
  margin: 0;
  z-index: 2;
}

.cours-location {
  position: relative;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 15px;
  color: #fff;
}
.cours-pv {
  position: absolute;
  top: 120px;
  left: 15px;
  background: rgba(235, 50, 70,0.7);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 15px;
  color: #fff;
  margin-right: 5px;
  font-size: 14px;
}
.cours-promo {
  position: relative;
  background: rgba(235, 50, 70,0.7);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 15px;
  color: #fff;
}
.cours-promo-za {
  position: absolute;
  top: 120px;
  left: 15px;
  background: rgba(235, 50, 70,0.7);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 15px;
  color: #fff;
}


@media (max-width: 900px) {
    .cours-pv {
        font-size: 14px;
    }
    .cours-promo-za {
        display: none;
    }
    #promo-pere {
    	display: none;
    }
}

.course-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  width: calc(100% - 15px);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* тень для читаемости */
  margin: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: #999;
}

.course-meta-l {
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  width: calc(100% - 15px);
  color: #fff;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* тень для читаемости */
  margin: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: #999;
}
.course-meta-top {
  position: absolute;
  top: 10px;
  left: 15px;
  width: calc(100% - 15px);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}



.course-form-badge,
.course-duration-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px); /* эффект стекла */
  padding: 5px 10px;
  border-radius: 15px;
  color: #fff;
  margin-right: 5px;
}
.course-form-badge-2 {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px); /* эффект стекла */
  padding: 5px 10px;
  border-radius: 15px;
  color: #fff;
  margin-right: 5px;
}

.course-description {
  flex-grow: 1;
  font-size: 14px;
  line-height: 25px;
  color: #242424;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.course-footer-n {
  position: relative;
  height: auto;
  width: 100%;
}
.course-bottom-1 {
  position: relative;
  display: inline-flex;
  margin: 0;
  width: 100%;
  gap: 5px;
}

.course-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #242424;;
}

.course-price-fiz {
  position: relative;
  width: 75px;
  font-weight: 700;
  font-size: 16px;
  color: #242424;;
}
.course-price-ur {
  position: relative;
  width: 75px;
  bottom: 0;
  font-weight: 700;
  font-size: 16px;
  color: #242424;;
}
#promo-catalog {
  color: #777777;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #777777;
}
.price-ur-text {
  position: relative;
  font-size: 16px;
  color: #242424;
}
.price-fiz-text {
  position: relative;
  font-size: 16px;
  color: #242424;
}

.course-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #242424;;
}
.course-link {
  text-decoration: none;
  color: #007bff;
  font-weight: 600;
}
.course-link-n {
  position: absolute;
  bottom: 0;
  right: 10px;
  text-decoration: none;
  font-size: 16px;
  color: #007bff;
  font-weight: 600;
}

.course-link-n-mob {
  position: relative;
  float: left;
  margin-top: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #007bff;
}


.course-link:hover {
  text-decoration: underline;
}

.course-start-badge {
  position: relative;
  background: #2175C5;
  backdrop-filter: blur(4px); /* эффект стекла */
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 15px;
  color: #fff;
  margin-left: auto; /* «прижимает» элемент вправо */
  white-space: nowrap; /* чтобы текст не переносился */
}
.course-start-badge-l {
  position: relative;
  background: #2175C5;
  backdrop-filter: blur(4px); /* эффект стекла */
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 15px;
  color: #fff;
  margin-left: auto; /* «прижимает» элемент вправо */
  white-space: nowrap; /* чтобы текст не переносился */
}

.course-start-badge-mob {
    position: absolute;
    bottom: 50px;
    left: 15px;
    font-size: 14px;
    background: #2175C5;
    backdrop-filter: blur(4px);
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 15px;
    color: #fff;
    margin-left: auto;
    white-space: nowrap;
}
.more {
  position: relative;
  font-size: 18px;
  margin: 25px 0;
  color: #242424;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 240px;
  padding: 2px 15px;
  border: 2px solid #242424;
  white-space: nowrap;
  border-radius: 25px;
}

.more-info {
  position: relative;
  font-size: 18px;
  margin: 25px 0;
  color: #242424;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 300px;
  padding: 2px 15px;
  border: 2px solid #242424;
  white-space: nowrap;
  border-radius: 25px;
}

.more-yan {
  position: relative;
  font-size: 18px;
  margin: 25px 0;
  color: #242424;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 260px;
  padding: 2px 15px;
  border: 2px solid #242424;
  white-space: nowrap;
  border-radius: 25px;
}

.more-all {
  position: relative;
  font-size: 18px;
  margin: 25px 0;
  color: #242424;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 200px;
  padding: 2px 15px;
  border: 2px solid #242424;
  white-space: nowrap;
  border-radius: 25px;
}



.more-link {
  font-size: 18px;
  font-weight: 600;
  color: #242424;
  text-decoration: none;
  margin-right: 20px;
}

.more-i {
  font-size: 24px;
  margin-top: 2px;
  color: #242424;
}

@media (min-width: 900px) {
  .course-start-badge-mob {
    display: none;
  }
  #promo-pere-2 {
    display: none;
  }
  .course-link-n-mob {
    display: none;
  }


}
@media (max-width: 900px) {
  .more-link {
      font-size: 14px;
      font-weight: 600;
      color: #242424;
      text-decoration: none;
      margin-right: 20px;
  }
  .course-title-overlay {
  	position: absolute;
  	top: 45px;
  	left: 16px;
  	right: 16px;
  	color: #fff;
  	font-size: 16px;
  	line-height: 1.3;
  	text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* тень для читаемости */
  	margin: 0;
  	z-index: 2;
  }
  .course-title-overlay-za {
  	position: absolute;
  	top: 15px;
  	left: 16px;
  	right: 16px;
  	color: #fff;
  	font-size: 16px;
  	line-height: 1.3;
  	text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* тень для читаемости */
  	margin: 0;
  	z-index: 2;
  }

  .course-form-badge, .course-duration-badge {
  	white-space: nowrap;
  	font-size: 14px;
  	margin-right: unset;
  }
  .course-form-badge-2 {
	display: none;
  }

  .course-start-badge {
  	margin-left: unset;
	font-size: 14px;
  }
  .course-start-badge-2 {
	display: none;
  }

  .course-meta {
  	gap: 5px;
  	bottom: 40px;
  }
  #meta-pere {
  	bottom: 10px;
  }
  .course-start-badge-mob {
    	white-space: nowrap;
    	bottom: 10px;
  }
  .course-start-badge {
 	display: none; 	
  }
  .more-info {
  	width: 240px;
  }
  .more-yan {
  	width: 205px;
  }
  .more-all {
  	width: 160px;
  }
  .course-price-fiz {
  	font-size: 14px;
  	width: 70px;
  }
  .course-price-ur {
  	font-size: 14px;
  	width: 70px;
  }
  .price-fiz-text {
      font-size: 14px;
  }
  .price-ur-text {
      font-size: 14px;
  }
  #course-link-n-pro {
  	display: none;
  }




}