/* =================== Глобальні стилі =================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #fff3e0;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

/* =================== Хедер =================== */
header {
    background: #ff6600;
    padding: 12px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a i {
    font-size: 16px;
}

/* =================== Фіксоване лого =================== */
.site-logo {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 4000;
    background: rgba(255, 255, 255, 1);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo img {
    max-width: 85%;
    max-height: 90%;
    object-fit: contain;
}

.site-logo:hover {
    background: rgba(255, 255, 255, 1);
}



/* =================== Кнопка =================== */
button, .btn {
    background: #ffcc00;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover, .btn:hover {
    background: #ffbb00;
}

/* =================== Продуктові банери =================== */
.product-banners {
    margin: 40px 0;
}

.banner-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-banner {
    display: block;
    width: 400px;
    height: 250px;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.product-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.product-banner:hover img {
    transform: scale(1.1);
}

.banner-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    transition: background 0.3s ease-in-out;
}

.product-banner:hover .banner-text {
    background: rgba(0, 0, 0, 0.8);
}

/* =================== Про нас =================== */
.about-section {
    background: #ffe0b2;
    padding: 50px 20px;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Картки з перевагами */
.about-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.benefit-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.benefit-card i {
    font-size: 40px;
    color: #ff6600;
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 16px;
    color: #555;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* =================== Галерея =================== */
.gallery-section {
    padding: 50px 20px;
    text-align: center;
    background: #fff3e0;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: scrollLoop 30s linear infinite;
}

.gallery-item {
    flex: 0 0 auto;
    width: 200px;
    height: 150px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

@keyframes scrollLoop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =================== Контакти =================== */
.contact-section {
    padding: 50px 20px;
    text-align: center;
    background: #fff3e0;
}

.loading-container {
    margin-top: 20px;
    font-size: 18px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    margin-top: 10px;
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top: 5px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =================== Модальне вікно для галереї =================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    display: block;
    max-width: 80%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.close:hover {
    color: #ff0000;
}

/* =================== Модальне вікно товарів =================== */
.product-modal .modal-content {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.product-modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* Галерея в модальному */
.modal-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-gallery img {
    width: 30%;
    border-radius: 5px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

/* Опис продукту */
.modal-text {
    text-align: left;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

.modal-text ul {
    padding-left: 20px;
    margin-top: 10px;
}

.modal-text ul li {
    margin-bottom: 5px;
}

/* =================== Модальне вікно заявки =================== */
#request-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-modal {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.request-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.request-modal .close:hover {
    color: #ff0000;
}

.request-modal label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}





.request-modal input,
.request-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 5px;
}

.checkbox-container input {
    width: 15%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 5px;
}

.request-modal textarea {
    height: 80px;
    resize: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: 10px;
    font-size: 14px;
}

.checkbox-container input {
    margin-right: 8px;
}

.checkbox-container a {
    color: #553bff;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.request-modal button {
    background: #ffcc00;
    color: #000;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.request-modal button:hover {
    background: #ffbb00;
}

/* =================== Умови оферти =================== */
#terms-modal .modal-content {
        background: #fff;
    padding: 20px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    transform: translate(-60%, -60%);
    overflow-y: scroll;
}

#terms-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* =================== Футер =================== */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    margin-top: 40px;
}

.footer a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* =================== Мобільна адаптивність =================== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .site-logo {
        width: 120px;
        height: 120px;
    top: 40px;
    left: 40%;

    }
    .banner {
        height: 350px;
        margin-top: 60px;
    }
    .banner-content h1 {
        font-size: 24px;
    }
    .banner-content p {
        font-size: 14px;
    }
    .banner-content button {
        padding: 10px 20px;
        font-size: 16px;
    }
    .product-banner {
        width: 90%;
        height: 200px;
    }
    .about-benefits {
        flex-direction: column;
        align-items: center;
    }
    .benefit-card {
        width: 90%;
    }
    .gallery-item {
        width: 160px;
        height: 120px;
    }
    .modal-gallery img {
        width: 100%;
    }
    .modal .modal-content {
        padding: 15px;
    }
    .request-modal, #terms-modal .modal-content {
        max-width: 90%;
    }
}

/* Головний банер */
.banner {
    background: url("images/banner.jpg") no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 70px;
    position: relative;
}

.banner-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 20px;
    border-radius: 8px;
    max-width: 700px;
    text-align: center;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 10px;
}

.banner-content .small-text {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 20px;
}

.banner-content button {
    background: #ffcc00;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-content button:hover {
    background: #ffbb00;
}

/* Модальне вікно товару */
.modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    padding: 30px;
}

.modal .modal-content {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 900px;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* Галерея всередині модалки */
.modal-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-gallery img {
    width: 30%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

.modal-text {
    text-align: left;
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

.modal-text ul {
    padding-left: 20px;
    margin-top: 10px;
}

.modal-text ul li {
    margin-bottom: 5px;
}
html {
    scroll-behavior: smooth;
}
