/* poppins-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v24-latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v24-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* Zmienne globalne */
:root {
    --bg-color: #f7f9f2;
    --text-color: #333333;
    --header-bg-1: #6a8c17;
    --header-bg-2: #8eb825;
    --nav-bg: #557310;
    --card-bg: #ffffff;
    --accent-red: #cc291b;
    --accent-red-hover: #a32115;
    --heading-color: #6a8c17; 
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg-1: #2c3a0a;
    --header-bg-2: #3d520e;
    --nav-bg: #1c2605;
    --card-bg: #2d2d2d;
    --heading-color: #b5e33d; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* WCAG: Ukryty wizualnie Skip Link */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s;
}

.skip-link:focus {
    transform: translateY(0);
}

/* --- NAGŁÓWEK (RESPONSYWNY) --- */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--header-bg-1), var(--header-bg-2));
    color: white;
}

.header-logo {
    max-height: 150px;
}

.header-text {
    text-align: left;
    max-width: 600px;
}

.header-text h1 {
    font-size: 2.5rem; 
    margin-bottom: 5px;
    line-height: 1.2;
}

.header-text p {
    font-size: 1.25rem;
    margin: 0;
    text-wrap: balance;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 30px 15px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .header-logo {
        max-height: 110px;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-text p {
        font-size: 1.1rem;
    }
}
/* --- KONIEC NAGŁÓWKA --- */

/* Styl bazowy dla komputerów */
nav {
    background-color: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px;
}

.menu-toggle {
    display: none; /* Na komputerze przycisk hamburgera jest ukryty */
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Widok mobilny (Telefony) */
@media (max-width: 768px) {
    nav {
        padding: 8px 15px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background-color: transparent;
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 6px;
        color: white;
        padding: 10px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        margin: 0;
    }

    .menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Domyślnie na telefonie ukrywamy listę linków */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 10px;
    }

    /* Klasa dodawana przez JavaScript po kliknięciu */
    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        text-align: left;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}
/* PANEL DOSTĘPNOŚCI */
.accessibility-panel {
    text-align: right;
    padding: 10px;
    background: #f4f4f4;
}

body.dark-mode .accessibility-panel {
    background: #252525;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
}

/* BANER REKLAMOWY / INFORMACYJNY */
.info-banner {
    background: var(--accent-red);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section {
    background-color: var(--card-bg);
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

section h2 {
    margin-bottom: 15px;
    color: var(--heading-color); 
}

/* SEKCOJA: O NAS */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.about-badge {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-color);
}

.about-highlight {
    font-size: 1.35rem;
    color: var(--heading-color);
}

/* LEPSZA SIATKA KART (FLEXBOX Z RÓWNĄ WYSOKOŚCIĄ) */
/* SYSTEM GRID — GWARANTUJE RÓWNE KAFELKI */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dokładnie 2 równe kolumny w wierszu */
    gap: 20px;
}

.card {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column; /* To zostawiamy, żeby tekst wewnątrz kafelka ładnie się wyrównywał */
}

.card h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.card p {
    margin-top: auto; 
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* RESPONSYWNOŚĆ: Na telefonach kafelki ułożą się jeden pod drugim (1 kolumna) */
@media (max-width: 650px) {
    .cards {
        grid-template-columns: 1fr;
    }
}
/* TABELA */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    border: 1px solid #cccccc;
    padding: 12px;
    text-align: center;
}

table th {
    background-color: var(--header-bg-2);
    color: white;
}

.table-cell-left {
    text-align: left;
}

.table-list {
    padding-left: 25px;
    margin-top: 10px;
    line-height: 1.6;
}

/* PROMOCJE */
.promo-box {
    background-color: var(--bg-color);
    padding: 25px;
    border-left: 6px solid var(--accent-red);
    border-radius: 8px;
}

.promo-title {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.promo-desc {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.promo-list {
    list-style-type: none;
    padding-left: 0;
    font-size: 1.15rem;
    line-height: 2;
}

/* ZASIĘG */
.range-box {
    background-color: var(--bg-color);
    padding: 25px;
    border-left: 6px solid var(--header-bg-2);
    border-radius: 8px;
}

.range-title {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.range-desc {
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.range-subtitle {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.range-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* LINKI KONTAKTOWE (UX) */
.contact-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, text-decoration 0.2s;
}

.contact-link:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

body.dark-mode .contact-link {
    color: #ff5c4d;
}

body.dark-mode .contact-link:hover {
    color: #ff857a;
}

/* IKONY GLOBALNE */
.icon-red {
    color: var(--accent-red);
}

.icon-blood {
    color: #e74c3c;
    margin-right: 10px;
}

.icon-theme {
    color: var(--header-bg-1);
    margin-right: 10px;
}

/* PRZYCISKI */
button {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: all 0.3s;
}

button:hover {
    background-color: var(--accent-red-hover);
}

button:focus-visible, a:focus-visible {
    outline: 3px solid #0056b3; 
    outline-offset: 3px; 
}

.a11y-btn {
    background-color: #333333;
    color: white;
    margin-right: 10px;
    margin-top: 0;
}

.a11y-btn:hover {
    background-color: #555555;
}

/* Animacje pojawiania się */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Przycisk powrotu do góry */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 50%;
    z-index: 1000;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 20px;
}

/* Klasa do powiększania strony */
body.zoomed-in {
    zoom: 1.25;
}

@-moz-document url-prefix() {
    body.zoomed-in {
        transform: scale(1.25);
        transform-origin: top center;
    }
}
/* --- PŁYWAJĄCY PRZYCISK TELEFONU --- */
.floating-phone {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Przenosimy na lewo, by nie kolidował z powrotem do góry */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #27ae60; /* Zmień alarmową czerwień na spokojną zieleń */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
}
.floating-phone-text {
    display: none; /* Ukryj tekst na mobile całkowicie */
}
.floating-phone i {
    font-size: 22px;
}
/* Zachowanie po najechaniu myszką */
.floating-phone:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* Usunięcie domyślnego podkreślenia linku */
.floating-phone, .floating-phone:hover, .floating-phone:active, .floating-phone:visited {
    text-decoration: none;
}

/* Animacja pulsowania, która zwraca na siebie uwagę */
@keyframes pulse-phone {
    0% { box-shadow: 0 0 0 0 rgba(217, 56, 56, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(217, 56, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 56, 56, 0); }
}

/* Dopasowanie na telefony komórkowe */
@media (max-width: 600px) {
    .floating-phone-text {
        display: none; /* Ukrywamy napis "Zadzwoń", zostaje sama słuchawka */
    }
    .floating-phone {
        padding: 15px;
        border-radius: 50%; /* Przycisk staje się idealnym kółkiem */
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
} .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
}