/* ===== НОВОСТИ С КАРУСЕЛЬЮ ===== */
.news-section {
    margin: 80px 0;
    position: relative;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.news-header h2 {
    font-size: 56px;
    font-weight: 500;
    color: #433f45;
    margin: 0;
}
.news-prev,
.news-next {
    display: flex !important;
}
.news-archive-row {
    margin-bottom: 20px;
    text-align: right;
}

.news-archive-link .archive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.news-archive-link .archive-link:hover {
    transform: translateX(4px);
    color: #a43ccf;
}

.news-archive-link .archive-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.news-archive-link .archive-link:hover i {
    transform: translateX(4px);
}

/* Кнопки управления каруселью - ПО БОКАМ (аналогично тарифам) */
.news-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.news-carousel-container {
    overflow: hidden;
    width: 100%;
}

.news-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Стрелки по бокам */
.news-carousel-controls {
    position: static;
}

.news-prev,
.news-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: white !important;
    color: #a43ccf !important;
    border: 1px solid #e0e0e0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    z-index: 10 !important;
}

.news-prev {
    left: 5px !important;
}

.news-next {
    right: 5px !important;
}

.news-prev:hover:not(:disabled),
.news-next:hover:not(:disabled) {
    background: #a43ccf !important;
    color: white !important;
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(164, 60, 207, 0.3) !important;
}

.news-prev:disabled,
.news-next:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: translateY(-50%) !important;
}

.news-card {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 0;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f6f6f9;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #a43ccf;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #433f45;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #a43ccf;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #a43ccf;
    width: fit-content;
    align-self: flex-start;
    cursor: pointer;
}

.news-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.news-link:hover {
    background: #8a2eb8;
    transform: translateY(-2px);
    color: white;
}

.news-link:hover i {
    transform: translateX(4px);
}

/* Адаптив */
@media (min-width: 1400px) {
    .news-card { flex: 0 0 calc(25% - 22.5px); }
}
@media (min-width: 1024px) and (max-width: 1399px) {
    .news-card { flex: 0 0 calc(33.333% - 20px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .news-header h2 { font-size: 48px; }
    .news-card { flex: 0 0 calc(50% - 15px); }
    .news-prev { left: -10px !important; }
    .news-next { right: -10px !important; }
}
@media (max-width: 767px) {
    .news-section { margin: 60px 0; }
    .news-header h2 { font-size: 42px; }
    .news-header { flex-direction: column; align-items: flex-start; }
    .news-prev, .news-next { display: none !important; }
    .news-card { flex: 0 0 calc(100% - 20px); }
    .news-card-image { height: 200px; }
    .news-card-content { padding: 15px; }
    .news-card-content h3 { font-size: 16px; }
    .news-card-content p { font-size: 13px; }
    .news-link { padding: 8px 16px; font-size: 12px; }
}