/* Підключення шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap");



body {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    background-color: #f8f8f8;
}

h1, h2, h3 {
    font-family: 'Montserrat', serif;
}

h4 {
    font-family: 'Montserrat', serif;
}

.main-text {
    padding: 30px;
    font-size: xxx-large;
    font-family: 'Dancing Script', cursive;
}

.sidebar {
    font-family: 'Montserrat', serif;
    width: 170px;
    background: #82a7b1;
    color: white;
    position: fixed;
    height: 200vh;
    padding: 20px;
    transition: width 0.3s;
    top: 0;
    left: 0;

}

.sidebar img {
    max-width: 100%;
    margin-bottom: 20px;
}

.sidebar nav a {
    display: block;
    color: black;
    text-decoration: none;
    margin: 15px 0;
    font-size: 18px;
    transition: color 0.3s;

}

.sidebar nav a:hover {
    color: #ffcc00;
}

.main-content {
    margin-left: 220px;
    padding: 20px;
    flex-grow: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.image-slider {
    width: 100%;
    height: 30vh;
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Включає горизонтальний скрол */
    scroll-snap-type: x mandatory;
    white-space: nowrap; /* Запобігає переносу зображень на новий рядок */
    scrollbar-width: none; /* Приховує скролбар у Firefox */
    -ms-overflow-style: none; /* Приховує скролбар в IE/Edge */
}

.image-slider::-webkit-scrollbar {
    display: none; /* Приховує скролбар у Chrome/Safari */
}

.image-slider img {
    flex-shrink: 0;
    width: auto;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: center;
}


.btn {
    background: #97da1c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #ffcc00;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service {
    background: #ffffff;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service:hover {
    transform: translateY(-10px);
}

.reviews {
    background: #B3D1E0FF;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.quote-section {
    width: 100%;
    max-width: 80vh;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.quote-section form {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.quote-section label {
    font-weight: bold;
}

.quote-section input, .quote-section textarea {
    width: 95%;
    height: 30px;
    place-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;

}

/* Стилі для соціальних іконок */
.social-icons {
    display: flex;
    justify-content: center; /* Центруємо іконки */
    gap: 20px; /* Відстань між іконками */
    align-items: center;
    margin-top: 20px;
}

.social-icon i {
    font-size: 30px; /* Середній розмір іконок */
    color: black; /* Помаранчевий колір */
    transition: color 0.3s ease; /* Плавна зміна кольору при наведенні */
}

.social-icon i:hover {
    color: darkorange; /* Темніше помаранчевий колір при наведенні */
}

footer {
    width: 90%;
    background: #b3d1e0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    color: white;
}

footer a {
    color: black;
    text-decoration: none;

}

.text {
    padding: 15px;
    font-size: 12px;
}




/* Адаптивність */
@media (max-width: 1024px) {
    body {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        height: 100vh;
        margin: 0;
        padding: 0;
        width: 100vw;
        box-sizing: border-box;
    }

    .sidebar {
        font-family: 'Montserrat', serif;
        width: 170px;
        background: #82a7b1;
        color: white;
        position: fixed;
        height: 200vh;
        padding: 20px;
        transition: width 0.3s;
        top: 0;
        left: 0;

    }


    .main-content {
        margin-left: 180px;
        width: calc(100% - 180px);
    }

    .main-text {
        padding: 30px;
        font-size: xxx-large;
        font-family: 'Dancing Script', cursive;
    }
}


@media (max-width: 828px) {
    body {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        height: 100vh;
        margin: 0;
        padding: 0;
        width: 100vw;
        box-sizing: border-box;
    }

    .btn {
        width: 130px;
        background: #97da1c;
        color: white;
        padding: 10px 10px;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
        margin-left: 15px;
        margin-bottom: 10px;
        border-radius: 5px;
        transition: background 0.3s;
        align-self: center; /* Центрує кнопку всередині flex-контейнера */
    }

    .quote-section form {
        display: flex;
        flex-direction: column;
        align-items: center; /* Вирівнює по центру */
        justify-content: center;
        text-align: center;
    }

    .btn:hover {
        background: #ffcc00;
    }

    .main-text {
        padding: 30px;
        font-size: xxx-large;
        font-family: 'Dancing Script', cursive;
    }

    .sidebar {
        width: 100px;
        height: 100vh;
        padding: 10px;
        position: fixed;
        top: 0;
        left: 0; /* Закріплює sidebar з лівого краю */
        z-index: 1000;
    }

    .sidebar nav {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .sidebar nav a {
        font-size: 12px;
        margin: 5px;
    }

    .main-content {
        margin-left: 107px;
        width: calc(100vw - 100px);
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .image-slider {
        width: 100%;
        height: 25vh;
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
    }

    .image-slider img {
        flex-shrink: 0;
        height: auto;
        object-fit: contain;
        scroll-snap-align: start;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 90%;
        margin-bottom: 15px;
    }

    .quote-section {
        width: 100%;
        padding: 0px;
    }

    .quote-section form {
        gap: 10px;
    }

    .reviews {
        padding: 15px;
        font-size: 14px;
    }

    footer {
        width: 87%;
        padding: 15px;
        font-size: 14px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icon i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        height: 100vh;
        margin: 0;
        padding: 0;
        width: 100vw;
        box-sizing: border-box;
    }

    .btn {
        width: 130px;
        background: #97da1c;
        color: white;
        padding: 10px 10px;
        text-decoration: none;
        display: inline-block;
        margin-top: 10px;
        margin-left: 15px;
        margin-bottom: 10px;
        border-radius: 5px;
        transition: background 0.3s;
        align-self: center; /* Центрує кнопку всередині flex-контейнера */
    }

    .quote-section form {
        display: flex;
        flex-direction: column;
        align-items: center; /* Вирівнює по центру */
        justify-content: center;
        text-align: center;
    }

    .btn:hover {
        background: #ffcc00;
    }

    .main-text {
        padding: 30px;
        font-size: xxx-large;
        font-family: 'Dancing Script', cursive;
    }

    .sidebar {
        width: 100px;
        height: 100vh;
        padding: 10px;
        position: fixed;
        top: 0;
        left: 0; /* Закріплює sidebar з лівого краю */
        z-index: 1000;
    }

    .sidebar nav {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .sidebar nav a {
        font-size: 12px;
        margin: 5px;
    }

    .main-content {
        margin-left: 107px;
        width: calc(100vw - 100px);
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .image-slider {
        width: 100%;
        height: 25vh;
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
    }

    .image-slider img {
        flex-shrink: 0;
        height: auto;
        object-fit: contain;
        scroll-snap-align: start;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 90%;
        margin-bottom: 15px;
    }

    .quote-section {
        width: 100%;
        padding: 0px;
    }

    .quote-section form {
        width: 100%;
        gap: 10px;
    }

    .reviews {
        padding: 15px;
        font-size: 14px;
    }

    footer {
        width: 87%;
        padding: 15px;
        font-size: 14px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icon i {
        font-size: 24px;
    }
}
