@media (max-width: 767.98px) {
    body.portal {
        font-size: 16px;
        line-height: 1.5;
    }

    body.portal header .row {
        align-items: center;
    }

    body.portal header .headerlogo,
    body.portal header .right-button {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }

    body.portal header .headerlogo img {
        max-width: 100%;
        height: auto;
        max-height: 44px;
    }

    body.portal header .header-title {
        flex: 1 1 100%;
        max-width: 100%;
        order: 1;
    }

    body.portal header .header-title h2 {
        font-size: 16px;
        margin: 8px 0;
    }

    body.portal header .right-button {
        margin-left: auto;
    }

    body.portal header .right-button .btn {
        padding: 10px;
    }

    body.portal header .right-button img {
        height: 24px;
        width: auto;
    }

    body.portal nav.navbar {
        padding: 8px 15px;
    }

    body.portal nav.navbar button.navbar-toggler {
        margin-bottom: 0;
        min-height: 44px;
        min-width: 44px;
    }

    body.portal .navbar-light .navbar-nav .nav-link,
    body.portal .navbar-light .navbar-nav .active > .nav-link,
    body.portal .navbar-nav .dropdown-item {
        font-size: 16px;
        padding: 10px 12px;
        white-space: normal;
    }

    body.portal #content > .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.portal #content > .row > .kontakty {
        order: 1;
        overflow-wrap: anywhere;
    }

    body.portal #content .stredi {
        min-width: 0;
        overflow-wrap: break-word;
    }

    body.portal #content .stredi img {
        max-width: 100%;
        height: auto;
    }

    body.portal #content .stredi h1 {
        font-size: 24px;
    }

    body.portal #content .stredi h2,
    body.portal #content .stredi h3,
    body.portal #content .stredi article h4 {
        font-size: 19px;
    }

    body.portal #content .stredi table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    body.portal .modal-title {
        font-size: 20px;
    }

    body.portal .modal .btn,
    body.portal .modal input:not([type="checkbox"]):not([type="hidden"]) {
        font-size: 16px;
        min-height: 44px;
    }

    body.portal #loginForm input:not([type="hidden"]) {
        width: 100%;
        max-width: 100%;
    }

    body.portal footer a {
        display: inline-block;
        padding: 8px;
        font-size: 16px;
    }
}