/* Загальні стилі */

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Фіксована шапка */
header {
    background-color: #2c3d4f;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
}

/* Контейнер шапки */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

/* Логотип (клікабельний) */
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 100%;
    max-height: 4.5rem;
    width: auto;
    transition: max-height 0.3s ease;
}

/* Контактна інформація */
.contact-info {
    text-align: center;
    flex: 1;
}

.contact-info p {
    margin: 2px 0;
    font-size: 0.9rem;
}

/* Кнопка-бургер */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background-color: #fff;
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* Навігаційне меню */
nav {
    flex-grow: 1;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-list li a:hover {
    background-color: #fff;
    color: #2c3d4f;
    border-radius: 4px;
}

/* Jumbotron */
.jumbotron {
    margin-top: 5rem;
    background-image: url('images/jumbo-back.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.jumbotron h1,
.jumbotron h2 {
    color: #fff;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: #555;
}

/* Основний контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    margin-bottom: 40px;
    scroll-margin-top: 5rem;
}

/* Секція "Про нас" */
.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.intro-text p {
    font-size: 1.1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.column70 {
    flex: 0 0 70%;
}

.column30 {
    flex: 0 0 30%;
    padding-left: 1rem;
}

.product-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
}

/* Секція "Продукція" */
.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.product-details {
    max-width: 800px;
    text-align: center;
}

.product-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-details p {
    margin-bottom: 10px;
}

.product-details ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

/* Таблиці ціноутворення */
.divTablePricing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.divTableColumnPricing {
    flex: 1 1 300px;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.divTableHeadingPricing {
    background-color: #EEE;
    padding: 15px;
    border-bottom: 1px solid #999;
}

.divTableHeadingPricing p {
    margin-bottom: 8px;
}

.divTableBodyPricing {
    padding: 15px;
    flex: 1;
}

.divTableBodyPricing ul {
    list-style-type: disc;
    padding-left: 20px;
}

.divTableBodyPricing ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Стилі для статей проектів */
.item-article {
    width: 100%;
}

.itemHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #2c3d4f;
    color: #fff;
    padding: 1rem;
}

.item-name {
    color: #fff;
}

.itemHeader h2,
.itemHeader h3 {
    margin: 0;
}

.itemHeader h2 {
    font-weight: bold;
    font-size: 1.5rem;
}

.itemHeader h3 {
    font-weight: normal;
    font-size: 1.2rem;
}

.item-main {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.itemImage,
.itemCharacteristics {
    padding: 0.5rem;
}

.itemImage {
    flex: 0 0 30%;
}

.itemCharacteristics {
    flex: 1;
}

.itemCharacteristics table,
.itemDetails table {
    width: 100%;
    border-collapse: collapse;
}

.itemCharacteristics th,
.itemDetails th {
    text-align: left;
    padding: 0.5rem;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
}

.itemCharacteristics td,
.itemDetails td {
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.itemImage img,
.genericView img,
.frontView img,
.floorPlan img,
.sideProjection img {
    display: block;
    max-height: 200px;
    max-width: 100%;
    height: auto;
    width: auto;
    margin: 0 auto;
    cursor: pointer;
}

.item-views-details {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.genericView,
.frontView,
.itemDetails {
    padding: 0.5rem;
    flex: 1;
}

.item-projections {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.floorPlan,
.sideProjection {
    flex: 1;
    padding: 0.5rem;
}

.floorPlan p,
.sideProjection p {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Секція "Контакти" */
.contact address {
    font-style: normal;
    text-align: center;
}

.contact a {
    color: #1155cc;
    text-decoration: underline;
}

.contact .map-container {
    margin-top: 20px;
}

.contact iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
}

/* Футер */
footer {
    background-color: #2c3d4f;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* Медіа-запити для адаптивності */
@media (max-width: 1023px) {
    .jumbotron {
        padding: 8rem 1rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-list li a {
        font-size: 1rem;
    }

    .product-details h3 {
        font-size: 1.6rem;
    }

    .pricing th,
    .pricing td {
        font-size: 1rem;
    }

    .divTablePricing {
        gap: 15px;
    }

    .divTableColumnPricing {
        flex: 1 1 100%;
    }

    .itemHeader {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-main {
        flex-direction: column;
    }

    .itemImage,
    .itemCharacteristics {
        flex: none;
        width: 100%;
    }

    .item-views-details {
        flex-direction: column;
    }

    .genericView,
    .frontView,
    .itemDetails {
        flex: none;
        width: 100%;
    }

    .item-projections {
        flex-direction: column;
    }

    .floorPlan,
    .sideProjection {
        flex: none;
        width: 100%;
    }

    /* Виправлення відображення контактної інформації та кнопки-бургера */
    .header-container {
        padding: 0 10px;
    }

    .logo-link {
        margin-right: auto;
    }

    .contact-info {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        top: 50%;
    }

    /* Сховати навігаційне меню за замовчуванням */
    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #2c3d4f;
        position: absolute;
        right: 0;
        width: 100%;
        padding: 20px 0;
        margin-top: 2rem;
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    /* Показати кнопку-бургер */
    .nav-toggle-label {
        display: flex;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    /* Показати меню при активному чекбоксі */
    .nav-toggle:checked ~ nav .nav-list {
        display: flex;
    }
}

@media (max-width: 480px) {
    .divTablePricing {
        flex-direction: column;
        gap: 10px;
    }

    .divTableColumnPricing {
        flex: 1 1 100%;
    }

    .divTableHeadingPricing {
        padding: 10px;
    }

    .divTableBodyPricing {
        padding: 10px;
    }

    .divTableBodyPricing ul li {
        font-size: 14px;
    }
}