/*
You can add your own CSS here.

Click the help icon above to learn more.
*/

/* Tło rozwijanego menu */
.main-header-menu .sub-menu,
.ast-builder-menu .sub-menu,
.ast-desktop .main-header-menu .sub-menu {
  background-color: #0F172A !important;
  border: 1px solid #2997AA !important;
}

/* Tekst w rozwijanym menu */
.main-header-menu .sub-menu a,
.ast-builder-menu .sub-menu a,
.ast-desktop .main-header-menu .sub-menu a {
  color: #FFFFFF !important;
  background-color: #0F172A !important;
}

/* Tekst po najechaniu */
.main-header-menu .sub-menu a:hover,
.ast-builder-menu .sub-menu a:hover,
.ast-desktop .main-header-menu .sub-menu a:hover {
  color: #FFFFFF !important;
  background-color: #2997AA !important;
}

/* Linie między pozycjami */
.main-header-menu .sub-menu li,
.ast-builder-menu .sub-menu li {
  border-bottom: 1px solid #2997AA !important;
}

/*padingi mapka*/
.site-above-footer-wrap[data-section="section-above-footer-builder"] .ast-builder-grid-row {
	padding-left: 0px;
	padding-right:0px;
}
.widget.widget_text {
	text-align:center;
}
.widget-title {
	color: black !important;
}
.textwidget {
	color: black;
}

/* =========================================================
   SZOP – BLOG (lista wpisów + pojedynczy wpis, Gutenberg)
   Szerokość kolumny wpisu: Astra → Wpis → Kontener „wąski”
   (narrow-container-max-width). Kategoria w kafelkach:
   Astra → Blog → Struktura wpisu.
   Style treści obejmują tylko bloki Gutenberga, żeby nie
   psuć widżetów Elementora ani przycisków Jetpacka.
   ========================================================= */

.single-post,
.blog,
.archive {
    --blog-text: #334155;
    --blog-heading: #0F172A;
    --blog-muted: #64748B;
    --blog-accent: #2997AA;      /* turkus strony – elementy ozdobne */
    --blog-link: #1D7584;        /* ciemniejszy turkus – tekst, kontrast > 4.5:1 */
    --blog-surface: #F1F8FA;
    --blog-surface-strong: #E3F2F5;
    --blog-border: rgba(15, 23, 42, 0.1);
    --blog-radius: 16px;
}


/* ---------- POJEDYNCZY WPIS: ramka i nagłówek ---------- */

.single-post.ast-separate-container .ast-article-single {
    padding: 56px 64px 64px;
}

.single-post .ast-breadcrumbs-wrapper {
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--blog-muted);
}

.single-post .ast-breadcrumbs-wrapper a {
    color: var(--blog-link);
}

.single-post .entry-header .entry-title {
    margin: 0 0 28px;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--blog-heading);
}

.single-post .entry-header .post-thumb-img-content img {
    width: 100%;
    border-radius: 20px;
}

.single-post .entry-header .entry-meta {
    margin: 18px 0 0;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--blog-border);
    font-size: 15px;
    color: var(--blog-muted);
}

.single-post .entry-header .entry-meta,
.single-post .entry-header .entry-meta * {
    color: var(--blog-muted);
}

.single-post .entry-header .entry-meta a,
.single-post .entry-header .entry-meta a * {
    color: var(--blog-link);
}

.single-post .entry-header {
    margin-bottom: 40px;
}


/* ---------- POJEDYNCZY WPIS: treść ---------- */

.single-post .entry-content {
    font-size: 18px;
    line-height: 1.75;
    color: var(--blog-text);
    overflow-wrap: break-word;
}

.single-post .entry-content p {
    margin: 0 0 1.4em;
}

/* Lead – pierwszy akapit */
.single-post .entry-content > p:first-of-type {
    font-size: clamp(19px, 1.8vw, 21px);
    line-height: 1.7;
    color: var(--blog-heading);
}

/* Nagłówki: H1 (tytuł) > H2 > H3 > H4 */
.single-post .entry-content > :is(h2, h3, h4),
.single-post .entry-content .wp-block-heading {
    color: var(--blog-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.single-post .entry-content > h2,
.single-post .entry-content h2.wp-block-heading {
    margin: 1.9em 0 0.6em;
    font-size: clamp(25px, 2.4vw, 31px);
    line-height: 1.25;
}

.single-post .entry-content > h3,
.single-post .entry-content h3.wp-block-heading {
    margin: 1.6em 0 0.5em;
    font-size: clamp(21px, 1.9vw, 24px);
    line-height: 1.3;
}

.single-post .entry-content > h4,
.single-post .entry-content h4.wp-block-heading {
    margin: 1.4em 0 0.4em;
    font-size: 19px;
    line-height: 1.35;
}

.single-post .entry-content > :is(h2, h3, h4):first-child {
    margin-top: 0;
}

/* Linki w tekście */
.single-post .entry-content :is(p, li, td, th, blockquote, figcaption) a:not(.wp-block-button__link) {
    color: var(--blog-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    word-break: break-word;
}

.single-post .entry-content :is(p, li, td, th, blockquote, figcaption) a:not(.wp-block-button__link):hover {
    color: var(--blog-heading);
    text-decoration-thickness: 2px;
}

.single-post .entry-content strong {
    font-weight: 700;
    color: var(--blog-heading);
}

/* Listy wypunktowane */
.single-post .entry-content > ul,
.single-post .entry-content ul.wp-block-list {
    margin: 0 0 1.6em;
    padding-left: 0;
    list-style: none;
}

.single-post .entry-content > ul > li,
.single-post .entry-content ul.wp-block-list > li {
    position: relative;
    margin-bottom: 0.5em;
    padding-left: 1.6em;
}

.single-post .entry-content > ul > li::before,
.single-post .entry-content ul.wp-block-list > li::before {
    content: "";
    position: absolute;
    left: 0.2em;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blog-accent);
}

.single-post .entry-content li > ul.wp-block-list {
    margin: 0.5em 0 0;
}

.single-post .entry-content li > ul.wp-block-list > li::before {
    background: transparent;
    border: 2px solid var(--blog-accent);
    width: 8px;
    height: 8px;
}

/* Listy numerowane */
.single-post .entry-content > ol,
.single-post .entry-content ol.wp-block-list {
    margin: 0 0 1.6em;
    padding-left: 0;
    list-style: none;
    counter-reset: blog-counter;
}

.single-post .entry-content > ol > li,
.single-post .entry-content ol.wp-block-list > li {
    position: relative;
    min-height: 30px;
    margin-bottom: 0.7em;
    padding-left: 44px;
    counter-increment: blog-counter;
}

.single-post .entry-content > ol > li::before,
.single-post .entry-content ol.wp-block-list > li::before {
    content: counter(blog-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blog-surface-strong);
    color: var(--blog-link);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.single-post .entry-content li > ol.wp-block-list {
    margin: 0.6em 0 0;
}

/* Cytat */
.single-post .entry-content .wp-block-quote,
.single-post .entry-content > blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    border: 0;
    border-left: 4px solid var(--blog-accent);
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
    background: var(--blog-surface);
    font-size: 20px;
    font-style: normal;
    line-height: 1.6;
    color: var(--blog-heading);
}

.single-post .entry-content .wp-block-quote p:last-of-type {
    margin-bottom: 0;
}

.single-post .entry-content .wp-block-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    font-style: normal;
    color: var(--blog-muted);
}

/* Obrazki */
.single-post .entry-content .wp-block-image {
    margin: 2em 0;
}

.single-post .entry-content .wp-block-image img {
    border-radius: var(--blog-radius);
}

.single-post .entry-content .wp-block-image figcaption {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: var(--blog-muted);
}

/* Separator */
.single-post .entry-content .wp-block-separator {
    width: 90px;
    margin: 56px auto;
    border: 0;
    border-top: 1px solid var(--blog-border);
}

/* Tabele */
.single-post .entry-content .wp-block-table {
    margin: 2em 0;
    overflow-x: auto;
}

.single-post .entry-content .wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--blog-border);
    border-radius: 14px;
    font-size: 16px;
}

.single-post .entry-content .wp-block-table :is(th, td) {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--blog-border);
    text-align: left;
}

.single-post .entry-content .wp-block-table th {
    background: var(--blog-surface-strong);
    color: var(--blog-heading);
    font-weight: 700;
}

.single-post .entry-content .wp-block-table tr:last-child td {
    border-bottom: 0;
}

/* Kod */
.single-post .entry-content :not(pre) > code {
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: var(--blog-surface-strong);
    font-size: 0.88em;
}

.single-post .entry-content pre {
    overflow-x: auto;
    padding: 22px 26px;
    border-radius: var(--blog-radius);
    background: #0F172A;
    color: #F1F5F9;
    font-size: 14px;
}


/* ---------- LISTA WPISÓW (strona bloga, kategorie) ---------- */

:is(.blog, .archive) .ast-article-post .ast-article-inner {
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

:is(.blog, .archive) .ast-article-post .ast-article-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(15, 23, 42, 0.1);
}

:is(.blog, .archive) .ast-article-post .post-thumb-img-content img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Kategoria między zdjęciem a tytułem */
:is(.blog, .archive) .ast-article-post .ast-taxonomy-container.cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 12px;
    font-size: 0;            /* ukrywa przecinki między kategoriami */
}

:is(.blog, .archive) .ast-article-post .ast-taxonomy-container.cat-links a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blog-surface-strong);
    color: var(--blog-link);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

:is(.blog, .archive) .ast-article-post .ast-taxonomy-container.cat-links a:hover {
    background: var(--blog-accent);
    color: #fff;
}

:is(.blog, .archive) .ast-article-post .entry-title {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

:is(.blog, .archive) .ast-article-post .entry-title a {
    color: var(--blog-heading);
    text-decoration: none;
}

:is(.blog, .archive) .ast-article-post .entry-title a:hover {
    color: var(--blog-link);
}

:is(.blog, .archive) .ast-article-post .ast-excerpt-container {
    font-size: 16px;
    line-height: 1.6;
    color: var(--blog-text);
}

:is(.blog, .archive) .ast-article-post .read-more a {
    color: var(--blog-link);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

:is(.blog, .archive) .ast-article-post .read-more a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Paginacja */
:is(.blog, .archive) .ast-pagination {
    margin-top: 48px;
    text-align: center;
}

:is(.blog, .archive) .ast-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

:is(.blog, .archive) .ast-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    background: #fff;
    color: var(--blog-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    float: none;
}

:is(.blog, .archive) .ast-pagination .page-numbers:hover {
    border-color: var(--blog-accent);
    color: var(--blog-link);
}

:is(.blog, .archive) .ast-pagination .page-numbers.current {
    border-color: var(--blog-accent);
    background: var(--blog-accent);
    color: #fff;
}

:is(.blog, .archive) .ast-pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}


/* ---------- TABLET / TELEFON ---------- */

@media (max-width: 921px) {
    .single-post.ast-separate-container .ast-article-single {
        padding: 40px 36px 48px;
    }
}

@media (max-width: 544px) {
    .single-post.ast-separate-container .ast-article-single {
        padding: 28px 20px 36px;
    }

    .single-post .entry-content {
        font-size: 17px;
    }

    .single-post .entry-content .wp-block-quote {
        padding: 20px 20px;
        font-size: 18px;
    }

    .single-post .entry-content .wp-block-table table {
        font-size: 14px;
    }
}

/* =========================================================
   PRZYKLEJONY NAGŁÓWEK (top bar + menu)
   Na górze strony wygląda jak oryginał, po przewinięciu
   dostaje tło #222222 (kolor nagłówka z Astry) i się zmniejsza.
   ========================================================= */
#masthead {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999 !important;
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar #masthead { top: 0; } }

/* 60px odstępu pod menu przeniesione z nagłówka do strony (wygląda identycznie) */
#masthead .ast-primary-header-bar.main-header-bar { margin-bottom: 0 !important; }

/* Podstrony (bez przezroczystego nagłówka): miejsce na nagłówek, żeby nie zasłaniał treści */
body:not(.ast-theme-transparent-header) #page { padding-top: 316px; }
@media (max-width: 921px) { body:not(.ast-theme-transparent-header) #page { padding-top: 171px; } }
@media (max-width: 544px) { body:not(.ast-theme-transparent-header) #page { padding-top: 160px; } }

/* Podstrony usług (sekcja .szop-hero) nie mają 60px odstępu pod menu – hero zaczyna się tuż pod nagłówkiem */
body:has(.szop-hero):not(.ast-theme-transparent-header) #page { padding-top: 255px; }
@media (max-width: 921px) { body:has(.szop-hero):not(.ast-theme-transparent-header) #page { padding-top: 111px; } }
@media (max-width: 544px) { body:has(.szop-hero):not(.ast-theme-transparent-header) #page { padding-top: 100px; } }

/* Strona główna: tło po przewinięciu (starsze przeglądarki – tło od razu) */
.ast-theme-transparent-header #masthead { background-color: #222222; }

@supports (animation-timeline: scroll()) {
  .ast-theme-transparent-header #masthead {
    background-color: transparent;
    animation: szop-header-bg linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120px;
  }
  /* Komputer: logo i pasek menu zmniejszają się przy przewijaniu */
  @media (min-width: 922px) {
    #ast-desktop-header .site-logo-img img {
      width: auto !important;
      max-width: none !important;
      height: 171px;
      animation: szop-logo linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }
    #ast-desktop-header .ast-primary-header-bar {
      animation: szop-bar linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }
  }
}
@keyframes szop-header-bg { to { background-color: #222222; box-shadow: 0 2px 14px rgba(0, 0, 0, .3); } }
@keyframes szop-logo { to { height: 115px; } }
@keyframes szop-bar { to { padding-top: 6px; padding-bottom: 6px; } }

/* Top bar NIE jest przyklejony – przy przewijaniu chowa się, zostaje samo menu (komputer) */
@supports (animation-timeline: scroll()) {
  @media (min-width: 922px) {
    #masthead {
      animation: szop-hide-topbar linear both;
      animation-timeline: scroll(root);
      animation-range: 0 50px;
    }
    .ast-theme-transparent-header #masthead {
      animation: szop-header-bg linear both, szop-hide-topbar linear both;
      animation-timeline: scroll(root), scroll(root);
      animation-range: 0 120px, 0 50px;
    }
  }
}
@keyframes szop-hide-topbar { to { transform: translateY(-50px); } }

/* Telefon – rozwinięte menu przewijalne wewnątrz przyklejonego nagłówka */
#masthead .ast-mobile-header-content {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
