/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-preload * {
    animation: none !important;
    transition: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'OpenSans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0052a3;
}

/* Navigation Styles */
.main-navigation {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
}

.nav-menu .menu-item {
    position: relative;
}

.nav-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu .menu-link i {
    margin-left: 5px;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-menu .menu-item:hover .menu-link {
    color: #0066cc;
}

.nav-menu .menu-item.has-dropdown:hover .menu-link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 550px;
    max-width: 900px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-radius: 5px;
    z-index: 1001;
}

.nav-menu .menu-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 0.7rem;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Horizontal Rule */
hr.major {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Desktop Image Sizes */
@media (min-width: 769px) {
    .logo img {
        width: 250px;
        height: 50px;
    }
    
    .content-image {
        width: 100%;
        max-width: 1200px;
        height: auto;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    
    /* Specific image sizes for desktop */
    img[src*="h5g.jpg"],
    img[src*="h5g2.jpg"] {
        width: 100%;
        max-width: 1200px;
        height: auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        padding: 0;
        margin: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .menu-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu .menu-link {
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between;
    }
    
    /* Mobile: No dropdown, show all items */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f9f9f9;
        min-width: 100%;
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        display: none;
    }
    
    .nav-menu .menu-item.has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 8px 40px;
        font-size: 0.7rem;
    }
    
    /* Mobile Image Sizes */
    .logo img {
        width: 150px;
        height: 38px;
    }
    
    .content-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    
    /* Specific image sizes for mobile */
    img[src*="h5g.jpg"],
    img[src*="h5g2.jpg"] {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .main-content {
        padding: 20px 15px;
    }
}

/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

footer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin-top: 40px;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list .icon {
    width: 20px;
    text-align: center;
    color: #0066cc;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Buttons */
.button,
.kupteraz2 {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.button:hover,
.kupteraz2:hover {
    background-color: #0052a3;
    color: #fff;
}

/* Price Section Styles */
.cenastd,
.cenamy,
.kupteraz {
    text-align: center;
    margin: 20px 0;
}

.cenastd {
    font-size: 1rem;
    color: #666;
}

.cenastd .przekreslenie {
    display: inline-block;
}

.cenamy {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0066cc;
}

.cenamy .cenamy {
    display: inline-block;
}

.kupteraz {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kupteraz a {
    display: inline-block;
}

.kupteraz img {
    margin: 0 auto;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Make images clickable for lightbox */
.content-image,
.main-content img:not(.logo img):not(.kupteraz img):not(.button img) {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.content-image:hover,
.main-content img:not(.logo img):not(.kupteraz img):not(.button img):hover {
    opacity: 0.9;
}

