/* Підключення шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* ======= БАЗОВІ СТИЛІ ======= */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
}

/* ======= ЗАГОЛОВКИ ======= */
h1, h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #004d00;
    text-transform: uppercase;
    text-align: center;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.modal-content {
	    overflow: auto;
    max-height: 90%;
}

.checkbox input {
	padding: 8px !important;
    margin-top: 5px !important;
    width: 15px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
}

h2 {
    font-size: 28px;
    margin-top: 40px;
}

/* ======= ОСНОВНИЙ КОНТЕНТ ======= */
main {
    width: 100%;
    margin-left: 250px;
    background: white;
    padding: 0px;
}

.container img {
	max-width: 20%;
    margin: 1%;
}

/* ======= ВЕРТИКАЛЬНЕ МЕНЮ ======= */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #004d00;
    padding-top: 20px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 15px;
    border-bottom: 1px solid #007000;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: block;
    text-align: left;
    transition: background 0.3s, padding-left 0.3s;
}

.sidebar ul li a:hover {
    background-color: #007000;
    padding-left: 15px;
}

/* ======= БАНЕРИ ======= */
.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    display: flex;
    width: 300%;
    transition: transform 1s ease-in-out;
}

.banner {
    min-width: 100%;
    position: relative;
}

.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 18px;
    max-width: 60%;
}

/* ======= ПРО НАС ======= */
.about-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.about-container {
    max-width: 1000px;
    margin: auto;
    text-align: left;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.about-item img {
    width: 30%;
    height: auto;
}

.about-text {
    width: 70%;
    font-size: 18px;
    line-height: 1.8;
}

/* ======= НАШІ ПЕРЕВАГИ ======= */
.advantages-section {
    padding: 60px 20px;
    background: #f8f8f8;
    text-align: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.advantage-item {
    background: #004d00;
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* ======= ВІДГУКИ ======= */
.reviews-section {
    padding: 60px 20px;
    text-align: center;
}

.review-slider {
    max-width: 600px;
    margin: auto;
    position: relative;
}

.review {
    display: none;
    font-style: italic;
    font-size: 18px;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.review.active {
    display: block;
}

/* ======= АДАПТИВНІСТЬ ======= */
@media (max-width: 1024px) {
    .about-item {
        flex-direction: column;
        text-align: center;
    }

    .about-item img, .about-text {
        width: 100%;
    }

    .about-text {
        text-align: center;
    }

    .advantages-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
	main {
    width: 100%;
    margin-left: 0px;
    background: white;
    padding: 0px;
}

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        justify-content: center;
        padding-bottom: 10px;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar ul li {
        padding: 10px;
    }

    .main-container {
        width: 100%;
        margin-left: 0;
    }

    .banner img {
        height: 300px;
    }

    .about-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .banner img {
        height: 250px;
    }
}
/* ======= БАНЕРИ ======= */
.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.banner-slider {
    display: flex;
    position: relative;
    width: 100%;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner.active {
    opacity: 1;
}

.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 220px !important;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 18px;
    max-width: 60%;
}

/* ======= АДАПТИВНІСТЬ ======= */
@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }

    .banner {
        height: 300px;
    }

    .banner img {
        height: 300px;
    }

    .banner-text {
        font-size: 16px;
        max-width: 70%;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 250px;
    }

    .banner {
        height: 250px;
    }

    .banner img {
        height: 250px;
    }

    .banner-text {
        font-size: 14px;
        max-width: 80%;
    }
}
