/* --- 1. Змінні та налаштування --- */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --accent-color: #ffc107;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --radius: 10px;
    --container-width: 1200px;
    
    /* Збільшений базовий шрифт */
    --base-font-size: 18px; 
}

/* --- 2. Базові стилі --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    font-size: var(--base-font-size); /* 18px */
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #3399ff);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* --- 3. Шапка (Header) --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Трохи вища шапка */
}

.logo-text {
    font-weight: 800;
    font-size: 26px;
    color: var(--primary-color);
}

.logo-text span { color: #333; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 16px; color: var(--text-dark); }
.nav-links a:hover { color: var(--primary-color); }

.header-phone {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 4. Hero Section --- */
.hero {
    margin-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), url('img/windows-11.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem; /* Дуже великий заголовок */
    margin-bottom: 25px;
}

.hero h1 span { color: #4facfe; }

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 5. Features --- */
.features { padding: 90px 0; background: var(--white); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 15px; }
.section-title p { color: var(--text-gray); font-size: 1.1rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon { font-size: 45px; color: var(--primary-color); margin-bottom: 25px; }
.feature-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.feature-card p { font-size: 1rem; color: var(--text-gray); }

/* --- 6. Pricing --- */
.pricing { padding: 90px 0; background: #f0f4f8; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    position: relative;
    border: 1px solid #e1e1e1;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.price-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.price-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,123,255,0.15);
    z-index: 2;
}

.badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--accent-color); color: #000;
    padding: 6px 15px; border-radius: 20px;
    font-size: 0.85rem; font-weight: bold; text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-tag { font-size: 3rem; font-weight: 700; color: var(--primary-color); margin: 15px 0; }
.price-tag span { font-size: 1.2rem; color: var(--text-gray); font-weight: 400; }
.price-desc { font-size: 0.95rem; margin-bottom: 25px; color: #777; font-style: italic; }

.price-features { margin-bottom: 30px; text-align: left; flex-grow: 1; }
.price-features li { margin-bottom: 12px; color: var(--text-dark); font-size: 1rem; }
.price-features li i { color: #28a745; margin-right: 12px; width: 20px; text-align: center; }

/* --- 7. Services Info --- */
.info-services { padding: 90px 0; background: var(--white); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }

.info-img { height: 240px; background-color: #eee; overflow: hidden; }
.info-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.info-card:hover .info-img img { transform: scale(1.08); }

.info-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.info-content h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-dark); }
.info-content p { color: var(--text-gray); font-size: 1rem; margin-bottom: 25px; flex-grow: 1; }

.text-link { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}
.text-link:hover { text-decoration: underline; }

/* --- 8. Table --- */
.detailed-prices { padding: 80px 0; background: var(--light-bg); }

.price-table-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.price-table { width: 100%; border-collapse: collapse; text-align: left; }
.price-table th, .price-table td { padding: 20px 25px; border-bottom: 1px solid #eee; font-size: 1.05rem; }
.price-table th { background-color: #f1f1f1; font-weight: 700; color: var(--text-dark); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover { background-color: #f9fbfd; }
.price-val { font-weight: 700; color: var(--primary-color); white-space: nowrap; text-align: right; }

/* --- 9. Testimonials --- */
.testimonials { padding: 90px 0; background: var(--white); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.review-text { font-style: italic; color: #555; margin-bottom: 25px; font-size: 1.05rem; }

.review-author { display: flex; align-items: center; gap: 15px; }
.author-icon { 
    width: 50px; height: 50px; 
    background: #e1efff; color: var(--primary-color);
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem;
}
.review-author span { font-weight: 700; color: var(--text-dark); }

/* --- 10. Footer --- */
footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 1.3rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-col p { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.footer-col p a { color: #bbb; transition: 0.3s; }
.footer-col p a:hover { color: #fff; }

.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { 
    width: 40px; height: 40px; background: #333; color: #fff; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; transition: 0.3s; font-size: 1.1rem;
}
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); }

.copyright { text-align: center; border-top: 1px solid #333; padding-top: 25px; font-size: 0.9rem; }

/* --- 11. Modal Form --- */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.contact-form {
    background-color: white;
    padding: 45px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 28px; cursor: pointer; color: #999; transition: 0.3s;
}
.close-btn:hover { color: #333; }

.contact-form h2 { margin-bottom: 10px; color: var(--primary-color); }
.contact-form p { margin-bottom: 25px; font-size: 0.95rem; color: #666; }

.form-group { margin-bottom: 15px; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.contact-form button {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
}
.contact-form button:hover { background: var(--primary-dark); }

.form-error { color: #dc3545; font-size: 0.9rem; margin-top: 10px; display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Mobile Adaptability --- */
@media (max-width: 768px) {
    .hero { padding: 80px 0; margin-top: 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    
    .nav-links { display: none; } /* Тут у майбутньому варто додати JS-меню */
    .header-phone { display: none; } /* Економимо місце, або лишаємо тільки іконку */
    .nav-wrapper { justify-content: center; }

    .price-card.popular { transform: none; }
    
    .footer-grid { gap: 30px; }
    .contact-form { padding: 30px; }
}
/* --- New SEO Elements --- */

/* Стиль для кнопки в меню */
.nav-btn-link {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-btn-link:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* FAQ Section */
.faq-section { padding: 90px 0; background: var(--white); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3 i { color: var(--accent-color); font-size: 1.4rem; }
.faq-item p { color: var(--text-gray); font-size: 1rem; line-height: 1.7; }

/* SEO Info Section (Brands & Areas) */
.seo-info {
    padding: 60px 0 100px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.seo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.seo-col { flex: 1; min-width: 300px; }

.seo-col h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.seo-col h4 i { color: var(--primary-color); }

.seo-col p { font-size: 0.95rem; color: #666; line-height: 1.8; }
.seo-col strong { color: #333; font-weight: 600; }
.seo-col em { font-style: normal; color: #555; background: #e9ecef; padding: 2px 6px; border-radius: 4px; font-size: 0.9rem; }

/* CTA Box (Call to Action) */
.cta-box {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cta-box h3 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; }
.cta-box p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.8; }

/* Адаптивність для нових блоків */
@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
    .seo-row { flex-direction: column; gap: 30px; }
    .nav-btn-link { display: none; } /* Ховаємо кнопку в меню на мобільному, щоб не ламала верстку */
    .cta-box { padding: 30px 20px; }
    .cta-box h3 { font-size: 1.4rem; }
}
/* --- MOBILE MENU STYLES --- */

/* 1. За замовчуванням (на комп'ютері) ховаємо мобільні елементи */
.hamburger { display: none; }
.mobile-menu { display: none; }
.menu-overlay { display: none; }

/* 2. Стилі, які працюють ТІЛЬКИ на мобільних (до 900px) */
@media (max-width: 900px) {
    
    /* Показуємо кнопку Гамбургер */
    .hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-dark);
        padding: 10px;
    }

    /* Налаштовуємо виїзне меню */
    .mobile-menu {
        display: flex; /* Вмикаємо його як гнучкий блок */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Ховаємо за екраном справа */
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease; /* Анімуємо тільки властивість right */
        padding: 20px;
    }

    /* Клас active додається через JS, коли меню відкрите */
    .mobile-menu.active {
        right: 0; /* Виїжджає на екран */
    }

    /* Шапка всередині меню */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .close-menu {
        font-size: 24px;
        cursor: pointer;
        color: #999;
    }

    /* Посилання в меню */
    .mobile-nav-links {
        list-style: none;
        margin-bottom: 30px;
    }

    .mobile-nav-links li {
        margin-bottom: 20px;
    }

    .mobile-nav-links a {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-dark);
        display: block;
    }

    .mobile-nav-links a:hover {
        color: var(--primary-color);
    }

    /* Затемнення фону */
    .menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1500;
        display: none; /* Сховано за замовчуванням */
        opacity: 0;
        transition: opacity 0.3s;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}
/* --- Стилі для Логотипу --- */

.logo a {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 55px; /* Оптимальна висота для шапки 80px */
    width: auto;  /* Ширина підлаштується автоматично */
    object-fit: contain; /* Зберігає пропорції */
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05); /* Легке збільшення при наведенні */
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .header-logo {
        height: 45px; /* Трохи менший на телефонах */
    }
}