header {
    position: relative;
    background-color: var(--color-main);
    color: var(--color-second);
}

.header__background {
    position: absolute;
    width: 100%;
    z-index: 0;
    opacity: 0.05;
    bottom: 0;
    height: 100%;
    object-fit: cover;
}

.header__nav,
.page__title {
    position: relative;
    z-index: 1;
}

.header__nav {
    display: flex;

    height: var(--header-height);
    width: 100%;
}

.header__logo {
    height: var(--header-height);
    width: var(--header-height);
    mask-image: url(/assets/images/favicon.svg);
    mask-size: 70%;
    mask-repeat: no-repeat;
    mask-position: center;

    background-color: var(--color-second);
}

.header__nav .header__nav__mobile {
    display: none;
    
    position: absolute;
    top: 0;
    right: 0;

    height: var(--header-height);
    width: var(--header-height);
    mask-image: url(/assets/images/icn-menu.svg);
    mask-size: 45%;
    mask-repeat: no-repeat;
    mask-position: center;

    background-color: var(--color-second);
}

body.menu-open .header__nav .header__nav__mobile {
    mask-image: url(/assets/images/icn-close.svg);
}

.header__nav .footer__menu {
    display: none;
}

.contrast {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.contrast::before {
    content: '';
    display: block;
    height: var(--header-height);
    width: var(--header-height);
    mask-image: url(/assets/images/icn-contrast.svg);
    mask-size: 45%;
    mask-repeat: no-repeat;
    mask-position: center;

    background-color: var(--color-second);
}

.page__title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6em 0;
}

.page__title__image {
    height: 12em;
    width: 12em;
    border-radius: 12em;
    border: 0.25em solid var(--color-second);
    object-fit: cover;
    object-position: center;
}

.page__title__text {
    padding: 0 5em;
    text-align: center;
}

.page__title__text h1 {
    display: flex;
    font-weight: inherit;
    justify-content: center;
}

.page__title__text h1 span {
    position: relative;
    text-align: center;
    padding: 0 1em;
}

.page__title__text h1 span:first-child::after {
    content: '';
    display: block;
    width: 2px;
    height: 100%;
    background-color: var(--color-second);
    position: absolute;
    top: 0;
    right: -1px;
}

.calendar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 3em;

    position: relative;
    z-index: 1;
}

.calendar__item {
    background-color: var(--color-second);
    color: var(--color-main);
    
    width: 7em;
    height: 7em;

    margin: 1em;

    border-radius: 5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar__item .number {
    font-size: 2em;
}

.calendar__item .text {
    font-size: 0.75em;
}

@media screen and (max-width: 1024px) {
    .page__title {
        flex-direction: column;
    }

    .page__title__text h1 span {
        width: auto;
        padding: 0 0.5em;
    }
}

@media screen and (max-width: 54em) {
    .header__nav .header__logo {
        position: absolute;
        top: 0;
        left: 0;
    }

    .header__nav .contrast {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .header__nav {
        height: 100vh;
        width: 100vw;

        flex-direction: column;
        justify-content: center;
        
        background-color: var(--color-main);
    }
    
    body.menu-open .header__nav .footer__menu,
    body.menu-open .header__nav .contrast {
        width: 100vw;
        flex: unset;
        display: flex;
    }

    body.menu-open .header__nav .footer__menu {
        flex-direction: column;
        align-items: center;
    }

    .header__nav .footer__menu a {
        padding: 0.5em;
        position: relative;
        color: var(--color-second);
        text-decoration: none;
    }

    .header__nav .header__nav__mobile {
        display: block;
    }

    .page__title__text h1 {
        flex-direction: column;
    }

    .page__title__text h1 span {
        padding: 0;
    }

    .page__title__text h1 span:first-child::after {
        content: unset;
    }
}