/* --- Zmienne CSS: Paleta "Wieczorna Łąka" --- */
:root {
    --bg-light: #FAFAF7; /* Złamana, ciepła biel */
    --bg-dark: #EDF1EB; /* Bardzo delikatna zieleń na tło sekcji alternatywnych */
    --text-main: #2C3625; /* Bardzo ciemna zieleń - prawie czarny */
    --text-muted: #5A6650;
    --primary-green: #3a503a; /* Ciemna, elegancka zieleń */
    
    --accent-green: #7D8F69; /* Szałwiowa zieleń */
    --accent-orange: #D4A373; /* Zachodzące słońce / złoto */
    --accent-orange-hover: #C5905C;
    
    --white: #FFFFFF;
    --border: #D1D9CA;
    
    --font-heading: 'Lora', serif;
    --font-text: 'Inter', sans-serif;
}

/* --- Reset i Baza --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Płynne przewijanie do kotwic */
}

body {
    font-family: var(--font-text);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

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

/* --- Sekcje Główne --- */
.section-light {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.section-dark {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

/* --- Przyciski --- */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
}

.large-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- Nawigacja --- */
.navbar {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-main);
    font-size: 0.95rem;
}

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

.nav-btn {
    padding: 8px 20px !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 20px 100px;
    background-color: var(--bg-light);
    background-image: linear-gradient(rgba(250, 250, 247, 0.6), rgba(250, 250, 247, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background-color: var(--accent-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-info-section {
    background-color: var(--white);
    padding: 80px 20px;
}

.hero-info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.info-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.info-content-left .hero-details {
    background: var(--bg-light);
    padding: 30px 40px;
    border-radius: 16px;
    text-align: left;
    width: 100%;
    margin-bottom: 35px;
}

.info-image-right {
    flex: 1;
}

.side-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* --- Czego się nauczysz (Kafelki) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-top: 4px solid var(--accent-green);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* --- Szczegóły kursu --- */
.course-structure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.structure-tile {
    background-color: white;
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    max-width: 250px;
}

.structure-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.structure-text {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.structure-plus {
    font-size: 3rem;
    color: var(--accent-orange);
    font-weight: 300;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.location-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
}

.location-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-credit {
    position: absolute;
    bottom: 5px;
    right: 8px;
    color: rgba(200, 200, 200, 0.8);
    font-size: 0.65rem;
    font-family: sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 2;
}

.location-box {
    padding: 30px;
    border-top: 4px solid var(--accent-orange);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-box h3 {
    margin-top: 0;
    color: var(--primary-green);
    font-size: 1.4rem;
}

/* --- Oś Czasu (Harmonogram) --- */
.schedule-wrapper {
    margin: 50px 0;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.schedule-header h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-green);
    font-size: 1.5rem;
    text-align: center;
}

.schedule-checkbox {
    display: none;
}

.schedule-timeline {
    position: relative;
    max-height: 180px; /* Pokazuje pierwsze ~2 elementy */
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 80%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.schedule-btn {
    display: inline-block;
    align-self: center;
    margin-top: 15px;
    cursor: pointer;
    color: var(--primary-green) !important;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.schedule-btn:hover {
    color: var(--accent-orange) !important;
}

.schedule-btn .hide-text {
    display: none;
}

/* Po rozwinięciu */
.schedule-checkbox:checked ~ .schedule-timeline {
    max-height: 1000px;
}

.schedule-checkbox:checked ~ .schedule-timeline .fade-overlay {
    opacity: 0;
}

.schedule-checkbox:checked ~ .schedule-btn .show-text {
    display: none;
}

.schedule-checkbox:checked ~ .schedule-btn .hide-text {
    display: inline;
}

.timeline-container {
    max-width: 300px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Kreska łącząca (na każdym elemencie oprócz ostatniego) */
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 16px; /* Zaczyna się pod kropką */
    bottom: -6px; /* Kończy się idealnie pod kropką kolejnego elementu */
    left: 7px;
    width: 2px;
    background-color: rgba(212, 163, 115, 0.3);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-green);
    border: 2px solid white;
    position: absolute;
    left: 0;
    top: 6px;
    z-index: 1;
    box-shadow: 0 0 0 2px rgba(92, 113, 94, 0.2);
}

.timeline-content {
    margin-left: 35px;
    display: flex;
    flex-direction: column;
}

.timeline-date {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 3px;
    line-height: 1.2;
}

.timeline-title {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-item.highlight .timeline-dot {
    background-color: white; /* Puste w środku */
    border: 3px solid var(--accent-orange);
    box-shadow: none; /* Usunięty cień by było czyściej */
    transform: scale(1.1);
    left: -1px; /* Korekta dla grubszej ramki */
    top: 5px;
}

.timeline-item.highlight .timeline-title {
    font-weight: 600;
    color: var(--accent-orange);
}

.offer-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 40px auto 20px;
    max-width: 550px;
    border: 1px solid var(--border);
}

@media (min-width: 500px) {
    .offer-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.offer-content {
    padding: 25px;
    flex: 1;
    display: flex;
    align-items: center;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offer-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.4;
}

.offer-features li strong {
    color: var(--primary-green);
}

.check-icon {
    color: var(--accent-orange);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.offer-price-box {
    background-color: #F8F5EE; /* Beige/warm background from original design */
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border);
}

@media (min-width: 500px) {
    .offer-price-box {
        border-top: none;
        border-left: 1px solid var(--border);
        min-width: 170px;
    }
}

.offer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.offer-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}


/* --- Listy --- */
.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.dot-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.dot-list li {
    margin-bottom: 10px;
}

/* --- Dwie kolumny --- */
.two-cols {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.col {
    flex: 1;
}

.warning-col {
    background-color: rgba(212, 163, 115, 0.1);
    padding: 30px;
    border-radius: 12px;
}

/* --- O Mnie --- */
.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-img {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-text {
    flex: 1.5;
}

.video-container {
    margin-top: 20px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* --- Opinie (Testimonials) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card.fb-card {
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

@media (min-width: 900px) {
    .testimonial-card.fb-card {
        grid-column: span 2;
        display: flex;
        justify-content: center;
    }
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-green);
    text-align: right;
    margin-top: auto;
}

.fb-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.fb-wrapper iframe {
    width: 100%;
    max-width: 100%;
}

/* --- Formularz --- */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.steps-list {
    margin: 20px 0 30px 20px;
}

.steps-list li {
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-text);
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.checkboxes-group {
    margin-top: 30px;
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-weight: 400 !important;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-container input {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.required-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.contact-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* --- Kontakt --- */
.contact-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
}

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-email {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-orange);
    display: inline-block;
    margin-bottom: 15px;
}

.contact-widget {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* --- Stopka --- */
footer {
    background-color: var(--text-main);
    color: var(--bg-light);
    text-align: center;
    padding: 30px 0;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-link {
    color: var(--bg-light);
    text-decoration: underline;
}

.footer-link:hover {
    opacity: 1;
}

/* --- Modal (Polityka Prywatności) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); 
}

.modal-content {
    background-color: var(--bg-light);
    margin: 10vh auto;
    padding: 40px;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.modal-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.modal-content p {
    margin-bottom: 15px;
}

.close-modal {
    color: #888;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(250, 250, 247, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        gap: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
        z-index: 1001; /* Zawsze nad menu */
        margin-right: 15px;
    }

    .nav-container {
        gap: 20px;
    }

    .logo img {
        max-width: 70vw;
        max-height: 35px;
        object-fit: contain;
    }
    
    /* Animacja ikony hamburgera */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        background-position: 30% center;
        background-attachment: scroll;
        min-height: 82vh;
        padding-top: 0px;
        padding-bottom: 179px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .two-cols {
        flex-direction: column;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .hero-info-container {
        flex-direction: column;
        gap: 30px;
    }
    

    
    .course-structure {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }
    
    .info-content-left {
        align-items: center;
        text-align: center;
    }
}
