/* WERSJA MOBILNA - WINNICA GOLESZ */

#menu-mobilne {
    display: none;
}

@media screen and (max-width: 1000px) {

    body {
        width: auto;
        margin: 0;
        font-size: 16px;
    }

    #main {
        min-height: 0;
    }

    /* Ukrycie elementow wersji komputerowej */

    #main > a.naglowek-graficzny,
    #menu,
    #aktual,
    #roman,
    #paw {
        display: none;
    }

    /* Naglowek i menu mobilne */

    #menu-mobilne {
        display: block;
        padding: 12px;
        background: linear-gradient(135deg, #244522, #648044);
    }

    #menu-mobilne .nazwa-mobilna {
        display: block;
        text-align: center;
        color: #ffffcc;
        font-size: 28px;
        font-weight: bold;
        padding: 10px 0 18px;
    }

    .menu-glowne-mobilne,
    .menu-dodatkowe-mobilne {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #menu-mobilne .menu-glowne-mobilne a,
    #menu-mobilne .menu-dodatkowe-mobilne a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 5px;
        min-height: 44px;
        box-sizing: border-box;
        background: #ffffcc;
        color: #006600;
        font-size: 14px;
        font-weight: bold;
        border-radius: 4px;
    }

    #menu-mobilne details {
        margin-top: 10px;
        color: #ffffcc;
    }

    #menu-mobilne summary {
        cursor: pointer;
        padding: 12px;
        border: 1px solid #ffffcc;
        border-radius: 4px;
        font-weight: bold;
    }

    .menu-dodatkowe-mobilne {
        margin-top: 8px;
    }

    /* Glowna tresc */

    #tresc {
        width: auto;
        max-width: 630px;
        margin: 0 auto;
        padding: 18px 14px;
        line-height: 1.6;
        overflow-wrap: break-word;
    }

    #tresc h1 {
        padding-left: 0;
        font-size: 22px;
        line-height: 1.3;
        margin: 0 0 16px;
    }

    #tresc h1 + br,
    #tresc h1 + br + br {
        display: none;
    }

    #tresc h2 {
        font-size: 19px;
    }

    #tresc h3 {
        font-size: 17px;
    }

    #tresc img {
        max-width: 100%;
        height: auto;
    }

    #tresc img[width="190"] {
        max-width: 46%;
    }

    #tresc img[width="85"] {
        max-width: 28%;
    }

    #tresc .aktualnosci-tresc {
        padding: 12px;
    }

    #zobacz {
        margin-left: 0;
    }

    /* Tabele */

    .tabela-oferta,
    .tabela-win,
    .tabela-nagrod {
        width: 100%;
    }

    .tabela-oferta th,
    .tabela-oferta td,
    .tabela-win th,
    .tabela-win td,
    .tabela-nagrod th,
    .tabela-nagrod td {
        padding: 8px 4px;
        font-size: 12px;
        line-height: 1.4;
    }

    .tabela-cennik tbody td,
    .tabela-win tbody td:last-child {
        font-size: 14px;
    }

    .tabela-odmiany th:first-child {
        width: 30%;
    }

    .odmiana-nazwa {
        white-space: normal;
    }

    /* Stopka */

    #stopka {
        text-align: center;
        padding: 12px;
    }
}

/* Tabele odmian na malych ekranach */

@media screen and (max-width: 600px) {

    .tabela-odmiany th,
    .tabela-odmiany td {
        font-size: 11px;
        padding: 7px 3px;
    }

    .tabela-odmiany thead th {
        overflow-wrap: anywhere;
    }

    .tabela-odmiany .odmiana-etykiety {
        gap: 2px;
    }

    .tabela-odmiany .odmiana-etykiety span {
        font-size: 8px;
    }
}
