:root {
    --plast-green: #2E5A27;
    --plast-yellow: #F4C430;
    --dark-text: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --insta-color: #E1306C;
    --fb-color: #1877F2;
}

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

body { 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
    color: var(--dark-text); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

main { 
    flex: 1; 
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto;
 }

.site-header { 
    background-color: var(--white); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    top: 0; 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 70px; 
}

.logo { 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: var(--plast-green); 
}

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links li { 
    margin-left: 20px; 
}

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

.nav-links a:hover, .nav-links a.active { 
    color: var(--plast-green); 
    border-bottom: 2px solid var(--plast-yellow); 
}

.page-content { padding-top: 80px; }

.hero-section {
    background-image: url('hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay { 
    background: rgba(0, 0, 0, 0.5); 
    padding: 40px; 
    border-radius: 10px; 
}

.hero-overlay h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
}

.hero-overlay p { 
    font-size: 1.5rem; 
    margin-bottom: 30px; 
}


.section-padding { 
    padding: 60px 0; 

}
.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
    color: var(--plast-green); 
}

.bg-light { 
    background-color: var(--light-bg); 
}


.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 40px; 
}
.about-images { 
    display: flex; 
    gap: 10px; 
}

.scout-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
}

.scout-table th, .scout-table td { 
    padding: 12px; 
    border: 1px solid #ddd; 
    text-align: left; 
}

.scout-table th { 
    background-color: var(--plast-green); 
    color: var(--white); 
}



.history-card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    margin-bottom: 30px; 
}

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

.gallery-item {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

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

.lightbox {
    display: none; /* Спочатку сховано */
    position: fixed;
    z-index: 1000; /* Поверх усього, навіть меню */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Чорний напівпрозорий фон */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px; /* Обмеження ширини */
    max-height: 80vh; /* Обмеження висоти */
    object-fit: contain;
    border-radius: 5px;
    animation: zoom 0.6s; /* Анімація появи */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--plast-yellow); /* Твій жовтий колір */
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 100%;
    }
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #000;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.contact-center { 
    text-align: center; 
}

.contact-info-box { 
    max-width: 600px; 
    margin: 0 auto; 
    background: var(--white); 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.info-item { 
    margin-bottom: 30px; 
}

.info-item h3 { 
    color: var(--plast-green); 
    margin-bottom: 10px; 
}

.social-buttons { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-top: 15px; 
}

.social-btn {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover { 
    transform: translateY(-3px); 
    opacity: 0.9; 
}

.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}

.facebook { 
    background-color: var(--fb-color); 
}

.btn-primary { 
    background-color: var(--plast-green); 
    padding: 10px 25px; 
    border-radius: 5px; 
    text-decoration: none; 
    color: white; 
    display: inline-block; 
}

.site-footer { 
    background-color: #222; 
    color: var(--white); 
    text-align: center; 
    padding: 20px 0; 
    margin-top: auto; 
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--plast-green);
    top: 0;
    bottom: 0;
    left: 20px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 10.5px;
    top: 5px;
    background-color: var(--white);
    border: 4px solid var(--plast-yellow);
    border-radius: 50%;
    z-index: 1;
    box-sizing: content-box;
}

.timeline-date {
    font-weight: bold;
    color: var(--plast-green);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.timeline-content ul {
    padding-left: 25px;
    margin-top: 10px;
}

.timeline-content li {
    list-style-position: outside;
    margin-bottom: 5px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-text); /* Колір смужок */
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    
    .menu-toggle {
        display: block; 
    }
    /* 1. Робимо текст заголовка меншим */
    .hero-overlay h1 {
        font-size: 2rem; /* Було 3rem, стало менше */
    }
    
    .hero-overlay p {
        font-size: 1rem; /* Трохи менший опис */
    }

    /* 2. Перебудовуємо сітку "Про нас" в одну колонку */
    .about-grid {
        grid-template-columns: 1fr; /* Було 1fr 1fr (дві), стала одна */
        gap: 20px;
    }

    /* 3. Змінюємо порядок: спочатку текст, потім фото (або навпаки) */
    .about-text {
        order: 1; /* Текст зверху */
    }
    
    .about-images {
        order: 2; /* Картинки знизу */
        flex-direction: column; /* Картинки одна під одною, а не поруч */
    }
    
    .about-images .gallery-item {
        width: 100%; /* Картинка на всю ширину */
    }

    /* 4. Адаптуємо шапку (Header) */
    .header-content {
        justify-content: space-between; 
        align-items: center;
        position: relative; /* Важливо для випадаючого меню */
    }

    .nav-links {
        display: none; /* СПОЧАТКУ СХОВАНО! */
        
        /* Стилі для відкритого меню */
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 70px; /* Висота шапки */
        left: 0;
        background-color: #fff; /* Білий фон, щоб перекрити контент */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Тінь знизу */
        padding: 20px 0;
        z-index: 1000; /* Щоб меню було поверх всього */
    }

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

    .nav-links li {
        margin: 15px 0;
    }
    
    /* 5. Хроніка (щоб лінія не зїжджала) */
    .timeline::after {
        left: 31px; /* Трохи посунемо лінію */
    }

    .timeline-item::after {
        left: 21.5px; /* Було 10.5px, ми посунули на 11px вправо */
    }
    
    .timeline-item {
        padding-left: 70px; 
    }
}
