.ast-builder-layout-element[data-section="title_tagline"] {
    width: 100%;
    justify-content: center;
}
.ast-site-identity {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
}
.site-logo-img img {
    left: 0 !important;
}
.ast-footer-copyright h4 {
    letter-spacing: 0.4em;
    font-size: 6px;
}

.anyszka-znak {
    padding-top: 180px;
    line-height: 0;
    text-align: center;
}
.anyszka-znak img {
    display: inline-block;
    width: 110px;
    max-width: none;
    height: auto;
    border: 0;
}

.site-footer,
.site-footer .ast-builder-grid-row-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}
.site-footer .ast-builder-footer-grid-columns {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}
.site-footer .site-footer-section,
.site-footer .ast-footer-copyright > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.site-footer .site-primary-footer-wrap {
    padding-top: 80px !important;
}
.site-footer .site-below-footer-wrap.ast-builder-grid-row-container {
    padding-top: 62px !important;
    padding-bottom: 24px !important;
}

body .site-footer .footer-nav-wrap {
    width: 100%;
}
body .site-footer #astra-footer-menu {
    display: grid !important;
    grid-template-columns: repeat(6, auto);
    justify-content: center;
    align-items: center;
    gap: 0 52px;
    margin: 0 !important;
    padding: 0 0 0 0.4em !important;
}
body .site-footer #astra-footer-menu .menu-item {
    margin: 0 !important;
    padding: 0 !important;
}
body .site-footer #astra-footer-menu .menu-link {
    display: block;
    padding: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 300 !important;
    line-height: var(--text-lh) !important;
    letter-spacing: 0.4em !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    color: var(--color-ink) !important;
    text-decoration: none !important;
}
body .site-footer #astra-footer-menu .menu-link:hover,
body .site-footer #astra-footer-menu .menu-link:focus-visible {
    text-shadow: 0 0 0.4px currentColor, 0 0 0.4px currentColor;
}

@media (max-width: 921px) {
    body .site-footer #astra-footer-menu {
        grid-template-columns: 1fr auto 1fr;
        justify-content: stretch;
        gap: 22px 0;
        padding: 0 24px !important;
    }
    body .site-footer #astra-footer-menu > .menu-item:nth-child(3n+1) {
        justify-self: start;
        text-align: left;
    }
    body .site-footer #astra-footer-menu > .menu-item:nth-child(3n+2) {
        justify-self: center;
        text-align: center;
    }
    body .site-footer #astra-footer-menu > .menu-item:nth-child(3n+2) .menu-link {
        padding-left: 0.4em !important;
    }
    body .site-footer #astra-footer-menu > .menu-item:nth-child(3n) {
        justify-self: end;
        text-align: right;
    }
    body .site-footer #astra-footer-menu > .menu-item:nth-child(3n) .menu-link {
        margin-right: -0.4em;
    }
}

@media (max-width: 768px) {
    .anyszka-znak {
        padding-top: 120px;
    }
    .anyszka-znak img {
        width: 80px;
    }
    .site-footer .site-primary-footer-wrap {
        padding-top: 60px !important;
    }
    .site-footer .site-below-footer-wrap.ast-builder-grid-row-container {
        padding-top: 48px !important;
    }
}

.main-header-menu > .menu-item > .menu-link {
    font-weight: 300 !important;
    letter-spacing: 0.4em !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
}
.main-header-menu > .menu-item.current-menu-item > .menu-link {
    font-weight: 600 !important;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .menu-item > .menu-link:focus-visible,
.main-header-menu > .menu-item > .menu-link:active {
    text-shadow: 0 0 0.4px currentColor, 0 0 0.4px currentColor;
}

@media (min-width: 922px) {
   .ast-container {
    max-width: 100% !important;
}
}


@media (min-width: 1325px) {
    #ast-desktop-header .ast-primary-header-bar {
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    #ast-desktop-header .main-header-menu > .menu-item,
    #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        line-height: 1.4 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    #ast-desktop-header .site-primary-header-wrap {
        min-height: 0 !important;
        padding-top: var(--header-top, 15px) !important;
        padding-bottom: 35px !important;
    }
    #ast-desktop-header [data-section="title_tagline"],
    #ast-desktop-header .ast-site-identity {
        margin: 0 !important;
        padding: 0 !important;
    }
    #ast-desktop-header .site-logo-img .custom-logo-link {
        display: block;
    }
    #ast-desktop-header .site-logo-img .custom-logo-link img {
        display: block;
        width: var(--logo-szer) !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
    }
    #ast-desktop-header .main-header-menu {
        flex-wrap: nowrap !important;
    }
    #ast-desktop-header .main-header-menu .menu-link {
        white-space: nowrap;
    }
}

@media (min-width: 1325px) and (max-width: 1699px) {
    #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        padding-left: clamp(6px, calc(6vw - 80px), 20px) !important;
        padding-right: clamp(6px, calc(6vw - 80px), 20px) !important;
    }
}

#masthead .site-logo-img img {
    filter: brightness(0) !important;
}

.page-template-page-home #masthead .site-logo-img img {
    filter: brightness(0) invert(1) !important;
}

#ast-scroll-top {
    display: none !important;
}
