.blog-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f6f0ff 0%, #f5f3ff 100%);
}

.blog-section__header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.blog-section__header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-section__header p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b4b4b;
}

/* Карусель */

.blog-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px; /* место для стрелок */
}

/* трек Swiper — обёртка для слайдов */
.blog-carousel .swiper-wrapper {
    padding: 8px 0 16px;
}

/* карточки внутри карусели */
.blog-carousel .blog-card {
    height: 100%;
}


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

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%; /* ВАЖНО для красивой сетки */
}


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

.blog-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #777;
    font-weight: 500;
}

.blog-card__content {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.blog-card__title a {
    text-decoration: none;
    color: #1c1c1c;
}

.blog-card__title a:hover {
    text-decoration: underline;
}

.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.blog-card__more {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b3df0;
    text-decoration: none;
}

.blog-card__more:hover {
    text-decoration: underline;
}

/* Стрелки */

.blog-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);

    cursor: pointer;
    border: none;

    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-carousel__arrow svg {
    width: 22px;
    height: 22px;
    color: #6b3df0; /* фирменный фиолетовый */
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-carousel__arrow:hover {
    background: #f2eaff;
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.blog-carousel__arrow:hover svg {
    color: #4314d8;
    transform: scale(1.05);
}

.blog-carousel__arrow--left {
    left: 8px;
}

.blog-carousel__arrow--right {
    right: 8px;
}

/* Убираем стандартные стрелки Swiper, чтобы не было дублирования */
.swiper-button-next::after,
.swiper-button-prev::after {
    content: none !important;
}


/* Мобильная адаптация */

@media (max-width: 768px) {
    .blog-section {
        padding: 56px 0;
    }

    .blog-section__header h2 {
        font-size: 26px;
    }

    .blog-carousel {
        gap: 8px;
    }

    .blog-card {
        min-width: 260px;
        max-width: 280px;
    }

    .blog-carousel__arrow {
        display: none; /* на мобилке можно листать свайпом */
    }
}

.blog-detail {
    padding: 60px 0 80px;
}

.blog-detail__title {
    font-size: 32px;
    margin-bottom: 8px;
}

.blog-detail__date {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}

.blog-detail__content {
    font-size: 16px;
    line-height: 1.7;
}

.blog-detail__content p {
    margin-bottom: 16px;
}

.blog-list {
    padding: 60px 0 80px;
}

.blog-list__header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.blog-list__header h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.blog-list__header p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b4b4b;
}

/* Сетка карточек */

.blog-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 40px;
}


/* Карточки блога уже используются в карусели, но чуть усилим */

.blog-card__meta {
    font-size: 12px;
    color: #888;
    margin: 0 0 6px;
}

/* Пагинация */

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.pagination__link {
    text-decoration: none;
    color: #6b3df0;
    font-weight: 500;
}

.pagination__link:hover {
    text-decoration: underline;
}

.pagination__current {
    color: #555;
}

/* Адаптив */

@media (max-width: 992px) {
    /* в карусели — 2 карточки */
    .blog-carousel .blog-card {
        flex: 0 0 calc((100% - 24px) / 2);
        max-width: none;
    }
}

@media (max-width: 640px) {
    /* в карусели — 1 карточка */
    .blog-carousel .blog-card {
        flex: 0 0 100%;
    }

    .blog-carousel__arrow {
        display: none; /* на мобилке листаем свайпом */
    }
}

