/* ======= Архив блока "Блог" ======= */
.blog-archive {
  padding: 60px 0 0;
}

/* Вступительный текст */
.blog-archive__intro {
  margin-bottom: 32px;
}

/* Фильтры */
.blog-archive__filters {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.blog-filter-button {
  padding: 14px 40px;
  border-radius: 32px;
  text-decoration: none;
  background: #D6EDFF;
  color: #000;
  transition: background 0.2s, color 0.2s;
}
.blog-filter-button:hover {
  background: #FCFCFC;
}
.blog-filter-button.is-active {
  background: #0787E3;
  color: #fff;
}

/* === Сетка карточек: всегда 3 колонки === */
.blog-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}



/* Одна карточка */
.blog-card {
  border-radius: 32px;
  overflow: hidden;
}
.blog-card:hover .blog-card__arrow {
  transform: rotate(45deg);
}
.blog-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Миниатюра */
.blog-card__thumb {
  position: relative;
  overflow: hidden;
  max-height: 270px;
  border-radius: 30px;
}
.blog-card__thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Бейдж типа */
.blog-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  text-transform: uppercase;
  color: #fff;
}
.badge--pink {
  background: #F285BE;
  color: #FFF;
}
.badge--blue {
  background: #0787E3;
}
.badge--black {
  background: #202020;
}

/* Контент */
.blog-card__body {
  padding: 16px 0;
  flex-grow: 1;
}
.blog-card__title {
  margin: 0 0 12px;
}
.blog-card__excerpt {
    opacity: 0.6;
}


/* Футер карточки */
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  opacity: 0.6;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card__arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.3s ease;
}


/* Скрываем моб. и десктоп-фильтры по-умолчанию */
.desktop-filters,
.mobile-filters {
  margin-bottom: 40px;
}
.mobile-filters {
  display: none;
}

/* ПО-УМОЛЧАНИЮ — показываем десктоп (кнопки) */
@media (min-width: 1024px) {
  .desktop-filters { display: flex; gap: 12px; }
  .mobile-filters  { display: none; }
}

/* Селект на мобиле */
.blog-filter-wrapper {
  display: none;
  position: relative;
  margin-bottom: 40px;
}

.blog-filter-toggle {
  width: 100%;
  padding: 15px 20px 15px 40px;
  background: #D6EDFF;
  border-radius: 20px;
  text-align: left;
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-filter-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

/* Выпадающий список */
.blog-filter-list {
  display: none;
  margin-top: 8px;
  background: #D6EDFF;
  border-radius: 20px;
  padding: 10px 0;
  flex-direction: column;
}

.blog-filter-item {
  display: block;
  padding: 4px 40px;
  text-decoration: none;
  color: #000;
}
.blog-filter-item:hover {
  background: rgba(0,0,0,0.05);
}

/* Открытие */
.blog-filter-wrapper.open .blog-filter-list {
  display: flex;
}
.blog-filter-wrapper.open .blog-filter-arrow {
  transform: rotate(180deg);
}

/* Только на мобиле */
@media (max-width: 1023px) {
  .blog-filter-wrapper {
    display: block;
  }
  .desktop-filters { display: none; }
}


@media (max-width: 769px) {
  .blog-archive__grid {
    grid-template-columns: 1fr;
  }
}