/* ================= БАЗОВІ СТИЛІ ================= */
html {
    scroll-behavior: smooth; /* Ось ця магія робить скрол плавним для всіх якорів на сайті! */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Manrope', Sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3875c2;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}
.btn:hover {
    background-color: #003d82;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= ШАПКА САЙТУ ================= */
.header {
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-toggle {
    display: none; /* Ховаємо на ПК */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Налаштування для ПК: Меню по центру, контакти справа */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 40px; /* Відступ меню від лого */
}

/* ГОЛОВНЕ МЕНЮ ДЕСКТОП (Горизонтальне) */
.main-menu {
    display: flex; 
    flex-direction: row; /* Явно вказуємо горизонтальний напрямок */
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Стиль посилань у меню */
.main-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #222;
    white-space: nowrap; /* Щоб пункти не переносились на новий рядок */
}

.main-menu a:hover {
    color: #0056b3;
}

.header-contacts {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ================= ГОЛОВНИЙ ЕКРАН (HERO) ================= */
.hero {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f9fa;
}
.hero h1 {
    font-size: 42px;
    color: #222;
}
.hero-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ================= ПРО НАС ================= */
.about {
    padding: 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.about p {
    font-size: 18px;
    color: #555;
}

/* ================= 2 КОЛОНКИ (ТЕКСТ + FAQ) ================= */
.two-columns {
    padding: 60px 0;
    background-color: #f8f9fa;
}
.columns-wrapper {
    display: flex;
    gap: 40px;
}
.col {
    flex: 1;
}
h2 {
    margin: 20px 0;
    font-size: 28px;
    color: #222;
}
p {
    font-size: 22px;
    font-weight: 400;
    color: #222;
    line-height: 1.5;
    margin: 20px 0;
}
.faq-box {
    background: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.faq-box p {
    margin-bottom: 20px;
}

/* --- Стилі акордеона --- */
.accordion {
    margin-top: 20px;
    text-align: left;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.accordion-header {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    color: #222;
}

.accordion-header:hover {
    color: #0056b3;
}

.accordion-header .icon {
    font-size: 20px;
    transition: transform 0.3s;
}

/* Приховане тіло акордеона */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0;
}

.accordion-body p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #666;
}

/* Активний стан (коли розгорнуто) */
.accordion-item.active .accordion-body {
    max-height: 300px;
    padding-bottom: 20px;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
    color: #0056b3;
}

/* ================= КОНТАКТИ ================= */
.contacts-section {
    padding: 60px 0;
    text-align: center;
}
.contacts-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.address {
    font-size: 18px;
    margin-bottom: 30px;
    font-style: normal;
}
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ================= ФУТЕР ================= */
.footer {
    background-color: #222;
    color: #fff;
    padding: 25px 15px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 5px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-col {
    flex: 1;
}

.footer-logo {
    margin-bottom: 20px;
}

/* Вертикальне меню */
.footer-menu-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-vertical a {
    color: #ccc;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-menu-vertical a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Контакти у футері */
.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contacts p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-contacts a {
    color: #0056b3;
    font-weight: 500;
}

.footer-contacts a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    font-size: 13px !important;
    line-height: 1.4;
}

/* Фото у футері */
.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-hex-image {
    width: 250px;
    height: 250px;
    position: relative;
    overflow: hidden;
    transform: rotate(-10deg);
}

.footer-hex-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ================= АДАПТИВНІСТЬ (МОБІЛЬНА ВЕРСІЯ) ================= */
@media (max-width: 768px) {
    /* Шапка */
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    .header-top {
        width: 100%;
    }
    .mobile-toggle {
        display: block; /* Показуємо бургер-меню */
    }
    .header-content {
        display: none; /* Ховаємо блок за замовчуванням */
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 1px solid #eaeaea;
        gap: 25px;
    }
    .header-content.active {
        display: flex;
    }
    
    /* Мобільне меню (Вертикальне) */
    .main-menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    .header-contacts {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    /* Контент */
    .columns-wrapper {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 32px;
    }

    /* Футер */
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 40px;
    }
    .footer-right {
        justify-content: center;
        flex: auto;
        max-width: 300px;
        margin: 0 auto;
    }
    .footer-menu-vertical {
        align-items: center;
    }
}

/* ================= КНОПКА "ВГОРУ" (Чистий CSS) ================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3875c2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: #003d82;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

