:root {
    --primary-color: #FFD300;
    --secondary-color: #000000;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

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

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 2rem;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 60px; /* Zwiększone o 20% z 50px */
    margin-right: 15px;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    margin: 0 15px;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f5c842 100%);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 211, 0, 0.3);
}

.navbar-toggler {
    border: 2px solid var(--secondary-color);
    background-color: var(--primary-color);
    border-radius: 5px;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 211, 0, 0.5);
    border-color: var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Dropdown menu styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0; /* Zmienione z 0.5rem na 0 - usuwa przerwę */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background-color: white;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #FFF8D9 !important;
    color: var(--secondary-color);
}

.dropdown-item:active,
.dropdown-item.active {
    background-color: white !important;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f5c842 100%);
    color: var(--secondary-color);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000000" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23000000" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23000000" opacity="0.05"/><circle cx="20" cy="80" r="1" fill="%23000000" opacity="0.05"/><circle cx="80" cy="30" r="1" fill="%23000000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    color: white;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #333;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #f5c842 100%);
    border-radius: 2px;
}

/* Oferta Table */
.oferta-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 800px;
}

.table {
    margin: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #f5c842 100%);
    color: var(--secondary-color);
    font-weight: bold;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
}

.table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table tbody tr:nth-child(even) {
    background-color: white;
}

.table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #eee;
}

.device-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem; /* Dopasowane do rozmiaru ceny */
}

.device-comment {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.25rem;
}

.device-price {
    font-weight: bold;
    color: #e67e22;
    font-size: 1.1rem;
}

.category-header {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white !important; /* Biały kolor tekstu */
	font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 0.75rem;
}

.category-header::after {
    content: '▼';
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 0.9em;
}

/* Hover effect dla wierszy z urządzeniami */
.table tbody tr:not(.category-row):not(.subcategory-row):hover td {
    background-color: rgba(255, 211, 0, 0.15) !important;
    transition: all 0.2s ease;
}

.table tbody tr:not(.category-row):not(.subcategory-row):hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Rules Section */
.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.rule-item h5 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 2rem auto;
    display: block;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Map */
#map {
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

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

.footer-logo img {
    height: 60px;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .hero .btn-primary {
        display: inline-block;
        margin: 0 auto;
    }
    
    .hero img {
        max-height: 250px !important;
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 10px 15px !important;
    }
}

/* Background patterns */
.bg-pattern {
    background-color: var(--light-bg);
    position: relative;
}

.bg-pattern::before {
    content: '';
}

/* Oferta - tabele */
.oferta-tables {
    max-width: 1000px;
    margin: 0 auto;
}

.oferta-table-wrapper {
    margin-bottom: 3rem;
}

.oferta-category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: transparent;
    border-radius: 10px;
    position: relative;
}

.oferta-category-title i {
    color: #dc3545;
    margin-right: 15px;
    font-size: 1.6rem;
}

.oferta-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 1000px;
}

/* Podkategorie */
.subcategory-row {
    background: transparent !important;
}

.subcategory-header {
    background: var(--secondary-color) !important;
    color: white !important;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 0.75rem;
}

.subcategory-header::after {
    content: ' ▼';
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 0.9em;
}

.oferta-category-title {
    scroll-margin-top: -320px; /* Offset dla fixed navbar + dodatkowy margines */
}
