form {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1040px;
    padding: 25px 40px;
    margin: 40px auto;
    background: var(--main);
    border-radius: 20px;
    box-shadow: 4px 8px 40px 0px var(--snippet-text);
    input {
        width: 100%;
        padding: 14px 40px;
        background: var(--input-bg);
        border: 1px solid var(--input-bg);
        border-radius: 20px;
        font-size: 16px;
        transition: .3s linear;
        color: var(--text);
        &::placeholder {
            font-size: 16px;
            color: var(--snippet-text);
        }
    }
    button {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 14px 60px;
        background: var(--second);
        border: 1px solid var(--second);
        border-radius: 20px;
        font-size: 16px;
        color: var(--main);
        transition: .3s linear;
        &::after {
            content: '\e003';
            font-family: 'icon';
            font-size: 20px;
            color: var(--main);
            transition: .3s linear;
        }
    }
}
h1 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}
.result {
    margin-bottom: 120px;
    .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;
            }
        }
    }
}
@media (max-width: 1080px) {
    form {
        gap: 10px;
        padding: 10px 20px;
        margin: 40px auto;
        input {
            padding: 10px 20px;
        }
        button {
            padding: 10px 30px;
            &::after {
                font-size: 18px;
            }
        }
    }
    h1 {
        font-size: 28px;
    }
    .result {
        .items {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}
@media (max-width:768px) {
    h1 {
        font-size: 24px;
    }
    .result {
        margin-bottom: 80px;
    }
}
@media (max-width:480px) {
    form {
        flex-direction: column;
    }
    .result {
        .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);
    }
}