/* MCKF – style własne (dołączane w <head> przez parametr before_head stylu Helix3, z numerem wersji) */

/* ===== Czcionki z własnego serwera (bez Google Fonts) ===== */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/opensans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/opensans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* krój, grubość i rozmiary pisma ustawia CSS stylu szablonu (custom_css), tak jak na starej stronie */

/* ===== Kontrast i fokus (WCAG 2.1 AA) ===== */
a { color: #3d7d22; }
a:hover, a:focus { color: #2a5a16; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #1a56b8;
    outline-offset: 2px;
}
.mckf-pomin {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 10000;
    padding: 10px 16px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    border: 2px solid #1a56b8;
    transition: top .15s;
}
.mckf-pomin:focus { top: 8px; }

/* ===== Strona główna ===== */
h2.aktualnosci, h2.oferta, h3.aktualnosci, h3.oferta {
    font-size: 2.5em;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    margin: 0 0 30px;
}
#sp-section-5 {
    background: #4e9a2e;
    padding: 50px 0;
}
#sp-glowna-aktualnosci {
    padding-top: 20px;
    padding-bottom: 70px;
}
#sp-main-body { padding: 30px 0; }
.c-white { color: #fff; }
.pull-right { float: right; }
.block { display: block; }

/* Pokaz slajdów */
#sp-page-title, #sp-title { padding: 0; }
.mckf-slajdy {
    position: relative;
    display: grid;
    overflow: hidden;
    background: #1d2b36;
}
.mckf-slajd {
    grid-area: 1 / 1;
    margin: 0;
    position: relative;
}
.mckf-slajd:not(:first-of-type) { visibility: hidden; opacity: 0; }
.mckf-slajdy.is-ready .mckf-slajd {
    visibility: hidden;
    opacity: 0;
    transition: opacity .8s ease, visibility .8s;
}
.mckf-slajdy.is-ready .mckf-slajd.is-active { visibility: visible; opacity: 1; }
.mckf-slajd img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}
.mckf-slajd figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 70px;
    pointer-events: none;
}
.mckf-slajd figcaption a {
    pointer-events: auto;
    color: #fff;
    font-size: clamp(28px, 5.5vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .8);
}
.mckf-slajd figcaption a:hover, .mckf-slajd figcaption a:focus { color: #fff; text-decoration: underline; }
.mckf-slajdy button {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 44px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
}
.mckf-slajdy button:hover { background: rgba(0, 0, 0, .7); }
.mckf-slajdy__poprzedni { left: 12px; top: calc(50% - 22px); }
.mckf-slajdy__nastepny { right: 12px; top: calc(50% - 22px); }
.mckf-slajdy__pauza { right: 12px; bottom: 12px; font-size: 16px !important; }

/* Aktualności (moduł artykułów) */
#sp-glowna-aktualnosci .mod-articles-items { gap: 30px; }
#sp-glowna-aktualnosci .mod-articles-item-content { display: flex; flex-direction: column; height: 100%; }
#sp-glowna-aktualnosci .mod-articles-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0 0 10px;
    min-height: 2.8em;
}
#sp-glowna-aktualnosci .mod-articles-title a { color: #b35a0b; }
#sp-glowna-aktualnosci .mod-articles-title a:hover { color: #7f3f06; }
#sp-glowna-aktualnosci .mod-articles-image { margin: 0 0 10px; }
#sp-glowna-aktualnosci .mod-articles-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    height: auto;
}
/* wstęp artykułu jako zwykły tekst, nawet jeśli w treści jest nagłówek */
#sp-glowna-aktualnosci .mod-articles-item-content > :not(.mod-articles-title):not(.mod-articles-image):not(.readmore) {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    margin: 0 0 6px;
}
#sp-glowna-aktualnosci .readmore { margin-top: auto; }
#sp-glowna-aktualnosci .readmore a {
    font-size: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: #3d7d22;
}

/* Helix3 dodaje listom w modułach strzałki i linie – nie dotyczy kafelków, logotypów i galerii */
.sp-module ul.mckf-oferta > li,
.sp-module ul.mckf-logotypy > li,
ul.mckf-galeria > li {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}
.sp-module ul.mckf-oferta > li > a::before,
.sp-module ul.mckf-logotypy > li > a::before,
ul.mckf-galeria > li > a::before { display: none; }
.sp-module ul.mckf-oferta > li > a,
.sp-module ul.mckf-oferta > li > a:hover,
.sp-module ul.mckf-oferta > li > a:focus { color: #fff; line-height: 1.3; padding: 0; }
.sp-module ul.mckf-logotypy > li > a { line-height: 1; }

/* Oferta: kafelki obiektów */
.mckf-oferta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mckf-oferta a {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}
.mckf-oferta img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s ease;
}
.mckf-oferta a:hover img, .mckf-oferta a:focus img { transform: scale(1.05); }
.mckf-oferta__nazwa, .mckf-oferta__adres {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 14px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
.mckf-oferta__nazwa {
    bottom: 34px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    padding-top: 40px;
}
.mckf-oferta__adres {
    bottom: 0;
    height: 34px;
    font-size: 14px;
    background: rgba(0, 0, 0, .55);
}
.mckf-oferta a:focus-visible { outline-color: #fff; outline-offset: -5px; }
@media (max-width: 991px) { .mckf-oferta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
    .mckf-oferta { gap: 10px; }
    .mckf-oferta__nazwa { font-size: 14px; bottom: 28px; padding: 30px 8px 0; }
    .mckf-oferta__adres { font-size: 12px; height: 28px; padding: 0 8px; }
}

/* Logotypy: karty i partnerzy */
.mckf-naglowek { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.mckf-logotypy,
#sp-bottom .sp-module ul.mckf-logotypy {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 24px 40px;
}
.mckf-logotypy--lewo { justify-content: flex-start; }
.mckf-logotypy a { display: block; padding: 6px; }
.mckf-logotypy img {
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: 200px;
}
.mckf-logotypy--lewo img { max-height: 90px; }
#sp-wspolpraca, #sp-bottom { padding: 30px 0; }
.mckf-bip { display: flex; justify-content: flex-end; padding: 20px 0; }
.mckf-bip img { max-width: 100%; height: auto; }

/* ===== Podstrony ===== */
/* tytuły, daty i wstępy jak w widokach K2 na starej stronie */
.entry-header h2 { line-height: 1.2; }
.view-category .entry-header h2 { font-weight: 400; }
.view-category .item p { font-weight: 400; }
.article-info, .entry-header .article-info, .entry-header time { font-size: 12px; line-height: 1.5; }

.mckf-okruszki { display: flex; flex-wrap: wrap; align-items: baseline; }
.mckf-okruszki .breadcrumb { margin: 0; padding: 0; background: none; }

.cennik td {
    margin-bottom: 10px;
    line-height: 2.2em;
    border-bottom: 1px solid #e1e1e1;
}
.mckf-tabela { overflow-x: auto; max-width: 100%; }
.item-page img, .blog img { max-width: 100%; height: auto; }
/* obrazek w artykule nad tekstem (jak na starej stronie), a nie obok wąskiej kolumny tekstu */
.view-category .entry-image.intro-image,
.item-page .entry-image.full-image {
    float: none !important;
    margin: 0 0 20px;
    max-width: 700px;
}
.view-category .entry-image.intro-image img,
.item-page .entry-image.full-image img { width: 100%; }
@media (max-width: 767px) {
    .mckf-slajd figcaption { padding: 0 52px; }
}

/* Galerie zdjęć obiektów */
.mckf-galeria {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
}
.mckf-galeria a { display: block; overflow: hidden; }
.mckf-galeria img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease, opacity .3s;
}
.mckf-galeria a:hover img, .mckf-galeria a:focus img { transform: scale(1.04); opacity: .9; }

.mckf-podglad {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 96vw;
    max-height: 96vh;
    overflow: visible;
}
.mckf-podglad::backdrop { background: rgba(0, 0, 0, .85); }
.mckf-podglad figure { margin: 0; text-align: center; }
.mckf-podglad img {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.mckf-podglad figcaption { color: #fff; padding: 8px 0 0; font-size: 15px; }
.mckf-podglad button {
    position: fixed;
    border: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    width: 48px;
    height: 48px;
    font-size: 30px;
    line-height: 48px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
}
.mckf-podglad button:hover { background: rgba(255, 255, 255, .3); }
.mckf-podglad__zamknij { top: 16px; right: 16px; }
.mckf-podglad__poprzednie { left: 16px; top: calc(50% - 24px); }
.mckf-podglad__nastepne { right: 16px; top: calc(50% - 24px); }

/* Stopka */
#sp-footer { background: #2e3335; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
