
:root {
    --main-color: #2d6a4f;
    --accent-color: #40916c;
    --bg-color: #f4f4f4;
    --text-color: #333;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
}
header {
    background: var(--main-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
header h1 {
    font-size: 24px;
}
nav {
    display: flex;
    gap: 15px;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
}
nav a:hover, nav a.active {
    background: var(--accent-color);
}
.menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
}
main {
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}
footer {
    text-align: center;
    padding: 15px;
    background: var(--main-color);
    color: white;
    margin-top: 20px;
}
/* Слайдшоу */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.slide {
    display: none;
}
.slide img {
    width: 100%;
    border-radius: 10px;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 10px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
.dots-container {
    text-align: center;
    padding: 10px 0;
}
.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}
.dot.active, .dot:hover {
    background-color: var(--main-color);
}
.fade {
    animation: fade 1s ease-in-out;
}
@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}
/* Галерия */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}
#lightbox img {
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin: 5% auto;
}
#lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}
/* Responsive */
@media(max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    nav.show {
        display: flex;
    }
    .menu-btn {
        display: block;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #999;
    padding: 10px;
    text-align: left;
}
th {
    background-color: var(--main-color);
    color: white;
}
tbody tr:nth-child(even) {
    background-color: #e9f0ea;
}

/* Фиксиран размер на снимките в галерията */
.gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* Фиксиран размер на снимките в слайдшоуто */
.slideshow-container .slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

/* Центриране и максимална ширина на слайдшоуто */
.slideshow-container {
    max-width: 900px;
    margin: 0 auto 30px;
}
