/*
 * [miniPHP] / Portal 2026
 * Wersja uwspółcześniona
 * Układ oparty na Flexbox, responsywny.
 */

/* kolory */
:root {
    --page-bg: #ffffff;
    --text: #333333;
    --heading: #000000;
    --border: #cd261f;
    --menu-bg: #707070;
    --menu-hover: #5e0c09;
    --menu-text: #ffffff;
    --menu-hover-text: #ffffff;
    --content-gap: 1.25rem;
    --radius: 4px;
}

/* Reset i podstawy */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    background: var(--page-bg);
    color: var(--text);
/*    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; */
/*    font-family: Georgia, Garamond, "Palatino Linotype", serif; */
font-family: Monaco, Consolas, "Lucida Console", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* Główny kontener */
#kontener {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    background-image:linear-gradient(rgba(70,190,205,.28) 1px,transparent 1px),linear-gradient(90deg,rgba(70,190,205,.28) 1px,transparent 1px),linear-gradient(rgba(70,190,205,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(70,190,205,.12) 1px,transparent 1px);
    background-size:48px 48px,48px 48px,12px 12px,12px 12px;

    border: 1px solid var(--border);
}

/* Nagłówek */
#header {

    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-direction: column; /* Układa elementy pionowo (jeden pod drugim) */
    align-items: center;    /* Środkuje elementy w poziomie */
    justify-content: center;
    gap: 1rem;              /* Zmniejszony lekko odstęp między logo a tekstem */
    min-height: 100px;
    padding: 1rem 1.5rem;
}


.header-logo {
   
}

.header-logo img {
    display: block;
    width: 400px;       /* <-- Ustaw stałą szerokość dla logo SVG */
    height: auto;        /* <-- Zachowa odpowiednie proporcje */
}

.header-title h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.25;
    text-align: center;
    font-weight: 200; /* <-- Zmienia czcionkę na lekką (light) */
}

.header-title h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.25;
    text-align: center;
}



/* Główna część strony */
.main-content {
    display: flex;
    align-items: stretch;
    gap: var(--content-gap);
}

/* Lewa kolumna */
#kolumna1 {
    flex: 0 0 250px;
    min-width: 0;
    padding: 1.25rem;
}

#kolumna1 h3 {
    margin: 0 0 0.75rem;
    color: var(--heading);
    font-size: 1.1rem;
}

/* Prawa kolumna */
#kolumna2 {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.25rem;
}

.content-header h2 {
    margin: 0 0 1rem;
    color: var(--heading);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.3;
}

.content {
    overflow-wrap: anywhere;
}

.content table {
    max-width: 100%;
    overflow-x: auto;
}

/* Menu */
#menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

#menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu li a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    color: var(--menu-text);
    background: var(--menu-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#menu li a:hover,
#menu li a:focus-visible {
    color: var(--menu-hover-text);
    background: var(--menu-hover);
}

#menu li a:focus-visible,
a:focus-visible {
    outline: 2px solid var(--heading);
    outline-offset: 2px;
}

/* Zwykłe linki */
a {
    color: inherit;
    text-decoration: none;
}

.content a,
.static-content a {
    text-decoration: underline;
}

.content a:hover,
.static-content a:hover {
    color: red;
}

/* Stopka */
#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-style: italic;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.footer-text {
    line-height: 1.5;
}

.engine-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.engine-link img {
    display: block;
}

/* =========================================================
   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 */
#ads {
    padding: 0.6rem 1rem;
    text-align: center;
/*    border-bottom: 1px solid var(--border); */
}
#ads img {
    vertical-align: middle;
}
/* Licznik */
.footer-counter {
    font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .header-title h1 {
        text-align: center;
    }

    .main-content {
        flex-direction: column;
        gap: 0;
    }

    #kolumna1,
    #kolumna2 {
        width: 100%;
        flex: 1 1 auto;
        padding: 1rem;
    }

    #kolumna1 {
        border-bottom: 1px solid var(--border);
    }

    #menu li a {
        max-width: none;
    }

    .footer-cols {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        font-size: 0.95rem;
    }

    #kontener {
        border-left: 0;
        border-right: 0;
    }

    #header .header-inner {
        padding: 0.75rem;
    }

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

    .footer-cols {
        flex-direction: column;
    }

    #footercol1,
    #footercol2 {
        flex: 1 1 auto;
        width: 100%;
        padding: 0.25rem;
    }
}

/* Użytkownicy preferujący ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #menu li a {
        transition: none;
    }
}

/* =========================================================
 *  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;
}


/* Telefon */

@media (max-width: 600px) {

  .cookie-notice-content {
    flex-direction: column;
    gap: 15px;

    width: 100%;
    padding: 20px;
    text-align: center;
  }

  #cookie-ok {
  width: 100%;
  }
}

