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

:root {
    --primary-color: #1a5490;
    --secondary-color: #2d7ab8;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 50px;
    width: auto;
}

.company-name {
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
}

.container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.home-logo-container {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.home-logo {
    height: 150px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero p {
    color: white;
    font-size: 1.2rem;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hero-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.hero-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.4;
}

.hero-card .btn {
    margin: 1rem 1.5rem 1.5rem;
    display: inline-block;
}

/* Produkty */
.produkty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.produkt-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.produkt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.produkt-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.produkt-info {
    padding: 1.5rem;
}

.produkt-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.produkt-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Szczegóły produktu */
.produkt-detail-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.produkt-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    max-height: 500px;
}

.produkt-detail-content h2 {
    margin-bottom: 1.5rem;
}

.produkt-detail-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.btn-back {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Riverwatcher */
.riverwatcher-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.riverwatcher-image-link {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.riverwatcher-image-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.riverwatcher-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    border-radius: 8px;
}

.riverwatcher-btn {
    margin-top: 0;
}

/* Sima */
.sima-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sima-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sima-item h3 {
    margin-bottom: 1rem;
}

/* Kontakt */
.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.kontakt-info {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.kontakt-info h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    margin-bottom: 0.5rem;
}

.info-section p {
    color: #555;
    line-height: 1.8;
}

.info-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

.kontakt-mapa {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .produkty-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .kontakt-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kontakt-mapa iframe {
        height: 300px;
    }

    .produkt-detail-content {
        padding: 1rem;
    }

    .produkt-detail-content img {
        max-height: 300px;
    }

    .sima-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .produkt-image {
        height: 200px;
    }

    .produkt-card {
        border-radius: 4px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
