/* Reset i ustawienia globalne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #1A2C34;
    color: #e0e0e0;
    line-height: 1.6;
    transition: background .3s, color .3s;
}

body.light-mode {
    background: #f7f7f7;
    color: #333;
}

body.light-mode header {
    background: #e8f5e9;
}

body.light-mode #zaproszenie::before,
body.light-mode #additional-cta::before {
    background: rgba(0, 0, 0, .4);
}

body.light-mode #powitanie,
body.light-mode #kontakt,
body.light-mode #zalety,
body.light-mode #rekomendacje,
body.light-mode #jak-wypozyczyc,
body.light-mode footer {
    background: #f7f7f7;
}

body.light-mode #powitanie .rower-card {
    background: #fff;
}

body.light-mode #powitanie .rower-card h3,
body.light-mode #zalety .zalety-container h3,
body.light-mode #rekomendacje .rekomendacje-container h3,
body.light-mode #jak-wypozyczyc .kroki-container h3,
body.light-mode #kontakt .contact-info h2,
body.light-mode #kontakt .formularz h3 {
    color: #2e7d32;
}

body.light-mode #powitanie .rower-card p,
body.light-mode #zalety .zalety-container p,
body.light-mode #rekomendacje .rekomendacje-container p,
body.light-mode #jak-wypozyczyc .kroki-container p,
body.light-mode #kontakt .contact-info p {
    color: #333;
}

body.light-mode #rekomendacje .autor,
body.light-mode footer .social-links a,
body.light-mode footer .privacy-policy a {
    color: #666;
}

body.light-mode #kontakt .contact-container {
    background: #fff;
}

body.light-mode #zalety .zalety-container,
body.light-mode #rekomendacje .rekomendacje-container,
body.light-mode #jak-wypozyczyc .kroki-container {
    background: #fff;
}

body.light-mode #zalety .zaleta,
body.light-mode #rekomendacje .opinia,
body.light-mode #jak-wypozyczyc .krok {
    background: #e8f5e9;
}

body.light-mode #kontakt .formularz input,
body.light-mode #kontakt .formularz select,
body.light-mode #kontakt .formularz textarea {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ccc;
}

body.light-mode #kontakt .formularz label {
    color: #333;
}

body.light-mode footer a:hover {
    color: #2e7d32;
}

body.light-mode #theme-toggle {
    background: #3a6073;
    color: #e0e0e0;
}

body.light-mode #theme-toggle:hover {
    background: #4a7b93;
}

/* Header */
header {
    background: #2C3E50;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background .3s;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    width: auto;
    margin-right: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, .3));
    transition: transform .3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #81c784;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .2);
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    background: #1b5e20;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background .3s, transform .1s, color .3s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .2);
}

header nav a:hover {
    background: #2e7d32;
    transform: scale(1.05);
    color: #e0e0e0;
}

header nav a:focus {
    outline: 2px solid #81c784;
    outline-offset: 2px;
}

#theme-toggle {
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: background .3s, transform .2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
}

#theme-toggle:hover {
    background: #e0e0e0;
    transform: rotate(10deg);
}

/* Sekcje */
section {
    padding: 80px 30px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

section:last-child {
    border-bottom: none;
}

#zaproszenie {
    background: url('Ogrodzieniec.webp') no-repeat center/cover;
    padding: 200px 30px;
    margin-top: 60px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#zaproszenie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    transition: background .3s;
}

#zaproszenie h1 {
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    color: #fff;
}

#zaproszenie p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: #f5f5f5;
}

#powitanie {
    background: #1a2c34;
    transition: background .3s;
}

#powitanie h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #81c784;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

body.light-mode #powitanie h2 {
    color: #2e7d32;
}

#powitanie .rower-gallery {
    display: grid;
    grid-template-columns: 3fr 3fr;
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 769px) {
    #powitanie .rower-gallery {
        grid-template-columns: repeat(6, 1fr);
    }
    #powitanie .rower-gallery > :nth-child(1) {
        grid-column: 1 / 4;
        grid-row: 1;
    }
    #powitanie .rower-gallery > :nth-child(2) {
        grid-column: 4 / 7;
        grid-row: 1;
    }
    #powitanie .rower-gallery > :nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2;
    }
    #powitanie .rower-gallery > :nth-child(4) {
        grid-column: 3 / 5;
        grid-row: 2;
    }
    #powitanie .rower-gallery > :nth-child(5) {
        grid-column: 5 / 7;
        grid-row: 2;
    }
}

#powitanie .rower-card {
    background: #34495e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    animation: fadeInUp .5s forwards;
}

#powitanie .rower-card:nth-child(1) { animation-delay: .1s; }
#powitanie .rower-card:nth-child(2) { animation-delay: .2s; }
#powitanie .rower-card:nth-child(3) { animation-delay: .3s; }
#powitanie .rower-card:nth-child(4) { animation-delay: .4s; }
#powitanie .rower-card:nth-child(5) { animation-delay: .5s; }

#powitanie .rower-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

#powitanie .rower-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s ease;
}

#powitanie .rower-gallery > :nth-child(1) img,
#powitanie .rower-gallery > :nth-child(2) img {
    height: 350px;
}

#powitanie .rower-card:hover img {
    transform: scale(1.1);
}

#powitanie .rower-card .content {
    padding: 20px;
    text-align: left;
}

#powitanie .rower-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #81c784;
}

#powitanie .rower-card p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

#powitanie .rower-card button {
    background: linear-gradient(135deg, #2e7d32, #81c784);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background .3s, transform .1s;
    animation: pulse 2s infinite;
}

#powitanie .rower-card button:hover {
    background: linear-gradient(135deg, #1b5e20, #4caf50);
    transform: scale(1.05);
}

#powitanie .rower-card button:active {
    transform: scale(.95);
}

#zalety {
    background: #1a2c34;
    transition: background .3s;
}

#zalety .zalety-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    padding: 30px;
    transition: background .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#zalety .zalety-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #81c784;
}

#zalety .zalety-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

#zalety .zaleta {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    animation: fadeIn .5s forwards;
}

#zalety .zaleta:nth-child(1) { animation-delay: .2s; }
#zalety .zaleta:nth-child(2) { animation-delay: .4s; }
#zalety .zaleta:nth-child(3) { animation-delay: .6s; }

#zalety .zaleta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
}

#zalety .zaleta h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #81c784;
}

#zalety .zaleta p {
    font-size: 16px;
    color: #e0e0e0;
}

#zalety .cta-button {
    margin-top: 30px;
    background: linear-gradient(135deg, #2e7d32, #81c784);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s, transform .1s;
}

#zalety .cta-button:hover {
    background: linear-gradient(135deg, #1b5e20, #4caf50);
    transform: scale(1.05);
}

#zalety .cta-button:active {
    transform: scale(.95);
}

#rekomendacje {
    background: #1a2c34;
    transition: background .3s;
}

#rekomendacje .rekomendacje-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    padding: 30px;
    transition: background .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#rekomendacje .rekomendacje-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #81c784;
}

#rekomendacje .rekomendacje-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

#rekomendacje .opinia {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    animation: fadeIn .5s forwards;
}

#rekomendacje .opinia:nth-child(1) { animation-delay: .2s; }
#rekomendacje .opinia:nth-child(2) { animation-delay: .4s; }
#rekomendacje .opinia:nth-child(3) { animation-delay: .6s; }

#rekomendacje .opinia:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
}

#rekomendacje .opinia p {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

#rekomendacje .rating {
    margin: 5px 0;
    font-size: 18px;
}

#rekomendacje .rating .filled {
    color: #ffd700;
}

#rekomendacje .rating .empty {
    color: #b0bec5;
}

#rekomendacje .autor {
    font-size: 14px;
    color: #b0bec5;
    font-style: italic;
    text-align: right;
}

#additional-cta {
    background: url('Ogrodzieniec.webp') no-repeat center/cover;
    padding: 100px 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#additional-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    transition: background .3s;
}

#additional-cta h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

#additional-cta .cta-button {
    background: linear-gradient(135deg, #2e7d32, #81c784);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s, transform .1s;
    position: relative;
    z-index: 1;
}

#additional-cta .cta-button:hover {
    background: linear-gradient(135deg, #1b5e20, #4caf50);
    transform: scale(1.05);
}

#additional-cta .cta-button:active {
    transform: scale(.95);
}

#jak-wypozyczyc {
    background: #1a2c34;
    transition: background .3s;
}

#jak-wypozyczyc .kroki-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    padding: 30px;
    transition: background .3s;
}

#jak-wypozyczyc .kroki-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #81c784;
}

#jak-wypozyczyc .kroki {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#jak-wypozyczyc .krok {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    width: 200px;
    transition: background .3s;
}

#jak-wypozyczyc .krok h3 {
    color: #81c784;
    margin-bottom: 10px;
}

#kontakt {
    background: #1a2c34;
    transition: background .3s;
}

#kontakt .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    display: flex;
    gap: 30px;
    padding: 30px;
    transition: background .3s;
}

#kontakt .contact-info {
    flex: 1;
    text-align: left;
}

#kontakt .contact-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #81c784;
}

#kontakt .contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

#kontakt .contact-info iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
}

#kontakt .formularz {
    flex: 1;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

#kontakt .formularz h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #81c784;
}

#kontakt .formularz label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #e0e0e0;
}

#kontakt .formularz .row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#kontakt .formularz input,
#kontakt .formularz select,
#kontakt .formularz textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #2c3e50;
    color: #e0e0e0;
    transition: background .3s, color .3s, border .3s;
}

#kontakt .formularz .row select {
    width: 50%;
}

#kontakt .formularz button {
    background: #2e7d32;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s, transform .1s;
}

#kontakt .formularz button:hover {
    background: #1b5e20;
}

#kontakt .formularz button:active {
    transform: scale(.95);
}

#rowery-lista {
    margin-bottom: 15px;
}

.rower-wybor {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.rower-wybor select {
    width: 45%;
}

.rower-wybor .usun-rower {
    background: #ef5350;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background .3s;
}

.rower-wybor .usun-rower:hover {
    background: #d32f2f;
}

#dodaj-rower {
    background: #2e7d32;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background .3s;
}

#dodaj-rower:hover {
    background: #1b5e20;
}

body.light-mode .rower-wybor select {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ccc;
}

body.light-mode .rower-wybor .usun-rower {
    background: #ef5350;
}

body.light-mode .rower-wybor .usun-rower:hover {
    background: #d32f2f;
}

body.light-mode #dodaj-rower {
    background: #2e7d32;
}

body.light-mode #dodaj-rower:hover {
    background: #1b5e20;
}

#form-message {
    margin-top: 20px;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    background: #2e7d32;
    color: #fff;
    display: none;
    opacity: 0;
    transition: opacity .3s ease;
}

#form-message.show {
    display: block;
    opacity: 1;
}

#form-message.error {
    background: #ef5350;
}

#koszt-rezerwacji {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #81c784;
    text-align: left;
}

#koszt-rezerwacji #koszt-wartosc {
    color: #2e7d32;
}

footer {
    background: #1a2c34;
    padding: 20px 30px;
    text-align: center;
    transition: background .3s;
}

footer .social-links {
    margin-bottom: 10px;
}

footer .social-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    margin: 0 15px;
    transition: color .3s;
}

footer .social-links a:hover {
    color: #81c784;
}

footer .privacy-policy {
    font-size: 12px;
    color: #b0bec5;
}

footer .privacy-policy a {
    color: #b0bec5;
    text-decoration: none;
    transition: color .3s;
}

footer .privacy-policy a:hover {
    color: #81c784;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Responsywność */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-radius: 0 0 15px 15px;
    }
    .nav-menu.active {
        display: flex;
    }
    header nav a {
        margin: 10px 0;
        width: 80%;
        display: block;
    }
    header .logo img {
        height: 40px;
    }
    #zaproszenie {
        padding: 100px 20px;
    }
    #zaproszenie h1 {
        font-size: 28px;
    }
    #zaproszenie p {
        font-size: 16px;
    }
    #additional-cta {
        padding: 60px 20px;
    }
    #additional-cta h2 {
        font-size: 24px;
    }
    section {
        padding: 50px 10px;
    }
    #powitanie .rower-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    #powitanie .rower-gallery > :nth-child(1),
    #powitanie .rower-gallery > :nth-child(2),
    #powitanie .rower-gallery > :nth-child(3),
    #powitanie .rower-gallery > :nth-child(4),
    #powitanie .rower-gallery > :nth-child(5) {
        grid-column: 1;
        grid-row: auto;
    }
    #kontakt .contact-container {
        flex-direction: column;
        padding: 20px;
    }
    #kontakt .contact-info,
    #kontakt .formularz {
        flex: none;
        width: 100%;
    }
    #kontakt .contact-info iframe {
        height: 200px;
    }
    #kontakt .formularz .row {
        flex-direction: column;
        gap: 10px;
    }
    #kontakt .formularz .row select {
        width: 100%;
    }
    .rower-wybor {
        flex-direction: column;
        align-items: flex-start;
    }
    .rower-wybor select {
        width: 100%;
    }
    .rower-wybor .usun-rower {
        width: 100%;
        text-align: center;
    }
    #zalety .zalety-list,
    #rekomendacje .rekomendacje-list,
    #jak-wypozyczyc .kroki {
        flex-direction: column;
        align-items: center;
    }
    #zalety .zaleta,
    #rekomendacje .opinia,
    #jak-wypozyczyc .krok {
        width: 100%;
        max-width: 300px;
    }
    footer .social-links a {
        margin: 0 10px;
    }
}