:root {
    --top-height: 178px;
    --top-bg: #4e1264;
    --top-bg-2: #4e1264;
    --text-light: #f5f5f5;
    --muted: #c8c8c8;
    --submenu-bg: #222222;
    --page-edge: #261229;
    --bs-secondary-rgb: 187, 119, 207;
    --bs-card-bg: #4e1264;
    --bs-card-color: #e0e0e0;
    --bs-card-border-color: #7a7a7a;
}

.modal-backdrop.show {
    opacity: 0.72;
}

.modal-content {
    background: linear-gradient(180deg, #4e1264 0%, #3a1548 100%);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-title {
    color: var(--text-light);
}

.modal .btn-close {
    filter: invert(1) grayscale(1) brightness(1.2);
    opacity: 0.85;
}

.modal .btn-close:hover {
    opacity: 1;
}
.card,
.article-body .card,
.news-body .card {
    --bs-card-bg: #4e1264;
    --bs-card-color: #e0e0e0;
    --bs-card-border-color: #7a7a7a;
}
.card-body > :first-child {
    margin-top: 0.25rem;
}
body {
    background: var(--page-edge);
    color: var(--text-light);
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: small;
    font-weight:normal;
    font-style:normal;
    min-width: 0;
}
#top,
#top * {
    box-sizing: border-box;
}
.page-wrap {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 12px;
}
#top {
    position: relative;
    min-height: var(--top-height);
    background: transparent;
    overflow: visible;
}
#top .page-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.top-bg {
    background: linear-gradient(180deg, var(--top-bg), var(--top-bg-2));
    border-bottom: 0;
}
#top-inner {
    position: relative;
    height: var(--top-height);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    padding: 20px 20px 0;
}
#girlpng {
    position: absolute;
    right: 0;
    top: 0;
    height: auto;
    width: auto;
    z-index: 2;
    transition: filter 0.35s ease, opacity 0.35s ease;
}
#logopng {
    position: absolute;
    right: 150px;
    top: 0;
    width: auto;
    z-index: 2;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
    transform-origin: center;
}
.logo-softscale {
    transform: scale(1.04);
}
.girl-softblur {
    filter: blur(2px);
    opacity: 0.9;
}
.logo-softblur {
    filter: blur(2px);
    opacity: 0.9;
}
#flagi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#flagi .flaga {
    border: 1px solid #444;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
#lang-select {
    background-color: var(--page-edge);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.28);
    min-width: 160px;
}
#lang-select-mobile {
    background-color: var(--page-edge);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.28);
    min-width: 160px;
}
#lang-select:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
}
#lang-select-mobile:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
}
#mobile-lang-switch {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 10px 12px 14px;
    width: 40%;
    margin: 0 auto;
    justify-content: center;
}
#mobile-lang-switch .flaga {
    border: 1px solid #444;
    box-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
#mainmenu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    z-index: 3;
    width: fit-content;
    flex-wrap: nowrap;
}
#mainmenu a.mainmenu {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 18px 10px;
    border-radius: 6px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
#mainmenu .menupng {
    width: auto;
    height: auto;
    transition: transform 0.15s ease;
}
#mainmenu span.mainmenu {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: lowercase;
}
#mainmenu a.mainmenu:hover,
#mainmenu a.mainmenu:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
#mainmenu a.mainmenu:hover .menupng,
#mainmenu a.mainmenu:focus-visible .menupng {
    transform: scale(1.06);
}
#mainmenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}
.menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.menu-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}
#mobile-nav-drawer.offcanvas {
    width: min(90vw, 380px);
    background: #3f0d56;
    border-right: 1px solid rgba(255,255,255,0.18);
}
#mobile-mainmenu {
    display: flex;
    flex-direction: column;
    padding: 52px 10px 8px 0;
    gap: 2px;
}
#mobile-mainmenu .mobile-menu-group {
    margin-left: 5px;
}
#mobile-mainmenu {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
#mobile-mainmenu a {
    color: #f2f2f2;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 5px;
}
.mobile-main-link {
    display: block;
}
.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 4px 16px;
}
.mobile-submenu.is-active {
    display: flex;
}
.mobile-submenu a {
    padding-left: 20px;
}
#mobile-mainmenu a:hover,
#mobile-mainmenu a:focus-visible,
.mobile-submenu a:hover,
.mobile-submenu a:focus-visible {
    background: rgba(255,255,255,0.08);
}
#mobile-mainmenu a.active,
.mobile-submenu a.active {
    background: rgba(116, 126, 255, 0.45);
}
#submenu-bar {
    position: relative;
    height: 28px;
    background: var(--submenu-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 0.9rem;
    overflow: visible;
}
#submenu-right {
    margin-left: auto;
    gap: 14px;
    white-space: nowrap;
}
#top-links {
    position: absolute;
    right: 12px;
    top: 100%;
    margin-top: 6px;
    z-index: 4;
    pointer-events: auto;
}
#submenu {
    color: #e6e6e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#submenu a {
    color: #e6e6e6;
    text-decoration: none;
}
#submenu a.active {
    color: var(--text-light);
    text-decoration: underline;
}
#submenu a:hover,
#submenu a:focus-visible {
    text-decoration: underline;
}
#socialmedia {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#socialmedia .socialpng {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
#slogan-top {
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
    padding: 2px 0 0;
    margin: 0;
    font-size: 0.92rem;
}
#slogan-top > :first-child,
#slogan-mobile > :first-child {
    margin: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    display: inline;
}
#slogan-top > :first-child a,
#slogan-mobile > :first-child a {
    color: inherit;
}
#slogan-mobile {
    display: none;
}
.page-body {
    padding: 28px 0 60px;
    background: #420057;
}
.section-title-bar {
    background: #747eff;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
    margin: 0 0 8px;
    font-weight: 700;
    text-transform: lowercase;
    border-bottom: 2px solid #ffffff;
    width: 50%;
    font-size: 1.05rem;
}
.page-wrap.page-body {
    padding-left: 12px;
    padding-right: 12px;
}
.page-body .border-secondary {
    background: #672b7b;
    border: 1px solid #7a7a7a;
    border-radius: 0.5rem;
}
.content-row {
    --bs-gutter-y: 0;
    align-items: flex-start;
}
.module-content-container {
    margin-top: 14px;
}
.menu-underline {
    text-decoration: underline;
}
.news-image img {
    max-width: 200px;
    height: auto;
    display: block;
}
.article-image img {
    max-width: 200px;
    height: auto;
    display: block;
}
.news-entry {
    position: relative;
}
.news-entry .news-date {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    text-align: right;
}
.news-entry .news-title {
    padding-right: 130px;
    margin-bottom: 12px !important;
}
.news-entry .news-image {
    float: left;
    width: 30%;
    max-width: 30%;
    margin: 0 30px 10px 0;
}
.news-entry .news-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.news-entry::after {
    content: "";
    display: table;
    clear: both;
}
.news-lead {
    font-size: 0.9rem;
    color: var(--muted);
}
.news-body {
    font-size: 0.9rem;
}
.news-entry.has-image .news-body ul,
.news-entry.has-image .news-body ol {
    margin-left: calc(30% + 30px);
}
.article-body {
    font-size: 0.9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.article-body > *:first-child {
    margin-top: 0;
}
.article-body > *:last-child {
    margin-bottom: 0;
}
.article-body p,
.article-body blockquote,
.article-body pre,
.article-body table {
    margin: 0 0 1rem;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin: 1.4rem 0 0.75rem;
    line-height: 1.25;
    font-weight: 700;
}
.article-body h1 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
.article-body h2 { font-size: clamp(1.35rem, 1.6vw + 0.95rem, 1.7rem); }
.article-body h3 { font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.45rem); }
.article-body h4,
.article-body h5,
.article-body h6 { font-size: 1.05rem; }
.article-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0.75rem auto;
    object-fit: contain;
}
.article-body figure {
    margin: 1rem 0;
}
.article-body figure img {
    margin-bottom: 0.5rem;
}
.article-body .media-float {
    width: 100%;
    max-width: 100%;
}
.article-body .media-float-left,
.article-body .media-float-right {
    float: none;
    margin-left: auto;
    margin-right: auto;
}
.article-body .media-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}
.article-body .media-grid figure {
    margin: 0;
}
.article-body .media-grid img {
    margin: 0;
    width: 100% !important;
}
.article-body .media-grid-3 {
    grid-template-columns: 1fr;
}
.article-body figcaption {
    color: var(--muted);
    font-size: 0.9em;
    text-align: center;
}
.article-body iframe,
.article-body video,
.article-body embed,
.article-body object {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 1rem 0;
    border: 0;
}
.article-body iframe {
    aspect-ratio: 16 / 9;
}
.article-body table {
    width: 100% !important;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-body table th,
.article-body table td {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45rem 0.6rem;
    vertical-align: top;
}
.article-body table th {
    background: rgba(255, 255, 255, 0.08);
}
.article-body blockquote {
    margin-left: 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.article-body pre {
    display: block;
    overflow-x: auto;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
.article-body code {
    overflow-wrap: normal;
    word-break: normal;
}
.news-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.article-lead {
    font-size: 1.05rem;
    color: #ffffff;
}
.article-title {
    font-weight: 700;
    font-size: 1.5rem;
}
a.article-title {
    text-decoration: none;
}
a.article-title:hover,
a.article-title:focus-visible {
    text-decoration: underline;
}
.news-body a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}
.article-body a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}
.news-body a:hover,
.news-body a:focus-visible {
    text-decoration: underline;
}
.article-body a:hover,
.article-body a:focus-visible {
    text-decoration: underline;
}
.panel-bg {
    background: #672b7b;
}
.right-side-content p,
.right-side-content ul,
.right-side-content ol,
.right-side-content blockquote,
.right-side-content pre,
.right-side-content table {
    margin-left: 0;
    margin-right: 0;
}
.right-side-content ul,
.right-side-content ol {
    padding-left: 1.25rem;
}
.news-title {
    font-weight: 700;
}
a.news-title {
    text-decoration: none;
}
a.news-title:hover,
a.news-title:focus-visible {
    text-decoration: underline;
}
.news-date {
    color: #ffffff !important;
    font-style: italic;
}
/* Nadpisuje wyglad Bootstrap .btn.btn-primary: kolor, border, cien i stany hover/focus/active. */
.btn.btn-primary {
    --btn-download-bg: linear-gradient(180deg, #7c8aff 0%, #6c79ff 100%);
    --btn-download-bg-hover: linear-gradient(180deg, #8793ff 0%, #7480ff 100%);
    --btn-download-border: #5a66d8;
    --btn-download-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 0 rgba(0,0,0,0.35);
    --btn-download-shadow-active: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 0 rgba(0,0,0,0.3);
    background: var(--btn-download-bg);
    color: #ffffff;
    border: 1px solid var(--btn-download-border);
    box-shadow: var(--btn-download-shadow);
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible {
    background: var(--btn-download-bg-hover);
    color: #ffffff;
    border-color: var(--btn-download-border);
    box-shadow: var(--btn-download-shadow);
}
.btn-check:checked + .btn.btn-primary,
.btn-check:active + .btn.btn-primary,
.btn.btn-primary:active,
.btn.btn-primary.active,
.show > .btn.btn-primary.dropdown-toggle {
    background: var(--btn-download-bg);
    color: #ffffff;
    border-color: var(--btn-download-border);
    box-shadow: var(--btn-download-shadow-active);
}
.marker,
a.marker {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}
a.calltoaction {
    color: #000000;
}
.calltoaction {
    background: #ffffff;
    color: #000000;
    padding: 2px 8px;
    display: inline-block;
    text-decoration: none;
}
.calltoaction:hover,
.calltoaction:focus-visible {
    text-decoration: underline;
}

#footer-bar {
    background: transparent;
    color: #e6e6e6;
    font-size: 0.85rem;
}
.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--submenu-bg);
    padding: 10px 12px;
    gap: 12px;
    min-height: 28px;
    width: 100%;
}
#footer-left {
    color: #e6e6e6;
}
#footer-left a {
    color: #e6e6e6;
    text-decoration: none;
}
#footer-left a:hover,
#footer-left a:focus-visible {
    text-decoration: underline;
}
#footer-right {
    color: #e6e6e6;
    white-space: nowrap;
}
#footer-right a {
    color: #e6e6e6;
    text-decoration: none;
}
#footer-right a:hover,
#footer-right a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    #top-inner {
        padding: 14px 12px 0;
        gap: 14px;
    }
    #mainmenu {
        gap: 14px;
    }
    #mainmenu a.mainmenu {
        padding: 10px 12px 8px;
    }
    #mainmenu .menupng {
        max-height: 56px;
        width: auto;
    }
    #submenu-bar {
        font-size: 0.83rem;
    }
    #slogan-top {
        font-size: 0.84rem;
    }
}

@media (max-width: 949px) {
    #top {
        --top-height: 125px;
        --hamburger-logo-shift: clamp(0px, calc((949px - 100vw) * 0.08), 56px);
        --mobile-left-offset: 18px;
        min-height: 0;
    }
    .page-wrap {
        padding: 0 8px;
    }
    #top-inner {
        height: var(--top-height);
        padding: 8px;
        align-items: flex-start;
    }
    #top-inner > a {
        display: block;
    }
    #girlpng {
        transform: scale(0.7);
        transform-origin: top right;
    }
    #logopng {
        left: 10px;
        right: auto;
        transform: scale(0.7);
        transform-origin: top left;
        transition: none;
    }
    #girlpng {
        transition: none;
    }
    .logo-softscale {
        transform: scale(0.7);
    }
    .girl-softblur,
    .logo-softblur {
        filter: none;
        opacity: 1;
    }
    #mainmenu-toggle {
        display: inline-flex;
        position: absolute;
        top: 14px;
        left: 10px;
        z-index: 1100;
    }
    #slogan-mobile {
        display: block;
        position: absolute;
        right: 8px;
        bottom: 4px;
        z-index: 6;
        margin: 0;
        max-width: 96vw;
        text-align: right;
        font-size: 0.8rem;
        line-height: 1.15;
        color: var(--text-light);
        background: rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(1.5px);
        border-radius: 4px;
        padding: 2px 6px;
        opacity: 0.95;
        pointer-events: none;
    }
    #mainmenu {
        display: none;
    }
    #submenu-bar { display: none; }
    #mobile-mainmenu {
        padding-left: var(--mobile-left-offset);
    }
    #mobile-mainmenu .mobile-menu-group {
        margin-left: 0;
    }
    .page-body {
        padding: 18px 0 36px;
    }
    .section-title-bar {
        width: 100%;
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    .news-entry .news-title {
        padding-right: 110px;
    }
    .news-entry .news-image {
        width: 30%;
        max-width: 30%;
        margin: 0 20px 8px 0;
    }
    .news-entry.has-image .news-body ul,
    .news-entry.has-image .news-body ol {
        margin-left: calc(30% + 20px);
    }
    .article-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .article-header .news-content {
        display: contents;
    }
    .article-header .article-title {
        order: 1;
        display: block;
        margin-bottom: 0 !important;
    }
    .article-header .article-image {
        order: 2;
        width: calc(100% - 24px);
        margin: 0 12px;
    }
    .article-header .article-lead {
        order: 3;
        margin-bottom: 0 !important;
    }
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    #footer-right {
        white-space: normal;
    }
    .module-content-container {
        margin-top: 10px;
    }
    #flagi {
        flex-wrap: wrap;
    }
}
