:root {
    /* Темно-синя палітра з глибиною b-b-bau.com/lp */
    --bg-main: #0e1525;
    --bg-overlay: rgba(14, 21, 37, 0.88);
    
    /* Напівпрозорі картки в стилі b-b-bau */
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-border-active: #e5732f;

    /* Фірмовий колір FORTI */
    --forti-blue: #164d7d;
    --forti-blue-hover: #1e629b;

    /* Помаранчевий терракот (b-b-bau.com/lp) */
    --accent-orange: #e5732f;
    --accent-orange-hover: #d6621e;

    /* Текст */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Фоновий шар з затемненням для об'єму */
    background: linear-gradient(180deg, var(--bg-overlay) 0%, rgba(14, 21, 37, 0.96) 100%), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover fixed no-repeat;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden { display: none !important; }

/* Кнопки в стилі B-B-Bau */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    letter-spacing: 0.2px;
}

/* Помаранчева кнопка */
.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 115, 47, 0.25);
}
.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 115, 47, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(229, 115, 47, 0.05);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-link { color: var(--accent-orange); text-decoration: none; font-size: 13.5px; font-weight: 600; margin-left: auto; }
.btn-link:hover { text-decoration: underline; color: #fff; }
.btn-block { width: 100%; padding: 12px; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(14, 21, 37, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 14px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Єдине фірмове лого: Графічний знак + Текст FORTI */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    line-height: 1;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.2s;
}

.phone:hover {
    color: var(--accent-orange);
}

/* Main Hub */
.main-hub {
    padding: 60px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hub-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: rgba(22, 77, 125, 0.35);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hub-hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    color: #ffffff;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Тези під заголовком */
.hero-mini-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}

.mini-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 500;
}

.mini-feat::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 16px;
}

/* Напівпрозорі акордеони B-B-Bau style */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acc-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: all 0.25s ease;
}

.acc-item:hover {
    background: var(--card-bg-hover);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.acc-item.active {
    border-color: var(--accent-orange);
    background: rgba(229, 115, 47, 0.04);
}

.acc-header {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
}

.acc-icon { font-size: 20px; opacity: 0.9; }

.acc-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s;
    font-size: 13px;
}

.acc-item.active .acc-arrow {
    transform: rotate(90deg);
    color: var(--accent-orange);
}

.acc-body {
    display: none;
    padding: 0 22px 20px 56px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.acc-item.active .acc-body { display: block; }

.acc-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Модальне вікно заявки */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 26, 0.88); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}

.modal-box {
    background: #111827;
    border: 1px solid var(--accent-orange);
    padding: 35px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: #ffffff;
    font-size: 20px; cursor: pointer; opacity: 0.7;
}

.modal-close:hover { opacity: 1; }

.form-group { margin-bottom: 16px; }

.form-group label { display: block; font-size: 12px; margin-bottom: 6px; color: var(--text-secondary); }

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus { border-color: var(--accent-orange); }

/* ==========================================
   Мобільна адаптація (320px - 600px)
   ========================================== */
/* ==========================================
   Мобільна адаптація (до 600px включно)
   ========================================== */
@media (max-width: 900px) {
    .hub-container { grid-template-columns: 1fr; gap: 20px; }
    .hub-hero h1 { font-size: 28px; }
}

@media (max-width: 600px) {
    /* Компактний Хедер */
    .header {
        padding: 8px 0;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .logo-img { height: 22px; width: auto; }
    .logo-text { font-size: 16px; font-weight: 800; line-height: 1; }

    .header-contacts {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }

    .phone {
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
        color: #ffffff;
    }

    .header-contacts .btn {
        width: auto;
        padding: 5px 10px;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        border-radius: 4px;
    }

    /* Компактний HERO на мобільному */
    .main-hub {
        padding: 15px 0 25px 0;
        min-height: auto;
    }

    .hub-container { gap: 15px; }

    .badge {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .hub-hero h1 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .hero-mini-features {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .mini-feat { font-size: 12px; }

    /* ==========================================
       Виправлення розгортки Акордеона (100% ширини)
       ========================================== */
    .acc-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    /* Опис розтягується на ВСЮ ширину картки */
    .acc-body {
        padding: 0 16px 16px 16px; /* Замість padding-left: 56px */
        font-size: 13.5px;
        line-height: 1.5;
    }

    .acc-body p {
        width: 100%;
        text-align: left;
    }

    /* Блок кнопок на всю ширину */
    .acc-actions {
        display: flex;
        flex-direction: column; /* Кнопка над посиланням */
        width: 100%;
        gap: 10px;
        margin-top: 14px;
    }

    /* Кнопка "Швидка заявка" на 100% ширини */
    .acc-actions .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 13.5px;
        font-weight: 700;
        text-align: center;
        justify-content: center;
        border-radius: 6px;
    }

    /* Посилання "Детальніше про напрямок ➔" на 100% ширини з вирівнюванням по центру */
    .acc-actions .btn-link {
        width: 100%;
        margin-left: 0;
        text-align: center;
        display: block;
        padding: 8px 0;
        font-size: 13px;
        font-weight: 600;
    }
}