:root {
    --primary-color: #32CD32;
    --secondary-color: #0056d6;
    --accent-color: #ff3d00;
    --light-color: #f5f7fa;
    --dark-color: #1a237e;
    --gray-color: #546e7a;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Header */
header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Music toggle button */
.music-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#music-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%; /* Делает кнопку круглой */
    border: none;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: rgba(40, 167, 69, 0.35) 0px 4px 15px;
    transition: 0.2s;
}

#music-toggle-btn.muted {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 57, 166, 0.9), rgba(0, 86, 214, 0.8)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e53900;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 1.5rem;
}

.card-body ul {
    list-style: none;
    padding-left: 0;
}

.card-body li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.card-body li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Leadership */
.leadership-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.leader-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    width: 280px;
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid #f0f0f0;
}

.leader-name {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.leader-position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Гараж ЦОДД Section */
.garage-section {
    background-color: #f5f9ff;
    padding: 4rem 0;
}

.garage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.garage-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.garage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.garage-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.garage-info {
    padding: 1.5rem;
}

.garage-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.garage-type {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.garage-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    nav ul {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    nav.active {
        max-height: 300px;
        margin-top: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .music-toggle-container {
        margin-top: 10px;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .garage-grid {
        grid-template-columns: 1fr;
    }
}

/* Tabs for departments */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.tab {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

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

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: #28a428;
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}