/* --- RESET I BAZA --- */
:root {
    --primary-color: #2c3e50; /* Granatowy - zaufanie */
    --accent-color: #27ae60;  /* Zielony - akceptacja/start */
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth; /* Płynne przewijanie */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAWIGACJA --- */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex; /* Dodane dla lepszego pozycjonowania ikon */
    align-items: center;
}

/* STYL DLA LOGO PNG */
.logo img {
    width: 48px;
    height: 48px;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-color); }

.btn-nav {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 5px;
}

/* --- HERO SECTION (WERSJA LOKALNA) --- */
.hero {
    /* Pamiętaj, aby plik tlo.jpg (lub tlo.png) umieścić w tym samym folderze! */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.75)), url('../img/tlo.png'); 
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-cta:hover { 
    transform: scale(1.05); 
    background-color: #219653;
}

/* --- SEKCJE OGÓLNE --- */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- JAK TO DZIAŁA (KARTY) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-10px); }

.feature-icon {
    margin-bottom: 20px;
    display: block;
}

/* STYL DLA IKON W KARTACH */
.feature-icon img {
    width: 48px; /* Duży rozmiar dla kart */
    height: 48px;
    margin: 0 auto;
}

/* --- KORZYŚCI (GRID) --- */
.benefits { background-color: var(--white); }

.benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media(max-width: 768px) {
    .benefits-wrapper { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .hero { background-attachment: scroll; }
}

.benefit-group h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.benefit-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.benefit-list li::before {
    content: ""; 
    position: absolute;
    left: 0;
    top: 4px;
}

/* STYL DLA IKONY LISTY (CHECKMARK) */
.benefit-list li img {
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 4px;
}

/* --- BEZPIECZEŃSTWO --- */
/*.security {*/
/*    background-color: var(--primary-color);*/
/*    color: var(--white);*/
/*    text-align: center;*/
/*    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h20L0 20z'/%3E%3C/g%3E%3C/svg%3E");*/
/*}*/
.security {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.security h2 { color: var(--white); }

/* --- KONTAKT --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-submit:hover { background-color: #1a252f; }

/* --- STOPKA --- */
footer {
    background-color: #222;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

/* --- PRZYCISK W GÓRĘ (NOWY ELEMENT) --- */
#scroll-to-top {
    display: none; /* Domyślnie ukryty */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%; /* Okrągły kształt */
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

#scroll-to-top:hover {
    background-color: #219653;
    transform: scale(1.1);
}

/* STYL DLA IKONY W PRZYCISKU */
#scroll-to-top img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-top: -5px; /* Centrowanie wewnątrz koła */
}