.main-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

.sections-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.section-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    width: calc(25% - 15px);
    box-sizing: border-box;
}

.section-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.section-card__image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 370px;
    width: 100%;
    object-fit: cover;
}

@media only screen and (min-width: 1200px) {
    .section-card__image {
        height: 370px;
        backface-visibility: hidden;
    }
}

.section-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px;
    text-align: center;
}

@media (max-width: 1024px) {
    .section-card {
        width: calc(33.33% - 13.33px);
    }
}

@media (max-width: 768px) {
    .section-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .section-card {
        width: 100%;
    }
}

/* Стили для пагинации */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}