@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Lato:wght@400;700&display=swap');

:root {
    --violet-dark: #2b1946;
    --violet: #4f2f78;
    --violet-light: #7e56a7;
    --cream: #fffaf5;
    --line: #eadff4;
    --text: #2d2636;
    --muted: #70657d;
    --gold: #f0c66c;
}

* { box-sizing: border-box; }
body.site-body {
    margin: 0;
    background: radial-gradient(circle at top, #fff7ff 0, #fffaf5 360px, #f8f4fb 100%);
    color: var(--text);
    font: 17px/1.65 'Lato', Arial, sans-serif;
    overflow-x: hidden;
}
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); text-decoration: none; }

.top-hero { background: #efe3f9; }
.top-hero__image {
    min-height: 320px;
    background-image: url('/img/przeznaczenie-banner.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--violet-dark), var(--violet));
    box-shadow: 0 4px 18px rgba(43,25,70,.25);
}
.nav-toggle { display: none; }
.nav-menu {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: stretch;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 17px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
/* Strzałka przy pozycjach z submenu */

.nav-menu > li.has-submenu > a::after,
.nav-menu > li.has-submenu > span::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255,255,255,.95);
    border-bottom: 2px solid rgba(255,255,255,.95);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
}

.nav-menu > li.has-submenu:hover > a::after {
    transform: rotate(225deg) translateY(-1px);
}
.nav-menu > li:hover > a { background: rgba(255,255,255,.12); }
.nav-menu ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 235px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    box-shadow: 0 16px 34px rgba(43,25,70,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}
.nav-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu ul a {
    display: block;
    padding: 9px 16px;
    color: var(--text);
    font-size: 15px;
}
.nav-menu ul a:hover { background: #f7f0fb; color: var(--violet); }

.site-shell {
    max-width: 1180px;
    margin: 24px auto 40px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}
.site-sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(60,35,90,.08);
}
.side-box h3 {
    margin: 0;
    padding: 11px 14px;
    color: #fff;
    background: linear-gradient(90deg, var(--violet), var(--violet-light));
    font: 700 15px/1.2 'Lato', Arial, sans-serif;
    text-transform: uppercase;
}
.side-box h3 i { margin-right: 7px; color: var(--gold); }
.side-box a {
    display: block;
    padding: 7px 14px;
    color: var(--text);
    font-size: 15px;
}
.side-box a:hover { background: #fbf7ff; color: var(--violet); padding-left: 18px; }

.site-content {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
}
.site-content h1,
.site-content h2,
.site-content h3 {
    color: #21152f;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}
.site-content h1 { font-size: 32px; margin: 0 0 16px; }
.site-content h2 { font-size: 24px; margin: 30px 0 12px; }
.site-content h3 { font-size: 20px; margin: 24px 0 10px; }
.site-content p { margin: 0 0 16px; }
.site-content img { max-width: 100%; height: auto; border-radius: 10px; }
.site-content ul { padding-left: 22px; }

.article-lead {
    font-size: 19px;
    color: #40364d;
}
.note-box {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--gold);
    background: #fff7e7;
    border-radius: 8px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.related-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(60,35,90,.07);
}
.related-card img { width: 100%; display: block; border-radius: 0; }
.related-card span { display: block; padding: 10px; font-weight: 700; color: var(--text); }

.site-footer {
    background: linear-gradient(90deg, var(--violet-dark), #31204f);
    color: #fff;
    padding: 34px 15px;
}
.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 35px;
}
.footer-logo { font: 600 30px/1 'Cormorant Garamond', serif; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; text-transform: uppercase; }
.site-footer p { color: #dfd3ee; margin-top: 10px; }
.site-footer a { display: block; color: #dfd3ee; margin: 4px 0; }
.site-footer a:hover { color: #fff; }

.cc { position: fixed; inset: 0; z-index: 99999; display: none; }
.cc.is-open { display: block; }
.cc__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.cc__modal { position: relative; max-width: 720px; margin: 0 auto; top: 50%; transform: translateY(-50%); padding: 18px; }
.cc__content { background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 20px; }
.cc__title { margin: 0 0 8px; color: var(--violet); font-size: 22px; }
.cc__desc { font-size: 14px; color: var(--muted); }
.cc__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cc__btn { border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; background: #fff; cursor: pointer; }
.cc__btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.cc__links { margin-top: 10px; font-size: 13px; }

@media (max-width: 991px) {
    .top-hero__image { min-height: 170px; background-position: center; }
    .main-nav { position: relative; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 54px;
        height: 48px;
        margin-left: auto;
        background: transparent;
        border: 0;
        padding: 13px;
    }
    .nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 3px; }
    .nav-menu { display: none; max-width: none; }
    .nav-menu.is-open { display: block; }
    .nav-menu > li > a { border-top: 1px solid rgba(255,255,255,.12); }
    .nav-menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: 0;
    }
    .nav-menu li:hover > ul { display: block; }
    .site-shell { grid-template-columns: 1fr; margin-top: 18px; }
    .site-sidebar { order: 2; }
    .site-content { order: 1; padding: 20px; }
    .site-content h1 { font-size: 27px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
    body.site-body { font-size: 16px; }
    .top-hero__image { min-height: 125px; }
    .site-shell { padding: 0 10px; }
    .site-content { padding: 17px; }
    .related-grid { grid-template-columns: 1fr; }
}
/* Strona główna: pełna szerokość, bez lewego sidebara */
.site-shell:has(.home-page) {
    display: block;
    max-width: 1180px;
}
.site-shell:has(.home-page) .site-sidebar {
    display: none;
}
.site-content:has(.home-page) {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-page {
    width: 100%;
}
.home-welcome {
    margin-bottom: 26px;
    padding: 34px 36px;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(250,243,255,.95));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
    text-align: center;
}
.home-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--violet);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}
.home-welcome h1,
.home-welcome__text h1 {
    margin: 0 0 14px;
    color: #21152f;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-family: 'Cormorant Garamond', serif;
    text-transform: none;
}
.home-welcome p,
.home-welcome__text p {
    max-width: 850px;
    margin: 0 auto 12px;
    color: var(--muted);
    font-size: 18px;
}
.home-section {
    margin-top: 28px;
}
.home-section__head {
    margin-bottom: 18px;
    text-align: center;
}
.home-section__head span {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}
.home-section__head h2 {
    margin: 4px 0 6px;
    color: #21152f;
    font-size: 30px;
    line-height: 1.2;
    text-transform: none;
}
.home-section__head p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--muted);
}
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.home-category-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(60,35,90,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(60,35,90,.14);
}
.home-category-card__image {
    display: block;
    min-height: 150px;
    background-position: center;
    background-size: cover;
    background-color: #efe3f9;
}
.home-category-card__body {
    padding: 15px 15px 16px;
}
.home-category-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    text-transform: none;
}
.home-category-card h3 a {
    color: #21152f;
}
.home-category-card p {
    margin: 0 0 12px;
    min-height: 70px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.home-category-card__more {
    display: inline-block;
    color: var(--violet);
    font-weight: 700;
    font-size: 14px;
}
.home-category-card__more::after {
    content: " →";
}
.home-empty {
    grid-column: 1 / -1;
    padding: 22px;
    background: #fff;
    border: 1px dashed var(--violet-light);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}
.home-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.home-topic {
    display: block;
    padding: 18px;
    background: linear-gradient(135deg, #fff, #fbf6ff);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(60,35,90,.06);
}
.home-topic strong {
    display: block;
    margin-bottom: 4px;
    color: #21152f;
    font-size: 18px;
}
.home-topic small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}
.home-topic:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .home-category-grid,
    .home-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-welcome {
        padding: 26px 20px;
    }
}
@media (max-width: 560px) {
    .home-category-grid,
    .home-topic-grid {
        grid-template-columns: 1fr;
    }
    .home-category-card__image {
        min-height: 175px;
    }
}
.nav-menu > li > a,
.nav-menu > li > span {
    display: block;
    padding: 17px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;

}

.nav-menu > li:hover > a,
.nav-menu > li:hover > span {
    background: rgba(255,255,255,.12);
}
.nav-menu ul a,
.nav-menu ul span {
    display: block;
    padding: 9px 16px;
    color: var(--text);
    font-size: 15px;
}

.nav-menu ul a:hover,
.nav-menu ul span:hover {
    background: #f7f0fb;
    color: var(--violet);
}

/* Category + article layouts */
.category-page {
    max-width: 1180px;
    margin: 26px auto 45px;
    padding: 0 15px;
}
.category-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
    margin-bottom: 24px;
}
.category-hero__label,
.article-kicker {
    margin: 0 0 8px;
    color: var(--violet-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}
.category-hero h1 { margin: 0 0 14px; font-size: 36px; line-height: 1.2; }
.category-hero__lead { color: var(--text); }
.portal-section {
    margin-top: 24px;
}
.portal-section__head {
    margin-bottom: 18px;
}
.portal-section__head h2 { margin: 0 0 4px; }
.portal-section__head p { margin: 0; color: var(--muted); }
.article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(60,35,90,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(60,35,90,.14);
}
.article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efe3f9;
}
.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.article-card:hover .article-card__image img { transform: scale(1.04); }
.article-card__body { display: block; padding: 15px; }
.article-card__title {
    display: block;
    color: var(--violet-dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
}
.article-card__text {
    display: block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.article-main-image {
    width: 100%;
    margin: 4px 0 22px;
    border-radius: 12px;
}
.side-empty {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}
.related-grid--articles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991px) {
    .category-hero { padding: 22px; }
    .category-hero h1 { font-size: 30px; }
    .article-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout .site-sidebar { order: 2; }
    .article-layout .site-content { order: 1; }
}
@media (max-width: 560px) {
    .category-page { padding: 0 10px; }
    .category-hero { padding: 18px; }
    .category-hero h1 { font-size: 27px; }
    .article-card-grid { grid-template-columns: 1fr; }
    .related-grid--articles { grid-template-columns: 1fr; }
}

/* === Silo URLs + contextual sidebar update === */

/* Strona główna nadal bez lewego sidebara */
.site-shell:has(.home-page) {
    display: block;
    max-width: 1180px;
}
.site-shell:has(.home-page) .site-sidebar {
    display: none;
}
.site-content:has(.home-page) {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Kategoria i artykuł nie tworzą już zagnieżdżonego układu w środku treści */
.category-page,
.article-page {
    max-width: none;
    margin: 0;
    padding: 0;
}

.side-box--context .side-box__main {
    font-weight: 700;
    color: var(--violet-dark);
    background: #fbf7ff;
    border-bottom: 1px solid var(--line);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: -4px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--violet);
    font-weight: 700;
}

.breadcrumbs strong {
    color: var(--muted);
    font-weight: 400;
}

.article-page h1 {
    margin-bottom: 12px;
}

.article-main-image {
    width: 100%;
    margin: 4px 0 22px;
    border-radius: 12px;
}

.side-empty {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 991px) {
    .site-sidebar {
        order: 2;
    }
    .site-content {
        order: 1;
    }
}
/* Poprawki architektury portalu: sidebar kontekstowy + silosy */
.site-shell--full {
    display: block;
    max-width: 1180px;
}
.site-shell--full .site-content {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.side-box--context h3 a {
    display: inline;
    padding: 0;
    color: #fff;
    font-size: inherit;
}
.side-box--context h3 a:hover {
    background: transparent;
    color: #fff;
    padding-left: 0;
    text-decoration: underline;
}
.side-empty {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}

.category-page {
    max-width: none;
    margin: 0;
    padding: 0;
}
.category-hero {
    background: linear-gradient(135deg, #fff, #fbf6ff);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
    margin-bottom: 24px;
}
.article-page h1,
.category-hero h1 {
    margin-top: 0;
}
.article-kicker a {
    color: var(--violet-light);
    font-weight: 700;
}
.portal-section {
    margin-top: 26px;
}
.portal-section__head {
    margin-bottom: 18px;
}
.portal-section__head h2 {
    margin: 0 0 4px;
}
.portal-section__head p {
    margin: 0;
    color: var(--muted);
}
.article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(60,35,90,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(60,35,90,.14);
}
.article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efe3f9;
}
.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.article-card:hover .article-card__image img {
    transform: scale(1.04);
}
.article-card__body {
    display: block;
    padding: 15px;
}
.article-card__title {
    display: block;
    color: var(--violet-dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
}
.article-card__text {
    display: block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.article-main-image {
    width: 100%;
    margin: 4px 0 22px;
    border-radius: 12px;
}
.related-grid--articles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .category-hero {
        padding: 22px;
    }
    .category-hero h1 {
        font-size: 30px;
    }
    .article-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .category-hero {
        padding: 18px;
    }
    .category-hero h1 {
        font-size: 27px;
    }
    .article-card-grid,
    .related-grid--articles {
        grid-template-columns: 1fr;
    }
}
/* Sidebar modułowy: kategoria / najczęściej czytane / odkryj także / najnowsze */
.side-box--popular h3 i,
.side-box--discover h3 i,
.side-box--latest h3 i {
    color: var(--gold);
}

.side-box--discover h3 {
    background: linear-gradient(90deg, #3f2a63, var(--violet-light));
}

.side-box--popular h3 {
    background: linear-gradient(90deg, #5a2e63, var(--violet));
}

.side-box--latest h3 {
    background: linear-gradient(90deg, var(--violet), #6e4a95);
}
/* Finalny układ sidebara: kategoria + polecane + czytaj także */
.side-box--category h3 a,
.side-box--featured h3 a,
.side-box--readalso h3 a {
    color: #fff;
}
.side-box--category a,
.side-box--featured a,
.side-box--readalso a {
    line-height: 1.35;
}
.side-box--featured h3 {
    background: linear-gradient(90deg, #6d3f94, var(--violet-light));
}
.side-box--readalso h3 {
    background: linear-gradient(90deg, var(--violet-dark), var(--violet));
}
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Lato:wght@400;700&display=swap');

:root {
    --violet-dark: #2b1946;
    --violet: #4f2f78;
    --violet-light: #7e56a7;
    --cream: #fffaf5;
    --line: #eadff4;
    --text: #2d2636;
    --muted: #70657d;
    --gold: #f0c66c;
}

* { box-sizing: border-box; }
body.site-body {
    margin: 0;
    background: radial-gradient(circle at top, #fff7ff 0, #fffaf5 360px, #f8f4fb 100%);
    color: var(--text);
    font: 17px/1.65 'Lato', Arial, sans-serif;
    overflow-x: hidden;
}
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-dark); text-decoration: none; }

.top-hero { background: #efe3f9; }
.top-hero__image {
    min-height: 320px;
    background-image: url('/img/przeznaczenie-banner.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--violet-dark), var(--violet));
    box-shadow: 0 4px 18px rgba(43,25,70,.25);
}
.nav-toggle { display: none; }
.nav-menu {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: stretch;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 17px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
/* Strzałka przy pozycjach z submenu */

.nav-menu > li.has-submenu > a::after,
.nav-menu > li.has-submenu > span::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255,255,255,.95);
    border-bottom: 2px solid rgba(255,255,255,.95);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
}

.nav-menu > li.has-submenu:hover > a::after {
    transform: rotate(225deg) translateY(-1px);
}
.nav-menu > li:hover > a { background: rgba(255,255,255,.12); }
.nav-menu ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 235px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    box-shadow: 0 16px 34px rgba(43,25,70,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}
.nav-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu ul a {
    display: block;
    padding: 9px 16px;
    color: var(--text);
    font-size: 15px;
}
.nav-menu ul a:hover { background: #f7f0fb; color: var(--violet); }

.site-shell {
    max-width: 1180px;
    margin: 24px auto 40px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
}
.site-sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(60,35,90,.08);
}
.side-box h3 {
    margin: 0;
    padding: 11px 14px;
    color: #fff;
    background: linear-gradient(90deg, var(--violet), var(--violet-light));
    font: 700 15px/1.2 'Lato', Arial, sans-serif;
    text-transform: uppercase;
}
.side-box h3 i { margin-right: 7px; color: var(--gold); }
.side-box a {
    display: block;
    padding: 7px 14px;
    color: var(--text);
    font-size: 15px;
}
.side-box a:hover { background: #fbf7ff; color: var(--violet); padding-left: 18px; }

.site-content {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
}
.site-content h1,
.site-content h2,
.site-content h3 {
    color: #21152f;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}
.site-content h1 { font-size: 32px; margin: 0 0 16px; }
.site-content h2 { font-size: 24px; margin: 30px 0 12px; }
.site-content h3 { font-size: 20px; margin: 24px 0 10px; }
.site-content p { margin: 0 0 16px; }
.site-content img { max-width: 100%; height: auto; border-radius: 10px; }
.site-content ul { padding-left: 22px; }

.article-lead {
    font-size: 19px;
    color: #40364d;
}
.note-box {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--gold);
    background: #fff7e7;
    border-radius: 8px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.related-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(60,35,90,.07);
}
.related-card img { width: 100%; display: block; border-radius: 0; }
.related-card span { display: block; padding: 10px; font-weight: 700; color: var(--text); }

.site-footer {
    background: linear-gradient(90deg, var(--violet-dark), #31204f);
    color: #fff;
    padding: 34px 15px;
}
.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 35px;
}
.footer-logo { font: 600 30px/1 'Cormorant Garamond', serif; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; text-transform: uppercase; }
.site-footer p { color: #dfd3ee; margin-top: 10px; }
.site-footer a { display: block; color: #dfd3ee; margin: 4px 0; }
.site-footer a:hover { color: #fff; }

.cc { position: fixed; inset: 0; z-index: 99999; display: none; }
.cc.is-open { display: block; }
.cc__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.cc__modal { position: relative; max-width: 720px; margin: 0 auto; top: 50%; transform: translateY(-50%); padding: 18px; }
.cc__content { background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 20px; }
.cc__title { margin: 0 0 8px; color: var(--violet); font-size: 22px; }
.cc__desc { font-size: 14px; color: var(--muted); }
.cc__actions { display: flex; gap: 10px; justify-content: flex-end; }
.cc__btn { border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; background: #fff; cursor: pointer; }
.cc__btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.cc__links { margin-top: 10px; font-size: 13px; }

@media (max-width: 991px) {
    .top-hero__image { min-height: 170px; background-position: center; }
    .main-nav { position: relative; }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 54px;
        height: 48px;
        margin-left: auto;
        background: transparent;
        border: 0;
        padding: 13px;
    }
    .nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 3px; }
    .nav-menu { display: none; max-width: none; }
    .nav-menu.is-open { display: block; }
    .nav-menu > li > a { border-top: 1px solid rgba(255,255,255,.12); }
    .nav-menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: 0;
    }
    .nav-menu li:hover > ul { display: block; }
    .site-shell { grid-template-columns: 1fr; margin-top: 18px; }
    .site-sidebar { order: 2; }
    .site-content { order: 1; padding: 20px; }
    .site-content h1 { font-size: 27px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
    body.site-body { font-size: 16px; }
    .top-hero__image { min-height: 125px; }
    .site-shell { padding: 0 10px; }
    .site-content { padding: 17px; }
    .related-grid { grid-template-columns: 1fr; }
}
/* Strona główna: pełna szerokość, bez lewego sidebara */
.site-shell:has(.home-page) {
    display: block;
    max-width: 1180px;
}
.site-shell:has(.home-page) .site-sidebar {
    display: none;
}
.site-content:has(.home-page) {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-page {
    width: 100%;
}
.home-welcome {
    margin-bottom: 26px;
    padding: 34px 36px;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(250,243,255,.95));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
    text-align: center;
}
.home-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--violet);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}
.home-welcome h1,
.home-welcome__text h1 {
    margin: 0 0 14px;
    color: #21152f;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-family: 'Cormorant Garamond', serif;
    text-transform: none;
}
.home-welcome p,
.home-welcome__text p {
    max-width: 850px;
    margin: 0 auto 12px;
    color: var(--muted);
    font-size: 18px;
}
.home-section {
    margin-top: 28px;
}
.home-section__head {
    margin-bottom: 18px;
    text-align: center;
}
.home-section__head span {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}
.home-section__head h2 {
    margin: 4px 0 6px;
    color: #21152f;
    font-size: 30px;
    line-height: 1.2;
    text-transform: none;
}
.home-section__head p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--muted);
}
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.home-category-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(60,35,90,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(60,35,90,.14);
}
.home-category-card__image {
    display: block;
    min-height: 150px;
    background-position: center;
    background-size: cover;
    background-color: #efe3f9;
}
.home-category-card__body {
    padding: 15px 15px 16px;
}
.home-category-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    text-transform: none;
}
.home-category-card h3 a {
    color: #21152f;
}
.home-category-card p {
    margin: 0 0 12px;
    min-height: 70px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.home-category-card__more {
    display: inline-block;
    color: var(--violet);
    font-weight: 700;
    font-size: 14px;
}
.home-category-card__more::after {
    content: " →";
}
.home-empty {
    grid-column: 1 / -1;
    padding: 22px;
    background: #fff;
    border: 1px dashed var(--violet-light);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}
.home-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.home-topic {
    display: block;
    padding: 18px;
    background: linear-gradient(135deg, #fff, #fbf6ff);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(60,35,90,.06);
}
.home-topic strong {
    display: block;
    margin-bottom: 4px;
    color: #21152f;
    font-size: 18px;
}
.home-topic small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}
.home-topic:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .home-category-grid,
    .home-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-welcome {
        padding: 26px 20px;
    }
}
@media (max-width: 560px) {
    .home-category-grid,
    .home-topic-grid {
        grid-template-columns: 1fr;
    }
    .home-category-card__image {
        min-height: 175px;
    }
}
.nav-menu > li > a,
.nav-menu > li > span {
    display: block;
    padding: 17px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;

}

.nav-menu > li:hover > a,
.nav-menu > li:hover > span {
    background: rgba(255,255,255,.12);
}
.nav-menu ul a,
.nav-menu ul span {
    display: block;
    padding: 9px 16px;
    color: var(--text);
    font-size: 15px;
}

.nav-menu ul a:hover,
.nav-menu ul span:hover {
    background: #f7f0fb;
    color: var(--violet);
}

/* Category + article layouts */
.category-page {
    max-width: 1180px;
    margin: 26px auto 45px;
    padding: 0 15px;
}
.category-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
    margin-bottom: 24px;
}
.category-hero__label,
.article-kicker {
    margin: 0 0 8px;
    color: var(--violet-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}
.category-hero h1 { margin: 0 0 14px; font-size: 36px; line-height: 1.2; }
.category-hero__lead { color: var(--text); }
.portal-section {
    margin-top: 24px;
}
.portal-section__head {
    margin-bottom: 18px;
}
.portal-section__head h2 { margin: 0 0 4px; }
.portal-section__head p { margin: 0; color: var(--muted); }
.article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(60,35,90,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(60,35,90,.14);
}
.article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efe3f9;
}
.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.article-card:hover .article-card__image img { transform: scale(1.04); }
.article-card__body { display: block; padding: 15px; }
.article-card__title {
    display: block;
    color: var(--violet-dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
}
.article-card__text {
    display: block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.article-main-image {
    width: 100%;
    margin: 4px 0 22px;
    border-radius: 12px;
}
.side-empty {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}
.related-grid--articles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991px) {
    .category-hero { padding: 22px; }
    .category-hero h1 { font-size: 30px; }
    .article-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout .site-sidebar { order: 2; }
    .article-layout .site-content { order: 1; }
}
@media (max-width: 560px) {
    .category-page { padding: 0 10px; }
    .category-hero { padding: 18px; }
    .category-hero h1 { font-size: 27px; }
    .article-card-grid { grid-template-columns: 1fr; }
    .related-grid--articles { grid-template-columns: 1fr; }
}

/* === Silo URLs + contextual sidebar update === */

/* Strona główna nadal bez lewego sidebara */
.site-shell:has(.home-page) {
    display: block;
    max-width: 1180px;
}
.site-shell:has(.home-page) .site-sidebar {
    display: none;
}
.site-content:has(.home-page) {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Kategoria i artykuł nie tworzą już zagnieżdżonego układu w środku treści */
.category-page,
.article-page {
    max-width: none;
    margin: 0;
    padding: 0;
}

.side-box--context .side-box__main {
    font-weight: 700;
    color: var(--violet-dark);
    background: #fbf7ff;
    border-bottom: 1px solid var(--line);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: -4px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--violet);
    font-weight: 700;
}

.breadcrumbs strong {
    color: var(--muted);
    font-weight: 400;
}

.article-page h1 {
    margin-bottom: 12px;
}

.article-main-image {
    width: 100%;
    margin: 4px 0 22px;
    border-radius: 12px;
}

.side-empty {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 991px) {
    .site-sidebar {
        order: 2;
    }
    .site-content {
        order: 1;
    }
}
/* Poprawki architektury portalu: sidebar kontekstowy + silosy */
.site-shell--full {
    display: block;
    max-width: 1180px;
}
.site-shell--full .site-content {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.side-box--context h3 a {
    display: inline;
    padding: 0;
    color: #fff;
    font-size: inherit;
}
.side-box--context h3 a:hover {
    background: transparent;
    color: #fff;
    padding-left: 0;
    text-decoration: underline;
}
.side-empty {
    display: block;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
}

.category-page {
    max-width: none;
    margin: 0;
    padding: 0;
}
.category-hero {
    background: linear-gradient(135deg, #fff, #fbf6ff);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(60,35,90,.08);
    margin-bottom: 24px;
}
.article-page h1,
.category-hero h1 {
    margin-top: 0;
}
.article-kicker a {
    color: var(--violet-light);
    font-weight: 700;
}
.portal-section {
    margin-top: 26px;
}
.portal-section__head {
    margin-bottom: 18px;
}
.portal-section__head h2 {
    margin: 0 0 4px;
}
.portal-section__head p {
    margin: 0;
    color: var(--muted);
}
.article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(60,35,90,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(60,35,90,.14);
}
.article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efe3f9;
}
.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.article-card:hover .article-card__image img {
    transform: scale(1.04);
}
.article-card__body {
    display: block;
    padding: 15px;
}
.article-card__title {
    display: block;
    color: var(--violet-dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 8px;
}
.article-card__text {
    display: block;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.article-main-image {
    width: 100%;
    margin: 4px 0 22px;
    border-radius: 12px;
}
.related-grid--articles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .category-hero {
        padding: 22px;
    }
    .category-hero h1 {
        font-size: 30px;
    }
    .article-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .category-hero {
        padding: 18px;
    }
    .category-hero h1 {
        font-size: 27px;
    }
    .article-card-grid,
    .related-grid--articles {
        grid-template-columns: 1fr;
    }
}
/* Sidebar modułowy: kategoria / najczęściej czytane / odkryj także / najnowsze */
.side-box--popular h3 i,
.side-box--discover h3 i,
.side-box--latest h3 i {
    color: var(--gold);
}

.side-box--discover h3 {
    background: linear-gradient(90deg, #3f2a63, var(--violet-light));
}

.side-box--popular h3 {
    background: linear-gradient(90deg, #5a2e63, var(--violet));
}

.side-box--latest h3 {
    background: linear-gradient(90deg, var(--violet), #6e4a95);
}
/* Finalny układ sidebara: kategoria + polecane + czytaj także */
.side-box--category h3 a,
.side-box--featured h3 a,
.side-box--readalso h3 a {
    color: #fff;
}
.side-box--category a,
.side-box--featured a,
.side-box--readalso a {
    line-height: 1.35;
}
.side-box--featured h3 {
    background: linear-gradient(90deg, #6d3f94, var(--violet-light));
}
.side-box--readalso h3 {
    background: linear-gradient(90deg, var(--violet-dark), var(--violet));
}

/* Paginacja kategorii */
.portal-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 28px 0 0;
}
.portal-pagination a,
.portal-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--violet-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(60,35,90,.06);
}
.portal-pagination a:hover {
    background: #fbf7ff;
    border-color: var(--violet-light);
    color: var(--violet);
}
.portal-pagination__number.is-active {
    background: linear-gradient(90deg, var(--violet), var(--violet-light));
    border-color: var(--violet);
    color: #fff;
}
.portal-pagination .is-disabled {
    opacity: .45;
    cursor: default;
}
.portal-pagination__ellipsis {
    min-width: 34px;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
}
@media (max-width: 560px) {
    .portal-pagination {
        justify-content: flex-start;
    }
    .portal-pagination__pages {
        width: 100%;
        order: 3;
    }
}

/* Wyszukiwarka w górnym menu */
.main-nav__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.main-nav__inner .nav-menu {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
}
.nav-search {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 9px 0;
}
.nav-search input {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(255,255,255,.35);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    padding: 0 12px;
    background: rgba(255,255,255,.96);
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.nav-search input:focus {
    box-shadow: 0 0 0 3px rgba(240,198,108,.25);
}
.nav-search button {
    width: 42px;
    height: 34px;
    border: 1px solid var(--gold);
    border-radius: 0 999px 999px 0;
    background: var(--gold);
    color: var(--violet-dark);
    font-weight: 700;
    cursor: pointer;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Strona wyników wyszukiwania */
.search-page__form {
    display: flex;
    gap: 8px;
    margin: 18px 0 0;
}
.search-page__form input {
    flex: 1 1 auto;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    font-size: 16px;
}
.search-page__form button,
.error404-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: linear-gradient(90deg, var(--violet), var(--violet-light));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.search-page__form button:hover,
.error404-button:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--violet-dark), var(--violet));
}
.search-page__summary {
    margin: 14px 0 0;
    color: var(--muted);
}

/* Strona 404 */
.error404-page {
    width: 100%;
}
.error404-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.error404-hero p:last-child {
    margin-bottom: 0;
}

/* WebP picture fallback w kaflach */
.article-card picture,
.related-card picture {
    display: block;
    width: 100%;
    height: 100%;
}
.article-card picture img,
.related-card picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .main-nav__inner {
        display: block;
        max-width: none;
    }
    .nav-search {
        display: flex;
        flex: none;
        padding: 10px 14px 13px;
        background: rgba(255,255,255,.08);
    }
    .error404-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .search-page__form {
        flex-direction: column;
    }
    .search-page__form button {
        width: 100%;
    }
}


/* Poprawka V1: wyszukiwarka trzymana po prawej stronie menu, bez wpływu na sidebar */
@media (min-width: 992px) {
    .main-nav__inner {
        position: relative;
        display: block;
        max-width: 1180px;
        margin: 0 auto;
        padding-right: 292px;
    }

    .main-nav__inner .nav-menu {
        max-width: none;
        margin: 0;
        padding-right: 0;
    }

    .nav-search {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 260px;
        display: flex;
        align-items: center;
        padding: 0;
        z-index: 5;
    }
}

@media (max-width: 991px) {
    .main-nav__inner {
        display: block;
        max-width: none;
        padding-right: 0;
    }

    .nav-search {
        position: static;
        transform: none;
        width: auto;
        flex: none;
        display: flex;
        padding: 10px 14px 13px;
        background: rgba(255,255,255,.08);
    }
}
.nawias {
    font-size: 0.72em;
    font-weight: 400;
    #color: #666;
    white-space: nowrap;
}