/*
================================================== !!! ==================================================
	WIDTH: FULL
	HEIGHT: 900
================================================== !!! ==================================================
*/

@media screen and (max-height: 900px) {

}

/*
================================================== !!! ==================================================
	WIDTH: 1400
	HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 1400px) {
    .l-header-middle {
        height: 25vw;
    }

    .l-bg {
        max-height: calc(110px + 25vw + 5vw);
    }

    .tile {
        flex: 0 0 calc(25% - 20px);
        max-width: calc(25% - 20px);
        margin: 0 10px 30px;
        border-radius: 10px;
    }

    .tile__title {
        padding-left: 20px;
        padding-bottom: 15px;

        font-size: 2vw;
    }

    .tile__icon {
        margin-right: 20px;

        max-height: 50%;
    }

    .eu-project__text br {
        display: none;
    }

    .custom-navbar li a {
        font-size: 0.875rem;
        padding: 12px 15px !important;
    }
}

/*
================================================== !!! ==================================================
	WIDTH: 1280-1400
	HEIGHT: 700
================================================== !!! ==================================================
*/

@media screen and (min-width: 1280px) and (max-width: 1400px) and (max-height: 700px) {
    .l-header-top {
        height: 100%;
    }
    .l-header-top > .l-container {
        height: 100%;
    }
    .l-navbar {
        height: 12vh;
    }

    .l-header-middle {
        margin-top: 15vh;
        height: 40vh;
    }

    .l-body--important-msg .l-header-middle {
        margin-top: calc(15vh + 24px);
    }

    .l-bg {
        max-height: calc(15vh + 40vh + 10vh);
    }

    .tile {
        height: 20vh;
    }

    .logo__img {
        max-height: 50px;
        max-width: 50px;
    }

    .logo__title {
        margin-top: 0;
        font-size: 1.25rem;
    }

    .logo__subtitle {
        font-size: 1rem;
    }

    .logo-center__img {
        max-width: 50vw;
    }

    .navbar-login {
        height: 40px;
        line-height: 40px;
        padding: 0 30px;

        font-size: 1rem;
    }

    .wcag {
        padding-left: 0;

        border: 0;
    }

    .wcag__item {
        margin: 2px;
    }

    .menu-top__item {
        margin: -3px 10px 0 ;

        font-size: 0.875rem;
    }
}

/*
================================================== !!! ==================================================
	WIDTH: 1280
	HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 1280px) {

    .custom-navbar:not(.custom-navbar--consultations) {
        display: none;
    }

    .custom-navbar-mobile {
        display: block;
    }
    .eu-project-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .eu-project-bottom__img-container {
        width: 70%;

        order: 1;
    }

    .eu-project-bottom__text {
        margin: 20px 0 20px;
        padding: 0;

        border: 0;

        text-align: center;

        order: 2;
    }

    .logo__img {
        max-height: 50px;
        max-width: 50px;
    }

    .logo-center__img {
        max-width: 50vw;
    }

    .logo__title {
        margin-top: 0;
        font-size: 1.25rem;
    }

    .logo__subtitle {
        font-size: 1rem;
    }

    .navbar-login {
        height: 40px;
        line-height: 40px;
        padding: 0 30px;

        font-size: 1rem;
    }

    .wcag {
        padding-left: 0;

        border: 0;
    }

    .wcag__item {
        margin: 2px;
    }

    .menu-top__item {
        margin: -3px 10px 0 ;

        font-size: 0.875rem;
    }

    /*.l-header-middle {*/
    /*    height: 25vw;*/
    /*}*/

    /*.l-bg {*/
    /*    height: calc(110px + 25vw + 5vw);*/
    /*}*/


    .eu-project__text {
        font-size: 1.125rem;
        line-height: 1.625rem;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 15px 20px;
    }

    .footer__element {
        margin: 2px 0;
        font-size: 0.75rem;
    }

}

/*
================================================== !!! ==================================================
	WIDTH: 990-1280
	HEIGHT: 800
================================================== !!! ==================================================
*/

@media screen and (max-width: 1280px) and (min-width: 990px) and (max-height: 800px) {

    .l-header-top {
        height: 100%;
    }
    .l-header-top > .l-container {
        height: 100%;
    }
    .l-navbar {
        height: 12vh;
    }

    .l-bg {
        max-height: calc(15vh + 40vh + 8vh);
    }

    .l-header-middle {
        height: 40vh;
        margin-top: 15vh;
    }

    .l-body--important-msg .l-header-middle {
        margin-top: calc(15vh + 24px);
    }

    .tile {
        height: 16vh;
    }
}

/*
================================================== !!! ==================================================
	WIDTH: 990
	HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 991px) {
    .l-header-middle {
        height: 32vw;
    }

    .l-bg {
        max-height: calc(110px + 32vw + 5vw);
    }

    .red-bg {
        background: #ab1c26 !important;
    }

    .green-bg {
        background: #246524 !important;
    }

    .gray-bg {
        background: #595959 !important;
    }

    .purple-bg {
        background: #7d24c0 !important;
    }

    .blue-bg {
        background: #1057a8 !important;
    }

    .blue-ei-bg {
        background: #1057a8 !important;
    }

    .menu-button {
        display: inline-block;
        height: 40px;
        line-height: 40px;
        padding: 0 20px;
        margin-left: 20px;

        font-size: 1rem;
        order: 10;

        background: #595959 !important;
    }

    .menu-button .fa {
        margin-left: 5px;
    }

    .menu-top {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99999;

        width: 300px;
        padding: 20px;
        max-width: 80%;
        height: 100vh;

        background-color: #ffffff;
        -webkit-box-shadow:  0px 0px 7px rgba(0, 0, 0, 0.5);
        -moz-box-shadow:  0px 0px 7px rgba(0, 0, 0, 0.5);
        box-shadow:  0px 0px 7px rgba(0, 0, 0, 0.5);
        opacity: 0;

        transition: all 0.2s;
        transform: translateX(100%);
    }

    .menu-top--open {
        transform: translateX(0);
        opacity: 1;
    }

    .menu-top__container {
        flex-direction: column;
        margin: 0;
    }

    .menu-top__meta {
        display: flex;
        justify-content: space-between;
        align-items: center;

        margin-bottom: 20px;
    }

    .menu-top__title {
        margin: 0;
        /*display: inline-block;*/
    }

    .menu-top__close {
        width: 25px;
        height: 25px;
        background-color: #666666;
        color: #ffffff;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;

        text-align: center;
        line-height: 23px;
        font-size: 0.875rem;
        border: 0;
        /*display: inline-block;*/
    }

    .menu-top__item {
        display: block;
        width: 100%;
        /*height: 40px;*/

        text-align: left;
    }

    .menu-top__link {
        display: block;
        margin: 0 0 10px;
        padding: 10px 20px;

        background-color: #f5f5f5;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }

    .menu-top__link:focus, .menu-top__link:active, .menu-top__link:hover {
        background-color: #0056b3;
        color: #ffffff;
        border-bottom: 0;
    }

    .tile {
        /*padding: 2vw 0;*/
    }

    .tile__title {
        padding-left: 15px;
        padding-bottom: 10px;

        /*font-size: 1.8vw;*/
        font-size: 1.166rem;
        font-weight: 600;
    }

    .tile__icon {
        margin-right: 15px;
        max-height: 40%;
    }

    .navbar-login {
        height: 40px !important;
        line-height: 40px !important;
        font-size: 1rem !important;
    }

    .login-button__text {
        font-size: 4vw;
        font-weight: 600;
    }
}

/*
================================================== !!! ==================================================
	WIDTH: 860
	HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 860px) {
    .logo__title {
        font-size: 1rem;
    }

    .logo__subtitle {
        font-size: 0.813rem;
    }

    .menu-button {
        margin-left: 10px;
    }

    .navbar-login {
        margin-right: 10px;
    }
}

/*
================================================== !!! ==================================================
	WIDTH: 768
	HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 768px) {
    .l-dashboard__tiles {
        flex-wrap: wrap;
        /*margin: 0 -15px 30px;*/
    }

    /*.logo__title {*/
    /*    display: none;*/
    /*}*/

    /*.logo__subtitle {*/
    /*    display: none;*/
    /*}*/

    .tile {
        flex-direction: column-reverse;
        justify-content: center;
        flex: 0 0 calc(50% - 30px);

        height: 30vw;
        padding: 3vw 0;
        max-height: none;
        max-width: calc(50% - 30px);
    }

    .tile__title {
        align-self: center;
        padding: 0;

        font-size: 3vw;
        text-align: center;
    }

    .tile__icon {
        margin: 0 0 15px;

    }

    .tile br {
        display: none;
    }

    .login-button {
        width: 75vw;
        height: 10vw;
        min-height: 10vw;

        border-radius: 5vw;
    }

    .login-button__text {
        font-size: 4vw;
    }

    .login-button__separator {
        height: 7vw;
        margin: 0 8vw;
    }

    .login-button__img {
        max-width: 20vw;
    }

    .logo-center {
        margin-bottom: 3vw;
    }

    .logo-center__img {
        max-width: 50vw;
    }

    .news {
        flex: 0 100%;
    }

    .section {
        text-align: center;
    }

    .section * {
        text-align: left;
    }

    .section__img, .section__img--left {
        float: none;
        margin: 0 auto 30px;
        max-width: 70vw;
    }

    .eu-project__text {
        font-size: 0.875rem;
        line-height: 1.5rem;
    }

    .eu-project__text br {
        display: none;
    }

    .eu-project-bottom__img {
        width: 90%;
    }
    .l-header-top {
        height: 100%;
    }
    .l-header-top > .l-container {
        height: 100%;
    }

    .l-navbar {
        /*padding: 20px 0;*/
        height: 124px;
    }

    .l-header-middle {
        margin-top: 154px;
        height: 50vw;
    }

    .l-body--important-msg .l-header-middle {
        margin-top: 178px;
    }

    .l-navbar {
        flex-direction: column;
        justify-content: center;

        /*padding: 20px 0;*/
    }

    .l-navbar__right {
        margin-top: 20px;
    }

    .navbar-login {
        /*opacity: 1;*/
        /*visibility: visible;*/
        width: 0;
        padding: 0;
        overflow: hidden;
        margin-right: 0;
    }

    .l-body--scroll .navbar-login {
        /*opacity: 1;*/
        /*visibility: visible;*/
        width: 140px;
        padding: 0;
        /*overflow: visible;*/
        margin-right: 10px;
    }

    .l-bg {
        max-height: calc(154px + 50vw + 15vw);
        /*height: calc(110px + 65px + 15vw);*/
    }

    .l-header-top .logo__img {
        max-height: 40px;
    }

    .footer-menu__item {
        margin: 0 10px;
    }
}

/*
================================================== !!! ==================================================
    WIDTH: 600
    HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 600px) {
    .login-button__text {
        font-size: 1.166rem;
    }

    .tile__title {
        font-size: 1.166rem;
    }
}

/*
================================================== !!! ==================================================
    WIDTH: 426
    HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 426px) {
    .l-header-top {
        height: 100%;
    }
    .l-header-top > .l-container {
        height: 100%;
    }
    .l-navbar {
        height: 120px;
    }

    .l-header-middle {
        margin-top: 120px;
    }

    .l-body--important-msg .l-header-middle {
        margin-top: 144px;
    }

    .l-bg {
        max-height: calc(120px + 50vw + 15vw);
    }

    .logo__img {
        max-height: 40px;
        max-width: 32px;
        margin-right: 20px;
    }

    .center-tile .logo-center {
        margin-bottom: 10px;
    }

    .logo-center__img {
        max-width: 50vw;
    }

    .logo__title {
        font-size: 0.875rem;
    }

    .logo__subtitle {
        font-size: 0.75rem;
    }

    .l-navbar__right {
        margin-top: 10px;
    }

    .navbar-login {
        height: 10vw !important;
        line-height: 10vw !important;
        font-size: 0.875rem !important;
    }

    .l-body--scroll .navbar-login {
        width: 33vw !important;
        padding: 0;
    }

    .menu-button {
        padding: 0 15px;
        height: 10vw;
        line-height: 10vw;
        font-size: 0.875rem;
    }

    .wcag__item {
        height: 10vw !important;
        width: 10vw !important;
        line-height: calc(10vw - 6px) !important;
        margin: 0;
    }

    .wcag__item i {
        font-size: 10vw;
        vertical-align: middle;
    }

    .l-bottom-bar {
        padding: 10px 0;
    }

    .eu-project-bottom__text {
        margin-top: 10px;
        font-size: 0.688rem;
        line-height: 1.4;
    }

    .l-dashboard__tiles {
        margin: 0 -10px;
    }

    .tile {
        flex: 0 0 calc(50% - 15px);
        padding: 5vw;
        max-width: calc(50% - 15px);
        margin: 0 5px 10px;

        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        border-radius: 7px;
    }

    .tile__title {
        font-size: 1.166rem;
    }

    .section__header {
        font-size: 1.625rem;
    }

    .section .button {
        height: 46px;
        padding: 0 30px;

        line-height: 46px;
        font-size: 1.25rem;
    }

    .case-state-form2__label {
        text-align: left !important;
    }

    .case-state-form2__button {
        display: block !important;
        width: 100% !important;
        margin-top: 10px;
    }

    .footer__einstytucja-container {
        margin-left: 20px;

        color: #000000;
    }

    .footer__einstytucja {
        max-height: 20px;

        transition: all 0.2s;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 15px 20px;
    }

    .footer__element {
        margin: 2px 0;
        font-size: 0.75rem;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/*
================================================== !!! ==================================================
    WIDTH: 359
    HEIGHT: ALL
================================================== !!! ==================================================
*/

@media screen and (max-width: 359px) {
    .logo__img {
        max-width: 30vw !important;
    }
}

/*
================================================== !!! ==================================================
    WIDTH: ALL
    HEIGHT: 400
================================================== !!! ==================================================
*/

@media screen and (max-height: 400px) {
    .logo__img {
        max-width: 30vw !important;
        max-height: 40px;
    }

    .eu-project-bottom__img {
        max-height: 30px;
    }

    .eu-project-bottom__text {
        font-size: 0.625rem;
        line-height: 1.4;
        margin-top: 10px;
    }

    .l-bottom-bar {
        padding: 10px 0;
    }

    .l-body--center-tile .center-tile {
        margin: 20px 0 !important;
        padding: 15px 0 10px !important;
    }

    .l-body--center-tile .center-tile .logo {
        height: auto !important;
        margin-bottom: 10px !important;
    }


    .l-body--center-tile .login-button, .login-button {
        height: 40px !important;
        min-width: 350px !important;
        max-width: 350px !important;
    }

    .login-button__text {
        font-size: 0.875rem;
    }

    .login-button__img {
        max-height: 1.5rem;
    }

    .l-body--center-tile .login-button__separator, .login-button__separator {
        width: 1px !important;
        margin: 0 4rem !important;
        height: 25px !important;
    }

    .l-body--center-tile .center-tile__inner {
        margin: 0 -20px !important;
    }

    .center-tile__bottom-link {
        margin-top: 5px;
        font-size: 0.75rem;
    }

    .l-header-middle {
        height: 22vw;
    }
}