/* Загальні стилі */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Світлий фон */
    color: #333;
    line-height: 1.6;
}

h1, h2, p {
    margin: 0;
}


/* Шапка сайту */
header {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo img {
    max-height: 120px;
    margin-bottom: 60px;
}

header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

header p {
    font-size: 20px;
    color: #666;
}

/* Основний контент */
main {
    padding: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Вирівнювання карток по центру */
    gap: 30px; /* Простір між картками */
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 стовпці */
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05); /* Збільшення при наведенні */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img:hover {
    transform: scale(1.1); /* Легке збільшення зображення */
}

/* Модальне вікно для перегляду фото */
.lightbox {
    display: none; /* Приховане за замовчуванням */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Чорний напівпрозорий фон */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox .close:hover {
    color: #ff4500;
}

/* Футер */
footer {
    text-align: center;
    background-color: #fff;
    color: #888;
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

/* Секція "Контакти" */
.contact {
    background-color: #f8f9fa; /* Світло-сірий фон */
    padding: 60px 20px;
    text-align: center;
}

.contact .container {
    max-width: 700px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.contact .contact-item:last-child {
    border-bottom: none;
}

.contact .contact-item i {
    font-size: 24px;
    color: #ff4500;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact a:hover {
    color: #0056b3;
}

/* Кнопка Viber */
.viber-button {
    display: inline-block;
    background-color: #59267c; /* Фірмовий колір Viber */
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.viber-button:hover {
    background-color: #7e4eb1;
    transform: translateY(-2px);
}

.viber-button i {
    margin-right: 10px;
}

/* Стиль для телефонного посилання */
a {
    color: #ff0000; /* Червоний колір тексту */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #b30036; /* Темніший червоний при наведенні */
    text-decoration: underline;
}


/* Ліва частина (логотип) */
.contact-left {
    display: flex; /* Вирівнювання елементів */
    justify-content: center; /* Центруємо горизонтально */
    align-items: center; /* Центруємо вертикально */
    margin-right: 20px; /* Відступ праворуч для простору між логотипом і текстом */
}


/* Стиль для зображення логотипу */
.logo-image {
    max-width: 100%; /* Логотип не перевищує ширину контейнера */
    height: auto; /* Збереження пропорцій */
    max-height: 280px; /* Максимальна висота логотипу */
    border-radius: 10px; /* Округлені краї для більш м'якого вигляду */
    
}

/* --- Адаптивність --- */

/* Планшети (до 992px) */
@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 стовпці */
    }
}

/* Мобільні пристрої (до 768px) */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr; /* 1 стовпці */
    }

    .contact .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Дуже маленькі екрани (до 480px) */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr; /* 1 стовпець */
    }

    .logo-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Адаптивність для планшетів та мобільних пристроїв */
@media (max-width: 768px) {
    .contact-left {
        margin-bottom: 20px; /* Відступ знизу, якщо логотип переходить у вертикальну колонку */
    }

    .logo-image {
        max-height: 100%; /* Менша висота логотипу для мобільних */
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-height: 100%; /* Ще менша висота для дуже маленьких екранів */
        margin: 0 auto; /* Центруємо горизонтально */
    }
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

nav ul li a.active {
    color: white;
    background-color: #007bff; /* Колір активного пункту */
    border-radius: 5px;
    pointer-events: none; /* Забороняє повторне натискання */
}



/* Основний стиль кнопки */
.discount-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff4500; /* Яскравий помаранчевий */
    color: white; /* Білий текст */
    font-size: 18px; /* Розмір тексту */
    font-weight: bold; /* Жирний текст */
    padding: 10px 20px; /* Внутрішні відступи */
    border-radius: 8px; /* Закруглені краї кнопки */
    text-decoration: none; /* Прибрати підкреслення */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тінь кнопки */
    position: relative; /* Для позиціонування бейджа */
    transition: transform 0.2s, box-shadow 0.2s ease-in-out; /* Анімація при наведенні */
}

/* Ефект наведення */
.discount-button:hover {
    transform: translateY(-2px); /* Підйом кнопки */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Більша тінь */
    background-color: #ff3000; /* Темніший помаранчевий при наведенні */
}

/* Активний стан кнопки */
.discount-button:active {
    transform: translateY(1px); /* Невелике "натискання" кнопки */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Менша тінь */
}

/* Бейдж "Акція" */
.discount-badge {
    background-color: #fdd835; /* Жовтий колір бейджа */
    color: #333; /* Темний текст */
    font-size: 12px; /* Розмір тексту бейджа */
    font-weight: bold; /* Жирний текст */
    padding: 5px 10px; /* Внутрішні відступи бейджа */
    border-radius: 12px; /* Закруглені краї бейджа */
    position: absolute; /* Абсолютне позиціонування */
    top: -10px; /* Позиція над кнопкою */
    right: -10px; /* Позиція праворуч */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Тінь бейджа */
}

/* Ефект для бейджа при наведенні на кнопку */
.discount-button:hover .discount-badge {
    background-color: #ffc107; /* Світліший жовтий колір */
}
