/* Блок stories (истории) */
.stories {
    font-size: 15px; /* 16px */
    padding: 3rem 0;  /* заменяет класс py-5 */
    font-family: 'Manrope', sans-serif;
}

/* Сетка вместо row g-4 */
.stories__grid {
    display: grid;
    gap: 1.5rem;      /* аналог g-4 */
    grid-template-columns: 1fr;
}

/* Адаптивность: 2 колонки на планшетах и десктопах */
@media (min-width: 768px) {
    .stories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Элемент сетки (бывшая колонка) */
.stories__item {
    height: 100%;     /* обеспечивает одинаковую высоту карточек */
}

.storyCard__dops {
    display: flex;
    align-items: center;
    padding-bottom: 1.25em;
    gap: 1.5em;
}
/* Карточка истории */
.storyCard {
    background-color: #f4f5f5;
    border-radius: 1.25rem; /* 20px */
    overflow: hidden;
    height: 100%;           /* заменяет класс h-100 */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.storyCard__image {

    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    height: 0;
    padding-top: 69%;
}
.storyCard__imgcont {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}
.storyCard__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.storyCard__content {
    flex: 1;
    padding: 1.5em; /* 24px */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.storyCard__title {
    font-size: 1.25em; /* 20px */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1em;
    color: #4D4B4C;
    text-decoration: none;
}

.storyCard__title:hover {

}
.storyCard__desc {
    flex: 1 1 auto !important;
    color: #4D4B4C;
    line-height: 1.4;

}
.storyCard__date {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: #1AA98D;
    color: #fff;
    font-size: 18px;
    padding: 5px 28px;
}
@media (max-width: 1100px) {
    .storyCard__dops {
        padding-bottom: 1.25em;
        flex-direction: column;
        align-items: start;
    }
}
/* Адаптивность карточки */
@media (max-width: 991px) {
    .storyCard {
        flex-direction: column;
        min-height: auto;
    }
    .storyCard__image {
        flex: 0 0 auto;
        height: 12rem;
        border-radius: 1.25rem;
    }
    .storyCard__content {
        padding: 1.5em;
    }
}

@media (max-width: 767px) {
    .storyCard__image {
        height: 10rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }
    .storyCard__content {
        padding: 1em;
    }
}

/* Пагинация (если нужна базовая стилизация – при необходимости доработайте) */
.stories__nav {
    margin-top: 2rem;
    text-align: center;
}