/* ================= БАЗОВІ НАЛАШТУВАННЯ ================= */
:root {
    --primary-color: #f56800; /* Ваш фірмовий помаранчевий */
    --primary-hover: #ba5210; /* Темніший для наведення мишки */
    --text-dark: #202020;
    --text-light: #636363; /* Ваш фірмовий сірий текст */
    --bg-light: #f8f8f8;
    --white: #FFFFFF;
    --border-color: #d6d6d6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= ВЕРХНЯ ПАНЕЛЬ (МОВИ) ================= */
.top-bar {
    background-color: var(--text-dark);
    padding: 5px 0;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.lang-switcher a {
    color: #AAA;
    font-size: 12px;
    font-weight: 700;
}

.lang-switcher a:hover, .lang-switcher a.active {
    color: var(--white);
}

/* ================= ШАПКА ТА ГОЛОВНЕ МЕНЮ ================= */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Кнопка мобільного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* ================= ГЕРОЙ (ЗАМІНА СТАРОГО СЛАЙДЕРА) ================= */
.hero {
    /* Тут пізніше ми поставимо гарне фото шпону на фон */
    background: linear-gradient(rgba(44, 30, 22, 0.8), rgba(44, 30, 22, 0.8)), url('../img/slider/slider_1.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
}

/* ================= ГОЛОВНИЙ КОНТЕНТ ================= */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* Бокове меню */
.sidebar {
    flex: 0 0 250px;
}

.side-menu {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.side-menu li {
    border-bottom: 1px solid var(--border-color);
}

.side-menu li:last-child {
    border-bottom: none;
}

.side-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.side-menu a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

/* Текст */
.text-data {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.text-data h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.text-data p {
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: justify;
}

.highlight-box {
    background-color: #f4eee8;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

/* ================= ПІДВАЛ (FOOTER) ================= */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p, .footer-contacts p {
    margin-bottom: 5px;
    color: #CCC;
    font-size: 14px;
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--primary-color);
}

/* ================= АДАПТИВНІСТЬ (MOBILE) ================= */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        flex: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .hero h1 {
        font-size: 28px;
    }

    .text-data {
        padding: 20px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ================= ФОТОГАЛЕРЕЯ (CSS GRID) ================= */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-section h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    /* Автоматична сітка: колонки не менше 200px, розтягуються рівномірно */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: var(--white);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3; /* Робить всі мініатюри однакового розміру */
    transition: transform 0.3s ease;
    display: block;
}

.gallery-grid a:hover img {
    transform: scale(1.08); /* Ефект збільшення при наведенні мишки */
}

/* ================= КАРТКИ ПРОДУКЦІЇ ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px); /* Ефект підняття картки при наведенні */
    box-shadow: 0 8px 15px rgba(245, 104, 0, 0.15); /* Легка тінь фірмового кольору */
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    object-fit: cover;
}

.product-card h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin: 0;
}

/* Стилізація списку видів зрізу шпону */
.veneer-types {
    margin-top: 20px;
}

.veneer-types dt {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 15px;
    font-size: 16px;
}

.veneer-types dd {
    margin-left: 0;
    color: var(--text-light);
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    margin-top: 5px;
}

/* ================= КОНТАКТИ ================= */
.contact-info {
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-info a {
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-card p.title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 14px;
}

.contact-card p.desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ================= АДАПТИВНА КАРТА ================= */
.map-container {
    margin-top: 20px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px; /* На телефоні робимо карту трохи нижчою */
    }
}
