@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #3e70b9;;
    --accent-color-two: #ebd144;
    --white: #ffffff;
    --bg-color: #07213a;
    --gray: #77797b;
    --dark: #1f1f1f;
    --light-gray: #d8d8d8;
}

button {
    outline: none;
    border: none;
    cursor: pointer;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--gray);
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1490px;
    }
}


.button {
    padding: 15px 25px;
    font-weight: 600;
    font-size: 14px;;
    background-color: var(--accent-color);
    border-bottom: 3px solid #2f69c1;
    border-radius: 8px;
    box-shadow: 0 0 14px #2196f3, inset 0 0 0 #1b51a3;
    color: var(--white);
    transform: translateY(0px);
    transition: all .25s ease-out;
}

.header {
    background: var(--bg-color);
    padding: 20px 0 100px 0;
}

.header__container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px 0;
    width: 100%;
    color: var(--white);
}

.top__logo, .footer__logo {
    height: 39.2px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    transform: translateY(0px);
    transition: 50ms ease-out;
    order: 1;
}

.footer__logo {
    color: var(--dark);
}

.top__logo span, .footer__logo span {
    color: var(--accent-color);
}

.top__banner {
    font-size: 14px;
    margin: 0 auto;
    text-align: center;
    order: 2;
}

.top__btn {
    margin-bottom: 20px;
    order: 1;
}

.center {
    margin: auto;
    text-align: center;
    color: var(--white);
}

.center__title {
    font-size: calc(48px + (98 - 48) * ((100vw - 300px) / (1600 - 300)));
    line-height: 1;
    margin-bottom: 20px;
}

.center__desc-one {
    font-size: calc(30px + (68 - 30) * ((100vw - 300px) / (1600 - 300)));
    line-height: 1.2;
}

.center__desc-two {
    display: inline-block;
    margin-top: 20px;
    padding: 0 15px;
    height: 37px;
    font-size: 26px;
    font-weight: bold;
    line-height: 34px;
    background-color: var(--accent-color-two);
    color: var(--dark);
    border-radius: 5px;
}

.filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
    width: 100%;
}

.filter__button {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.filter__button.active {
    background-color: var(--accent-color-two);
    border-bottom: 3px solid #f1d028;
    border-radius: 8px;
    box-shadow: 0 0 14px #efd862, inset 0 0 0 #fad104;
    color: var(--dark);
}

.main {
    position: relative;
    margin-top: -77px;
    margin-bottom: 40px;
}

.articles {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.article img {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    height: auto;
}

.article__title {
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    transition: 0.3s;
}

.article__description {
    font-weight: 500;
    margin-top: 10px;
    line-height: 1.5;
}

ul.articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

ul.articles>li.article, ul.articles>li.article.article__image {
    grid-template-rows: auto;
    gap: 20px;
    z-index: 5;
    position: relative;
}

ul.articles>li.article {
    display: grid;
    grid-template-columns: 400px auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

ul.articles>li.article__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    aspect-ratio: 16 / 9;
}

.button:hover {
    box-shadow: inset 0 0 0 #1b51a3;
}

.footer {
    width: 100%;
    padding: 40px 0;
    background-color: var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    font-size: 12px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.footer a {
    display: block;
    margin-bottom: 15px;
    color: var(--dark);
    transition: .25s;
}

.footer p {
    margin-bottom: 15px;
}

.footer__logo {
    margin-bottom: 20px;
}

ul.footer__item {
    list-style: none;
}

ul.footer__item li {
    font-weight: 700;
    font-size: 16px;
}

ul.footer__item li a:hover, .footer a:hover {
    text-decoration: none;
    opacity: 0.5;
}

.footer__bottom {
    width: 100%;
}

.footer__bottom p {
    margin-bottom: 0px;
}

#loader {
    padding: 30px 0;
    text-align: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 800px) {
    ul.articles>li.article {
        grid-template-columns: auto;
        padding: 10px;
    }
}

@media (min-width: 810px) {
    .top__logo, .footer__logo {
        height: auto;
        font-size: 18px;
    }
    .top__banner {
        order: 2;
    }
    .top__btn {
        order: 2;
    }
    .center__desc-two {
        height: 71px;
        font-size: 60px;
        line-height: 65px;
    }
    .center__title {
        line-height: 1.3;
        margin-bottom: 0;
    }
    .center__desc-one {
        line-height: 1;
    }
    .top__btn {
        margin-bottom: 0;
    }
}

@media (max-width: 340px) {
    .top__logo {
        font-size: 13px;
        letter-spacing: 0;
    }
    .top__btn {
        margin: auto auto 20px;
    }
    
}