.page-frontend--notifications-page .site-main {
  margin-top: 90px;
}

@media (max-width: 1200px) {
  .page-frontend--notifications-page .site-main {
    margin-top: 60px;
  }
}

/* ===== Hero ===== */

.hero .hero__breadcrumbs {
  margin-top: 50px;
  margin-bottom: 37px;
}

.search-and-select {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  gap: 10px;
  width: fit-content;
  margin-left: auto;
}

@media (max-width: 639px) {
  .search-and-select {
    position: relative;
    width: 100%;
    margin: 15px 0 0 0;
  }

  .hero__small-search {
    width: 100%;
  }

  .hero .small-search__form {
    width: 100%;
  }

  .hero__year-select {
    flex-shrink: 0;
  }

  .hero .section-header {
    flex-wrap: wrap;
  }
}

/* ===== Карточки ===== */

.cards {
  margin-top: 35px;
  margin-bottom: 90px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Карточка */
.card {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  background-color: var(--color-bg-light);
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
}

.card__icon-link {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  flex-grow: 0;
  width: 46px;
  height: 46px;
  border-radius: 3px;
}

.card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 440 / 325;
  object-fit: cover;
}

.card__content {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  padding: 20px;
  color: var(--color-text-dark);
}

.card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.card__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.8;
}

.card__date {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.5;
}

@media (max-width: 1000px) {
  .cards {
    margin-top: 25px;
  }

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

  .card__image {
    aspect-ratio: 280/200;
  }

  .card__title { 
    font-size: 14px;
  }

  .card__text {
    font-size: 12px;
  }

  .card__date {
    font-size: 10px;
  }

  .card__icon-link {
    width: 26px;
    height: 26px;
  }

  .card__icon-link svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 639px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card__image {
    aspect-ratio: 300/200;
  }
}