h2 {
    font-size: 24px;
    font-weight: 600;
}
.promo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px;
    margin-bottom: 40px;
    background: var(--footer-bg);
    h1 {
        font-size: 30px;
        color: var(--second);
    }
}
.content {
    display: grid;
    grid-template-columns: calc(100% - 360px) 320px;
    gap: 40px;
    margin-bottom: 160px;
}
.news {
    form {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 40px;
        p {
            font-size: 22px;
            font-weight: 500;
        }
        label {
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            transition: .3s linear;
            &:has(input:checked) {
                color: var(--second);
                &::before {
                    content: '\e009';
                    color: var(--second);
                    border: 1px solid var(--second);
                }
            }
            &::before {
                content: '';
                font-family: 'icon';
                font-size: 9px;
                color: var(--text);
                display: flex;
                justify-content: center;
                align-items: center;
                width: 16px;
                height: 16px;
                border: 1px solid var(--text);
                border-radius: 50%;
                transition: .3s linear;
            }
        }
    }
    .items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
        .item {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: var(--main);
            border-radius: 20px;
            box-shadow: 0px 2px 2px 0px var(--last-news-border);
            padding-bottom: 20px;
            position: relative;
            transition: .3s linear;
            img {
                margin-bottom: 15px;
            }
            h2 {
                font-size: 16px;
                margin: 0 10px 20px;
                transition: .3s linear;
            }
            .footer {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin: auto 10px 0;
                span {
                    font-size: 14px;
                    font-weight: 300;
                    &.views {
                        display: flex;
                        gap: 10px;
                        align-items: center;
                        &::before {
                            content: '\e010';
                            font-family: 'icon';
                            font-size: 16px;
                        }
                    }
                }
            }
            a {
                position: absolute;
                inset: 0;
            }
        }
    }
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 80px;
        a {
            font-size: 16px;
            font-weight: 500;
            transition: .3s linear;
            &.selected {
                color: var(--second);
            }
        }
    }
}
@media (max-width: 1080px) {
    h2 {
        font-size: 22px;
    }
    .promo {
        padding: 55px;
        h1 {
            font-size: 28px;
        }
    }
    .content {
        grid-template-columns: 100%;
        gap: 100px;
        margin-bottom: 120px;
    }
    .news {
        .items {
            grid-template-columns: repeat(2, 1fr);
        }
        .pagination {
            margin-top: 60px;
        }
    }
}
@media (max-width:768px) {
    .promo {
        padding: 40px;
        margin-bottom: 30px;
        h1 {
            font-size: 24px;
        }
    }
    .content {
        gap: 60px;
        margin-bottom: 80px;
    }
    .news {
        form {
            flex-wrap: wrap;
            p {
                font-size: 18px;
                width: 100%;
            }
            label {
                font-size: 14px;
            }
        }
    }
}
@media (max-width:480px) {
    .news {
        .items {
            grid-template-columns: 1fr;
        }
    }
}
@media (hover:hover) {
    .news {
        form label:hover {
            color: var(--second);
            &::before {
                border: 1px solid var(--second);
            }
        }
        .items .item:hover {
            box-shadow: 0px 15px 15px 0px var(--last-news-border);
            h2 {
                color: var(--second);
            }
        }
    }
    .pagination a:hover {
        color: var(--second);
    }
}