/*
 * [miniPHP]
 * Szablon graficzny Light
 *
 * Zachowane identyfikatory używane przez system:
 * #kontener
 * #header
 * #menu
 * #kolumna1
 * #kolumna2
 * #footer
 * #footercol1
 * #footercol2
 */


/* =========================================================
   Ustawienia podstawowe
   ========================================================= */

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 1rem;
    background: #fff;
    color: #373a42;

    font-family:
        Tahoma,
        Verdana,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   Główny kontener
   ========================================================= */

#kontener {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    background: #ffffff;
}


/* =========================================================
   Nagłówek
   ========================================================= */

#header {
    padding: 1rem;
    background-image: url('../../img/unitech-bg.jpg');
    background-size: cover;       /* Obrazek pokrywa cały obszar, zachowując proporcje */
    background-position: center;  /* Wyśrodkowanie obrazka */
    background-repeat: no-repeat; /* Zapobiega powielaniu obrazka */
    text-align: center;
} 

#header img {
    max-width: 100%;
    height: auto; 
    min-height:300px;
}

#header h1 {
    margin: 0.75rem 0 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
}

/* =========================================================
   Menu
   ========================================================= */

#menu {
    margin: 0 0 1rem;
    padding: 0;

    border-bottom: 2px solid #ff5b07;
}

#menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;

    margin: 0;
    padding: 0;
}

#menu li {
    display: block;

    margin: 0;
    padding: 0;

    list-style: none;
}

#menu li a {
    display: block;

    min-width: 180px;

    padding: 0.55rem 1.25rem;

    background: #ff5b07;
    color: #000000;

    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

#menu li a:hover,
#menu li a:focus {
    background: #ffffff url('arrow.gif') no-repeat center left;
    color:#ff5b07;
}

#menu li a:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}


/* =========================================================
   Dwie główne kolumny
   ========================================================= */

#kolumny {
    display: grid;

    grid-template-columns:
        minmax(220px, 30%)
        minmax(0, 1fr);

    gap: 1rem;

    margin: 0;
}


/* =========================================================
   Lewa kolumna
   ========================================================= */

#kolumna1 {
    padding: 1rem;
}


/* =========================================================
   Prawa kolumna
   ========================================================= */

#kolumna2 {
    min-width: 0;
    padding: 1rem;
}


/* =========================================================
   Nagłówki kolumn
   ========================================================= */

#kolumna1 h2,
#kolumna2 h2 {
    margin-top: 0;

    color: #000;

    font-size: 1.25rem;
    line-height: 1.3;
}


/* =========================================================
   Treść
   ========================================================= */

.tresc {
    overflow-wrap: break-word;
}

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


/* =========================================================
   Linki
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: red;
}


/* =========================================================
   Stopka
   ========================================================= */

#footer {
    margin-top: 1.5rem;
    padding: 1rem;

    border-top: 1px solid #ccc;

    background: #ffffff;

    font-style: italic;
    text-align: center;
}

.footer-main {
    margin-bottom: 1rem;
}

.footer-main img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   Linki walidacyjne
   ========================================================= */

.footer-validation {
    display: flex;
    justify-content: center;

    gap: 2rem;

    margin-top: 1rem;
}

#footercol1,
#footercol2 {
    width: auto;
    padding: 0;
}

#footercol1 img,
#footercol2 img {
    display: block;
}


/* =========================================================
   Reklama
   ========================================================= */

#kontener > ins,
#kontener > iframe {
    max-width: 100%;
}

/* =========================================================
 *  Informacja o cookies
  * ========================================================= */

#cookie-notice {
position: fixed;
z-index: 9999;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
background: rgba(0, 0, 0, 0.45);
}
.cookie-notice-content {
display: flex;
align-items: center;
gap: 25px;
max-width: 650px;
padding: 20px 25px;
background: #fff;
border: 1px solid #000;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
color: #333;
}
.cookie-notice-content p {
margin: 0;
line-height: 1.5;
}
#cookie-ok {
flex-shrink: 0;
padding: 8px 25px;
border: 1px solid #000;
background: #b0c4de;
color: #000;
font-weight: bold;
cursor: pointer;
}
#cookie-ok:hover {
background: #191970;
color: #fff;
}
/* cookies end */

/* =========================================================
   Telefony i małe ekrany
   ========================================================= */

@media (max-width: 700px) {

    body {
        padding: 0.5rem;
    }

    #kolumny {
        grid-template-columns: 1fr;
    }

    #kolumna1,
    #kolumna2 {
        padding: 0.75rem;
    }

    #menu ul {
        display: block;
    }

    #menu li {
        width: 100%;
    }

    #menu li a {
        width: 100%;
        min-width: 0;
    }

    #header h1 {
        font-size: 1.3rem;
    }

    .footer-validation {
        gap: 1rem;
    }
}


/* =========================================================
   Bardzo małe ekrany
   ========================================================= */

@media (max-width: 400px) {

    body {
        padding: 0.25rem;
    }

    #header,
    #kolumna1,
    #kolumna2,
    #footer {
        padding: 0.5rem;
    }

    .footer-validation {
        flex-direction: column;
        align-items: center;
    }
}


/* =========================================================
   Preferencja użytkownika: ograniczenie animacji
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #menu li a {
        transition: none;
    }
}
