/*
Theme Name: VISMASTER Delft
Author: VISMASTER Delft
Description: Własny motyw WordPress dla VISMASTER Delft
Version: 1.0
*/


/* =========================================================
   RESET / PODSTAWA
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}


body {
    min-height: 100vh;
}


/* =========================================================
   GŁÓWNY UKŁAD VISMASTER
   ========================================================= */

.vismaster-layout {
    width: var(--vm-pc-width, 70%);
    max-width: var(--vm-pc-max-width, 1400px);

    margin-left: auto;
    margin-right: auto;

    margin-top: var(--vm-pc-margin-top, 0px);
    margin-bottom: var(--vm-pc-margin-bottom, 0px);

    box-sizing: border-box;

    /*
     * JEDNA CIĄGŁA LEWA I PRAWA KRAWĘDŹ
     * DLA CAŁEGO UKŁADU 1–9.
     */

    border-left:
        var(--vm-frame-width-pc, 1px)
        solid
        var(--vm-frame-color, #888888);

    border-right:
        var(--vm-frame-width-pc, 1px)
        solid
        var(--vm-frame-color, #888888);

    /*
     * Cień całego układu.
     */

    box-shadow:
        0 0 18px
        rgba(0, 0, 0, 0.25);

    overflow: hidden;
}


/* =========================================================
   WSZYSTKIE POLA
   ========================================================= */

.vm-box {
    width: 100%;
    min-width: 0;
    min-height: 100px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    /*
     * OBRAMOWANIE KAŻDEGO POLA 1–9
     *
     * Domyślnie 1 px.
     * Zmienisz w CMS na 0 px → ramki znikną.
     */

    border:
        var(--vm-frame-width-pc, 1px)
        solid
        var(--vm-frame-color, #888888);

    overflow: hidden;
}


/* =========================================================
   WIERSZ 2 + 3
   ========================================================= */

.vm-row-2-3 {
    width: 100%;

    display: grid;

    grid-template-columns:
        35%
        65%;

    margin: 0;
    padding: 0;

    min-height: 100px;
}


.vm-row-2-3 > .vm-box {
    min-height: 100px;
}


/* =========================================================
   WIERSZ 6 + 7 + 8
   ========================================================= */

.vm-row-6-7-8 {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr);

    margin: 0;
    padding: 2px;
    gap: 2px;
    box-sizing: border-box;

    min-height: 100px;
}


.vm-row-6-7-8 > .vm-box {
    min-height: 100px;
}


/* =========================================================
   POLE 1 — BANER
   ========================================================= */

.vm-box-1 {
    width: 100%;

    min-height: 0;
    height: 40px;

    overflow: hidden;

    margin: 0;
    padding: 0;
}


/* =========================================================
   TICKER
   ========================================================= */

.vm-ticker {
    width: 100%;

    height: 40px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        rgba(80, 80, 80, 0.50);

    box-sizing: border-box;

    white-space: nowrap;
}


/* =========================================================
   TOR TICKERA
   ========================================================= */

.vm-ticker-track {
    position: absolute;

    left: 100%;
    top: 0;

    height: 100%;

    display: flex;
    align-items: center;

    flex-wrap: nowrap;

    width: max-content;

    white-space: nowrap;

    animation-name:
        vmTickerMove;

    animation-duration:
        var(--vm-ticker-speed, 30s);

    animation-timing-function:
        linear;

    animation-iteration-count:
        infinite;

    animation-delay:
        var(--vm-ticker-delay, 2s);

    animation-fill-mode:
        backwards;

    will-change:
        transform;
}


/* =========================================================
   ELEMENTY TICKERA
   ========================================================= */

.vm-ticker-track span {
    display: block;

    flex: 0 0 auto;

    white-space: nowrap;

    padding-right: 80px;

    margin: 0;

    color: #ffffff;

    font-size: 18px;

    font-weight: 600;

    letter-spacing: 1px;

    line-height: 40px;

    text-shadow:
        0 1px 3px
        rgba(0, 0, 0, 0.8);
}


/* =========================================================
   LINKI W TICKERZE
   ========================================================= */

.vm-ticker-track a {
    color: inherit;

    text-decoration: underline;

    white-space: nowrap;
}


.vm-ticker-track a:hover {
    text-decoration: none;
}


/* =========================================================
   ANIMACJA
   ========================================================= */

@keyframes vmTickerMove {

    from {
        transform:
            translateX(0);
    }

    to {
        transform:
            translateX(calc(-100% - 100vw));
    }

}


/* =========================================================
   POPRAWKI 1–4 — BANER / KONTAKT / KAFELKI
   ========================================================= */

.vm-box-1 {
    min-height: 0;
    height: 40px;
}

.vm-row-6-7-8 .vm-box {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.vm-row-6-7-8 .vm-box > a,
.vm-row-6-7-8 .vm-box > .vm-box-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vm-box-3 {
    display: flex;
    flex-direction: column;
}

.vm-box-3 .vm-contact-text,
.vm-box-3 .vm-phone,
.vm-box-3 .vm-email,
.vm-box-3 .vm-opening-hours {
    width: 100%;
}

/* =========================================================
   POLE 2 — LOGO
   ========================================================= */

.vm-box-2 {
    min-height: 100px;

    overflow: hidden;

    text-align: center;
}


.vm-box-2 img {
    display: inline-block;

    width:
        var(--vm-logo-width-pc, 300px);

    max-width: 100%;

    height: auto;

    vertical-align: middle;
}


/* =========================================================
   POLE 3 — KONTAKT
   ========================================================= */

.vm-box-3 {
    min-height: 100px;

    overflow: hidden;
}


.vm-contact-text,
.vm-phone,
.vm-email,
.vm-opening-hours {
    max-width: 100%;

    overflow-wrap: break-word;
}


.vm-box-3 a {
    overflow-wrap: anywhere;
}


/* =========================================================
   POLE 4 — MENU
   ========================================================= */

.vm-box-4 {
    width: 100%;

    height: var(--vm-menu-height, 35px);
    min-height: var(--vm-menu-height, 35px);

    display: flex;
    align-items: stretch;

    overflow: hidden;

    background:
        var(--vm-menu-bg,
        rgba(51, 51, 51, 1));

    color:
        var(--vm-menu-text,
        #ffffff);
}


.vm-main-menu {
    width: 100%;
    display: flex;
    align-items: stretch;
}


.vm-main-menu ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


.vm-main-menu > ul {
    display: flex;

    flex-wrap: wrap;

    align-items: stretch;
    justify-content: center;

    width: 100%;
}


.vm-main-menu li {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;

    list-style: none;
}


.vm-main-menu a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100px;
    padding: 14px 22px;
    box-sizing: border-box;

    color:
        var(--vm-menu-text,
        #ffffff);

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


.vm-main-menu a:hover,
.vm-main-menu a:focus {
    color:
        var(--vm-menu-hover,
        #dddddd);
}


/* =========================================================
   POLE 5 — TREŚĆ
   ========================================================= */

.vm-box-5 {
    width: 100%;

    min-height: 100px;

    overflow: hidden;

    background:
        var(--vm-content-bg,
        rgba(255, 255, 255, 1));

    padding:
        var(--vm-content-padding-pc, 20px);

    overflow-wrap: break-word;
}


/* =========================================================
   POLA 6 / 7 / 8
   ========================================================= */

.vm-row-6-7-8 .vm-box {
    min-height: 100px;

    position: relative;

    overflow: hidden;
}


.vm-row-6-7-8 .vm-box img {
    display: block;

    max-width: 100%;

    height: auto;

    margin-left: auto;
    margin-right: auto;
}


.vm-row-6-7-8 .vm-box > a {
    display: block;

    width: 100%;

    color: inherit;

    text-decoration: none;
}


.vm-box-text {
    overflow-wrap: break-word;

    display: inline-block;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    box-sizing: border-box;

    border-radius: 6px;
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}


/* =========================================================
   RESPONSYWNOŚĆ — MOBILE
   ========================================================= */

@media (max-width: 767px) {


    /* -----------------------------------------------------
       GŁÓWNY KONTENER
       ----------------------------------------------------- */

    .vismaster-layout {

        width:
            var(--vm-mobile-width, 100%);

        max-width: none;

        margin-left:
            var(--vm-mobile-margin-left, 0px);

        margin-right:
            var(--vm-mobile-margin-right, 0px);

        border-left-width:
            var(--vm-frame-width-mobile, 1px);

        border-right-width:
            var(--vm-frame-width-mobile, 1px);

    }


    /* -----------------------------------------------------
       WIERSZ 2 + 3
       ----------------------------------------------------- */

    .vm-row-2-3 {

        grid-template-columns:
            minmax(0, 1fr);

        min-height: 100px;

    }


    .vm-row-2-3 > .vm-box {

        min-height: 100px;

    }


    /* -----------------------------------------------------
       WIERSZ 6 + 7 + 8
       ----------------------------------------------------- */

    .vm-row-6-7-8 {

        grid-template-columns:
            minmax(0, 1fr);

        min-height: 100px;

    }


    .vm-row-6-7-8 > .vm-box {

        min-height: 100px;

    }


    /* -----------------------------------------------------
       BANER MOBILE
       ----------------------------------------------------- */

    .vm-ticker {

        height: 40px;

        white-space: nowrap;

    }


    .vm-ticker-track {

        height: 40px;

        white-space: nowrap;

    }


    .vm-ticker-track span {

        font-size: 15px;

        line-height: 40px;

        white-space: nowrap;

    }


    /* -----------------------------------------------------
       LOGO MOBILE
       ----------------------------------------------------- */

    .vm-box-2 img {

        width:
            var(--vm-logo-width-mobile, 220px);

        max-width: 100%;

    }


    /* -----------------------------------------------------
       TREŚĆ MOBILE
       ----------------------------------------------------- */

    .vm-box-5 {

        padding:
            var(--vm-content-padding-mobile, 15px);

    }


    /* -----------------------------------------------------
       SOCIAL MOBILE
       ----------------------------------------------------- */

    .vm-social-icons {

        gap:
            var(--vm-footer-icon-spacing, 10px);

    }

}


/* =========================================================
   BARDZO MAŁE TELEFONY
   ========================================================= */

@media (max-width: 400px) {

    .vm-ticker-track span {

        font-size: 15px;

        letter-spacing: 0;

    }

}


/* =========================================================
   ZABEZPIECZENIE PRZED PRZEPEŁNIENIEM
   ========================================================= */

img {
    max-width: 100%;
}


iframe,
video {
    max-width: 100%;
}


table {
    max-width: 100%;
}


pre {
    max-width: 100%;

    overflow-x: auto;
}

/* =========================================================
   VISMASTER — KOLORY TEKSTU Z CMS
   ========================================================= */

.vm-box-3 .vm-phone a,
.vm-box-3 .vm-email a {
    color: inherit !important;
}

.vm-box-5,
.vm-box-5 * {
    color: inherit;
}

.vm-box-9,
.vm-box-9 .vm-footer-text,
.vm-box-9 .vm-footer-text * {
    color: inherit;
}

.vm-row-6-7-8 .vm-box,
.vm-row-6-7-8 .vm-box > a,
.vm-row-6-7-8 .vm-box-inner,
.vm-row-6-7-8 .vm-box-text {
    color: inherit;
}

.vm-row-6-7-8 .vm-box > a {
    text-decoration: none !important;
}



/* =========================================================
   PRZEŁĄCZNIK JĘZYKA — BANER PC/MAC
   ========================================================= */

.vm-ticker-track-window {
    position: absolute;
    top: 0;
    left: 0;
    right: 96px;
    height: 40px;
    overflow: hidden;
    z-index: 1;
}


.vm-language-switcher {
    position: absolute;
    top: 0;
    right: 0;

    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;
    padding: 0 8px;

    background: transparent;

    z-index: 20;
}


.vm-language-link {
    display: block;

    width: 32px;
    height: 22px;

    padding: 0;
    margin: 0;

    line-height: 0;

    overflow: hidden;

    border: 0;
    border-radius: 2px;

    text-decoration: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}


.vm-language-link img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    margin: 0;
    padding: 0;

    border: 0;
}


.vm-language-link:hover,
.vm-language-link:focus {
    transform: scale(1.08);
    opacity: 0.9;
}


/* Na telefonach przełącznik będzie projektowany osobno. */
@media (max-width: 767px) {

    .vm-language-switcher {
        display: none;
    }

    .vm-ticker-track-window {
        right: 0;
    }
}

/* =========================================================
   VISMASTER — NOWA STRUKTURA
   HEADER / PAGE(HERO+CONTENT) / TICKER / FOOTER
   ========================================================= */

.vismaster-layout {
    width: var(--vm-pc-width, 70%);
    max-width: var(--vm-pc-max-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--vm-pc-margin-top, 0px);
    margin-bottom: var(--vm-pc-margin-bottom, 0px);
    border-left: var(--vm-frame-width-pc, 1px) solid var(--vm-frame-color, #888);
    border-right: var(--vm-frame-width-pc, 1px) solid var(--vm-frame-color, #888);
    overflow: hidden;
}

/* HEADER */
.vm-header {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    height: 72px;
    padding: 6px 12px;
    background: rgba(255,255,255,.96);
}

.vm-header-logo,
.vm-logo {
    min-width: 0;
}

.vm-logo {
    text-align: center;
}

.vm-logo img {
    opacity: 1;
    mix-blend-mode: normal;
    display: inline-block;
    width: var(--vm-logo-width-pc, 300px);
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* MENU — korzysta nadal z istniejącego [vismaster_menu] */
.vm-header-menu {
    min-width: 0;
    height: var(--vm-menu-height, 35px);
    display: flex;
    align-items: stretch;
    overflow: visible;
    background: var(--vm-menu-bg, rgba(51,51,51,1));
    color: var(--vm-menu-text, #fff);
}

.vm-header-menu .vm-main-menu {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.vm-header-menu .vm-main-menu > ul {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vm-header-menu .vm-main-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.vm-header-menu .vm-main-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--vm-menu-height, 35px);
    padding: 6px 9px;
    color: var(--vm-menu-text, #fff);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.vm-header-menu .vm-main-menu a:hover,
.vm-header-menu .vm-main-menu a:focus {
    color: var(--vm-menu-hover, #ddd);
}

/* FLAGI + SZUKAJ */
.vm-header-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 82px;
}

.vm-header-tools .vm-language-switcher {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    z-index: 1;
}

.vm-search-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vm-menu-text, #333);
    font-size: 25px;
    line-height: 32px;
    cursor: pointer;
}

/* PAGE = DWA DIVY W JEDNYM DIVIE */
.vm-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.vm-hero {
    width: 100%;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,1);
}

.vm-content {
    width: calc(100% - var(--vm-content-margin-left) - var(--vm-content-margin-right));
    margin-top: var(--vm-content-margin-top);
    margin-bottom: var(--vm-content-margin-bottom);
    margin-left: var(--vm-content-margin-left);
    margin-right: var(--vm-content-margin-right);
    padding: var(--vm-content-padding-pc);
    background: var(--vm-content-bg, rgba(255,255,255,1));
    border-radius: var(--vm-content-border-radius);
    overflow-wrap: break-word;
}

.vm-content,
.vm-content * {
    color: inherit;
}

/* TICKER NA DOLE */
.vm-ticker-container {
    width: 100%;
    height: 40px;
    overflow: hidden;
}

/* FOOTER */


/* W tickerze nie ma już panelu językowego */
.vm-ticker-container .vm-language-switcher {
    display: none !important;
}

/* MOBILE */
@media (max-width: 767px) {

    .vismaster-layout {
        width: var(--vm-mobile-width,100%);
        max-width: none;
        margin-left: var(--vm-mobile-margin-left,0px);
        margin-right: var(--vm-mobile-margin-right,0px);
        border-left-width: var(--vm-frame-width-mobile,1px);
        border-right-width: var(--vm-frame-width-mobile,1px);
    }

    .vm-header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo tools"
            "menu menu";
        gap: 10px;
        padding: 10px;
    }

    .vm-header-logo { grid-area: logo; }
    .vm-header-menu { grid-area: menu; }
    .vm-header-tools { grid-area: tools; }

    .vm-logo {
        text-align: left;
    }

    .vm-logo img {
        width: var(--vm-logo-width-mobile,220px);
    }

    .vm-header-menu .vm-main-menu > ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .vm-header-menu .vm-main-menu a {
        white-space: nowrap;
        padding: 8px 12px;
    }

    .vm-hero {
        min-height: 240px;
    }

    .vm-content {
        padding: var(--vm-content-padding-mobile,15px);
    }

    .vm-footer {
        padding: 20px 12px;
    }
}

/* =========================================================
   VISMASTER HERO — CMS
   ========================================================= */

.vm-hero {
    min-height: 330px;
    background-color: #07131a;
    background-repeat: no-repeat;
    background-size: cover;
}

.vm-hero-overlay {
    width: 100%;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 42px;
    box-sizing: border-box;
}

.vm-hero-content {
    width: min(560px, 100%);
    color: #fff;
    text-align: left;
}

.vm-hero-title {
    margin: 0 0 4px;
    color: #fff !important;
    font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 2px 8px rgba(0,0,0,.75);
}

.vm-hero-subtitle {
    margin: 0 0 12px;
    color: #fff !important;
    font-size: clamp(18px, 1.8vw, 26px);
    line-height: 1.15;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,.75);
}

.vm-hero-text {
    max-width: 520px;
    margin: 0 0 16px;
    color: #fff !important;
    font-size: 16px;
    line-height: 1.55;
    text-shadow: 0 1px 5px rgba(0,0,0,.85);
}

.vm-hero-text p {
    margin: 0 0 8px;
    color: inherit !important;
}

.vm-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 5px;
    background: #178f58;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: transform .15s ease, background-color .15s ease;
}

.vm-hero-button:hover,
.vm-hero-button:focus {
    background: #20a868;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 767px) {

    .vm-hero,
    .vm-hero-overlay {
        min-height: 270px;
    }

    .vm-hero-overlay {
        padding: 24px 20px;
    }

    .vm-hero-content {
        width: 100%;
    }

    .vm-hero-title {
        font-size: 30px;
    }

    .vm-hero-subtitle {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .vm-hero-text {
        font-size: 14px;
        line-height: 1.45;
    }
}

/* =========================================================
   VISMASTER — RAMKI CMS DLA NOWEJ STRUKTURY
   Wykorzystuje istniejące ustawienia:
   --vm-frame-width-pc
   --vm-frame-width-mobile
   --vm-frame-color
   --vm-frame-opacity
   --vm-frame-shadow
   ========================================================= */

.vm-header,
.vm-page,
.vm-hero,
.vm-content,
.vm-ticker-container,
.vm-footer {
    border: var(--vm-frame-width-pc, 1px) solid
            var(--vm-frame-color, #ff0000);
    border-color: color-mix(in srgb, var(--vm-frame-color, #ff0000) calc(var(--vm-frame-opacity, 50) * 1%), transparent);
}

/* Główne elementy korzystają z dokładnie tych samych parametrów
   co stara rama VISMASTER. */
.vm-header,
.vm-page,
.vm-ticker-container,
.vm-footer {
    box-shadow: var(--vm-frame-shadow, none);
}

/* HERO i CONTENT są osobnymi kontenerami w PAGE,
   więc również dostają ramkę. */
.vm-hero,
.vm-content {
    box-shadow: var(--vm-frame-shadow, none);
}

@media (max-width: 767px) {

    .vm-header,
    .vm-page,
    .vm-hero,
    .vm-content,
    .vm-ticker-container,
    .vm-footer {
        border-width: var(--vm-frame-width-mobile, 1px);
    }

}

/* =========================================================
   VISMASTER — CMS LAYOUT CONTROLS
   Margines, padding i zaokrąglenie HERO/CONTENT są sterowane
   przez wtyczkę VISMASTER Content (wp_head).
   ========================================================= */

.vm-hero,
.vm-content {
    overflow: hidden;
}

.vm-hero {
    /* Wartości końcowe pochodzą z CMS. */
    border-radius: 0;
}

.vm-content {
    /* Wartości końcowe pochodzą z CMS. */
    border-radius: 0;
}


/* =========================================================
   VISMASTER — HEADER V3
   Jeden zwarty HEADER PC/MAC.
   HEADER i MENU mają niezależne tło + przezroczystość z CMS.
   ========================================================= */

.vm-header {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 72px;
    height: 72px;
    padding: 6px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: var(--vm-header-bg) !important;
    color: var(--vm-menu-text);
    overflow: visible;
}

.vm-header-logo {
    min-width: 0;
    display: flex;
    align-items: center;
}

.vm-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.vm-logo img {
    display: block;
    width: min(var(--vm-logo-width-pc, 300px), 195px);
    max-width: 100%;
    max-height: 58px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.vm-header-menu {
    min-width: 0;
    width: 100%;
    height: var(--vm-menu-height, 35px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--vm-menu-bg) !important;
    color: var(--vm-menu-text) !important;
    opacity: 1;
    overflow: visible;
    border-radius: 0;
}

.vm-header-menu .vm-main-menu,
.vm-header-menu .vismaster-custom-menu {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: stretch;
    background: transparent !important;
    overflow: hidden;
}

.vm-header-menu .vm-main-menu > ul,
.vm-header-menu .vismaster-custom-menu > ul {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
}

.vm-header-menu .vm-main-menu li,
.vm-header-menu .vismaster-custom-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.vm-header-menu .vm-main-menu a,
.vm-header-menu .vismaster-custom-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--vm-menu-height, 35px);
    height: var(--vm-menu-height, 35px);
    padding: 6px 7px;
    color: var(--vm-menu-text) !important;
    text-decoration: none;
    white-space: nowrap;
    background: transparent !important;
    transition: color .2s ease, background-color .2s ease;
}

.vm-header-menu .vm-main-menu a:hover,
.vm-header-menu .vm-main-menu a:focus,
.vm-header-menu .vismaster-custom-menu a:hover,
.vm-header-menu .vismaster-custom-menu a:focus {
    color: var(--vm-menu-hover) !important;
}

.vm-header-tools {
    min-width: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--vm-menu-text) !important;
}

.vm-header-tools .vm-language-switcher {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: transparent !important;
}

.vm-header-tools .vm-language-link,
.vm-header-tools .vm-language-link img {
    display: block;
}

.vm-search-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: var(--vm-menu-text) !important;
    font-size: 25px;
    line-height: 32px;
    cursor: pointer;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .vm-header {
        gap: 7px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .vm-logo img {
        width: min(var(--vm-logo-width-pc, 300px), 175px);
    }

    .vm-header-menu .vm-main-menu a,
    .vm-header-menu .vismaster-custom-menu a {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 767px) {
    .vm-header {
        min-height: 0;
        height: auto;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo tools"
            "menu menu";
        gap: 10px;
        padding: 8px 10px;
    }

    .vm-header-logo { grid-area: logo; }
    .vm-header-menu { grid-area: menu; }
    .vm-header-tools { grid-area: tools; }

    .vm-logo img {
        width: min(var(--vm-logo-width-mobile, 220px), 180px);
        max-height: 54px;
    }

    .vm-header-menu .vm-main-menu > ul,
    .vm-header-menu .vismaster-custom-menu > ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .vm-header-menu .vm-main-menu a,
    .vm-header-menu .vismaster-custom-menu a {
        padding: 8px 12px;
    }
}


/* =====================================================
   STOPKA — OSTATECZNE NADPISANIE KOLORÓW Z CMS
   ===================================================== */
.vm-footer {
    background-color: var(--vm-footer-bg-color, #050807) !important;
    color: var(--vm-footer-text-color, #ffffff) !important;
}

.vm-footer .vm-footer-brand-title,
.vm-footer .vm-footer-column-title,
.vm-footer .vm-footer-brand-copy,
.vm-footer .vm-footer-menu,
.vm-footer .vm-footer-menu a,
.vm-footer .vm-footer-bottom,
.vm-footer .vm-footer-bottom-text,
.vm-footer .vm-footer-bottom-links,
.vm-footer .vm-footer-bottom-links a {
    color: var(--vm-footer-text-color, #ffffff) !important;
}

.vm-footer .vm-footer-menu a:hover,
.vm-footer .vm-footer-menu a:focus,
.vm-footer .vm-footer-bottom-links a:hover,
.vm-footer .vm-footer-bottom-links a:focus {
    color: var(--vm-footer-text-color, #ffffff) !important;
    opacity: .72;
}

.vm-footer .vm-footer-bottom {
    border-top-color: color-mix(in srgb, var(--vm-footer-text-color, #ffffff) 22%, transparent) !important;
}

/* Kolor tła z CMS ma działać zarówno dla trybu KOLOR, jak i OBRAZ. */
.vm-footer[style*="--vm-footer-bg-mode: color"],
.vm-footer[style*="--vm-footer-bg-mode: image"] {
    background-color: var(--vm-footer-bg-color, #050807) !important;
}

/* Warstwa obrazu pozostaje niezależna od koloru i jego krycia. */
.vm-footer::before {
    background-image: var(--vm-footer-bg-image, none) !important;
    background-position: var(--vm-footer-bg-position, center center) !important;
    background-size: var(--vm-footer-bg-size, cover) !important;
    background-attachment: var(--vm-footer-bg-attachment, scroll) !important;
}

.vm-footer[style*="--vm-footer-bg-mode: color"]::before {
    opacity: 0 !important;
}

.vm-footer[style*="--vm-footer-bg-mode: image"]::before {
    opacity: var(--vm-footer-bg-image-opacity, .25) !important;
}


/* =====================================================
   STOPKA — NOWA, PROSTA STRUKTURA 5 x 20%
   ===================================================== */
.vm-footer {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background-color: var(--vm-footer-bg-color, #050807) !important;
    color: var(--vm-footer-text-color, #ffffff) !important;
}

.vm-footer::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image: var(--vm-footer-bg-image, none) !important;
    background-position: var(--vm-footer-bg-position, center center) !important;
    background-size: var(--vm-footer-bg-size, cover) !important;
    background-repeat: no-repeat !important;
    background-attachment: var(--vm-footer-bg-attachment, scroll) !important;
}

.vm-footer[style*="--vm-footer-bg-mode: color"]::before { opacity: 0 !important; }
.vm-footer[style*="--vm-footer-bg-mode: image"]::before { opacity: var(--vm-footer-bg-image-opacity, .25) !important; }

.vm-footer-five-columns {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 30px 0 !important;
    box-sizing: border-box !important;
}

.vm-footer-five-columns > .vm-footer-col {
    width: 20% !important;
    flex: 0 0 20% !important;
    min-width: 0 !important;
    max-width: 20% !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border: 0 !important;
    color: var(--vm-footer-text-color, #ffffff) !important;
}

.vm-footer-five-columns > .vm-footer-col + .vm-footer-col {
    border-left: 1px solid color-mix(in srgb, var(--vm-footer-text-color, #ffffff) 22%, transparent) !important;
}

.vm-footer-five-columns a,
.vm-footer-five-columns a:visited,
.vm-footer-five-columns h1,
.vm-footer-five-columns h2,
.vm-footer-five-columns h3,
.vm-footer-five-columns h4,
.vm-footer-five-columns p,
.vm-footer-five-columns div,
.vm-footer-five-columns span {
    color: var(--vm-footer-text-color, #ffffff) !important;
}

.vm-footer-five-columns .vm-contact-text,
.vm-footer-five-columns .vm-phone,
.vm-footer-five-columns .vm-email,
.vm-footer-five-columns .vm-opening-hours {
    color: inherit !important;
}

.vm-footer-five-columns .vm-footer-menu a {
    display: block !important;
    color: var(--vm-footer-text-color, #ffffff) !important;
    text-decoration: none !important;
}

.vm-footer-five-columns .vm-footer-menu a:hover,
.vm-footer-five-columns .vm-footer-menu a:focus {
    color: var(--vm-footer-text-color, #ffffff) !important;
    opacity: .72 !important;
}

.vm-footer-five-columns .vm-social-icons img {
    width: var(--vm-footer-icon-size, 28px) !important;
    height: var(--vm-footer-icon-size, 28px) !important;
}

.vm-footer-bottom {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    border-top: 1px solid color-mix(in srgb, var(--vm-footer-text-color, #ffffff) 22%, transparent) !important;
    box-sizing: border-box !important;
}

.vm-footer-bottom-inner {
    width: 100% !important;
    max-width: none !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.vm-footer-bottom-text,
.vm-footer-bottom-links,
.vm-footer-bottom-links a {
    color: var(--vm-footer-text-color, #ffffff) !important;
}

@media (max-width: 767px) {
    .vm-footer-five-columns {
        flex-wrap: wrap !important;
        padding: 20px 0 !important;
    }
    .vm-footer-five-columns > .vm-footer-col {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 22px !important;
    }
    .vm-footer-five-columns > .vm-footer-col:nth-child(3) {
        border-left: 0 !important;
    }
    .vm-footer-bottom-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}


/* =========================================================
   STOPKA — OSTATECZNE WYKOŃCZENIE CMS
   ========================================================= */
.vm-footer-five-columns {
    align-items: stretch !important;
    gap: 0 !important;
}

.vm-footer-five-columns > .vm-footer-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 150px !important;
}

.vm-footer-five-columns > .vm-footer-col h3 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.vm-footer-logo {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 90px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 0 14px !important;
}

.vm-footer-col-copy,
.vm-footer-col-text,
.vm-footer-contact-line,
.vm-footer-hours {
    margin: 0 0 9px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}

.vm-footer-five-columns .vm-social-icons {
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: var(--vm-footer-icon-spacing, 10px) !important;
    margin: 0 !important;
}

.vm-footer-five-columns .vm-social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vm-footer-five-columns .vm-social-icons img {
    display: block !important;
    width: var(--vm-footer-icon-size, 28px) !important;
    height: var(--vm-footer-icon-size, 28px) !important;
    max-width: none !important;
    object-fit: contain !important;
}

.vm-footer-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
}

.vm-footer-menu a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.vm-footer-menu a:hover,
.vm-footer-menu a:focus {
    opacity: .72 !important;
}

.vm-footer-contact-line a {
    text-decoration: none !important;
}

.vm-footer-bottom {
    margin-top: 0 !important;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .vm-footer-five-columns > .vm-footer-col {
        padding-left: 11px !important;
        padding-right: 11px !important;
    }
    .vm-footer-five-columns > .vm-footer-col h3 {
        font-size: 15px !important;
    }
}

@media (max-width: 767px) {
    .vm-footer-five-columns {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 22px 0 !important;
    }
    .vm-footer-five-columns > .vm-footer-col {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        min-height: 0 !important;
        margin-bottom: 22px !important;
        padding: 0 12px !important;
    }
    .vm-footer-five-columns > .vm-footer-col:nth-child(3),
    .vm-footer-five-columns > .vm-footer-col:nth-child(5) {
        border-left: 0 !important;
    }
    .vm-footer-logo {
        max-height: 70px !important;
    }
}

@media (max-width: 520px) {
    .vm-footer-five-columns > .vm-footer-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        border-left: 0 !important;
        padding: 0 14px !important;
    }
}

/* =========================================================
   STOPKA PC — 5 RÓWNYCH KOLUMN
   20% | 20% | 20% | 20% | 20% = 100%
   ========================================================= */
@media (min-width: 768px) {
    .vm-footer-five-columns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .vm-footer-five-columns > .vm-footer-col {
        width: 20% !important;
        flex: 0 0 20% !important;
        max-width: 20% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* cienki separator pomiędzy każdą z 5 równych części */
    .vm-footer-five-columns > .vm-footer-col + .vm-footer-col {
        border-left: 1px solid color-mix(in srgb, var(--vm-footer-text-color, #ffffff) 22%, transparent) !important;
    }
}


