@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #FAFAFA;
  font-family: "Inter", sans-serif;
  color: #333;
}

/* Главная обертка и шапка */
.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

.decor-item {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}
.decor-item--top-right {
  top: -20px;
  right: -20px;
}
.decor-item--left-center {
  top: 40%;
  left: 0px;
  transform: translateY(-50%);
}
.decor-item--right-center {
  top: 60%;
  right: -2px;
  transform: translateY(-50%);
}

.header {
  text-align: center;
  margin-bottom: 80px;
}
.header__subtitle {
  display: block;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.header__title {
  font-size: clamp(28px, 6vw, 42px); /*Шрифт меняется в зависимости от размера экрана*/
  color: #1A1A1A;
  font-weight: 900;
}

/* Каталог и товары */
.catalog {
  max-width: 1050px;
  margin: 0 auto;
}
.catalog__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.catalog__filter-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #8E8E93;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.catalog__filter-btn sup {
  font-size: 10px;
  margin-left: 4px;
}
.catalog__filter-btn:hover, .catalog__filter-btn--active {
  color: #FF3B30;
  background-color: rgba(255, 59, 48, 0.1);
}
.catalog__filters {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.catalog__filters li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog__search {
  position: relative;
  display: flex;
  align-items: center;
}
.catalog__search-input {
  padding: 12px 40px 12px 20px;
  border: 1px solid #E5E5EA;
  border-radius: 8px;
  font-size: 14px;
  width: 250px;
  outline: none;
  transition: border-color 0.3s ease;
}
.catalog__search-input:focus {
  border-color: #FF3B30;
}
.catalog__search-icon {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 30px;
  justify-items: center;
}

/* Карточка курса */
.card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.card__image-wrapper {
  height: 240px;
  width: 100%;
}
.card__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.card__category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  width: -moz-fit-content;
  width: fit-content;
}
.card__category[data-category=Marketing] {
  background-color: #00C48C;
}
.card__category[data-category=Management] {
  background-color: #5B86E5;
}
.card__category[data-category="HR & Recruting"] {
  background-color: #FFA23A;
}
.card__category[data-category=Design] {
  background-color: #F95A96;
}
.card__category[data-category=Development] {
  background-color: #8E54E9;
}
.card__title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #1A1A1A;
}
.card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: auto;
}
.card__price {
  color: #FF3B30;
  font-weight: 700;
  font-size: 18px;
}
.card__author {
  color: #8E8E93;
}

/* Подвал */
.footer {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.footer__load-more {
  background: none;
  border: none;
  font-size: 16px;
  color: #1A1A1A;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__load-more img {
  width: 24px;
  height: 24px;
}
.footer__load-more:hover {
  opacity: 0.7;
}/*# sourceMappingURL=style.css.map */