:root {
    --primary-color: #ff9900; /* Помаранчевий */
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --grey-text: #cccccc;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--primary-color); }

/* Header */
header { background: #000; padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--primary-color); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.btn-quote { background: var(--primary-color); color: #000 !important; padding: 10px 20px; border-radius: 5px; }

/* Hero Section Шапка на Хоум */
.hero { 
    height: 90vh; 
    background: url('images/hero-bg.png') no-repeat center center/cover;
    position: relative;
}
.hero-overlay {
    background: rgba(0,0,0,0.6);
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-content { color: #fff; max-width: 800px; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: var(--grey-text); }
.btn-main { background: var(--primary-color); color: #000; padding: 18px 35px; text-decoration: none; font-weight: 700; border-radius: 5px; display: inline-block; margin-right: 15px; transition: 0.3s; }
.btn-secondary { border: 2px solid #fff; color: #fff; padding: 16px 35px; text-decoration: none; font-weight: 700; border-radius: 5px; display: inline-block; transition: 0.3s; }
.btn-main:hover { transform: scale(1.05); }

/* Why Us Section */
.why-us { padding: 100px 0; }
.section-header h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }
.why-us-flex { display: flex; gap: 60px; align-items: center; }
.why-us-image img { width: 100%; max-width: 400px; border-radius: 20px; }
.why-us-text p { font-size: 1.1rem; margin-bottom: 15px; color: #555; }

/* Benefits Grid */
.benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    padding: 50px 0;
}
.benefit-item { 
    background: #f9f9f9; 
    padding: 40px; 
    text-align: center; 
    border-radius: 15px; 
    border-bottom: 4px solid var(--primary-color);
    transition: 0.3s;
}
.benefit-item:hover { transform: translateY(-10px); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.benefit-icon { font-size: 3rem; margin-bottom: 20px; display: block; }

/* Info Block */
.info-block { padding: 80px 0; background: #000; color: #fff; border-radius: 30px; margin-bottom: 80px; }
.info-grid { display: flex; gap: 50px; align-items: center; padding: 0 50px; }
.info-image img { width: 100%; border-radius: 20px; }
.info-content h2 { font-size: 2rem; margin-bottom: 25px; }

/* Gallery */
.gallery-section { padding: 80px 0; background: #f4f4f4; }
.gallery-grid { display: flex; gap: 20px; }
.gallery-item { flex: 1; text-align: center; background: #fff; padding: 15px; border-radius: 10px; }
.gallery-item img { width: 100%; border-radius: 5px; margin-bottom: 15px; }
.gallery-item p { font-weight: 700; text-transform: uppercase; color: var(--primary-color); }

/* Mobile adaptation */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .why-us-flex, .info-grid, .gallery-grid { flex-direction: column; }
    .nav-links { display: none; } /* Потрібно буде зробити мобільне меню пізніше */
}
/* --- СТИЛІ ДЛЯ СТОРІНКИ SERVICES --- */

/* Загальний заголовок для окремих сторінок */
.page-hero {
    height: 60vh; /* Менше, ніж на головній */
    position: relative;
    background-size: cover;
    background-position: center;
}

.services-hero {
    background-image: url('images/services-hero-bg.jpg'); /* ТУТ ВСТАВ ФОТО ФОНУ images/services-hero-bg.jpg */
}

/* Вступна картка з помаранчевим фоном */
.services-intro {
    margin-top: -100px; /* Наплив на банер */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.intro-card {
    background-color: var(--primary-color);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
    color: #000;
}

.intro-card h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: none; /* Не всі заголовки капсом */
}

.cta-text {
    font-weight: 700;
    margin-top: 30px;
    font-size: 1.1rem;
}

.intro-card .btn-main {
    background-color: #000;
    color: var(--primary-color);
    margin-top: 30px;
    border: 2px solid #000;
}

.intro-card .btn-main:hover {
    background-color: transparent;
    color: #000;
}

/* Деталі послуг (Текст + Фото) */
.service-details {
    padding: 80px 0;
}

.process-block {
    background-color: #f9f9f9;
}

/* Віддзеркалення контенту */
.info-grid.reversed {
    flex-direction: row-reverse;
}

.service-details h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-transform: none;
}

.service-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Ключові переваги */
.key-benefits {
    padding: 100px 0;
}

.key-benefits .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.key-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    text-align: left; /* Текст зліва для легшого читання */
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: inline-block;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    text-transform: none;
}

.benefit-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}
/* --- СТИЛІ ДЛЯ СТОРІНКИ ABOUT --- */

.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/about-bg.jpg');
    height: 50vh;
}

.about-intro { padding: 100px 20px; }

.mission-block {
    background: #1a1a1a;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.mission-wrapper { max-width: 800px; margin: 0 auto; }
.mission-wrapper h2 { font-size: 3rem; margin-bottom: 30px; }
.mission-wrapper p { font-size: 1.3rem; line-height: 1.8; color: #ddd; }

.certified-section { padding: 100px 20px; }
.cert-grid { display: flex; gap: 60px; align-items: center; }
.cert-logos-big { display: flex; gap: 40px; }
.cert-logos-big img { height: 80px; filter: grayscale(1); transition: 0.3s; }
.cert-logos-big img:hover { filter: grayscale(0); }

.why-titan-section { background: #f4f4f4; padding: 100px 0; }
.features-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-card h4 { margin-bottom: 15px; color: #000; font-size: 1.2rem; }

.about-cta { padding: 100px 20px; text-align: center; }
.cta-box { 
    background: var(--primary-color); 
    padding: 60px; 
    border-radius: 20px; 
    color: #000;
}
.cta-box h3 { font-size: 2rem; margin-bottom: 20px; }

@media (max-width: 768px) {
    .cert-grid { flex-direction: column; text-align: center; }
}

/* Виділена помаранчевим картка (наприклад, про гроші) */
.accent-card {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.accent-card h3, .accent-card p, .accent-card .benefit-icon {
    color: #000;
}
/* Стилі для сторінки Contact.html */
.contact-page {
    padding: 80px 0;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap; /* Щоб на телефонах блоки ставали один під одного */
}

/* Ліва частина: Форма */
.contact-form {
    flex: 2; /* Форма трохи ширша за інфо-блок */
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
}

.contact-form h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.contact-form p {
    margin-bottom: 30px;
    color: #666;
}

/* Права частина: Інфо та Карта */
.contact-info-v2 {
    flex: 1;
    background: var(--dark-bg);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    min-width: 300px;
}

.contact-info-v2 h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info-v2 p {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}

.contact-info-v2 strong {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.map-small {
    margin-top: 30px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
}

/* Стилі для полів вводу */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.1);
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-form, .contact-info-v2 {
        width: 100%;
    }
}

/* Загальний стиль для шапок на всіх сторінках */
.page-hero {
    height: 45vh; /* Робимо її трохи нижчою, ніж на головній */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    width: 100%;
}

.page-hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float img { width: 30px; }

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.project-block {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #ccc;
}

.project-block:last-child {
    border-bottom: none;
}

.project-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Два фото в ряд */
    gap: 30px;
}

.gallery-item img {
    width: 100%;
    height: 450px; /* Фіксована висота для симетрії */
    object-fit: cover; /* Фото не розтягуються, а обрізаються під розмір */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item p {
    margin-top: 10px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
}

/* Для мобільних пристроїв - фото стають одне під одним */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 300px;
    }
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Налаштуй висоту під свій логотип */
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

/* Якщо на мобільних пристроях назва занадто велика */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
}
/* --- FOOTER STYLES --- */
.main-footer {
    background-color: var(--primary-color); /* Ваш помаранчевий колір */
    padding: 60px 0 0 0;
    color: #000;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-main-logo {
    height: 80px;
    margin-bottom: 20px;
    display: block;
}

.cert-logos {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cert-logos img {
    height: 40px;
    /*filter: brightness(0); /* Робимо логотипи чорними для стилю */
}

.footer-links h4, .footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    padding-left: 5px;
    color: #000;
}

.footer-contact p {
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-contact a {
    color: #000;
    text-decoration: none;
}

/* Нижня чорна панель */
.footer-bottom {
    background-color: #111;
    color: #888;
    padding: 20px 0;
    font-size: 0.9rem;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Адаптивність для телефонів */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logos, .cert-logos {
        justify-content: center;
        margin-bottom: 20px;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 10px;
    }
    header {
        position: relative; /* Або 'static'. Це зніме її "прилипання", якщо вона заважає */
        height: auto !important; /* Дозволяємо шапці підлаштовуватися під контент */
        min-height: 0;
        padding: 15px 0;
        top: 0;
    }

    nav {
        display: flex;
        flex-direction: column; 
        gap: 10px;
    }
}


/* --- COOKIE BANNER (Professional Styling) --- */
#cookie-banner {
    display: none; /* Спочатку приховано, JS покаже його, якщо треба */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: 'Open Sans', sans-serif;
}

#cookie-banner p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

#cookie-banner a {
    color: #f9a825; /* Твій помаранчевий */
    text-decoration: underline;
    font-weight: 600;
}

#cookie-banner .btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#cookie-banner button {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

/* Кнопка Accept */
.btn-accept {
    background-color: #f9a825;
    color: #000;
}

.btn-accept:hover {
    background-color: #e69100;
}

/* Кнопка Reject */
.btn-reject {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff !important;
}

.btn-reject:hover {
    background-color: #333;
}

/* Policy Pages Styling */
.policy-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.policy-content h1 {
    font-family: 'Montserrat', sans-serif;
    color: #000;
    margin-bottom: 30px;
}

.policy-content h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    color: #f9a825;
}

.policy-content p, .policy-content li {
    margin-bottom: 15px;
}

/* Адаптивність для мобільних пристроїв (ширина менше 600px) */
@media (max-width: 600px) {
    #cookie-banner .btn-container {
        flex-direction: column; /* Кнопки стають у стовпчик */
        gap: 10px;
    }
    
    #cookie-banner button {
        width: 100%; /* Кнопки на всю ширину екрана */
        margin-left: 0;
    }
}

/* АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ */
@media (max-width: 768px) {
    /* 1. Шапка (Header) */
    header {
        padding: 10px 0;
    }

    nav {
        flex-direction: column; /* Пункти меню стають один під одним */
        align-items: center;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-direction: column; /* Робимо список вертикальним */
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .nav-links li {
        margin: 10px 0; /* Додаємо простір між кнопками, щоб зручно було натискати пальцем */
    }

    /* 2. Текст та заголовки */
    h1 {
        font-size: 1.8rem !important; /* Зменшуємо великі заголовки, щоб вони не розривали екран */
        padding: 0 15px;
    }

    p {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* 3. Секції та контейнери */
    .container {
        width: 100%;
        padding: 0 20px;
    }

    /* 4. Кнопки */
    .btn-main {
        width: 90%; /* Кнопка на телефоні має бути великою */
        margin: 10px auto;
        display: block;
    }
}

@media (max-width: 768px) {
    /* Форма */
    form, .contact-form {
        width: 100% !important; /* Займає всю ширину батьківського блоку */
        max-width: 100% !important; 
        padding: 15px !important; /* Зменшуємо внутрішні відступи, щоб було більше місця для тексту */
        box-sizing: border-box; /* Важливо: відступи не розширюють форму за межі екрана */
        margin: 0 auto;
    }

    /* Поля вводу (input) */
    input, textarea {
        width: 100% !important; /* Поля мають бути на всю ширину форми */
        box-sizing: border-box;
        font-size: 16px; /* Запобігає автоматичному наближенню (zoom) в iPhone */
    }
}

/* ФІКС ГОРИЗОНТАЛЬНОЇ ПРОКРУТКИ */
html, body {
    overflow-x: hidden; /* Забороняє совати сайт вліво-вправо */
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box; /* Щоб падінги не розширювали блоки */
}

/* АДАПТАЦІЯ ШАПКИ ТА КОНТЕНТУ */
@media (max-width: 768px) {
    header, section, footer {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Зменшуємо логотип та заголовок в шапці, щоб вони не тиснули на краї */
    .header-content { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Якщо у тебе є великі картинки або фони */
    img, .hero-section {
        max-width: 100%;
        height: auto;
    }

    /* Текст "COMPLETE EXTERNAL WALL..." */
    h1 {
        font-size: 1.5rem !important; /* Робимо заголовок меншим, щоб вліз в один-два рядки */
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    #cookie-banner {
        width: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        padding: 15px !important;
    }

    #cookie-banner .btn-container {
        display: flex;
        flex-direction: column; /* Кнопки одна під одною */
        width: 100%;
    }

    #cookie-banner button {
        width: 100%;
        margin: 5px 0 !important;
    }
}
