/* --- Ogólne Style --- */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #dee2e6;
    color: #212529;
    font-size: 16px; 
    line-height: 1.6; 
}

.container { 
    max-width: 900px;
    margin: 25px auto; 
    background-color: white;
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}
hr.section-divider {
    display: block; 
    height: 1px; 
    border: 0; 
    border-top: 1px solid #e9ecef;
    margin: 30px 0; 
    padding: 0; 
}
h1 { font-size: 2.3em; color: #343a40; margin-bottom: 0.7em; font-weight: 600;}
h2 { font-size: 1.9em; color: #495057; margin-top: 1.6em; margin-bottom: 0.8em; border-bottom: 1px solid #e9ecef; padding-bottom: 0.4em; font-weight: 500;}
h3 { font-size: 1.5em; color: #495057; margin-top: 1.2em; margin-bottom: 0.6em; font-weight: 500;}
h4 { font-size: 1.2em; color: #5a6268; margin-top: 1em; margin-bottom: 0.5em; font-weight: 500;}
h1 a, h2 a, h3 a, h4 a {
    color: inherit;
    text-decoration: none;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover {
    color: #007bff;
}

/* --- Nawigacja --- */
/* --- Nawigacja (WERSJA ALTERNATYWNA - STYL "PIGUŁKI") --- */
header { 
    background-color: #ffffff;
    padding: 15px 25px; /* ZMIANA: Dodano padding po bokach */
    text-align: left;   /* ZMIANA: Wyrównanie do lewej */
    border-bottom: 1px solid #dee2e6;
}

.header-logo {
    width: 300px;
    height: auto;
}

/* GŁÓWNY KONTENER NAWIGACJI */
nav { 
    background-color: #ffffff; 
    padding: 10px 25px;
    margin-bottom: 25px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* STYL LINKÓW W MENU */
nav .main-nav a { 
    margin: 0 5px; 
    color: #495057; 
    font-weight: 500; 
    font-size: 0.95em;
    padding: 8px 18px; /* Padding definiuje wielkość "pigułki" */
    border-radius: 6px; /* Zaokrąglone rogi */
    transition: all 0.2s ease-in-out; 
    text-decoration: none;
    border-bottom: none; /* Upewniamy się, że nie ma podkreślenia */
}

/* EFEKT PO NAJECHANIU MYSZKĄ */
nav .main-nav a:hover { 
    background-color: #e9ecef; /* Subtelne szare tło */
    color: #212529; /* Lekkie przyciemnienie tekstu */
}

/* STYL AKTYWNEGO LINKU (STRONA, NA KTÓREJ JESTEŚMY) */
nav .main-nav a.active {
    background-color: #007bff; /* Główne tło w kolorze niebieskim */
    color: #ffffff; /* Biały tekst dla kontrastu */
    font-weight: 500;
}

/* Linki logowania po prawej stronie */
.auth-links { 
    color: #6c757d; 
    font-size: 0.9em; 
}
.auth-links a { 
    color: #007bff; 
    margin-left: 12px; 
    font-weight: 500;
}
.auth-links a:hover { 
    color: #0056b3; 
}
.install-app-btn {
    margin-left: 12px;
    border: 1px solid #007bff;
    background: #007bff;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.install-app-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* --- Komunikaty Flash --- */
.flash { padding: 15px 20px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 5px; font-size: 1em;}
.flash.success { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.flash.error, .flash.danger { background-color: #f8d7da; color: #842029; border-color: #f5c2c7; }
.flash.info { background-color: #cff4fc; color: #055160; border-color: #b6effb; }
.flash.warning { background-color: #fff3cd; color: #664d03; border-color: #ffecb5; }

/* --- Tabele --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 25px; 
    font-size: 0.95em;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden; 
}
th, td { 
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px; 
    text-align: left; 
    vertical-align: middle; 
}
tr:last-child td {
    border-bottom: none;
}
th { 
    background-color: #f8f9fa;
    font-weight: 600; 
    color: #495057;
}
tr:nth-child(even) { 
    background-color: #fcfcfc;
}
tr:hover {
    background-color: #f1f3f5;
}

/* --- Formularze --- */
form p { margin-bottom: 18px; }
form label { font-weight: 500; display: block; margin-bottom: 6px; color: #495057;}
form input[type="text"], 
form input[type="password"],
form input[type="email"],
input.datetimepicker,
form input[type="number"], 
form textarea, 
form select {
    width: 100%; 
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
form input:focus, form textarea:focus, form select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
form input[type="checkbox"] { margin-right: 8px; vertical-align: middle; width: auto;}
form input[type="submit"], .btn {
    background-color: #007bff; color: white; padding: 12px 22px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; text-decoration: none; display: inline-block; text-align: center; font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}
form input[type="submit"]:hover, .btn:hover { background-color: #0056b3; }
.btn-primary { background-color: #007bff; } .btn-primary:hover { background-color: #0069d9; }
.btn-secondary { background-color: #6c757d; } .btn-secondary:hover { background-color: #5a6268; }
.btn-info { background-color: #17a2b8; } .btn-info:hover { background-color: #138496; }
.btn-warning { background-color: #ffc107; color: #212529; } .btn-warning:hover { background-color: #e0a800; }
.btn-danger { background-color: #dc3545; } .btn-danger:hover { background-color: #c82333; }
.btn-success { background-color: #28a745; } .btn-success:hover { background-color: #1e7e34; }
.btn-sm { padding: 6px 12px; font-size: 0.875em; }
.btn-outline-secondary { color: #6c757d; background-color: transparent; border-color: #6c757d; }
.btn-outline-secondary:hover { color: #fff; background-color: #6c757d; border-color: #6c757d; }

/* --- Menu Kafelkowe --- */
.tile-menu { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 20px; margin-bottom: 20px; }
.tile { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 5px; padding: 10px; text-align: center; width: calc(16.666% - 10px); min-width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #495057; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.tile.tile-disabled { background-color: #f8f9fa; color: #6c757d; cursor: not-allowed; border-color: #e9ecef; }
.tile.tile-disabled i { color: #6c757d !important; }
.tile:hover:not(.tile-disabled) { transform: translateY(-2px); box-shadow: 0 2px 5px rgba(0,0,0,0.08); border-color: #007bff; color: #0056b3; }
.tile i { font-size: 1.8em; margin-bottom: 8px; color: #007bff; transition: color 0.15s ease; }
.tile:hover:not(.tile-disabled) i { color: #0056b3; }
.tile span { font-size: 0.8em; font-weight: 500; line-height: 1.2; margin-top: auto; }
@media (max-width: 1200px) { .tile { width: calc(20% - 10px); height: 110px; min-width: 110px; } }
@media (max-width: 992px) { .tile { width: calc(25% - 10px); height: 110px; min-width: 100px; } .tile i { font-size: 1.7em; margin-bottom: 6px;} .tile span { font-size: 0.75em; } }
@media (max-width: 768px) { .tile { width: calc(33.333% - 10px); height: 100px; } }
@media (max-width: 576px) { .tile-menu { gap: 8px; } .tile { width: calc(50% - 8px); height: 90px; padding: 8px; } .tile i { font-size: 1.5em; margin-bottom: 5px;} .tile span { font-size: 0.7em; } nav { flex-direction: column; align-items: center; } nav .main-nav { margin-bottom: 10px; display: flex; flex-direction: column; align-items: center; } nav .auth-links { margin-top: 10px; } }

/* --- Inne Style --- */
.badge { display: inline-block; padding: .3em .6em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25rem; }
.badge-warning { color: #212529; background-color: #ffc107; }
.badge-success { color: #fff; background-color: #28a745; }
.badge-danger { color: #fff; background-color: #dc3545; }
.action-links a, .action-links input[type="submit"] { margin-right: 5px; margin-bottom: 5px; }

/* --- Style dla Komponentów (Karty, Statystyki) --- */
.content-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.content-card:last-child {
    margin-bottom: 0;
}
.competition-header-info { 
    text-align: center; 
    padding: 0;
}
.competition-header-info h1 { margin-bottom: 10px; font-size: 2.5em; color: #007bff; }
.competition-header-info p { margin-bottom: 8px; font-size: 1em; color: #495057; }
.competition-header-info p strong { color: #343a40; }

.stats-rankings-container, .stats-charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}
.stats-box { 
    background-color: #ffffff; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    padding: 20px; 
    flex: 1; 
    min-width: 280px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
    margin-bottom: 20px; 
}
.stats-box h3 { margin-top: 0; font-size: 1.4em; color: #343a40; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 15px; display: flex; align-items: center; }
.stats-box h3 i { font-size: 1.1em; margin-right: 12px; color: #007bff; }
.stats-box h4 { 
    margin-top: 0; 
    font-size: 1.25em; 
    font-weight: 600; 
    color: #343a40; 
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
}
.stats-box h4 i {
    font-size: 1.1em;
    margin-right: 10px;
    color: #6c757d;
}
.stats-box .ranking-list { list-style-type: none; padding: 0; margin: 0; flex-grow: 1; display: flex; flex-direction: column; }
.stats-box .ranking-list-item { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dotted #f0f0f0; font-size: 0.95em; }
.stats-box .ranking-list-item:last-child { border-bottom: none; }
.stats-box .ranking-list-item .team-info { display: flex; align-items: baseline; text-align: left; margin-right: auto; }
.stats-box .ranking-list-item .rank-position { font-weight: bold; color: #6c757d; margin-right: 10px; min-width: 25px; text-align: right; }
.stats-box .ranking-list-item .team-name { color: #212529; font-weight: 500; }
.stats-box .ranking-list-item .score { font-weight: bold; color: #007bff; white-space: nowrap; text-align: right; margin-left: 15px; }

.summary-cards-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 0; }
.summary-card { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; text-align: center; flex-grow: 1; min-width: 220px; box-shadow: 0 2px 5px rgba(0,0,0,0.07); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.summary-card i { font-size: 2.8em; color: #007bff; margin-bottom: 15px; }
.summary-card .summary-fish-img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 78px;
    margin: 0 auto 12px;
    object-fit: contain;
}
.summary-card .value { font-size: 2.2em; font-weight: 600; color: #343a40; margin-bottom: 5px; }
.summary-card .label { font-size: 1em; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 768px) { .summary-cards-container { flex-direction: column; align-items: stretch; } .summary-card { width: auto; margin-bottom: 15px; } .summary-card:last-child { margin-bottom: 0; } }

.species-summary-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; margin-top: 15px; }
.species-summary-item { background-color: #fff; border: 1px solid #e9ecef; border-radius: 6px; padding: 15px; text-align: center; flex-grow: 1; flex-basis: 200px; min-width: 180px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.species-summary-item .fish-icon { font-size: 2.2em; color: #5cb85c; margin-bottom: 10px; display: block; }
.species-summary-item .species-fish-img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: 110px;
    margin: 0 auto 8px;
    object-fit: contain;
}
.species-summary-item strong { display: block; font-size: 1.1em; color: #343a40; margin-bottom: 8px; }
.species-summary-item .no-data { color: #6c757d; font-style: italic; }

.tile-menu .tile.tile-pending-alert { background-color: #ffc107; color: #212529; }
.tile-menu .tile.tile-pending-alert:hover { background-color: #ffcd39; }
.tile-menu .tile .pending-badge { background-color: #dc3545; color: white; padding: 0.2em 0.45em; border-radius: 50%; font-size: 0.75em; font-weight: bold; margin-left: 6px; vertical-align: top; display: inline-block; line-height: 1; }

.chart-box { 
    position: relative; 
    height: 350px; 
    padding: 15px; 
    background-color: #fff; 
    border: 1px solid #e9ecef; 
    border-radius: 6px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.03); 
}
.stats-charts-container .chart-box { 
    flex-basis: calc(50% - 10px); 
}
@media (max-width: 992px) { 
    .stats-charts-container .chart-box { flex-basis: 100%; } 
}

/* --- Style dla Galerii --- */
.highlight-gallery { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 20px; }
.highlight-card { background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; text-align: center; width: 300px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.highlight-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.highlight-card img { width: 100%; height: 220px; object-fit: cover; }
.highlight-card .photo-placeholder { width: 100%; height: 220px; background-color: #e9ecef; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6c757d; }
.photo-placeholder i { font-size: 3em; margin-bottom: 10px; }
.highlight-caption { padding: 15px; }
.highlight-caption h5 { margin-top: 0; margin-bottom: 10px; color: #007bff; }
.highlight-caption p { margin: 0; font-size: 0.9em; }
.team-gallery-section { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.team-gallery-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.gallery-item { border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: transform 0.2s ease; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.gallery-item-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.6); color: white; padding: 8px; text-align: center; font-size: 0.85em; opacity: 0; transition: opacity 0.2s ease; }
.gallery-item:hover .gallery-item-caption { opacity: 1; }
.gallery-item-caption p { margin: 0; padding: 0; }

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-lightbox img {
    max-width: min(95vw, 1300px);
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

.gallery-lightbox-caption {
    margin-top: 12px;
    margin-bottom: 0;
    color: #fff;
    text-align: center;
    font-size: 0.95em;
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* --- Style dla Karty Sędziego (PDF) --- */
.judge-card { page-break-before: always; }
.judge-card:first-child { page-break-before: auto; }
.judge-card-header { text-align: left; border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 15px; }
.judge-card-header h3 { font-size: 16pt; margin: 0; color: #34495e; }
.judge-card-header p { font-size: 11pt; margin: 5px 0 0 0; color: #555; }
.judge-entry-table th { background-color: #e9ecef; font-size: 11pt; }
.judge-entry-table td { height: 35px; padding: 5px 10px; font-size: 12pt; }


/* --- Style dla Listy Zawodów (index.html) --- */

.competition-list-container {
    display: grid;
    /* Automatycznie dopasowuje liczbę kolumn do szerokości ekranu */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.competition-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.competition-card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.competition-card-header h3 {
    margin: 0;
    font-size: 1.4em;
}

/* Ta reguła zapewnia, że link jest od razu widoczny */
.competition-card-header h3 a {
    text-decoration: none;
    color: #343a40;
    transition: color 0.2s ease;
}

.competition-card-header h3 a:hover {
    color: #007bff;
}

.competition-card-body {
    padding: 20px;
    flex-grow: 1; /* Sprawia, że ta sekcja wypełnia dostępną przestrzeń */
}

.competition-card-details {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #555;
}

.competition-card-details li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.competition-card-details i {
    color: #007bff;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.competition-card-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.status-live { background-color: #28a745; } /* Zielony */
.status-upcoming { background-color: #17a2b8; } /* Niebieski/Info */
.status-finished { background-color: #6c757d; } /* Szary */


/* ### NOWE STYLE DLA KART ZAWODÓW (index.html) ### */
.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.competition-card-v2 {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
    display: flex;
    flex-direction: column;
    height: 250px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competition-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.competition-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: auto;
}

.card-title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.card-location {
    font-size: 1em;
    margin: 0;
    opacity: 0.9;
}
.card-location i {
    margin-right: 5px;
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-live { background-color: #28a745; }
.status-upcoming { background-color: #17a2b8; }
.status-finished { background-color: #6c757d; }

/* ### NOWE STYLE DLA DAT NA KARTACH ZAWODÓW ### */

.card-dates {
    font-size: 0.9em;
    margin-top: 10px; /* Odstęp od lokalizacji */
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.card-dates i {
    margin-right: 8px; /* Odstęp ikony od tekstu */
}

/* Nowe style dla responsywnej nawigacji */
.mobile-nav {
    display: none; /* Domyślnie ukryte */
    width: 100%;
}

/* Style dla ekranów o szerokości do 768px (tablety i telefony) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
    }

    .main-nav {
        display: none !important;/* Ukryj standardowe menu na małych ekranach */
    }

    .mobile-nav {
        display: grid; /* Pokaż menu kafelkowe */
        grid-template-columns: 1fr 1fr; /* Dwie kolumny */
        gap: 10px;
        margin-bottom: 15px;
    }

    .mobile-nav .tile {
        width: 100%;
        height: 80px;
        background-color: #f8f9fa;
        color: #495057;
        border: 1px solid #dee2e6;
    }
    
    .mobile-nav .tile:hover {
        background-color: #e9ecef;
        border-color: #007bff;
    }

    .auth-links {
        text-align: center;
    }
    .install-app-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

.weigh-quick-actions {
    display: flex;
    gap: 10px;
    margin: 12px 0 18px;
    flex-wrap: wrap;
}
.weigh-quick-actions .btn {
    flex: 1 1 180px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.weigh-form__comp {
    margin-top: -6px;
    color: #6c757d;
}
.weigh-form__more {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    background: #fafbfc;
}
.weigh-form__more summary {
    cursor: pointer;
    font-weight: 600;
}
.weigh-submit-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 0 4px;
    border-top: 1px solid #e9ecef;
    z-index: 5;
}
@media (max-width: 768px) {
    .weigh-quick-actions {
        position: sticky;
        top: 0;
        z-index: 12;
        background: #fff;
        padding: 8px 0;
        margin-top: 0;
    }
    .competition-header-info {
        margin-bottom: 8px;
    }
    .weigh-form h1 {
        font-size: 1.45rem;
    }
    .weigh-form .form-select-lg,
    .weigh-form .form-control-lg {
        min-height: 48px;
        font-size: 1.05rem;
    }
}

/* === Landing: strona główna dla organizatorów === */
body.landing-page {
    --landing-blue: #0b6bcb;
    --landing-blue-deep: #074a8c;
    --landing-orange: #e85d04;
    --landing-ink: #15202b;
    --landing-muted: #4a5a68;
    --landing-sand: #eef3f7;
    --landing-white: #ffffff;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(11, 107, 203, 0.12), transparent 60%),
        radial-gradient(900px 420px at 100% 20%, rgba(232, 93, 4, 0.08), transparent 55%),
        linear-gradient(180deg, #dbe5ee 0%, #e8eef3 40%, #dee2e6 100%);
    color: var(--landing-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

body.landing-page nav {
    margin-bottom: 0;
}

body.landing-page .container.landing-shell {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

body.landing-page .container.landing-shell > .flash {
    max-width: 1100px;
    margin: 16px auto;
    padding-left: 20px;
    padding-right: 20px;
}

.landing-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--landing-white);
}

.landing-hero__media {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: 70% center;
    transform: scale(1.05);
    animation: landing-hero-zoom 18s ease-out forwards;
}

.landing-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 28, 48, 0.78) 0%, rgba(7, 28, 48, 0.45) 48%, rgba(7, 28, 48, 0.25) 100%),
        linear-gradient(180deg, rgba(7, 28, 48, 0.15) 0%, rgba(7, 28, 48, 0.72) 100%);
}

.landing-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 72px 24px 64px;
}

.landing-hero__brand {
    margin: 0 0 14px;
    font-family: "Sora", "Source Sans 3", sans-serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.landing-hero__title {
    margin: 0 0 16px;
    max-width: 16ch;
    font-family: "Sora", "Source Sans 3", sans-serif;
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    border: none;
    padding: 0;
}

.landing-hero__lead {
    margin: 0 0 28px;
    max-width: 38rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: "Sora", "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.landing-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.landing-btn--primary {
    background: var(--landing-orange);
    color: #fff;
    border-color: var(--landing-orange);
}

.landing-btn--primary:hover {
    background: #d45100;
    border-color: #d45100;
    color: #fff;
}

.landing-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.landing-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.landing-btn--block {
    width: 100%;
}

.landing-section {
    padding: 72px 0;
}

.landing-kicker {
    margin: 0 0 8px;
    font-family: "Sora", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-orange);
}

.landing-heading {
    margin: 0 0 12px;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--landing-ink);
    border: none;
    padding: 0;
}

.landing-intro {
    margin: 0 0 36px;
    max-width: 40rem;
    font-size: 1.1rem;
    color: var(--landing-muted);
}

.landing-benefits {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.landing-benefits__list {
    display: grid;
    gap: 28px 40px;
}

@media (min-width: 800px) {
    .landing-benefits__list {
        grid-template-columns: 1fr 1fr;
    }
}

.landing-benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.landing-benefit__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(11, 107, 203, 0.1);
    color: var(--landing-blue);
    font-size: 1.2rem;
}

.landing-benefit h3 {
    margin: 0 0 6px;
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--landing-ink);
}

.landing-benefit p {
    margin: 0;
    color: var(--landing-muted);
    line-height: 1.5;
}

.landing-audience {
    background:
        linear-gradient(135deg, rgba(11, 107, 203, 0.08), rgba(232, 93, 4, 0.06)),
        #f4f7fa;
}

.landing-audience__grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 768px) {
    .landing-audience__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
}

.landing-audience__item h3 {
    margin: 0 0 8px;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
    color: var(--landing-blue-deep);
    border: none;
    padding: 0;
}

.landing-audience__item p {
    margin: 0;
    color: var(--landing-muted);
}

.landing-competitions .competition-grid {
    margin-top: 8px;
}

.landing-comp-block {
    margin-top: 40px;
    scroll-margin-top: 24px;
}

.landing-comp-block:first-of-type {
    margin-top: 28px;
}

.landing-subheading {
    margin: 0 0 18px;
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--landing-blue-deep);
    border: none;
    padding: 0;
}

#zawody {
    scroll-margin-top: 16px;
}

.landing-empty {
    color: var(--landing-muted);
}

.landing-contact {
    background:
        linear-gradient(180deg, #0b3d6e 0%, #074a8c 55%, #0b6bcb 100%);
    color: #fff;
}

.landing-contact .landing-kicker {
    color: #ffb703;
}

.landing-contact .landing-heading,
.landing-contact .landing-intro {
    color: #fff;
}

.landing-contact .landing-intro {
    opacity: 0.9;
}

.landing-contact__grid {
    display: grid;
    gap: 36px;
}

@media (min-width: 900px) {
    .landing-contact__grid {
        grid-template-columns: 1fr 1.05fr;
        align-items: start;
        gap: 56px;
    }
}

.landing-contact__mail {
    margin: 18px 0 0;
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.landing-contact__mail a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.landing-contact__mail a:hover {
    color: #ffb703;
}

.landing-contact__form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.landing-field {
    display: grid;
    gap: 6px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.landing-field em {
    font-style: normal;
    opacity: 0.7;
    font-weight: 400;
}

.landing-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--landing-ink);
    font: inherit;
}

.landing-input:focus {
    outline: 2px solid #ffb703;
    outline-offset: 1px;
    border-color: transparent;
}

.landing-input--area {
    resize: vertical;
    min-height: 120px;
}

.landing-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes landing-hero-zoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: min(78vh, 640px);
        align-items: flex-end;
    }
    .landing-hero__inner {
        padding: 56px 20px 40px;
    }
    .landing-hero__title {
        max-width: none;
    }
    .landing-hero__cta .landing-btn {
        flex: 1 1 100%;
    }
    .landing-section {
        padding: 52px 0;
    }
    .landing-contact__form {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__media {
        animation: none;
        transform: none;
    }
    .landing-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .landing-btn:hover {
        transform: none;
    }
}

/* === Instrukcja obsługi === */
.guide-lead {
    font-size: 1.1rem;
    color: #495057;
    max-width: 42rem;
}
.guide-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 28px;
}
.guide-toc a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background: #e9f2fb;
    color: #0b6bcb;
    font-weight: 600;
    text-decoration: none;
}
.guide-toc a:hover {
    background: #d6e8f8;
    text-decoration: none;
}
.guide-section {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}
.guide-section h2 {
    border-bottom: none;
    margin-top: 0.4em;
}
.guide-note {
    background: #fff8e6;
    border-left: 4px solid #e85d04;
    padding: 10px 14px;
    border-radius: 4px;
    color: #5a4500;
}
.guide-footer {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#role, #konfiguracja, #prowadzenie, #dokumenty, #wskazowki {
    scroll-margin-top: 20px;
}
