/* body { border: 10px solid red !important; } */

/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

body {
    font-family: system-ui, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   HEADER + TOPBAR + MENU
========================================================= */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 40px;
    width: auto;
}

.brand-text strong {
    display: block;
    font-size: 18px;
    color: #000;
}

.media-mark {
    font-size: 14px;
    color: #555;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    color: #222;
    font-weight: 600;
    font-size: 18px;
}

.logo img {
    height: 36px;
    width: auto;
    margin-right: 10px;
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
}

.main-nav a {
    color: #000;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
}

.main-nav a.active {
    border-bottom-color: #1d4ed8;
    color: #1d4ed8;
    font-weight: 600;
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
        margin-top: 0.6rem;
    }
    .main-nav a {
        padding: 0.5rem 0.4rem;
        width: 100%;
        white-space: normal;
    }
}

/* =========================================================
   HERO
========================================================= */

.hero {
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
    padding: 80px 0 70px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    background: #1d4ed8;
    color: #ffffff;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
}

.hero-btn:hover {
    background: #1e40af;
}

.hero-btn.secondary {
    background: #f97316;
}

.hero-btn.secondary:hover {
    background: #ea580c;
}

/* =========================================================
   HOME CARDS
========================================================= */

.home-cards {
    padding: 60px 0;
    background: #ffffff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    transition: 0.25s;
}

.card:hover {
    border-color: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.card .icon {
    margin-bottom: 14px;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.card .icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.6;
    flex-shrink: 0;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #0f172a;
}

.card p {
    color: #555;
}

/* =========================================================
   O AZL
========================================================= */

.oazl-section {
    background: #f9fafb;
    padding: 70px 0;
}

.oazl-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0f172a;
}

.oazl-section p {
    max-width: 760px;
    margin-bottom: 28px;
    color: #4b5563;
}

.oazl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.oazl-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 22px;
    transition: 0.25s;
}

.oazl-box:hover {
    border-color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.oazl-box .icon {
    margin-bottom: 14px;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.oazl-box .icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.6;
    flex-shrink: 0;
}

.oazl-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0f172a;
}

.oazl-box p {
    color: #555;
}

/* =========================================================
   KONTAKT
========================================================= */

.contact-section {
    background: #ffffff;
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.contact-box {
    background: #f9fafb;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    transition: 0.25s;
}

.contact-box:hover {
    border-color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.contact-box .icon {
    margin-bottom: 14px;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.contact-box .icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.6;
    flex-shrink: 0;
}

.contact-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0f172a;
}

.contact-box p {
    color: #4b5563;
    margin-bottom: 8px;
}

.contact-box a {
    color: #1d4ed8;
    font-weight: 500;
}

/* PHOTO BOX */
.photo-box {
    text-align: center;
}

.photo-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.photo-box .icon {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

/* MEDIA CONTACT */
.media-contact {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.media-contact img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.media-contact h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #0f172a;
}

.media-contact p {
    margin-bottom: 6px;
    color: #4b5563;
}

.media-contact a {
    color: #1d4ed8;
    font-weight: 500;
}

/* =========================================================
   KOMUNIKATY – LISTA
========================================================= */

.press-section {
    padding: 60px 0;
}

.press-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.press-item {
    display: block;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.press-item:hover {
    border-color: #1d4ed8;
    background: #f8faff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.press-item h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #0f172a;
}

.press-item p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.55;
}

.press-item .date {
    font-size: 0.9rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .press-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   POJEDYNCZY KOMUNIKAT
========================================================= */

.press-article {
    padding: 60px 0;
    background: #ffffff;
}

.press-date {
    display: block;
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 25px;
}

.press-article p {
    max-width: 800px;
    margin-bottom: 20px;
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.65;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #1d4ed8;
    font-weight: 600;
    transition: 0.2s;
}

.back-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.page-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 500;
    transition: 0.2s;
}

.page-btn:hover {
    background: #1e40af;
}

/* =========================================================
   STOPKA
========================================================= */

.footer {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* =========================================================
   GLOBAL IMAGES
========================================================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

/* =========================================================
   DODAJ MEDIA
========================================================= */    
.hero-add-media {
    margin-top: 50px; /* większy odstęp od guzików wyżej */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

/* czerwony przycisk */
.hero-btn.accent {
    background-color: #e60000;
    color: #fff;
}

.hero-btn.accent:hover {
    background-color: #cc0000;
}

/* efekt lekkiego nachodzenia na tekst */
.hero-btn.overlap {
    margin-top: -5px; /* delikatne wejście na tekst powyżej */
    padding: 12px 26px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* =========================================================
   KRONIKA
========================================================= */  
.upload-box {
    background: var(--card-bg, #fff);
    padding: 40px 45px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 460px;
    margin: 50px auto;
}

.upload-logo {
    max-width: 150px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.upload-input {
    margin: 14px 0;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: #fafafa;
    transition: 0.2s;
}

.upload-input:focus {
    border-color: #e60000;
    background: #fff;
    outline: none;
}

.upload-btn {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: 0.2s;
    width: 100%;
    margin-top: 10px;
}

.upload-btn:hover {
    background: #c00000;
}

.upload-msg {
    margin-top: 18px;
    font-size: 15px;
    color: #444;
}

.upload-regulamin {
    background: #f0f4ff;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #005bbb;
    margin-top: 25px;
    transition: 0.2s;
}

.upload-regulamin:hover {
    background: #e0ecff;
    color: #003f8a;
}

/* =========================================================
   HERO KRONIKA
========================================================= */

.hero-kronika {
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
    padding: 70px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero-kronika .hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero-kronika h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero-kronika .hero-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0;
}

/* =========================================================
   HERO – DLA MEDIÓW
========================================================= */

.hero-media {
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    padding: 80px 0 70px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero-media .hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero-media h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero-media .hero-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
}

/* =========================================================
   MEDIA – KAFELKI KATALOGÓW
========================================================= */

.media-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-card:hover {
    border-color: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.media-card .icon {
    margin-bottom: 14px;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.media-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #0f172a;
}

.media-card p {
    color: #555;
    margin-bottom: 18px;
}

.media-card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-catalogs {
    padding: 60px 0;
}

.media-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Równa wysokość kart (idealna siatka */
.media-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Delikatna animacja hover (premium, subtelna) */
.media-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Tooltip z pełną nazwą pliku */
.media-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    position: relative;
}

.file-name:hover {
    white-space: normal;
    overflow: visible;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
}

/* .media-card h3:hover {
    overflow: visible;
    white-space: normal;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
}*/

/* Lepsze odstępy między sekcjami */
.container h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.container hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* Ikony dokumentów i wideo - bardziej eleganckie */
.media-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.85;
}

/* Lepsze przyciski (bardziej miękkie) */ 
.hero-btn {
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

/* Breadcrumbs - delikatne, premium */
.breadcrumbs {
    background: #f9fafb;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs span {
    color: #6b7280;
}

/* Opcjonalnie - Premium przycisków (ładniejsze) */
.hero-btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.hero-btn.secondary:hover {
    background: #d1d5db;
}

.hero-btn {
    display: inline-block;
    margin-right: 10px;
}