/*
Theme Name: PANCOM Theme
Theme URI: https://pancom.pl
Description: Produkcyjny motyw WordPress dla PANCOM - strona firmowa, Blog, moduł PANCOM SEO, edytor treści i narzędzia migracji.
Author: DominikWuu
Version: 1.0.69
License: PANCOM
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pancom
*/

/* ==========================================================================
   GLOBALNE STYLE I RESET (TAILWIND AUGMENTATION)
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Article modules retained from the previous PANCOM website. */
.pancom-legacy-news .module{margin:0 0 2rem}
.pancom-legacy-news .cols{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;align-items:center}
.pancom-legacy-news .cols>div{min-width:0}
.pancom-legacy-news p{margin:0 0 1rem}
.pancom-legacy-news a{color:#2563eb;text-decoration:underline;overflow-wrap:anywhere}
.pancom-legacy-news img,.pancom-legacy-news video{display:block;max-width:100%;height:auto;border-radius:1rem;margin:1rem auto}
.pancom-legacy-news video{width:100%}
.pancom-legacy-news h2,.pancom-legacy-news h3{font-weight:800;color:#0f172a;margin:1.5rem 0 1rem}
.pancom-legacy-news ul,.pancom-legacy-news ol{padding-left:1.5rem;margin:1rem 0;list-style:revert}
@media(min-width:768px){.pancom-legacy-news .cols:has(>.col_2){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

body { 
    font-family: 'Inter', sans-serif; 
}

/* ==========================================================================
   CUSTOM SCROLLBAR (Nowoczesny, cienki pasek przewijania)
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   TŁA I ANIMACJE
   ========================================================================== */

.hero-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
#navbar, 
#navbar.scrolled, 
nav#navbar {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* ==========================================================================
   EFEKTY SPECJALNE (Przyciski i Slidery)
   ========================================================================== */

.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}
.btn-shine:hover::after {
    left: 150%;
}

.carousel-slide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.99);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out, filter 1.2s ease-out;
    filter: blur(4px);
}
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.carousel-slide.prev {
    transform: translateY(-15px) scale(0.99);
    opacity: 0;
}

/* ==========================================================================
   DROBNE POPRAWKI INTERFEJSU
   ========================================================================== */

.dropdown-bridge {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.social-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2.5rem;
}

#scroll-to-top:hover {
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.25), 0 10px 10px -5px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   BAZOWE STYLE STOPKI (Wymagane do prawidłowego renderowania)
   ========================================================================== */

:root {
    --text-main: #334155;
    --text-muted: #64748b;
    --primary-blue: #2563eb;
    --border-color: #e2e8f0;
    --bg-color: #f8fafc;
    --accent-red: #ef4444;
}

.site-footer {
    background-color: var(--bg-color);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    font-size: 15px; /* Minimalnie powiększony tekst bazowy stopki */
    color: var(--text-main);
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-logo {
    max-width: 180px;
    margin-bottom: 24px;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}

.social-link:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    color: var(--primary-blue);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-content p {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 4px;
}

.data-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    color: var(--text-muted);
    padding-right: 15px;
}

.data-value {
    font-weight: 600;
    color: var(--text-main);
    padding-left: 15px;
    text-align: right;
    white-space: nowrap;
}

.data-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.data-value a:hover {
    color: var(--primary-blue);
}

.emergency-block {
    margin-top: 25px;
    background: #fff;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.emergency-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.emergency-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
}

.emergency-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 1px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.footer-nav a::before {
    content: '›';
    font-family: inherit;
    font-weight: 700;
    margin-right: 10px;
    font-size: 12px;
    color: #cbd5e1;
    transition: transform 0.2s, color 0.2s;
}

.footer-nav a:hover {
    color: var(--primary-blue);
}

.footer-nav a:hover::before {
    color: var(--primary-blue);
    transform: translateX(3px);
}

.footer-nav a.active {
    color: var(--primary-blue);
    font-weight: 500;
}

.footer-nav a.active::before {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
    color: #94a3b8;
}

.copyright-left {
    max-width: 65%;
}

.copyright-text {
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.disclaimer-text {
    line-height: 1.6;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--primary-blue);
}

.footer-legal-links li:not(:last-child)::after {
    content: '•';
    color: #cbd5e1;
    margin-left: 20px;
}

/* Guzik powrotu */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background-color: #0f172a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 50;
}

.scroll-to-top:hover {
            background-color: var(--primary-blue);
            transform: translateY(-3px);
        }

        /* STREAMING_CHUNK:Responsywność i centrowanie stopki na mobile */
        /* Responsywność */
        @media (max-width: 1200px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 50px;
            }
        }

        @media (max-width: 768px) {
            /* Wymuszenie centrowania WSZYSTKIEGO w stopce na siłę (nadpisuje Tailwind CSS) */
            .site-footer,
            .site-footer * {
                text-align: center !important;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 50px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }
            
            .footer-col {
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            /* Logo i Opis */
            .brand-logo {
                margin: 0 auto 24px auto !important;
                display: block;
            }
            
            .brand-desc {
                margin: 0 auto 30px auto !important;
                max-width: 90%;
            }

            /* Social Media */
            .social-links {
                justify-content: center !important;
                width: 100%;
            }

            /* Blok Kontaktowy (Ikony nad tekstem) */
            .contact-info-block {
                width: 100%;
                align-items: center;
            }

            .info-row {
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                width: 100%;
                margin-bottom: 25px;
            }

            .info-icon {
                margin: 0 0 10px 0 !important;
                font-size: 22px; /* Lekko większe ikony na mobile */
            }

            /* Listy danych (np. Numery telefonów) */
            .data-list {
                align-items: center !important;
                width: 100%;
            }

            .data-item {
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                border-bottom: 1px solid var(--border-color); /* Na telefonie pozioma kreska */
                padding-bottom: 12px;
                margin-bottom: 12px;
                width: 100%;
                max-width: 280px;
            }
            
            .data-item:last-child {
                border-bottom: none;
                margin-bottom: 0;
                padding-bottom: 0;
            }

            .data-label {
                padding: 0 0 6px 0 !important;
                font-size: 13px;
            }

            .data-value {
                padding: 0 !important;
                font-size: 16px;
            }

            /* Blok awaryjny */
            .emergency-block {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 100%;
                max-width: 320px;
                margin: 25px auto 0 auto !important;
            }
            
            .emergency-header {
                justify-content: center !important;
                width: 100%;
            }

            /* Menu Na skróty */
            .footer-nav {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 100%;
            }

            /* Dolny pasek Praw/Copyright */
            .footer-bottom {
                flex-direction: column;
                align-items: center;
                gap: 24px;
                width: 100%;
            }
            
            .copyright-left {
                max-width: 100%;
            }
            
            .footer-legal-links {
                flex-wrap: wrap;
                justify-content: center !important;
                gap: 12px;
            }
            
            .footer-legal-links li:not(:last-child)::after {
                margin-left: 12px;
            }

            /* Guzik Powrotu do góry */
            .scroll-to-top {
                bottom: 20px;
                right: 20px;
            }
        }

/* ========================================================================== 
   PANCOM 1.0.30 - GLOBALNA OPTYMALIZACJA RESPONSYWNA / MOBILE
   ========================================================================== */

/* Elementy multimedialne nigdy nie mogą rozszerzać viewportu. */
img,
video,
iframe,
canvas {
    max-width: 100%;
}

/* Długie adresy, e-maile i treści z CMS nie mogą powodować poziomego scrolla. */
main,
section,
article,
.site-footer {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Lepsze przewijanie poziomych elementów na iOS. */
.overflow-x-auto,
.hide-scrollbar {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* Formularze - bez automatycznego zoomu Safari przy focusie. */
input,
select,
textarea,
button {
    max-width: 100%;
}

@media (max-width: 959px) {
    #navbar {
        padding-top: .5rem !important;
        padding-bottom: .5rem !important;
    }

    #mobile-menu {
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100dvh - 5rem) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        padding-bottom: max(2rem, env(safe-area-inset-bottom)) !important;
    }

    body.pancom-mobile-menu-open {
        overflow: hidden !important;
    }

    #mobile-menu .mobile-dropdown-content a,
    #mobile-menu > div > a {
        white-space: normal !important;
        line-height: 1.35;
    }
}

@media (max-width: 767px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
    }

    #nav-container {
        height: 4rem !important;
    }

    #main-logo {
        height: 2.5rem !important;
        max-width: 60vw;
    }

    #mobile-menu-btn {
        margin-left: .5rem !important;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #mobile-menu {
        max-height: calc(100dvh - 5rem) !important;
        touch-action: pan-y;
    }

    body.admin-bar #navbar {
        top: 46px !important;
    }

    body.admin-bar #mobile-menu {
        max-height: calc(100dvh - 5rem - 46px) !important;
    }

    #mobile-menu > div {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    #mobile-menu .mobile-dropdown-btn,
    #mobile-menu a {
        min-height: 44px;
    }

    /* Typografia - czytelna skala zamiast desktopowych 48-60 px na małym ekranie. */
    body h1 {
        font-size: clamp(2rem, 9vw, 2.5rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.025em;
    }

    body h2 {
        font-size: clamp(1.75rem, 7.5vw, 2.2rem) !important;
        line-height: 1.13 !important;
    }

    body h3 {
        line-height: 1.2 !important;
    }

    /* Rozsądniejsze pionowe odstępy na telefonie. */
    [class~="py-28"],
    [class~="py-24"] {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }

    [class~="py-20"] {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    [class~="pt-36"],
    [class~="pt-32"] {
        padding-top: 6.5rem !important;
    }

    [class~="pb-32"],
    [class~="pb-28"],
    [class~="pb-24"],
    [class~="pb-20"] {
        padding-bottom: 3.5rem !important;
    }

    /* Breadcrumb ma się zawijać, nie wypychać strony. */
    nav[aria-label="Breadcrumb"],
    nav[aria-label="Breadcrumb"] ol {
        flex-wrap: wrap !important;
        row-gap: .4rem;
        max-width: 100%;
    }

    nav[aria-label="Breadcrumb"] li,
    nav[aria-label="Breadcrumb"] a,
    nav[aria-label="Breadcrumb"] span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Przyciski CTA - pełna czytelność przy długich etykietach. */
    header a.inline-flex,
    section a.inline-flex,
    main a.inline-flex,
    .btn-shine {
        max-width: 100%;
        white-space: normal !important;
        text-align: center;
        line-height: 1.25;
    }

    /* Tailwindowe whitespace-nowrap zostawiamy tylko w poziomych submenu. */
    main .whitespace-nowrap,
    section .whitespace-nowrap {
        white-space: normal !important;
    }

    [id$="-submenu-scroll"] .whitespace-nowrap {
        white-space: nowrap !important;
    }

    /* Sticky submenu pod głównym navem - mieści się w viewport i przewija poziomo. */
    [id$="-submenu-container"] {
        top: 5rem !important;
        padding-top: .5rem !important;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }

    [id$="-submenu-container"] > div {
        width: 100% !important;
        max-width: calc(100vw - 1rem) !important;
    }

    [id$="-submenu-scroll"] {
        max-width: 100%;
        padding-right: 2.5rem;
    }

    /* Zaokrąglenia i obramowania nie mogą zabierać zbyt dużo miejsca na 320-390 px. */
    [class*="rounded-[3rem]"],
    [class*="rounded-[2.5rem]"] {
        border-radius: 1.5rem !important;
    }

    [class*="border-[8px]"],
    [class*="border-[6px]"] {
        border-width: 4px !important;
    }

    /* Duże dekoracyjne kule/bloby ograniczamy do szerokości telefonu. */
    [class*="w-[650px]"],
    [class*="w-[620px]"],
    [class*="w-[600px]"],
    [class*="w-[520px]"],
    [class*="w-[500px]"],
    [class*="w-[450px]"],
    [class*="w-[400px]"] {
        max-width: 92vw !important;
        max-height: 92vw !important;
    }

    /* Tabele cenowe pozostają kompletne, ale mają wygodny poziomy scroll. */
    table {
        font-size: .82rem;
    }

    table th,
    table td {
        padding: .75rem !important;
    }

    .overflow-x-auto:has(table) {
        position: relative;
        scrollbar-width: thin;
    }

    /* Karty i formularze: mniej paddingu, więcej miejsca na treść. */
    [class~="p-10"],
    [class~="p-12"] {
        padding: 1.5rem !important;
    }

    [class~="p-8"] {
        padding: 1.25rem !important;
    }

    /* Sekcja realizacji - galeria nie jest nadmiernie wysoka na wąskim ekranie. */
    body [class~="h-[280px]"] {
        height: 230px !important;
    }

    /* Animacje unoszące elementy wyłączamy na dotyku - nie nachodzą na sąsiednią treść. */
    .animate-float-gentle,
    .animate-float-gentle-delayed {
        animation: none !important;
    }

    #scroll-to-top,
    .scroll-to-top {
        right: 1rem !important;
        bottom: max(1rem, env(safe-area-inset-bottom)) !important;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Stopka. */
    .site-footer {
        padding-top: 3.5rem;
    }

    .site-footer .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-grid {
        gap: 2rem !important;
        margin-bottom: 2rem;
    }

    .brand-desc {
        max-width: 32rem !important;
    }

    /* Osadzone multimedia i mapy zachowują poprawne proporcje. */
    iframe {
        width: 100%;
    }

    .video-wrapper iframe {
        border-radius: 1.5rem;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 390px) {
    body h1 {
        font-size: clamp(1.85rem, 9vw, 2.15rem) !important;
    }

    body h2 {
        font-size: clamp(1.6rem, 7.5vw, 1.95rem) !important;
    }

    [class~="px-8"] {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    [class~="gap-6"] {
        gap: 1rem !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hover\\:-translate-y-1:hover,
    .hover\\:scale-105:hover,
    .group:hover .group-hover\\:scale-105 {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-up,
    .carousel-slide,
    [class*="animate-"] {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Mobile performance optimisations */
@media (max-width: 767px) {
    body > section, main > section, article > section {
        content-visibility: auto;
        contain-intrinsic-size: auto 760px;
    }

    .fade-up, .fade-up.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .animate-image-breathe,
    .animate-float-gentle,
    .animate-float-gentle-delayed,
    .animate-spin-slow,
    .animate-spin-reverse-slow,
    .animate-blob,
    [class*="animate-spin-"] {
        animation: none !important;
    }

    [class*="backdrop-blur"] {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}


/* Internet + TV - kompaktowe cenniki na telefonach */
.pancom-price-value,
.pancom-price-suffix,
.pancom-price-pill {
    white-space: nowrap !important;
}

.pancom-combo-pricing {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

@media (max-width: 767px) {
    .pancom-combo-pricing {
        border-radius: 1rem !important;
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        scroll-snap-type: x proximity;
    }

    .pancom-combo-table {
        min-width: 680px !important;
        table-layout: fixed;
        font-size: 0.72rem !important;
    }

    .pancom-combo-table th,
    .pancom-combo-table td {
        padding: 0.55rem 0.5rem !important;
        vertical-align: middle;
    }

    .pancom-combo-table th:nth-child(1),
    .pancom-combo-table td:nth-child(1) {
        width: 150px;
    }

    .pancom-combo-table th:nth-child(2),
    .pancom-combo-table td:nth-child(2) {
        width: 125px;
    }

    .pancom-combo-table th:nth-child(n+3),
    .pancom-combo-table td:nth-child(n+3) {
        width: 135px;
    }

    .pancom-combo-table th {
        font-size: 0.72rem !important;
        line-height: 1.15;
    }

    .pancom-combo-table td:nth-child(2) {
        font-size: 0.69rem !important;
        line-height: 1.25;
    }

    .pancom-combo-table td:first-child .inline-flex {
        padding: 0.4rem 0.55rem !important;
        font-size: 0.64rem !important;
        letter-spacing: 0.03em !important;
        max-width: 100%;
    }

    .pancom-price-pill {
        display: inline-flex !important;
        align-items: baseline;
        justify-content: center;
        gap: 0.2rem !important;
        min-width: 104px;
        padding: 0.5rem 0.55rem !important;
        border-radius: 0.8rem !important;
    }

    .pancom-combo-table .pancom-price-value {
        font-size: 0.98rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .pancom-combo-table .pancom-price-suffix {
        font-size: 0.6rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .pancom-pricing-scroll-hint {
        line-height: 1.3;
    }

    /* Pozostałe ceny na stronie - kwota zawsze w jednym wierszu. */
    #internet-swiatlowodowy article .text-3xl.font-black,
    #internet-bezprzewodowy .text-2xl.font-black,
    #pakiety-laczone .text-2xl.font-black,
    #pakiety-premium .pancom-price-value {
        white-space: nowrap !important;
    }

    #pakiety-premium .pancom-price-value {
        font-size: 1.18rem !important;
    }
}

@media (max-width: 390px) {
    .pancom-combo-table {
        min-width: 640px !important;
    }

    .pancom-combo-table th:nth-child(1),
    .pancom-combo-table td:nth-child(1) {
        width: 140px;
    }

    .pancom-combo-table th:nth-child(2),
    .pancom-combo-table td:nth-child(2) {
        width: 115px;
    }

    .pancom-combo-table th:nth-child(n+3),
    .pancom-combo-table td:nth-child(n+3) {
        width: 128px;
    }

    .pancom-price-pill {
        min-width: 98px;
    }
}

@media (max-width: 767px) {
    #pakiety-internet-tv .pancom-price-value,
    #premium .pancom-price-value,
    #internet-swiatlowodowy article .text-3xl.font-black,
    #internet-bezprzewodowy .text-2xl.font-black {
        white-space: nowrap !important;
    }

    #premium .pancom-premium-price-row {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }

    #premium .pancom-premium-price-row .pancom-price-value,
    #premium .pancom-premium-price-row .pancom-price-suffix {
        white-space: nowrap !important;
    }
}


/* ========================================================================== 
   PANCOM 1.0.35 - STOPKA MOBILNA WYŚRODKOWANA
   ========================================================================== */
@media (max-width: 767px) {
    .pancom-footer {
        text-align: center;
        padding-top: 3.25rem !important;
        padding-bottom: 1.75rem !important;
    }

    .pancom-footer-grid {
        gap: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .pancom-footer-brand,
    .pancom-footer-companies > div,
    .pancom-footer-shortcuts {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pancom-footer-logo {
        width: 100%;
        justify-content: center !important;
        margin-bottom: 1.25rem !important;
    }

    .pancom-footer-logo img {
        margin-inline: auto;
        height: 2.25rem !important;
    }

    .pancom-footer-desc {
        max-width: 23rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }

    .pancom-footer-social {
        width: 100%;
        justify-content: center !important;
        margin-top: 0 !important;
    }

    .pancom-footer-companies {
        width: 100%;
        gap: 2.75rem !important;
    }

    .pancom-footer-companies > div > h4,
    .pancom-footer-shortcuts > h4 {
        width: 100%;
        margin-bottom: 1.25rem !important;
        text-align: center !important;
    }

    /* Adres, kontakt i godziny - ikona nad treścią. */
    .pancom-footer-companies > div > div.flex.flex-col > div.flex.items-start {
        width: 100%;
        max-width: 23rem;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: .65rem !important;
        text-align: center !important;
    }

    .pancom-footer-companies > div > div.flex.flex-col > div.flex.items-start > div:first-child {
        width: 2.25rem !important;
        height: 2.25rem;
        margin-top: 0 !important;
        border-radius: .75rem;
        background: #eff6ff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pancom-footer-companies > div > div.flex.flex-col > div.flex.items-start > div.flex-1 {
        width: 100%;
        flex: none !important;
        text-align: center !important;
    }

    /* Telefon / mail / godziny: etykieta i wartość pod sobą. */
    .pancom-footer-companies .flex.justify-between.items-center {
        width: 100%;
        max-width: 20rem;
        margin-inline: auto;
        flex-direction: column !important;
        justify-content: center !important;
        gap: .2rem;
        padding: .45rem 0 .65rem !important;
        border-bottom-style: solid !important;
    }

    .pancom-footer-companies .flex.justify-between.items-center > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        text-align: center !important;
    }

    .pancom-footer-companies a[href^="tel:"],
    .pancom-footer-companies a[href^="mailto:"] {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .pancom-footer-companies h5 {
        text-align: center !important;
    }

    /* Blok awarii. */
    .pancom-footer-companies .border-red-500\/20 {
        max-width: 22rem;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .pancom-footer-companies .border-red-500\/20 > div {
        justify-content: center !important;
    }

    /* Na skróty. */
    .pancom-footer-shortcuts ul {
        width: 100%;
        align-items: center;
    }

    .pancom-footer-shortcuts li,
    .pancom-footer-shortcuts a {
        width: 100%;
        justify-content: center !important;
        text-align: center !important;
    }

    .pancom-footer-shortcuts a svg {
        display: none;
    }

    /* Copyright i linki prawne. */
    .pancom-footer-bottom {
        width: 100%;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
    }

    .pancom-footer-copy {
        max-width: 36rem !important;
        width: 100%;
        margin-inline: auto;
        text-align: center !important;
    }

    .pancom-footer-legal {
        width: 100%;
        justify-content: center !important;
        gap: .6rem 1.25rem !important;
    }

    .pancom-footer-legal li {
        text-align: center !important;
    }
}

/* Fill the desktop telecom submenu evenly; retain horizontal scrolling on mobile. */
@media (min-width: 1024px) {
    #tele-submenu-scroll { width: 100%; min-width: 0; }
    #tele-submenu-scroll > li { flex: 1 1 0; min-width: 0; }
    #tele-submenu-scroll .tele-nav-link { justify-content: center; white-space: nowrap; padding-left: .75rem; padding-right: .75rem; }
}

.pancom-page-content p{margin:0 0 1.25rem}.pancom-page-content h2,.pancom-page-content h3{font-weight:700;margin:1.5rem 0 .75rem}.pancom-page-content ul{list-style:disc;padding-left:1.5rem}.pancom-page-content ol{list-style:decimal;padding-left:1.5rem}.pancom-page-content a{color:#2563eb;text-decoration:underline}

/* Readable mobile branch map: markers correspond to the city list. */
.pancom-map-number, .pancom-map-cities { display: none; }
@media (max-width: 1023px) {
  #oddzialy .pancom-branches-map { display: block; }
  #oddzialy .pancom-map-canvas { margin-bottom: 24px; }
  #oddzialy .pancom-map-label, #oddzialy .pancom-map-dot,
  #oddzialy .pancom-map-hq > div > div, #oddzialy .pancom-map-key { display: none; }
  #oddzialy .pancom-map-number, .pancom-city-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
    background: #dc2626; color: #fff; border: 2px solid #fff;
    font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px #0f172a26;
  }
  #oddzialy .pancom-map-number-hq, .pancom-city-number-hq { background: #2563eb; }
  #oddzialy .pancom-map-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
  .pancom-map-cities li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; color: #1e293b; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
  .pancom-map-cities .pancom-map-city-hq { grid-column: 1 / -1; border-color: #bfdbfe; }
  .pancom-map-cities small { display: block; color: #2563eb; font-size: 12px; font-weight: 600; }
}

/* Map labels must not inherit global mobile word wrapping. */
#oddzialy .pancom-map-label {
  width: max-content; max-width: none; white-space: nowrap !important;
  overflow-wrap: normal; word-break: normal;
}
#oddzialy .pancom-map-node, #oddzialy .pancom-map-hq { overflow-wrap: normal; }
#oddzialy .pancom-map-cities li > span:last-child { min-width: 0; }

/* News listing: one article per row, ten articles per page. */
.pancom-news-list { display: flex; flex-direction: column; gap: 24px; }
.pancom-news-list .pancom-news-row { display: grid; grid-template-columns: minmax(0, 1fr); }
.pancom-news-row > a { aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
 .pancom-news-list .pancom-news-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
 .pancom-news-row > a { aspect-ratio: auto; min-height: 240px; }
 .pancom-news-row > a img { position: absolute; inset: 0; }
}

/* Internet offers: constrain grid tracks rather than clipping mobile content. */
#internet-swiatlowodowy .pancom-fiber-layout { grid-template-columns: minmax(0, 1fr); }
#internet-swiatlowodowy .grid > *,
#internet-bezprzewodowy .grid > * { min-width: 0; }
#internet-swiatlowodowy img { max-width: 100%; }
#internet-swiatlowodowy article .flex { flex-wrap: wrap; }
#internet-swiatlowodowy article .text-4xl { font-size: clamp(1.75rem, 3vw, 2.25rem); }
#internet-bezprzewodowy > div > div:first-child > span { display: block; overflow-wrap: break-word; }
@media (min-width: 1024px) {
 #internet-swiatlowodowy .pancom-fiber-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

#internet-swiatlowodowy h2, #internet-swiatlowodowy h3, #internet-bezprzewodowy h2, #internet-bezprzewodowy h3 { white-space: normal !important; overflow-wrap: break-word; }

/* Keep desktop labels together; switch to the compact menu before space runs out. */
#nav-container > div, #nav-container > a { min-width: 0; }
#nav-container .nav-link, #nav-container .btn-shine { white-space: nowrap; }
@media (min-width: 1440px) {
    #pancom-desktop-menu { flex-shrink: 1; }
    #nav-social-container { flex-shrink: 0; gap: .85rem; margin-right: 1rem; padding-right: 1rem; }
    #nav-social-container > * + * { margin-left: 0; }
}

/* Laptop hero: content remains visible at normal browser zoom. */
@media (min-width: 768px) and (max-width: 1439px) {
    main > section:first-child[class*="pt-32"] { padding-top: 7rem; padding-bottom: 5rem; }
    main > section:first-child h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.08; }
}

/* Full desktop navigation on laptops; compact spacing instead of a mobile menu. */
@media (min-width: 960px) and (max-width: 1439px) {
    #navbar > div { padding-left: 1.25rem; padding-right: 1.25rem; }
    #nav-container { gap: .5rem; }
    #nav-container > a { padding-right: .25rem; flex-shrink: 0; }
    #main-logo { height: auto; width: 155px; max-width: 155px; }
    #pancom-desktop-menu { flex: 1 1 auto; gap: 0; min-width: 0; }
    #pancom-desktop-menu > * + * { margin-left: 0; }
    #pancom-desktop-menu > div { padding-left: .45rem; padding-right: .45rem; margin-left: 0; flex-shrink: 0; }
    #pancom-desktop-menu > a { padding-left: .45rem; padding-right: .45rem; flex-shrink: 0; }
    #pancom-desktop-menu .nav-link { font-size: 13px; }
    #pancom-desktop-menu > div:last-child { padding-left: .6rem; }
    #pancom-desktop-menu > div:last-child > .nav-link { padding-left: .6rem; padding-right: .6rem; }
    #nav-container .btn-shine { padding-left: .8rem; padding-right: .8rem; font-size: 13px; }
    #nav-social-container { gap: .5rem; margin-right: .6rem; padding-right: .6rem; flex-shrink: 0; }
    #nav-social-container > * + * { margin-left: 0; }
    #nav-social-container .social-svg { width: 1rem; height: 1rem; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
    #main-logo { width: 170px; max-width: 170px; }
    #pancom-desktop-menu > a, #pancom-desktop-menu > div { padding-left: .55rem; padding-right: .55rem; }
}

@media (min-width: 960px) and (max-width: 1023px) {
#navbar > div { padding-left: 12px; padding-right: 12px; }
#main-logo { width: 140px; max-width: 140px; }
#nav-container { gap: .25rem; }
}

/* Align navigation with the logo rather than centering it in the free space. */
@media (min-width: 960px) {
    #pancom-desktop-menu { justify-content: flex-start; padding-left: .5rem; }
}

/* Keep the header balanced rather than leaving the menu and socials far apart. */
@media (min-width: 960px) {
    #nav-container { justify-content: center; gap: clamp(.5rem, 1.2vw, 1.25rem); }
    #pancom-desktop-menu { flex: 0 1 auto; padding-left: 0; }
    #nav-container > div:last-child { flex-shrink: 0; }
}
@media (min-width: 960px) and (max-width: 1439px) {
    #nav-container { height: 4rem; }
    #main-logo { width: 155px; max-width: 155px; }
    #pancom-desktop-menu > div > div.absolute { top: 100%; }
}
@media (min-width: 960px) and (max-width: 1023px) {
    #main-logo { width: 140px; max-width: 140px; }
}
/* Desktop hero scales down on laptops; overlapping grid slides keep enough room
   for the longest slide without clipping text or shifting the controls. */
@media (min-width: 1024px) and (max-width: 1439px) {
    #start { padding-top: 9rem; padding-bottom: 3rem; min-height: 0; }
    #start > .relative.z-10.max-w-7xl { height: auto; }
    #hero-carousel { display: grid; height: auto; padding-bottom: 5rem; }
    #hero-carousel > .carousel-slide { position: relative; inset: auto; grid-area: 1 / 1; }
    #hero-carousel .carousel-slide > .flex { gap: 2rem; }
    #hero-carousel .carousel-slide h1,
    #hero-carousel .carousel-slide h2 { font-size: clamp(2.25rem, 3.6vw, 3rem); line-height: 1.08; margin-bottom: 1rem; }
    #hero-carousel .carousel-slide > .flex > div:first-child > .inline-flex { margin-bottom: 1rem; font-size: 11px; padding: .5rem 1rem; }
    #hero-carousel .carousel-slide > .flex > div:first-child > p { font-size: 1rem; line-height: 1.5; margin-bottom: 1.5rem; }
    #hero-carousel .carousel-slide > .flex > div:first-child > div:last-child .btn-shine { font-size: .875rem; padding: .8rem 1.5rem; }
    #hero-carousel .carousel-slide > .flex > div:last-child > .relative { width: clamp(300px, 28vw, 375px); height: clamp(300px, 28vw, 375px); }
}

@media (min-width: 960px) and (max-width: 1439px) {
    #navbar { padding-top: .5rem !important; padding-bottom: .5rem !important; }
}

/* Show the first hero immediately instead of waiting for the entry fade. */
#start > .relative.z-10.max-w-7xl { opacity: 1; animation: none; }


/* Let mobile slide content determine height; controls occupy their own row. */
@media (max-width: 1023px) {
    #start > .relative.z-10.max-w-7xl { height: auto; }
    #hero-carousel { display: grid; height: auto; padding-bottom: 0; }
    #hero-carousel > .carousel-slide { position: relative; inset: auto; grid-area: 1 / 1; }
    #hero-controls { position: relative; inset: auto; margin-top: 2rem; }
}

/* Consistent mobile card edges in contact and the shared footer. */
@media (max-width: 767px) {
    #home-contact-cards { padding-left: 0; }
    #home-contact-cards > .absolute,
    #home-contact-cards > .group > .absolute { display: none; }
    #kontakt > .max-w-7xl > .grid { gap: 2rem; }
    #kontakt #home-contact-cards > .group > div:last-child { padding: 1.25rem; }
    .pancom-footer .pancom-footer-company-details {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 1fr;
        width: 100% !important;
        gap: 1rem;
    }
    .pancom-footer .pancom-footer-company {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        box-sizing: border-box;
        padding: 1.25rem !important;
        overflow-wrap: anywhere;
    }
    .pancom-footer .pancom-footer-company-address { margin-top: auto; padding-top: .85rem; }
}
@media (max-width: 767px) {
    .pancom-footer .pancom-footer-company-details { align-items: stretch !important; }
    .pancom-footer .pancom-footer-company { align-self: stretch; }
}

@media (max-width: 767px) {
    #home-contact-sms { text-align: center; }
    #home-contact-sms h4 { justify-content: center; }
}
