/* Base Styles - Основные стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary: #0a5c36;
    --primary-dark: #084d2b;
    --primary-color: #0a5c36;
    --secondary: #d4af37;
    --secondary-color: #d4af37;
    --accent: #1e88e5;
    --accent-color: #1e88e5;
    --text: #333333;
    --dark: #1a1a1a;
    --dark-color: #1a1a1a;
    --light: #f8f9fa;
    --light-color: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gray: #666666;
    --gray-color: #666666;
}

body {
    color: var(--text);
    line-height: 1.6;
    background: #f5f7fa;
}

/* Header Styles */
.header, .main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-main, .header-content {
    padding: 15px 5% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.main-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

.header-actions a:hover {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.lang-switch span {
    color: #666;
}

.lang-switch .lang-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 8px;
    transition: var(--transition);
}

.lang-switch .lang-btn:hover,
.lang-switch .lang-btn.active {
    color: var(--primary);
    font-weight: 600;
}

.lang-switch .lang-btn.active {
    cursor: default;
}

/* Header Language Switcher */
.header-lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.header-lang-switch .lang-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 8px;
    transition: var(--transition);
}

.header-lang-switch .lang-btn:hover,
.header-lang-switch .lang-btn.active {
    color: var(--primary);
    font-weight: 600;
}

.header-lang-switch .lang-btn.active {
    cursor: default;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Footer Styles */
.footer, .main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 5%;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    color: var(--secondary);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom, .copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Toggle (Burger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span {
    background: var(--primary) !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    z-index: 10000;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.mobile-lang-switch {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.mobile-lang-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-lang-btn.active,
.mobile-lang-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        right: 20px;
        top: 15px;
        z-index: 20000;
        background: white;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle.active {
        display: flex;
    }
    
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }

    .header-lang-switch {
        display: none;
    }
}

/* Content Wrapper */
.content-wrapper {
    min-height: calc(100vh - 300px);
}
