/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #0066cc;   /* Основной синий */
    --secondary-color: #ff9900; /* Акцентный оранжевый */
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Скрываем горизонтальную прокрутку */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Липкая шапка */
    top: 0;
    z-index: 1000; /* Шапка всегда поверх всего */
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Правый контейнер (Телефон + Языки + Бургер) */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* ВАЖНО: Отступ, чтобы не было наложения */
}

/* Блок контактов в шапке */
.contact-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap; /* Запрещаем перенос номера телефона */
}

.contact-header a {
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-header a:hover {
    color: var(--secondary-color);
}

.work-hours {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Переключатель языков */
.lang-switcher {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.lang-btn {
    border: 1px solid #ddd;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Бургер меню (по умолчанию скрыт) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Навигация (Полоса меню) */
.navigation {
    background: var(--dark-bg);
}

.nav-menu {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    color: var(--white);
    padding: 15px 25px;
    font-weight: 500;
}

.nav-menu li a:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 600px;
    /* Фоновая картинка */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1597872200969-2b65d56bd16b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.6);
    background: #ffaa33;
}

/* =========================================
   4. SECTIONS & COMPONENTS
   ========================================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* STATS */
.stats-section {
    background: var(--primary-color);
    padding: 40px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* ABOUT */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* SERVICES */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* PRICING (TABS) */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.tab-button.active, .tab-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.price-item {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
}

.price-item .price {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

/* ONSITE */
.onsite {
    background: #eef2f5;
}

.onsite-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.onsite-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.onsite-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ADVANTAGES */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.advantage-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* CONTACTS */
.map-section {
    background: var(--light-bg);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-info {
    text-align: center;
    margin-bottom: 30px;
}

.coverage-areas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.coverage-item {
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #0056b3;
}

.contact {
    background: var(--dark-bg);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.contact-item-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

footer {
    background: #111;
    color: #777;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* =========================================
   5. FLOATING BUTTONS
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #fff;
}

/* Кнопка звонка (скрыта на ПК) */
.call-float {
    display: none;
}

/* =========================================
   6. MEDIA QUERIES (АДАПТИВНОСТЬ)
   ========================================= */

/* TABLET (Планшеты) */
@media (max-width: 1024px) {
    .stats-grid, 
    .about-features, 
    .services-grid, 
    .price-grid, 
    .onsite-grid, 
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE (Телефоны) */
@media (max-width: 768px) {
    
    /* 1. Header Changes */
    .header-right {
        gap: 15px;
    }

    .contact-header {
        display: none; /* Скрываем текст телефона */
    }

    .logo {
        font-size: 1.5rem;
    }

    /* 2. Burger Icon Styling */
    .mobile-menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
    }

    .burger {
        display: block;
        width: 25px;
        height: 2px;
        background: #333;
        position: relative;
        transition: 0.3s;
    }

    .burger::before,
    .burger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background: #333;
        transition: 0.3s;
        left: 0;
    }

    .burger::before { top: -8px; }
    .burger::after { top: 8px; }

    /* Burger Animation when active */
    .mobile-menu-toggle.active .burger {
        background: transparent;
    }
    .mobile-menu-toggle.active .burger::before {
        top: 0;
        transform: rotate(45deg);
    }
    .mobile-menu-toggle.active .burger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* 3. MOBILE MENU OVERLAY (Исправлено) */
    .navigation {
        background: transparent; /* Убираем темный фон контейнера */
    }

    .nav-menu {
        display: block; 
        position: fixed; /* Фиксируем относительно экрана */
        top: 0;
        left: -100%; /* Спрятано слева */
        width: 100%;
        height: 100vh; /* На весь экран */
        background: rgba(255, 255, 255, 0.98);
        padding-top: 80px; /* Отступ сверху под шапку */
        transition: all 0.4s ease;
        z-index: 999; /* Под шапкой, но над контентом */
        flex-direction: column;
        align-items: center;
    }

    .nav-menu.active {
        left: 0; /* Выезд меню */
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: none;
        text-align: center;
    }

    .nav-menu li a {
        color: #333;
        font-size: 1.4rem;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 4. Grids -> 1 Column */
    .stats-grid, 
    .about-features, 
    .services-grid, 
    .price-grid, 
    .onsite-grid, 
    .advantages-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 5. Font Adjustments */
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    
    /* 6. Visible Call Button */
    .call-float {
        bottom: 100px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--primary-color);
        color: white;
        border-radius: 50%;
        position: fixed;
        z-index: 1000;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
        text-decoration: none;
        transition: var(--transition);
    }
    
    .call-float:hover {
        background-color: #0056b3;
        transform: scale(1.1);
    }
}
