:root {
    --fg: #101010;
    --fg-1: #777777;
    --bg: #FFFFFF;
    --bg-1: #e4e4e4;
    --accent: #FF0000;
}

body {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: var(--fg);
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
}

*:not(svg > *) {
    text-decoration: none;
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0;
    outline: 0;
}

.mr-text {
    margin-right: 2px;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 96vw;
}

.font-decor {
    font-family: "Lora", sans-serif;
}

/* IMG EFFECTS */
.img-effect img {
    transition: 500ms ease-out;
    object-fit: cover;
}

.img-effect:hover img {
    transform: scale(1.02);
}


/* DECOR */
.decor-angle {
    position: relative;
    padding-left: 20px;
}

.decor-angle::before,
.decor-angle::after {
    content: '';
    position: absolute;
    left: 0;
    background: currentColor;
}

.decor-angle::before {
    top: 0;
    width: 14px;
    height: 2px;
}

.decor-angle::after {
    top: 0;
    width: 2px;
    height: 14px;
}


/* NAVBAR */
.navbar {
    background: var(--fg);
    color: var(--bg);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
}

.navbar__divider {
    width: 1px;
    background: var(--fg-1);
}

.navbar__left {
    display: flex;
    gap: 16px;
}

.navbar__socials {
    display: flex;
    gap: 16px;
}

.navbar__right {
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {

    .navbar__divider-1,
    .navbar__date {
        display: none;
    }
}

/* TITLE */

.title__img {
    
    width: 24vw;
    margin: 40px auto;
    display: block;
}

.title__nav {
    border-top: 1px solid var(--bg-1);
    border-bottom: 2px solid var(--fg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title__nav-links {
    display: flex;
    gap: 24px;
    height: 100%;
}

.title__nav-link {
    text-transform: uppercase;
    font-weight: 600;
    height: 100%;
    padding: 24px 0;
    display: block;
}

.title__nav-link-text {
    position: relative;
}

.title__nav-link-text::before {
    content: '';
    display: block;
    background: var(--fg);
    opacity: 0;
    width: 4px;
    aspect-ratio: 1/1;
    border-radius: 100vw;
    position: absolute;
    bottom: -4px;
    transition: 300ms ease-in-out;
    left: 50%;
    transform: translateX(-50%);
}

.title__nav-link:hover .title__nav-link-text::before,
.title__nav-link-text.active::before {
    opacity: 1;
}

.title__nav-search {
    display: flex;
    align-items: center;
    gap: 4px;
}

.title__nav-search-input {
    font-size: 16px;
}

/* burger */
.title__burger {
    display: none;
    background: transparent;
    border: 0;
    padding: 18px 0;
    cursor: pointer;
}

.title__burger-icon {
    width: 28px;
    height: 20px;
    display: grid;
    gap: 6px;
}

.title__burger-line {
    display: block;
    height: 2px;
    background: var(--fg);
    border-radius: 100vw;
}

/* drawer */
.title__drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.title__drawer-panel {
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 320ms ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    box-sizing: border-box;
}

.title__drawer--open {
    pointer-events: auto;
}

.title__drawer--open .title__drawer-panel {
    transform: translateX(0);
}

.title__drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.title__drawer-logo {
    width: 160px;
    
}

.title__drawer-close {
    background: transparent;
    border: 0;
    color: var(--fg);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
}

.title__drawer-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--bg-1);
    padding: 12px 14px;
    border-radius: 10px;
}

.title__drawer-search-input {
    width: 100%;
    font-size: 16px;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--fg);
}

.title__drawer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title__drawer-link {
    text-transform: uppercase;
    font-weight: 700;
    padding: 14px 10px;
    border: 1px solid var(--bg-1);
    border-radius: 12px;
    display: block;
}

.title__drawer-link:active {
    transform: scale(0.98);
}

.title--no-scroll {
    overflow: hidden;
}

/* mobile */
@media (max-width: 768px) {
    .title__img {
        width: 52vw;
        margin: 22px auto;
    }

    .title__nav-links {
        display: none;
    }

    .title__burger {
        display: inline-flex;
        align-items: center;
    }
}


/* MAIN */
.main__button {
    background: var(--accent);
    color: var(--bg);
    text-decoration: underline;
    width: 100%;
    display: block;
    text-align: center;
    padding: 16px 0;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Lora";
    transition: 400ms;
}

.main__button:hover {
    background: var(--fg);
}

/* NEW */
.new {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-lg {
    gap: 12px;
}

.new__types {
    display: flex;
    gap: 12px;
    align-items: center;
}

.new__types li {
    text-transform: uppercase;
    list-style-type: none;
    transition: 300ms;
    color: var(--fg-1);
    font-weight: 600;
    font-size: 13px;
    position: relative;
    padding-left: 12px;
}

.new__types li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(53% - 3px);
    width: 6px;
    aspect-ratio: 1/1;
    border-radius: 100vw;
    background: currentColor;
}

.new__types li:hover {
    color: var(--accent);
}

.new__title:hover {
    color: var(--accent);
}

.new__title {
    font-size: 18px;
    transition: 300ms;
    font-weight: 600;
    line-height: 1.2;
}

.new-lg .new__title {
    font-size: 32px;
}

.new__info {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--fg-1);
}

.new__link {
    font-weight: 500;
    text-transform: uppercase;
}

/* SUBSCRIBE */
.subscribe {
    margin: 60px 0;
}

.subscribe__container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 60px 40px 40px 40px;
    background-image: url(../img/subscribe.png);
    background-color: #F9F9F9;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
}

.subscribe__title {
    font-weight: 500;
    font-size: 24px;
}

.subscribe__text {
    color: var(--fg-1);
    font-size: 16px;
}


/* FOOTER */
.footer {
    background: var(--fg);
    color: var(--bg);
}

.footer__container {
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.footer__divider {
    width: 100%;
    height: 1px;
    background: var(--fg-1);
    opacity: .2;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    width: 16vw;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__socials span {
    font-family: "Lora";
    font-weight: 600;
    font-size: 20px;
    padding-right: 16px;
}

.footer__socials i {
    width: 40px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    transition: 400ms;
    justify-content: center;
    background: rgba(255, 255, 255, 0.11);
}

.footer__socials i:hover {
    background: var(--bg);
    color: var(--fg);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.footer__col h4 {
    font-size: 20px;
    font-family: "Lora";
    font-weight: 600;
    margin-bottom: 18px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__col li {
    list-style-type: disc;
    list-style-position: inside;
    opacity: .8;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
}

.footer__to-top {
    width: 40px;
    min-width: 40px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    transition: 400ms;
    justify-content: center;
    background: rgba(255, 255, 255, 0.11);
}

@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
        gap: 12px;
    }

    .footer__logo {
        width: 70%;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }
}

.main__grid {
    display: grid;
    padding: 32px 0;
    gap: 28px;
}