/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5fbf6;
    color: #2d4a2f;
    overflow: hidden;
    height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

/* Шапка */
header {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 15px 30px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: relative;
    border: 1px solid #e0f0e2;
}

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

.logo-img {
    max-height: 60px; /* Максимальная высота */
    max-width: 180px; /* Максимальная ширина */
    width: auto; /* Ширина автоматически */
    height: auto; /* Высота автоматически */
    border-radius: 10px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d4a2f;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 0.9rem;
    color: #6a8c6d;
    margin-top: 3px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-btn {
    background-color: #e8f5e9;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    color: #2d4a2f;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(76, 175, 80, 0.2);
}

.nav-btn i {
    font-size: 1.1rem;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: #2d4a2f;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.dropdown a:hover {
    background-color: #f1f8f2;
    border-left: 4px solid #4CAF50;
    padding-left: 25px;
}

.dropdown a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Основной контент */
.main-content {
    display: flex;
    flex: 1;
    gap: 15px;
    overflow: hidden;
}

.sidebar {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.sidebar h3 {
    color: #2d4a2f;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar h3 i {
    color: #4CAF50;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background-color: #f1f8f2;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: #e8f5e9;
    transform: translateX(5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-text h4 {
    font-size: 0.95rem;
    color: #6a8c6d;
}

.stat-text p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d4a2f;
}

/* Центральная прокручиваемая область */
.scrollable-content {
    flex: 1;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #c8e6c9;
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #4CAF50;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h1 {
    color: #2d4a2f;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #6a8c6d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background-color: #f9fdf9;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e8f5e9;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #4CAF50;
    font-size: 1.8rem;
}

.service-card h3 {
    color: #2d4a2f;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-card p {
    color: #6a8c6d;
    line-height: 1.5;
}

.news-section h2 {
    color: #2d4a2f;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item {
    background-color: #f9fdf9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #4CAF50;
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: #f1f8f2;
    transform: translateX(5px);
}

.news-date {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-title {
    color: #2d4a2f;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.news-text {
    color: #6a8c6d;
    line-height: 1.5;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #2d4a2f;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6a8c6d;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d4a2f;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #3d8b40;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.upload-area {
    border: 2px dashed #c8e6c9;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #4CAF50;
    background-color: #f9fdf9;
}

.upload-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

/* Футер */
footer {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 15px 30px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #6a8c6d;
}

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

.social-links a {
    color: #6a8c6d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50;
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
}