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

 :root {
     --primary: #2d5016;
     --secondary: #4a7c2c;
     --accent: #8b7355;
     --beige: #f5f1e8;
     --light-green: #e8f5e9;
     --dark: #1a1a1a;
     --text: #333;
     --white: #ffffff;
 }

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

 #masaze-naleczow-logo {
     font-family: 'Georgia', serif;
     font-size: 20px;
     color: var(--primary);
 }

 body.dark-mode {
     --beige: #1a1a1a;
     --white: #2d2d2d;
     --text: #e0e0e0;
     --light-green: #1e3a1e;
 }

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


 header {
     background: var(--white);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     position: sticky;
     top: 0;
     z-index: 1000;
     transition: all 0.3s;
 }

 nav {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem 0;
 }

 .logo {
     font-size: 1.8rem;
     font-weight: bold;
     color: var(--primary);
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .nav-links {
     display: flex;
     list-style: none;
     gap: 2rem;
     align-items: center;
 }

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

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

 .theme-toggle {
     background: none;
     border: none;
     font-size: 1.5rem;
     cursor: pointer;
     color: var(--text);
 }

 .admin-link {
     background: var(--accent);
     color: white;
     padding: 8px 20px;
     border-radius: 20px;
     text-decoration: none;
     font-weight: bold;
     transition: background 0.3s;
 }

 .admin-link:hover {
     background: var(--primary);
 }

 .hero {
     background: linear-gradient(135deg, rgba(45, 80, 22, 0.85), rgba(74, 124, 44, 0.75)), url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?w=1600&h=900&fit=crop');
     background-size: cover;
     background-position: center;
     color: white;
     padding: 140px 0;
     text-align: center;
     position: relative;
 }

 .hero h1 {
     font-size: 3.5rem;
     margin-bottom: 1rem;
     animation: fadeInUp 1s;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
 }

 .hero p {
     font-size: 1.3rem;
     margin-bottom: 2rem;
     animation: fadeInUp 1.2s;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
 }

 .cta-button {
     display: inline-block;
     padding: 15px 40px;
     background: var(--accent);
     color: white;
     text-decoration: none;
     border-radius: 50px;
     font-weight: bold;
     font-size: 1.1rem;
     transition: transform 0.3s, box-shadow 0.3s;
     animation: fadeInUp 1.4s;
 }

 .cta-button:hover {
     transform: translateY(-3px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
 }

 .section {
     padding: 80px 0;
 }

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

 .section-title::after {
     content: '';
     display: block;
     width: 80px;
     height: 4px;
     background: var(--secondary);
     margin: 15px auto;
     border-radius: 2px;
 }

 .services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 30px;
     margin-top: 3rem;
 }

 .service-card {
     background: var(--light-green);
     border-radius: 15px;
     overflow: hidden;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s, box-shadow 0.3s;
     cursor: pointer;
 }

 .service-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
 }

 .service-image {
     width: 100%;
     height: 200px;
     object-fit: cover;
 }

 .service-content {
     padding: 30px;
 }

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

 .service-card h3 {
     color: var(--primary);
     margin-bottom: 1rem;
     font-size: 1.5rem;
 }

 .service-card .price {
     color: var(--accent);
     font-size: 1.0rem;
     font-weight: bold;
     margin: 1rem 0;
 }

 .service-card .duration {
     color: var(--text);
     font-size: 0.9rem;
     opacity: 0.8;
 }
/* ===== SERVICE BOOK BUTTONS ===== */
.service-book-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.service-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--primary);
}

/* Fancy hover effect for service buttons */
.service-book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-book-btn:hover::before {
    left: 100%;
}

 .promo-section {
     background: linear-gradient(135deg, rgba(45, 80, 22, 0.1), rgba(74, 124, 44, 0.1)), url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?w=1600&h=600&fit=crop');
     background-size: cover;
     background-position: center;
     padding: 100px 0;
     text-align: center;
     position: relative;
 }

 .promo-section::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(232, 245, 233, 0.95);
 }

 .promo-card {
     background: var(--white);
     padding: 40px;
     border-radius: 15px;
     max-width: 600px;
     margin: 0 auto;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
     position: relative;
     z-index: 1;
 }

 .promo-card h3 {
     color: var(--primary);
     font-size: 2rem;
     margin-bottom: 1rem;
 }

 .promo-badge {
     display: inline-block;
     background: #e74c3c;
     color: white;
     padding: 5px 15px;
     border-radius: 20px;
     font-weight: bold;
     margin-bottom: 1rem;
 }

 .gallery-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 20px;
 }

 .gallery-item {
     position: relative;
     overflow: hidden;
     border-radius: 15px;
     height: 300px;
     cursor: pointer;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .gallery-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s;
 }

 .gallery-item:hover img {
     transform: scale(1.1);
 }

 .gallery-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
     color: white;
     padding: 30px 20px 20px;
     transform: translateY(100%);
     transition: transform 0.3s;
 }

 .gallery-item:hover .gallery-overlay {
     transform: translateY(0);
 }

 .testimonials {
     background: var(--white);
 }

 .testimonial-card {
     background: var(--light-green);
     padding: 30px;
     border-radius: 15px;
     margin: 20px 0;
     position: relative;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .testimonial-card .stars {
     color: #ffd700;
     font-size: 1.2rem;
     margin-bottom: 1rem;
 }

 .contact-section {
     background: var(--white);
 }

 .contact-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 40px;
     margin-top: 2rem;
 }

 .contact-form {
     background: var(--light-green);
     padding: 30px;
     border-radius: 15px;
 }

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

 .form-group label {
     display: block;
     margin-bottom: 5px;
     font-weight: 500;
     color: var(--primary);
 }

 .form-group input,
 .form-group textarea,
 .form-group select {
     width: 100%;
     padding: 12px;
     border: 2px solid var(--secondary);
     border-radius: 8px;
     font-size: 1rem;
     background: var(--white);
     transition: border-color 0.3s;
 }

 .form-group input:focus,
 .form-group textarea:focus,
 .form-group select:focus {
     outline: none;
     border-color: var(--primary);
 }

 .submit-btn {
     background: var(--primary);
     color: white;
     padding: 12px 30px;
     border: none;
     border-radius: 25px;
     font-size: 1rem;
     font-weight: bold;
     cursor: pointer;
     transition: background 0.3s, transform 0.3s;
 }

 .submit-btn:hover {
     background: var(--secondary);
     transform: translateY(-2px);
 }

 .contact-info {
     display: flex;
     flex-direction: column;
     gap: 20px;
 }

 .info-item {
     display: flex;
     align-items: center;
     gap: 15px;
     padding: 20px;
     background: var(--light-green);
     border-radius: 10px;
 }

 .info-item i {
     font-size: 2rem;
     color: var(--primary);
 }

 .map-container {
     height: 300px;
     background: var(--light-green);
     border-radius: 15px;
     overflow: hidden;
     margin-top: 20px;
 }

 .map-container iframe {
     width: 100%;
     height: 100%;
     border: none;
 }



 footer {
     background: var(--dark);
     color: white;
     padding: 40px 0 20px;
     text-align: center;
 }

 .footer-content {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 30px;
     margin-bottom: 30px;
     text-align: left;
 }

 .footer-section h3 {
     color: var(--secondary);
     margin-bottom: 15px;
 }

 .social-links {
     display: flex;
     gap: 15px;
     margin-top: 15px;
 }

 .social-links a {
     color: white;
     font-size: 1.5rem;
     transition: color 0.3s;
 }

 .social-links a:hover {
     color: var(--secondary);
 }

 .modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.8);
     z-index: 3000;
     align-items: center;
     justify-content: center;
     animation: fadeIn 0.3s;
 }

 .modal.active {
     display: flex;
 }

 .modal-content {
     background: var(--white);
     padding: 40px;
     border-radius: 15px;
     max-width: 500px;
     width: 90%;
     max-height: 90vh;
     overflow-y: auto;
     position: relative;
 }

 .close-modal {
     position: absolute;
     top: 15px;
     right: 20px;
     font-size: 2rem;
     cursor: pointer;
     color: var(--text);
     background: none;
     border: none;
 }

 .mfa-code {
     font-size: 2.5rem;
     font-weight: bold;
     text-align: center;
     color: var(--primary);
     background: var(--light-green);
     padding: 20px;
     border-radius: 10px;
     margin: 20px 0;
     letter-spacing: 10px;
 }

 .admin-dashboard {
     display: none;
     padding: 20px;
 }

 .admin-dashboard.active {
     display: block;
 }

 .admin-actions {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 15px;
     margin-top: 20px;
 }

 .admin-actions button {
     padding: 15px;
     background: var(--primary);
     color: white;
     border: none;
     border-radius: 10px;
     cursor: pointer;
     font-weight: bold;
     transition: background 0.3s;
 }

 .admin-actions button:hover {
     background: var(--secondary);
 }

 .price-table {
     background: var(--white);
     border-radius: 15px;
     overflow: hidden;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
     margin-top: 2rem;
 }

 .price-table table {
     width: 100%;
     border-collapse: collapse;
 }

 .price-table th {
     background: var(--primary);
     color: white;
     padding: 15px;
     text-align: left;
 }

 .price-table td {
     padding: 15px;
     border-bottom: 1px solid var(--light-green);
 }

 .price-table tr:hover {
     background: var(--light-green);
 }

 .relax-quote {
     font-family: "Georgia", serif;
     font-style: italic;
     color: #555;
     border-left: 4px solid #a3c9a8;
     background-color: #f9f9f9;
     padding: 15px 20px;
     margin: 30px 0;
     border-radius: 6px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
 }

 .relax-quote p {
     margin: 0;
     font-size: 1.2em;
     line-height: 1.6;
 }

 .relax-quote footer {
     margin-top: 10px;
     font-weight: bold;
     font-style: normal;
     color: #7a9b84;
     text-align: right;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @media (max-width: 768px) {
     .nav-links {
         gap: 1rem;
         font-size: 0.9rem;
     }

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

     .contact-grid {
         grid-template-columns: 1fr;
     }

     .footer-content {
         text-align: center;
     }

     .admin-link {
         padding: 6px 15px;
         font-size: 0.9rem;
     }
 }

 .login-step {
     display: none;
 }

 .login-step.active {
     display: block;
 }

 .success-message {
     background: #27ae60;
     color: white;
     padding: 15px;
     border-radius: 10px;
     margin: 15px 0;
     text-align: center;
 }

 .error-message {
     background: #e74c3c;
     color: white;
     padding: 15px;
     border-radius: 10px;
     margin: 15px 0;
     text-align: center;
 }

 @media (max-width: 768px) {
     .nav-links {
         display: none;
         flex-direction: column;
         position: absolute;
         top: 100%;
         left: 0;
         right: 0;
         background: var(--white);
         padding: 20px 0 20px 0;
         box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
         z-index: 1001;
         align-items: center;
     }

     .nav-links.active {
         display: flex;
     }

     .mobile-menu-toggle {
         display: block !important;
         position: absolute;
         right: 20px;
         top: 50%;
         transform: translateY(-50%);
         background: none;
         border: none;
         font-size: 2rem;
         color: var(--primary);
         z-index: 1002;
         cursor: pointer;
     }
 }

 .theme-toggle-mobile {
     display: none;
 }

 @media (max-width: 768px) {
     nav>.theme-toggle {
         display: none !important;
     }

     .theme-toggle-mobile {
         display: block;
         text-align: center;
         margin-top: 10px;
     }
 }

 /* Styl dla dostępnych terminów */
 option[style*="color: #28a745"] {
     background-color: #d4edda !important;
 }

 /* Styl dla zajętych terminów */
 option:disabled {
     background-color: #f8d7da !important;
     color: #721c24 !important;
 }

 /* Styl dla informacji o dostępności */
 #availability-info {
     transition: all 0.3s ease;
 }

 #availability-info div {
     border: 1px solid transparent;
 }


.promo-carousel {
    position: relative;
    height: 250px; /* Zwiększ, jeśli tekst jest dłuższy */
    overflow: hidden;
    display: block;
}

.promo-slide {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    animation: slideAnim 20s infinite;
}

/* PIERWSZY slajd pokazywany natychmiast */
.promo-slide:first-child {
    opacity: 1;
}

.promo-slide:nth-child(1) { animation-delay: 0s; }
.promo-slide:nth-child(2) { animation-delay: 5s; }
.promo-slide:nth-child(3) { animation-delay: 10s; }
.promo-slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideAnim {
    0% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Tło pop-up */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    z-index: 9999;
}

/* Po pojawieniu */
.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Okno */
.popup-box {
    position: relative;
    background: white;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.8);
    transition: transform .4s ease;
}

.popup-overlay.show .popup-box {
    transform: scale(1);
}

/* Obraz w 100% szerokości */
.popup-box img {
    display: block;
    width: 100%;
    height: auto;
}

/* Przycisk zamykania */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: white;
    text-shadow: 0 0 6px black;
    z-index: 10;
}

