/* --- 1. Змінні та налаштування --- */
:root {
    --primary-color: #007bff; /* Класичний синій Windows */
    --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);
    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 a { display: flex; align-items: center; }

.header-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover { transform: scale(1.05); }

.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); }

/* Кнопка на інший сайт в меню */
.nav-btn-link {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 15px !important;
}
.nav-btn-link:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.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-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 0;
    text-align: center;
    position: relative;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 25px; }
.hero h1 span { color: #4facfe; } /* Голубий колір Windows */
.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 / Services Grid --- */
.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, .info-grid, .faq-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. SEO Content / Services --- */
.info-services { padding: 90px 0; background: var(--white); }
.seo-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; }
.seo-col { flex: 1; min-width: 300px; background: #f9f9f9; padding: 30px; border-radius: var(--radius); }
.seo-col h4 { margin-bottom: 15px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; color: var(--text-dark); }
.seo-col h4 i { color: var(--primary-color); }
.seo-col p { font-size: 1rem; color: #666; line-height: 1.7; }

/* --- 8. FAQ --- */
.faq-section { padding: 80px 0; background: #f4f9fc; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: 10px; 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.6; }

/* --- 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 input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 1rem; transition: 0.3s; margin-bottom: 15px; }
.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; }
.form-error { color: #dc3545; font-size: 0.9rem; margin-top: 10px; display: block; }

/* --- MOBILE MENU --- */
.hamburger { display: none; }
.mobile-menu { display: none; }
.menu-overlay { display: none; }

@media (max-width: 900px) {
    .hero { padding: 100px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    
    .nav-links { display: none; }
    .header-phone { display: none; }
    .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; padding: 20px;
    }
    .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; }
    
    .price-card.popular { transform: none; }
    .nav-btn-link { display: none; }
}

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