/* ===========================
   FONTY
=========================== */
@font-face {
    font-family: 'varela';
    src: url('varela.otf'),
         url('varela.eot') format('eot'),
         url('varela.woff') format('woff'),
         url('varela.ttf') format('truetype');
}

/* Reset */
* { padding: 0; margin: 0; }

html { width: 100%; height: 100%; }

body {
    font-family: 'Varela Round', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #000;
    margin-top: 15px;
    background: #fff;
}




/* ===========================
   LINKI
=========================== */
a { text-decoration: none; font-weight: normal; }
a:link, a:visited, a:hover { text-decoration: none; }






/* ===========================
   GLOWNA STRONA
=========================== */
.stronaglowna {
    text-align: left;
    font-size: 15px;
    font-weight: 900;
    color: black;
}

.stronaglowna a {
    font-size: 15px;
    color: black;
    font-weight: 900;
}






/* ===========================
   KONTENER STRONY
=========================== */
.kontener {
    width: 95%;
    max-width: 1250px;
    margin: 0 auto;
}







/* ===========================
   BLOK – NAZWA / OPIS
=========================== */
#nazwa {
    background: linear-gradient(135deg, #f8f9fb 0%, #eef2f7 100%);
    color: #222;
    padding-top: 10px;
	padding-bottom: 15px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 16px;
    line-height: 1.7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.0s ease, box-shadow 0.0s ease;
}




.nazwa1 {
    font-size: 1.2em;
    font-weight: 600;
    color: #0077b6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

#nazwa span.nazwa-lokomotywy {
    display: block;
    font-size: 1.3em;
    font-weight: 800;
    color: #0b2545;    
    line-height: 1.2;
}

.ccc {
    font-size: 0.95em;
    line-height: 1.4;
    color: red;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 10px;
    border-left: 4px solid #0096c7;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 900;
}

.opis {
    font-size: 0.9em;
    color: black;
}

.opisserii {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 8px;
    color: black;
    line-height: 1.4;
    font-size: 1.1em;
    font-family: 'Varela Round', sans-serif;
}

.opisserii a {
    color: black;
    font-size: 14px;
}

.ilelokomotyw {
    color: red;
    padding-top: 10px;
	font-weight: 900;
}

.ilelokomotyw-podsumowanie {
    color: red;
    padding-top: 10px;
	font-weight: 900;
}







/* ===========================
   DWIE KOLUMNY
=========================== */
.dwukolumny {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Lewa kolumna */
.kolumna-lewa {
    flex: 0 0 20%;
    max-width: 20%;
    position: sticky;
    top: 15px;
    align-self: flex-start;
}


@media (max-width: 1100px) {

    .kolumna-lewa {
        position: static;
        top: auto;
    }

}



/* Prawa kolumna – poprawione (bez centrowania) */
.kolumna-prawa {
    flex: 0 0 78%;
    max-width: 78%;
    text-align: left;
}

/* Alternatywna prawa kolumna */
.kolumna-prawa2 {
    flex: 0 0 58%;
    max-width: 70%;
}

/* Responsywność */
@media (max-width: 850px) {
    .kolumna-lewa,
    .kolumna-prawa {
        flex: 0 0 100%;
        max-width: 100%;
    }
}









/* ===========================
   GALERIA
=========================== */

/* Styl z <style> — FLEX */
.gallery {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}



/* Pojedynczy element galerii */
.tpo {
    display: flex;
    flex-direction: column;
    align-items: center;

    border: 0 solid black;
    text-align: center;
    font-family: "Bahnschrift", sans-serif;
    background: #fff;
    padding: 1px;
    border-radius: 8px;
    transition: transform 0.0s ease, box-shadow 0.0s ease;
}

.tpo-title {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;

    /* z ogólnego CSS */
    font-size: 16px;
    font-family: 'Varela Round', sans-serif;
    font-weight: 900;
    color: #111;
    margin-top: 2px;
}



.tpo2dlaezt {
    display: flex;
    flex-direction: column;
    align-items: center;

    border: 0 solid black;
    text-align: center;
    font-family: "Bahnschrift", sans-serif;
    background: #fff;
    padding: 1px;
    border-radius: 8px;
    transition: transform 0.0s ease, box-shadow 0.0s ease;
}

.tpo-title2dlaezt {
    
    font-weight: bold;
    text-align: center;

    /* z ogólnego CSS */
    font-size: 16px;
    font-family: 'Varela Round', sans-serif;
    font-weight: 900;
    color: #111;
    margin-top: 2px;
    margin-bottom: 1px; 
}



.tpo2dlaezt a {
    display: block;
    margin-top: 0;
}




/* Miniatury */
.thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.0s ease, opacity 0.0s ease;
}


.thumbnail2 {
    width: 153px;
    height: 110px;
    border-radius: 6px;
    transition: transform 0.0s ease, opacity 0.0s ease;
}






/* specjalny thumbnail3 stworzony do ewentualnych zmniejszonych obrazków
z numerem lokomotywy w środku */

.thumb-wrap {
    position: relative;
    display: inline-block;
}


.thumb-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 30px;
    font-weight: 900;
    color: white; /* kolor */

    text-shadow: 
        1px 1px 2px #000,
        -1px -1px 2px #000;

    pointer-events: none;
    user-select: none;
}


.thumbnail3 {
    width: 153px;
    height: 110px;
    display: block;
    border-radius: 6px;
}








/* ===== MOBILE: 3 kolumny galerii ===== */
@media (max-width: 500px) {

    .gallery-napiswsrodku {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; /* odstęp między miniaturami – możesz zmienić */
    }

    /* wrapper linku */
    .thumb-wrap {
        display: block;
        position: relative;
        width: 100%;
    }

    /* obrazek */
    .thumbnail3 {
        width: 100%;
        height: auto;
        display: block;
    }

    /* numer lokomotywy */
    .thumb-number {
        position: absolute;
        bottom: 4px;
        right: 4px;
        font-size: 25px;
        padding: 2px 5px;
    }
}










/* ===========================
   PRAWA KOLUMNA POD LEWĄ
   (tylko na wybranych stronach)
=========================== */

.kolumna-prawa-pod {
    flex: 0 0 100%;
    max-width: 100%;

    width: 1000px;
    margin-top: 7px;

    text-align: left;
}

/* responsywność */
@media (max-width: 500px) {
    .kolumna-prawa-pod {
        width: 100%;
    }
}












/* ===========================
   PRZYCISKI – WSTECZ / GLOWNA
=========================== */
.wstecziglowna {
    text-align: left;
    margin: 10px 0 0 30px;
	font-family: 'Varela Round', sans-serif;
	font-size: 14px;
	font-weight: 800;
}

.icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid #3b4b5c;
    background: rgba(20, 30, 50, 0.35);
    color: navy;
    margin: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.icon-button:hover {
    border-color: #8fb9ff;
    color: navy;
    background: rgba(40, 60, 90, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(120, 170, 255, 0.4);
}

.icon-button svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}








/* ===========================
   BANERY / LINKI
=========================== */
.baner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 157px;
    height: 27px;
    background-color: #f8f8f8;
    border: 2px solid #333;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.0s ease;
}

.baner-link:hover {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.baner-link i { color: #333; }

.baner-link2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 80px;
    height: 20px;
    background-color: #f8f8f8;
    border: 0px solid #333;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

.baner-link2:hover { background-color: #e0e0e0; }
.baner-link2 i { color: #333; }






/* ===========================
   INNE
=========================== */
#podsumowanie {
    font-family: 'Varela Round', sans-serif;
    line-height: 1.5;
    font-size: 0.9em;
    color: black;
}




/* ===========================
   span'y
=========================== */

#podsumowanie span {
  color: #ff2400;
}
  
  
  
   
  
  
  
  
  
  .kontenerfoto {
    display: flex;
    flex-wrap: wrap;
    line-height: 0.5;
    column-gap: 3px;
    row-gap: 30px;
    position: relative;
    padding-left: 0px;

    /* ➤ DODANE – odstępy na separator */
    margin: 0px 0; /* 5px nad + 5px pod */
}








/* ➤ DODANE — brak linii pod ostatnim kontenerem */
.kontenerfoto:last-of-type::after {
    display: none;
}

/* ➤ DODANE — pierwszy kontener bez górnego marginesu */
.kontenerfoto:first-of-type {
    margin-top: 0;
}

/* TELEFON — powrót do starego układu */
@media (max-width: 500px) {
    .kontenerfoto {
        padding-left: 0;
        position: static;
    }
}

/* ---------------- INFObelka ---------------- */

.infobelka {
    width: 500px;
    height: 19px;
    margin-top: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: white; 
    padding: 5px 10px;
    border-radius: 6px;
    border: 0px solid blue; 
    
}

.infobelka .numerlokomotywy {
    color: #0004a7;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.infobelka .producent {
    color: #ff0c00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

@media (max-width: 550px) {
    .infobelka {
        width: 400px;
    }
}





.ex-lokomotywy {
  color: #6600a7;
  font-weight: 600;
  font-size: 13px;
}







/* ---------------- train-button (zdjecia) ---------------- */

.train-button {
    background-color: #ffffff;
    color: #222;
    font-size: 12px;
    font-weight: 100;
    padding: 0px;
    border: 0px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.5s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.0);
    display: flex;
    flex-direction: column;
    width: 163px;
    text-align: center;
}

.train-button:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ccc;
}

.train-button img {
    width: 160px;
    height: 117px;
    border-radius: 5px;
    padding-left: 0px;
    margin: 0px 0;
}

/* opisy nad i pod */

.fotodata {
    text-align: center;
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 7px;
}

.lokoopis1 {
    line-height: 1.0;
    font-weight: 900;
    font-size: 11px;
    color: #000000;
    margin: 4px 0px 0px 0px;
    text-align: center;
}

.lokoopis2 {
    line-height: 1.3;
    font-weight: 100;
    color: #000000;
    font-size: 10px;
    margin: 3px 0px 0px 0px;
	letter-spacing: 0px;
    text-align: center;
}
  
  


  
  
  
  
  
  
  /* ===========================
   MENU KATEGORII
=========================== */

.menu-serie {
margin-top: 5px;
padding: 1px;    
background: white;
}



.menu-serie a {
display: inline-block;
padding: 0px 20px;    
color: #000000;
font-size: 10px;
font-weight: 100;
}

.menu-serie a:hover {
color: #000000;
}



/* Ukrycie menu kategorii na telefonach */

@media (max-width: 900px) {

.menu-serie {
display: none;
}
}







.dll1 {
    font-family: 'Varela Round', sans-serif;
    font-size: 0.7em;
    font-weight: 100;
    color: purple;

    
    margin-bottom: 2px;   /* 2px nad obrazkiem */
    line-height: 1;
	letter-spacing: 1px;
}







  /* ===========================
   MENU KATEGORII
=========================== */

.menu-serie {
margin-top: 5px;
padding: 1px;    
background: white;
}



.menu-serie a {
display: inline-block;
padding: 0px 20px;    
color: #000000;
font-size: 11px;
font-weight: 900;
}

.menu-serie a:hover {
color: #000000;
}



/* Ukrycie menu kategorii na telefonach */

@media (max-width: 900px) {

.menu-serie {
display: none;
}
}






