* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.site-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: rgb(0, 0, 0) !important;
    font-size: 14px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(25, 142, 56);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a:active {
    color: rgb(25, 142, 56) !important;
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.social-icons a.whatsapp-icon {
    background-color: #25d366;
}

.social-icons a:hover {
    background-color: #357ab8;
    transform: scale(1.1);
}

.social-icons a.whatsapp-icon:hover {
    background-color: #1da851;
    transform: scale(1.1);
}

.social-icons a:active {
    transform: scale(0.95);
}

.social-icons a:focus {
    outline: none;
    box-shadow: none;
}

.social-icons a svg {
    width: 20px;
    height: 20px;
}

.phone {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.btn-callback {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-callback:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-callback:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

/* Адаптация под мобильные */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .site-header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 300px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .main-nav a:hover {
        transform: none;
        background-color: rgba(25, 142, 56, 0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
        order: -1;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .phone {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 10px;
    }
    
    .social-icons {
        gap: 5px;
    }
    
    .social-icons a {
        width: 28px;
        height: 28px;
    }
    
    .social-icons a svg {
        width: 16px;
        height: 16px;
    }
    
    .btn-callback {
        padding: 8px 12px;
        font-size: 12px;
    }
}
