
.blog-page {
  padding-bottom: 161px;
}

.blog-page__crumbs {
  font-size: 14px;
  padding: 34px 0 26px;
  gap: 4px;
}

.blog-hero {
  margin-bottom: 49px;
  overflow-x: clip;
}

.blog-toolbar .search__input {
  letter-spacing: -0.54px;
}

.blog-hero__media {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
}

.blog-hero__img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.blog-hero__panel {
  position: absolute;
  left: 8px;
  top: 0px;
  bottom: 8px;
  width: min(680px, 48%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 0 35px;
  border-radius: 28px;
  background: rgba(41, 53, 67, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-sizing: border-box;
}

.blog-hero__title {
  font-weight: 400;
  margin: 0;
  font-size: 64px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.54px;
}

.blog-hero__desc {
  letter-spacing: -0.54px;
  margin: 0;
  max-width: 616px;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.blog-filters {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.blog-filters::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64px;
  background: linear-gradient(to right, rgba(242, 242, 242, 0), var(--color-bg));
  pointer-events: none;
}

.blog-filters__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 48px;
}

.blog-filters__track::-webkit-scrollbar {
  display: none;
}

.blog-filters__track .tab-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  white-space: nowrap;
}

.blog-toolbar__search {
  flex: 0 0 342px;
}

.blog-divider {
  height: 1px;
  border: 0;
  margin: 0 0 9px;
  background: var(--color-border-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.blog-grid[hidden] {
  display: none;
}

.blog-grid .blog-card {
  max-width: none;
  height: 100%;
}

.blog-grid .blog-card[hidden] {
  display: none;
}

.blog-empty {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;

  align-items: center;
  gap: 13px;
  letter-spacing: -0.54px;
  margin: 0 auto 160px;
  border-radius: 24px;
  padding: 64px 0;
  text-align: center;
}

.blog-empty[hidden] {
  display: none;
}

.blog-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--color-surface-blue);
}

.blog-empty__icon svg {
  width: 24px;
  height: 24px;
}

.blog-empty__title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-dark);
}

.blog-empty__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-dark);
}

.blog-pagination {
  margin-bottom: 160px;
}

.blog-pagination[hidden] {
  display: none;
}

.catalog-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: 24px;
}

.catalog-info__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-info__title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-dark);
}

.catalog-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  background: none;
  color: var(--color-text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.catalog-info__icon:hover,
.catalog-info__icon[aria-expanded="true"] {
  background: var(--color-border-light);
  color: var(--color-primary);
}

.catalog-info__icon-vbar {
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.catalog-info__icon[aria-expanded="true"] .catalog-info__icon-vbar {
  opacity: 0;
  transform: rotate(90deg);
}

.catalog-info__text {
  position: relative;
  max-height: 93px;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-dark);
  transition: max-height 0.3s ease;
}

.catalog-info__text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-surface));
  transition: opacity 0.2s ease;
}

.catalog-info__text.is-expanded {
  max-height: 600px;
}

.catalog-info__text.is-expanded::after {
  opacity: 0;
}

.catalog-info__text p {
  margin: 0 0 6px;
}

.catalog-info__text p:last-child {
  margin-bottom: 0;
}

.catalog-info__toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/*
 * Карточка статьи кликается целиком.
 *
 * Ссылка в карточке одна — «Читать», и вложить в неё заголовок с анонсом
 * нельзя: ссылка внутри ссылки недопустима. Поэтому растягиваем на всю
 * карточку невидимую область самой ссылки: щелчок в любом месте открывает
 * статью, в разметке по-прежнему одна ссылка, и Tab ведёт в неё же.
 *
 * На главной карточка и так ссылка целиком (.blog-card--small) — там это
 * правило не нужно.
 */
.blog-card:not(.blog-card--small) {
  position: relative;
  cursor: pointer;
}

.blog-card:not(.blog-card--small) .blog-card__more::after {
  content: "";
  position: absolute;
  inset: 0;
}
