* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    padding: 40px 20px;
    margin: 0 auto;
    flex: 1;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-item__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item__image img {
    transform: scale(1.05);
}

.news-item__vobler {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* .news-vobler {
    background: #F97316;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
} */
/* 
.news-vobler:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #F97316;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
} */

.hero-content-news {
    text-align: center;
    margin-top: 100px;
    /* margin-bottom: 20px; */
}

.hero-content-news h1 {
    font-size: 52px;
    font-weight: 900;
    color: #333;
    /* margin-bottom: 20px; */
}

.news-item__content {
    padding: 20px;
}

.news-item__title {
    margin-bottom: 12px;
}

.news-item__title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.news-item__title a:hover {
    color: #F97316;
}

.news-item__description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.news-item__date {
    font-weight: 500;
    color: #666;
}

.news-item__views-count,
.news-item__comments-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-item__views-count i,
.news-item__comments-count i {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.news-item__views-count i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.news-item__comments-count i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}

.news-item__stats-right {
    display: flex;
    gap: 16px;
}

.category-buttons {
    text-align: center;
    margin-bottom: 0px;
    padding-top: 10px;
}

.category-button {
    background-color: #fff;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 0 5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-family: 'Rubik', sans-serif;
    /* font-style: italic; */
}

.category-button.active {
    /* background-color: #F97316; */
    color: #F97316;
}

/* Стили для футера */
footer {
    width: 100%;
    background: #d8c9ae;
    color: #fff;
    padding: 40px 0;
    margin-top: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color:#000000;
    margin-bottom: 20px;
    font-size: 18px;
    /* font-family: 'Rubik', sans-serif;
    font-weight: 800; */
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #F97316;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-link-footer {
    color: #ccc;
    transition: color 0.3s ease;
}

.social-link-footer:hover {
    color: #F97316;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #000000;
    font-size: 14px;
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-item__content {
        padding: 16px;
    }
    
    .news-item__stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-item__stats-right {
        align-self: flex-end;
    }
}