/* global var color */
:root {
    --panel-bg: #111826; /* wspólne tło dla wrapperów (grid + about) */
    --menu-logo-base-desktop: 25px;  /* TĘ wartość widzi layout (nie rośnie topbar) */
    --menu-logo-scale-desktop: 2.2;  /* TĄ wartością realnie powiększasz logo */
    --menu-logo-shift-desktop-hoover: 2px;

    --menu-logo-base-mobile: 24px;
    --menu-logo-scale-mobile: 1.8;

    --menu-logo-shift-desktop: 0px; /* przesunięcie w dół po skali */
    --menu-logo-shift-mobile: 6px;

    --menu-bar-padding-y: 8px;       /* wysokość paska kontrolujesz tu */

    
    --link-color: #9bb3d1;          /* stonowany, chłodny */
    --link-color-visited: #8a9fb8;  /* bardzo subtelna różnica */
    --link-hover: #c7d7f2;          /* jaśniejszy przy interakcji */
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color .15s ease, text-decoration-color .15s ease;
}

a:visited {
  color: var(--link-color-visited);
}


/* layout globalny + sticky footer */
html, body {
    height: auto;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #172554, #020617 75%);
    background-repeat: no-repeat;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background-size: cover;
    background-attachment: fixed;
}

/* =========================================================
   WT TOPIC TILE
   ========================================================= */

wt-topic-tile {
    display: block;
}

wt-topic-tile .tile {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1.2;
    border-radius: 18px;
    overflow: hidden;

    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 55%),
        rgba(5, 12, 24, 0.95);

    background-size: cover;
    background-position: center;

    border: 1px solid rgba(15,23,42,0.75); /* ciemna obwódka zamiast jasnej */
    box-shadow:
        0 8px 18px rgba(0,0,0,0.45); /* bez dodatkowego "ringu" */


    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);

    transform-origin: center;
}

wt-topic-tile .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* 15% przyciemnienia */
    pointer-events: none;
    z-index: 0;
}

/* Upewniamy się, że treść jest nad overlayem */
wt-topic-tile .tile > * {
    position: relative;
    z-index: 1;
}

wt-topic-tile:hover .tile {
    transform: scale(1.15);
    background-size: 110%;
    border-color: rgba(255,255,255,0.35);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.15);
    z-index: 50;
}

wt-topic-tile .title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

wt-topic-tile .hook {
    font-size: 0.95rem;
    max-height: 2.8em;
    overflow: hidden;
    transition: max-height .3s ease;
}

wt-topic-tile:hover .hook {
    max-height: 10em;
}

/* =========================================================
   WT TILE GRID
   ========================================================= */

wt-topic-grid {
    display: block;
    padding: 40px 20px;
}

wt-topic-grid .grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent),
            radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
            var(--panel-bg);
}

wt-topic-grid .grid-inner {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {

    wt-topic-grid .grid-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}


/* =========================================================
   ABOUT TILE
   ========================================================= */

wt-about-panel {
    display: block;
    padding: 40px 20px;
}

wt-about-panel .about-wrapper {
    position: relative;
    width: min(100% - clamp(20px, 4vw, 40px), 1200px);
    margin: 0 auto;

    padding: clamp(24px, 5vw, 48px) clamp(16px, 6vw, 72px);

    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

wt-about-panel .about-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
                                rgba(15,23,42,0.9),
                                rgba(2,6,23,0.98));
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

wt-about-panel .about-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

wt-about-panel .about-content {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

wt-about-panel .about-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

wt-about-panel .about-text {
    font-size: 1rem;
    color: #e5e7eb;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

wt-about-panel .about-image {
    position: absolute;
    left: clamp(12px, 2vw, 32px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(160px, 22vw, 260px);
    height: clamp(160px, 22vw, 260px);
    border-radius: 18px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
}

@media (max-width: 800px) {
    wt-about-panel .about-content {
        flex-direction: column;
        text-align: center;
    }

    wt-about-panel .about-title {
        white-space: normal;
    }

    wt-about-panel .about-image {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 180px;
        height: 180px;
        opacity: 0.5;
    }
}

@media (max-width: 700px) {
    wt-about-panel .about-image {
        width: 140px;
        height: 140px;
        opacity: 0.25;
    }
}

@media (max-width: 768px) {
    wt-about-panel .about-inner {
        flex-direction: column;
        align-items: stretch;
    }

    wt-about-panel .about-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* =========================================================
   TOP MENU
   ========================================================= */

wt-top-menu {
    display: block;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
}

wt-top-menu .menu-wrapper {
    background: var(--panel-bg);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);

    padding: var(--menu-bar-padding-y) 0; /* kontrolowana wysokość paska */
    overflow: visible;                    /* logo może wystawać */

    transform: translateY(0);
    transition: none;
    /*transform: translateY(-32px);  Stare chowanie top menu na desktop
    transition: transform 0.25s ease;*/
}

wt-top-menu:hover .menu-wrapper {
    transform: translateY(0);
}

wt-top-menu .menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    gap: 28px;
    align-items: center;
}

wt-top-menu .menu-link {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    padding: 6px 0;
    opacity: 0.85;
    transition: opacity .2s;
}

wt-top-menu .menu-link:hover {
    opacity: 1;
}

/* Logo w top-menu */
wt-top-menu .menu-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    margin-right: 6px;
    overflow: visible; /* ważne */
}

wt-top-menu .menu-logo {
    height: var(--menu-logo-base-desktop);
    width: auto;
    display: block;

    transform-origin: left center;
    transform:
        translateY(var(--menu-logo-shift-desktop))
        scale(var(--menu-logo-scale-desktop));

    /* opcjonalnie poprawa czytelności */
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

wt-top-menu .menu-brand:hover .menu-logo {
    /*transform:
        translateY(calc(var(--menu-logo-shift-desktop)+var(--menu-logo-shift-desktop-hoover)))
        scale(var(--menu-logo-scale-desktop)); */
}

/* Hamburger domyślnie ukryty na desktop */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

/* Dropdown wrapper */
wt-top-menu .menu-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Panel (ukryty domyślnie) */
wt-top-menu .menu-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;

  display: none;
  flex-direction: column;
  gap: 6px;

  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);

  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent),
              radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
              rgba(15,23,42,0.95);

  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  z-index: 2000;
}

/* Hover: pokaż panel */
@media (min-width: 769px) {
  wt-top-menu .menu-dd:hover .menu-dd-panel {
    display: flex;
  }
}

wt-top-menu .menu-dd-item {
  color: #e5e7eb;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  opacity: 0.9;
}

wt-top-menu .menu-dd-item:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

wt-top-menu .menu-dd-panel {
  top: 100%;
  margin-top: 0; /* albo usuń margin */
}



@media (max-width: 768px) {

    /* hamburger widoczny */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* układ pozwala zwinąć linki w drugi "wiersz" */
    wt-top-menu .menu-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* linki chowamy domyślnie */
    wt-top-menu .menu-link {
        display: none;
        width: 100%;
        padding: 10px 0;
    }

    /* po otwarciu pokazujemy */
    wt-top-menu.is-open .menu-link {
        display: block;
    }

    /* logo lekko mniejsze */
    wt-top-menu .menu-logo {
        height: var(--menu-logo-base-mobile);
        transform:
        translateY(var(--menu-logo-shift-mobile))
        scale(var(--menu-logo-scale-mobile));
    }
}

@media (max-width: 768px) {

    /* menu-inner: logo po lewej, hamburger po prawej */
    wt-top-menu .menu-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;      /* pozwala zrzucić linki w "drugi wiersz" po rozwinięciu */
        gap: 12px;
    }

    /* hamburger widoczny i zawsze po prawej */
    wt-top-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 6px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.14);
        background: rgba(255,255,255,0.06);
        color: #fff;
        line-height: 1;
    }

    /* linki: domyślnie schowane */
    wt-top-menu .menu-link {
        display: none;
        width: 100%;
        padding: 10px 0;
    }

    /* po otwarciu: pokaż linki */
    wt-top-menu.is-open .menu-link {
        display: block;
    }

    /* opcjonalnie: mniejszy logo */
    wt-top-menu .menu-logo {
        /*height: 36px;
        transform: translateY(2px);*/
    }
}

@media (max-width: 768px) {
    /* dropdown ma zająć pełną szerokość */
    wt-top-menu .menu-dd {
        width: 100%;
    }

    wt-top-menu .menu-dd-panel {
        position: static;
        margin-top: 10px;
        min-width: 0;
    }

    /* domyślnie ukryte */
    wt-top-menu .menu-dd-panel {
        display: none;
    }

    /* po kliknięciu "Usługi" */
    wt-top-menu.dd-open .menu-dd-panel {
        display: flex;
    }

    /* "Usługi" w mobile zachowuje się jak link menu */
    wt-top-menu .menu-dd-trigger {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    wt-top-menu .menu-dd:hover .menu-dd-panel,
    wt-top-menu .menu-dd-panel:hover {
        display: flex;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

wt-footer {
    display: block;
    padding: 20px 20px 30px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
                var(--panel-bg);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
    margin-top: auto;
}

wt-footer .footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

wt-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

wt-footer .footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

wt-footer .footer-brand {
    font-weight: 600;
    color: #fff;
}

wt-footer .footer-copy {
    font-size: 0.9rem;
    color: #9ca3af;
}

wt-footer .footer-links {
    display: flex;
    gap: 16px;
}

wt-footer .footer-link {
    font-size: 0.9rem;
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity .2s;
}

wt-footer .footer-link:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    wt-footer .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Logo w footerze */
wt-footer .footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

wt-footer .footer-logo {
    height: 26px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity .2s ease, transform .2s ease;
}

wt-footer .footer-brand-link:hover .footer-logo {
    opacity: 1;
    transform: translateY(-1px);
}

/* Mobile – logo trochę mniejsze */
@media (max-width: 640px) {
    wt-footer .footer-logo {
        height: 22px;
    }
}


/* =========================================================
   TOPIC SECTIONS
   ========================================================= */

wt-topic-sections {
    display: block;
    padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 20px);
}

wt-topic-sections .topic-sections-wrapper {
    position: relative;
    width: min(100% - clamp(20px, 4vw, 40px), 1200px);
    margin: 0 auto;

    padding: clamp(24px, 5vw, 48px) clamp(16px, 6vw, 72px);

    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
                var(--panel-bg);
}

/* ==========================================
   KLUCZOWA ZMIANA: INNER JAKO GRID
   NAV ma gwarantowaną szerokość
   ========================================== */
wt-topic-sections .topic-sections-inner {
    display: grid;
    grid-template-columns: 20% 80%;  /* <- ZMIENIASZ TU: np. 50% 50% */
    gap: 24px;
    align-items: start;
}

/* lewa kolumna – lista opcji */
wt-topic-sections .topic-sections-nav {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;

    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

wt-topic-sections .topic-sections-nav::-webkit-scrollbar {
    display: none;
}

/* przyciski w lewej kolumnie */
wt-topic-sections .topic-sections-option {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 22px;

    border-radius: 0 14px 14px 0;
    border: none;
    background: transparent;

    color: #e5e7eb;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease,
        color .2s ease;
}

/* hover: tylko lekko ciemniej */
wt-topic-sections .topic-sections-option:hover {
    background: rgba(15, 23, 42, 0.55);
    transform: translateX(2px);
}

/* strzałka: ukryta w bazie */
wt-topic-sections .topic-sections-option-arrow {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .15s ease, transform .15s ease;
}

/* aktywny: ramka + ciemniejsze tło + strzałka */
wt-topic-sections .topic-sections-option.is-active {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #fff;
}

wt-topic-sections .topic-sections-option.is-active .topic-sections-option-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* prawa strona */
wt-topic-sections .topic-sections-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* góra: grafiki + tytuł/tekst */
wt-topic-sections .topic-section-top {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) 1.4fr; /* <- bardziej elastyczne */
    gap: 32px;
    align-items: center;
}

/* kontener na dwie grafiki - bez sztywnego max-width */
wt-topic-sections .topic-sections-content-images {
    position: relative;
    width: 100%;
    max-width: none;        /* <- USUNIĘTY SUFIT */
    aspect-ratio: 4 / 3;
}

wt-topic-sections .topic-img-card {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    transition: transform .2s ease, box-shadow .2s ease;
}

wt-topic-sections .topic-img-card--back {
    transform: translate(-18px, 18px) scale(0.96);
    opacity: 0.9;
    z-index: 1;
}

wt-topic-sections .topic-img-card--front {
    z-index: 2;
}

wt-topic-sections .topic-sections-content-images:hover .topic-img-card--front {
    transform: translate(0, -4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.6);
}

wt-topic-sections .topic-sections-content-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

wt-topic-sections .topic-sections-content-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

wt-topic-sections .topic-sections-content-text {
    font-size: 1rem;
    color: #e5e7eb;
    line-height: 1.6;
    margin: 0;
}

wt-topic-sections .topic-sections-content-html {
    font-size: 0.97rem;
    color: #e5e7eb;
    line-height: 1.6;
}

/* dół: większy blok tekstu */
wt-topic-sections .topic-section-bottom {
    border-radius: 18px;
    background: rgba(15,23,42,0.7);
    padding: 20px 24px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

wt-topic-sections .topic-section-bottom.is-empty {
    display: none;
}

wt-topic-sections .topic-section-bottom-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

wt-topic-sections .topic-section-bottom-text,
wt-topic-sections .topic-section-bottom-html {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #e5e7eb;
}

/* mobile */
@media (max-width: 800px) {
    wt-topic-sections .topic-sections-inner {
        grid-template-columns: 1fr;
    }

    wt-topic-sections .topic-section-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    wt-topic-sections .topic-sections-content-images {
        max-width: 100%;
        margin-bottom: 4px;
    }
}

/* =========================================================
   GLOBAL MOBILE PADDING
   ========================================================= */

wt-about-panel,
wt-topic-sections {
    display: block;
    padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 20px);
}

@media (max-width: 768px) {
    wt-topic-grid,
    wt-about-panel,
    wt-topic-sections,
    wt-footer {
        padding: 24px 12px;
    }

    wt-topic-grid .grid-wrapper,
    wt-about-panel .about-wrapper,
    wt-topic-sections .topic-sections-wrapper {
        padding: 20px 16px;
    }
}


@media (min-width: 1400px) {
    wt-topic-grid .grid-wrapper,
    wt-about-panel .about-wrapper,
    wt-topic-sections .topic-sections-wrapper,
    wt-footer .footer-wrapper,
    wt-top-menu .menu-inner {
        max-width: 1400px;
    }
}

/* Wyśrodkowanie elementów w ostatnim niepełnym rzędzie */
    wt-topic-grid .grid-inner.lastrow-1 > wt-topic-tile:nth-last-child(1),
    wt-topic-grid .grid-inner.lastrow-2 > wt-topic-tile:nth-last-child(2),
    wt-topic-grid .grid-inner.lastrow-3 > wt-topic-tile:nth-last-child(3),
    wt-topic-grid .grid-inner.lastrow-4 > wt-topic-tile:nth-last-child(4),
    wt-topic-grid .grid-inner.lastrow-5 > wt-topic-tile:nth-last-child(5) {
    grid-column-start: var(--lastrow-start);
}


/* =========================================================
   OVERLAY
   ========================================================= */

body.overlay-open {
    overflow: hidden;
}

wt-overlay-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

wt-overlay-panel .overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 16px;
    box-sizing: border-box;
}

wt-overlay-panel .overlay-panel {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow: auto;

    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);

    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
                var(--panel-bg);

    padding: 24px 24px 20px;
}

wt-overlay-panel .overlay-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity .2s;
}

wt-overlay-panel .overlay-close:hover {
    opacity: 1;
}

wt-overlay-panel .overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 32px 12px 0;
}

wt-overlay-panel .overlay-body {
    font-size: 0.97rem;
    line-height: 1.6;
    color: #e5e7eb;
}

@media (max-width: 600px) {
    wt-overlay-panel .overlay-backdrop {
        align-items: flex-start;
        padding: 40px 8px;
    }

    wt-overlay-panel .overlay-panel {
        max-height: calc(100vh - 80px);
        padding: 20px 16px 16px;
    }

    wt-overlay-panel .overlay-title {
        font-size: 1.2rem;
    }
}

/* =========================================================
   INTEREST FORM
   ========================================================= */

wt-interest-form {
    display: block;
    padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 20px);
}

wt-interest-form .interest-wrapper {
    position: relative;
    width: min(100% - clamp(20px, 4vw, 40px), 800px);
    margin: 0 auto;

    padding: clamp(24px, 4vw, 40px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
                var(--panel-bg);
}

wt-interest-form .interest-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

wt-interest-form .interest-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

wt-interest-form .interest-label {
    font-size: 0.9rem;
    color: #cbd5f5;
}

wt-interest-form .interest-input {
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    padding: 8px 10px;
    font-size: 0.95rem;
    outline: none;
}

wt-interest-form .interest-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.6);
}

wt-interest-form .interest-field.is-required .interest-label::after {
    content: " *";
    color: #f97316;
}

wt-interest-form .interest-submit {
    align-self: flex-start;
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
    transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}

wt-interest-form .interest-submit:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0,0,0,0.6);
    opacity: 0.95;
}

wt-interest-form .interest-field--checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

wt-interest-form .interest-field--checkbox .interest-input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

wt-interest-form .interest-field--checkbox .interest-label {
    display: inline;
    width: auto;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

wt-interest-form .interest-field--checkbox .interest-label .privacy-link {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

wt-interest-form .interest-submit.is-disabled,
wt-interest-form .interest-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   FLOATING CTA
   ========================================================= */

wt-cta-panel {
    position: absolute;
    right: 0;
    z-index: 998;
}

wt-cta-panel .cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 10px 14px 10px 18px;
    margin-right: 2px;

    border-radius: 999px 0 0 999px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.06), transparent),
                rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

wt-cta-panel .cta-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;

    background: rgba(15,23,42,0.9);
    color: #e5e7eb;

    display: flex;
    align-items: center;
    gap: 6px;

    transition: background .15s ease,
                transform .15s ease,
                box-shadow .15s ease,
                opacity .15s ease;
}

wt-cta-panel .cta-btn:hover {
    background: rgba(22, 101, 52, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

wt-cta-panel .cta-btn-contact {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
}

wt-cta-panel .cta-btn-contact:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

@media (max-width: 640px) {
    wt-cta-panel {
        display: none;
    }
}

/* ================================================
   TRYB FLAT (formularz wewnątrz OVERLAY)
   ================================================ */

wt-interest-form.flat-mode .interest-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
}

wt-interest-form.flat-mode .interest-form {
    padding: 0 !important;
}

wt-interest-form.flat-mode .interest-field {
    background: transparent !important;
}

wt-interest-form.flat-mode .interest-submit {
    margin-top: 12px;
}

/* =========================================================
   ABOUT PEOPLE (about.php)
   ========================================================= */

wt-about-people {
  display: block;
  padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 20px);
}

wt-about-people .about-people-list {
  width: min(100% - clamp(20px, 4vw, 40px), 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

wt-about-people .about-person-row {
  display: grid;
  grid-template-columns: 260px 1.1fr 1.3fr;
  gap: 26px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 55%),
    linear-gradient(90deg, rgba(15,23,42,0.85), rgba(17,24,38,0.55));
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}

wt-about-people .about-person-row:nth-child(even) {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.04), transparent 55%),
    linear-gradient(270deg, rgba(15,23,42,0.85), rgba(17,24,38,0.55));
}

wt-about-people .about-person-row:nth-child(even) .about-person-photo   { order: 3; }
wt-about-people .about-person-row:nth-child(even) .about-person-summary { order: 2; }
wt-about-people .about-person-row:nth-child(even) .about-person-details { order: 1; }

wt-about-people .about-person-col { min-width: 0; }

wt-about-people .about-person-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: rgba(2,6,23,0.55);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

wt-about-people .about-person-name {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}

wt-about-people .about-person-role {
  margin: 0 0 10px;
  color: rgba(229,231,235,0.85);
  font-weight: 600;
}

wt-about-people .about-person-short {
  margin: 0 0 14px;
  line-height: 1.65;
  color: #e5e7eb;
}

wt-about-people .about-person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

wt-about-people .about-person-link {
  border: none;
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}

wt-about-people .about-person-link:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

wt-about-people .about-person-link.is-active {
  background: rgba(15,23,42,0.85);
  color: #fff;
}

wt-about-people .about-person-details {
  background: rgba(2,6,23,0.35);
  border-radius: 18px;
  padding: 16px 18px;
}

wt-about-people .about-person-details-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

wt-about-people .about-person-details-body {
  color: #e5e7eb;
  line-height: 1.7;
  font-size: 0.98rem;
}

wt-about-people .about-person-details-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

wt-about-people .about-person-details-body li {
  margin: 6px 0;
}

@media (max-width: 900px) {
  wt-about-people .about-person-row {
    grid-template-columns: 1fr;
  }
  wt-about-people .about-person-photo-img {
    max-width: 320px;
  }
  wt-about-people .about-person-row:nth-child(even) .about-person-photo,
  wt-about-people .about-person-row:nth-child(even) .about-person-summary,
  wt-about-people .about-person-row:nth-child(even) .about-person-details {
    order: initial;
  }
}


/* Bazowo: foto ma stałą szerokość po lewej */
wt-about-people .about-person-row {
  display: grid;
  grid-template-columns: 260px 1.1fr 1.3fr;
  gap: 26px;
}

/* Parzyste: odwracamy szerokości kolumn,
   żeby foto (które ma order:3) też było w kolumnie 260px */
wt-about-people .about-person-row:nth-child(even) {
  grid-template-columns: 1.3fr 1.1fr 260px;
}

/* Twoje obecne ordery mogą zostać bez zmian */
wt-about-people .about-person-row:nth-child(even) .about-person-photo   { order: 3; }
wt-about-people .about-person-row:nth-child(even) .about-person-summary { order: 2; }
wt-about-people .about-person-row:nth-child(even) .about-person-details { order: 1; }



/* =========================================================
   PROMO – wrapper jak pozostałe sekcje
   ========================================================= */

wt-promo-tile {
    display: block;
    padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 20px);
}

wt-promo-tile .promo-wrapper {
    width: min(100% - clamp(20px, 4vw, 40px), 1200px);
    margin: 0 auto;
}

/* To jest KLUCZ: szerokość jak pojedynczy kafelek z grida.
   Grid używa minmax(220px, 1fr) i wrapper ma max 1200px,
   więc „kafelek” wizualnie ma zwykle ~320–420px. */
wt-promo-tile .promo-tile {
    width: 100%;              /* <- dokładnie jak kafelki w gridzie */
    max-width: none;

    border-radius: 18px;
    padding: 22px;
    box-sizing: border-box;

    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 55%),
        rgba(5, 12, 24, 0.95);

    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.45),
        0 0 0 1px rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;
    gap: 14px;

    color: #e5e7eb;
    text-align: right;
}


wt-promo-tile .promo-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

wt-promo-tile .promo-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

wt-promo-tile .promo-line {
    display: grid;
    grid-template-columns: 32% 67%;
    gap: 16px;
    align-items: center;
}

wt-promo-tile .promo-key {
    font-size: large;
    font-weight: 800;
    color: #fff;
}

wt-promo-tile .promo-val {
    line-height: 1.5;
    color: #e5e7eb;
    text-align: left;
}

@media (max-width: 700px) {
    wt-promo-tile .promo-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    wt-promo-tile .promo-key {
        opacity: 0.9;
    }
}

/* =========================================================
   MEETING BOOKER (CTA -> Umów spotkanie)
   ========================================================= */

wt-meeting-booker {
  display: block;
}

/* wrapper/inner jak u Ciebie */
wt-meeting-booker .meeting-booker-wrapper {
  width: min(100% - clamp(20px, 4vw, 40px), 1200px);
  margin: 0 auto;
}

wt-meeting-booker .meeting-booker-inner {
  padding: clamp(24px, 5vw, 48px) clamp(16px, 6vw, 72px);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent),
              radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent),
              var(--panel-bg);
}

wt-meeting-booker .meeting-booker-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

wt-meeting-booker .meeting-booker-lead {
  margin: 0 auto 18px;
  max-width: 780px;
  color: rgba(229,231,235,0.9);
  line-height: 1.65;
  text-align: center;
}

wt-meeting-booker .meeting-booker-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 22px;
  align-items: start;
}

wt-meeting-booker .meeting-booker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

wt-meeting-booker .meeting-booker-range {
  font-weight: 800;
  color: #fff;
  opacity: 0.95;
}

wt-meeting-booker .meeting-booker-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

wt-meeting-booker .meeting-booker-day-title {
  font-weight: 800;
  color: rgba(229,231,235,0.95);
  margin-bottom: 8px;
}

wt-meeting-booker .meeting-booker-day-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

wt-meeting-booker .meeting-slot {
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

wt-meeting-booker .meeting-slot:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(148,163,184,0.55);
  transform: translateY(-1px);
}

wt-meeting-booker .meeting-slot.is-selected {
  background: rgba(15,23,42,0.85);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

wt-meeting-booker .meeting-slot.is-taken,
wt-meeting-booker .meeting-slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

wt-meeting-booker .meeting-booker-hint {
  margin-top: 12px;
  color: rgba(229,231,235,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

wt-meeting-booker .meeting-booker-card {
  border-radius: 20px;
  background: rgba(2,6,23,0.35);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

wt-meeting-booker .meeting-booker-subtitle {
  margin: 0 0 8px;
  font-weight: 900;
  color: #fff;
}

wt-meeting-booker .meeting-booker-picked {
  margin-bottom: 12px;
  color: rgba(229,231,235,0.95);
  line-height: 1.5;
  font-weight: 700;
}

wt-meeting-booker .meeting-booker-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

wt-meeting-booker .meeting-booker-input {
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 0.95rem;
  outline: none;
}

wt-meeting-booker .meeting-booker-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.45);
}

wt-meeting-booker .meeting-booker-status {
  margin-top: 10px;
  line-height: 1.6;
  color: rgba(229,231,235,0.85);
}

wt-meeting-booker .meeting-booker-status.is-ok { color: rgba(74,222,128,0.95); }
wt-meeting-booker .meeting-booker-status.is-error { color: rgba(251,113,133,0.95); }
wt-meeting-booker .meeting-booker-status.is-info { color: rgba(229,231,235,0.85); }

wt-meeting-booker .meeting-booker-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* przyciski (wspólne) */
wt-meeting-booker .mb-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

wt-meeting-booker .mb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

wt-meeting-booker .mb-btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

wt-meeting-booker .mb-btn--primary:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

wt-meeting-booker .mb-btn--ghost {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
}

wt-meeting-booker .mb-btn--ghost:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

wt-meeting-booker .mb-btn--soft {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.35);
}

wt-meeting-booker .mb-btn--soft:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

/* mobile */
@media (max-width: 900px) {
  wt-meeting-booker .meeting-booker-grid {
    grid-template-columns: 1fr;
  }
}

/*      Socials start     */

wt-social-links {
  display: block;
}

wt-social-links .social-links-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

wt-social-links .social-links-wrapper.is-vertical {
  flex-direction: column;
  align-items: flex-start;
}

wt-social-links .social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);

  transition:
    background .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

wt-social-links .social-link:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

wt-social-links svg {
  width: 18px;
  height: 18px;
  fill: #e5e7eb;
}

/* social w stopce */
wt-footer .footer-social {
  margin-left: auto; /* spycha social na prawo */
}

/* na mobile – social pod treścią */
@media (max-width: 640px) {
  wt-footer .footer-social {
    margin-left: 0;
    margin-top: 8px;
  }
}


/* Globalne zabezpieczenia dla mobile */

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}


/* =========================================================
   TOP MENU — MOBILE OVERRIDE (WYMUSZENIE)
   ========================================================= */
@media (max-width: 768px) {

  /* hamburger ma być widoczny */
  wt-top-menu .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    line-height: 1;
  }

  /* układ: logo + hamburger w jednej linii */
  wt-top-menu .menu-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* linki mają być SCHOWANE dopóki nie ma is-open */
  wt-top-menu .menu-link {
    display: none !important;
    width: 100% !important;
    padding: 10px 0 !important;
  }

  /* dopiero po kliknięciu hamburgera */
  wt-top-menu.is-open .menu-link {
    display: block !important;
  }
}

.interest-header {
    margin-bottom: 16px;
    text-align: left;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Base social button – kompaktowy */
.social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);

  transition:
    background .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

/* LinkedIn variant */
.social-link--linkedin {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.social-link--facebook {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.social-link--x {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* Ikona LinkedIn (SVG jako maska) */
.social-link--linkedin::before {
    display: block;
  content: "";
  width: 16px;
  height: 16px;

  background-color: #0369a1; /* kolor ikony */

  -webkit-mask: url("/img/about_page/lin.svg") no-repeat center / contain;
  mask: url("/img/about_page/lin.svg") no-repeat center / contain;
}

/* Ikona LinkedIn (SVG jako maska) */
.social-link--facebook::before {
    display: block;
  content: "";
  width: 16px;
  height: 16px;

  background-color: #0369a1; /* kolor ikony */

  -webkit-mask: url("/img/about_page/face.svg") no-repeat center / contain;
  mask: url("/img/about_page/face.svg") no-repeat center / contain;
}

/* Ikona LinkedIn (SVG jako maska) */
.social-link--x::before {
    display: block;
  content: "";
  width: 16px;
  height: 16px;

  background-color: #0369a1; /* kolor ikony */

  -webkit-mask: url("/img/about_page/x.svg") no-repeat center / contain;
  mask: url("/img/about_page/x.svg") no-repeat center / contain;
}
/* Hover */
.social-link--linkedin:hover {
  background: #bae6fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2,132,199,0.35);
}


/* =========================================================
   TOP MENU — MOBILE DROPDOWN FIX (NA SAMYM KOŃCU CSS)
   ========================================================= */
@media (max-width: 768px) {

  /* wrapper dropdownu nie jako inline-flex, tylko blok na pełną szerokość */
  wt-top-menu .menu-dd {
    width: 100% !important;
    display: block !important;
  }

  /* trigger ma się zachowywać jak normalny link menu */
  wt-top-menu .menu-dd-trigger {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 !important;
  }

  /* panel w flow, nie absolutny */
  wt-top-menu .menu-dd-panel {
    position: static !important;
    left: auto !important;
    top: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    margin: 8px 0 6px !important;
    display: none !important; /* domyślnie zamknięty */
  }

  /* otwieraj dropdown tylko gdy menu jest otwarte + dd-open */
  wt-top-menu.is-open.dd-open .menu-dd-panel {
    display: flex !important;
  }

  /* elementy dropdownu na pełną szerokość */
  wt-top-menu .menu-dd-item {
    display: block;
    width: 100%;
  }

  /* WAŻNE: wyłącz "hover otwiera dropdown" na mobile (dotyk robi cuda) */
  wt-top-menu .menu-dd:hover .menu-dd-panel,
  wt-top-menu .menu-dd-panel:hover {
    display: none !important;
  }
}


@media (max-width: 768px) {

  /* 1) Ukryj CAŁY dropdown wrapper, gdy menu zamknięte */
  wt-top-menu .menu-dd {
    display: none !important;
    width: 100% !important;
  }

  /* 2) Pokaż dropdown wrapper dopiero po otwarciu hamburgera */
  wt-top-menu.is-open .menu-dd {
    display: block !important;
  }

  /* 3) Panel dropdownu tylko w stanie dd-open */
  wt-top-menu .menu-dd-panel {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 6px !important;
    display: none !important;
  }

  wt-top-menu.is-open.dd-open .menu-dd-panel {
    display: flex !important;
  }

  /* 4) Wyłącz hover na mobile */
  wt-top-menu .menu-dd:hover .menu-dd-panel,
  wt-top-menu .menu-dd-panel:hover {
    display: none !important;
  }
}
@media (max-width: 768px) {
  wt-top-menu.is-open.dd-open .menu-dd-panel {
    display: flex !important;
  }
}

.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(233,238,246,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

.pager-meta { color: rgba(233,238,246,.70); font-size: 13px; }

.pager-right { display: flex; gap: 12px; align-items: center; }

.pager-label { display: inline-flex; align-items: center; gap: 8px; color: rgba(233,238,246,.70); font-size: 13px; }

.pager-select {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(233,238,246,.14);
  color: rgba(233,238,246,.86);
  border-radius: 10px;
  padding: 6px 8px;
}

.pager-btns { display: inline-flex; gap: 6px; align-items: center; }
.pager-btn {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(233,238,246,.14);
  color: rgba(233,238,246,.86);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.pager-btn[disabled] { opacity: .45; cursor: default; }
.pager-dots { color: rgba(233,238,246,.45); padding: 0 4px; }
