
:root {
    --primary-color: #2E7D32;
    --primary-dark: #2E7D32;
    --primary-light: #DCEDC8;
    --accent-color: #FFC107;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-dark: #2E7D32;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.accessibility-bar {
    background-color: var(--bg-dark);
    padding: 8px 0;
    color: var(--text-light);
}

.accessibility-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-btn:hover {
    color: var(--accent-color);
}


.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    padding: 5px;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 250px;
}

.search-box button {
    background: var(--primary-dark);
    border: none;
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.header-contacts i {
    margin-right: 5px;
}

/* ==== НАВИГАЦИЯ ==== */
.main-nav {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    min-height: 65px;
}

/* Логотип для мобильных */
.nav-logo-mobile {
    display: none;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-logo-mobile span {
    color: var(--text-light);
}

/* Кнопка меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

.menu-toggle:hover {
    color: var(--accent-color);
}

/* Список навигации */
.nav-list {
    display: flex;
    flex-wrap: wrap; /* позволяет несколько строк */
    justify-content: center;
    align-items: stretch;
    width: 100%;
    transition: all 0.3s ease;
}

.nav-item {
    flex: 1 1 150px;
    text-align: center;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover {
    background: #689F38!important;
}

.nav-link.active {
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
}

/* ==== Мобильная версия ==== */
@media (max-width: 992px) {
    .nav-logo-mobile {
        display: block;
        flex: 1;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
    }

    .nav-list.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo-mobile {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 13px 20px;
    }
}



.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-light);
    width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}


.slider {
    min-height: 400px;
    height: auto;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background.png');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.quick-links {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.link-card {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.link-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.link-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.link-card p {
    color: var(--text-secondary);
}


.news {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-date {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.news-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.news-card p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

.read-more {
    display: inline-block;
    padding: 0 20px 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-dark);
}

.news-actions {
    text-align: center;
}



.vov{
    display: flex;
    justify-content: center;
}

.vov_container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.vov_container img {
  max-width: 200px;
  height: auto;
  display: block;
}

.vov_container .text {
  flex: 1 1 auto;
  min-width: 0;
}



.director {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.director-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.director-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.director-message p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.director-signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-light);
}

.director-signature p span {
    font-weight: 500;
    color: var(--primary-dark);
}

.specialties {
    padding: 80px 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.specialty-card {
    background-color: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.specialty-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.specialty-content {
    padding: 20px;
}

.specialty-content h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.specialty-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.specialties-actions {
    text-align: center;
}


.contacts {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contacts-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.map {
    background-color: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.map-placeholder {
    text-align: center;
    color: var(--primary-dark);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}


.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}


@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .director-inner {
        grid-template-columns: 1fr;
    }
    
    .contacts-inner {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .search-box input {
        width: 180px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}


body.accessibility-mode {
    font-size: 18px;
    color: #000;
    background: #fff;
}

body.accessibility-mode .header,
body.accessibility-mode .main-nav,
body.accessibility-mode .footer {
    background: #000;
    color: #fff;
}

body.accessibility-mode .btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

body.accessibility-mode .btn-outline {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.admin-panel-btn {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.admin-panel-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}


.content-with-sidebar {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.page-content {
    flex: 1;
}

.page-title {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.content-block {
    margin-bottom: 30px;
}

.content-block img.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.file-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.file-link i {
    margin-right: 8px;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.content-table th, .content-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.content-table th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.content-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-table tr:hover {
    background-color: #f1f1f1;
}


@media (max-width: 992px) {
    .content-with-sidebar {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
}

.news {
    padding: 40px 0;
}

.news .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}


/* Заголовок */
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
}

/* Контейнер для ВК виджета */
.vk-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}



@media (max-width: 768px) {
    .vk-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    #vk_groups {
        max-width: 100%;
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    #vk_groups {
        height: 300px !important;
    }
}

/* Контейнер для ВК виджета */
.vk-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

#vk_groups {
    width: 100% !important;
}

/* Десктоп версия */
#vk_groups_desktop {
    width: 100% !important;
    max-width: 1000px;
}

/* Мобильная версия */
#vk_groups_mobile {
    width: 100% !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .vk-wrapper {
        padding: 0 10px;
    }

    #vk_groups_desktop {
        display: none !important;
    }

    #vk_groups_mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    #vk_groups_desktop {
        display: block !important;
    }

    #vk_groups_mobile {
        display: none !important;
    }
}

/* Стили для карты */
.map {
    width: 100%;
    background-color: var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 30px; /* Больший отступ */
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

/* Адаптация карты для разных устройств */
@media (max-width: 992px) {
    .map-container {
        height: 350px;
    }

    .map {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
        border-radius: 10px;
    }

    .map {
        border-radius: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 250px;
        border-radius: 8px;
    }

    .map {
        border-radius: 8px;
        margin-top: 8px;
    }
}
/* ==== НАВИГАЦИЯ ==== */
.main-nav {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

/* Логотип для мобильных */
.nav-logo-mobile {
    display: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-logo-mobile span {
    color: var(--accent-color);
}

/* Список навигации - ДЕСКТОП */
.nav-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    transition: all 0.3s ease;
}

.nav-item {
    position: relative;
    flex: none;
    text-align: center;
}

.nav-link {
    color: var(--text-light);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
}

.nav-link.active {
    border-bottom-color: var(--accent-color);
}

/* Кнопка меню для мобильных */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: var(--transition);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

/* Выпадающие меню */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-light);
    width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* ==== МОБИЛЬНАЯ ВЕРСИЯ ==== */
@media (max-width: 992px) {
    .main-nav .container {
        justify-content: flex-start;
        min-height: 50px;
    }

    /* Показываем логотип и кнопку */
    .nav-logo-mobile {
        display: block;
        order: 1;
        margin-right: auto;
    }

    .menu-toggle {
        display: block;
        order: 2;
        position: static;
        transform: none;
    }

    .menu-toggle:hover {
        transform: scale(1.1);
    }

    /* Скрываем меню по умолчанию */
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-dark);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    /* Показываем меню при активации */
    .nav-list.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-item {
        width: 100%;
        text-align: left;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom-width: 1px;
        font-size: 1rem;
    }

    .nav-link.active {
        background-color: var(--primary-color);
        border-bottom-color: var(--accent-color);
    }

    /* Адаптация выпадающих меню для мобильных */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        padding-left: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }

    .dropdown-menu a:hover {
        background-color: var(--primary-light);
        color: var(--primary-dark);
    }

    .dropdown .nav-link i {
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .nav-logo-mobile {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .menu-toggle {
        font-size: 1.3rem;
        padding: 8px;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .dropdown-menu a {
        padding-left: 30px;
    }
}




/* ===== BENTO GRID ===== */
.bento-section {
    padding: 60px 0 70px;
    background: linear-gradient(180deg, #f1f8e9 0%, #e8f5e9 100%);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px auto;
    gap: 16px;
}

/* Позиционирование плиток */
.bento-large    { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-g2       { grid-column: 3;     grid-row: 1; }
.bento-g3       { grid-column: 4;     grid-row: 1; }
.bento-g4       { grid-column: 3;     grid-row: 2; }
.bento-g5       { grid-column: 4;     grid-row: 2; }
.bento-g6       { grid-column: 1;     grid-row: 3; }
.bento-contacts {
    grid-column: 2 / -1;
    grid-row: 3;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 32px;
    min-height: unset;
}
.bento-contacts:hover { transform: none !important; box-shadow: var(--shadow) !important; }

/* Базовая карточка */
.bento-card {
    position: relative;
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    min-height: 160px;
}
.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 48px rgba(46,125,50,0.22);
    text-decoration: none;
}

/* Зелёная палитра */
.bento-g1 { background: linear-gradient(135deg, #2e7d32, #1b5e20); color: #fff; }
.bento-g2 { background: linear-gradient(135deg, #43a047, #2e7d32); color: #fff; }
.bento-g3 { background: linear-gradient(135deg, #66bb6a, #388e3c); color: #fff; }
.bento-g4 { background: linear-gradient(135deg, #1b5e20, #33691e); color: #fff; }
.bento-g5 { background: linear-gradient(135deg, #558b2f, #33691e); color: #fff; }
.bento-g6 { background: linear-gradient(135deg, #388e3c, #1b5e20); color: #fff; }
.bento-contacts { background: #fff; border: 1px solid #c8e6c9; color: #1b5e20; }

/* Фоновая иконка */
.bento-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 7rem;
    opacity: 0.1;
    pointer-events: none;
    line-height: 1;
    color: #fff;
}
.bento-contacts .bento-bg-icon { color: #a5d6a7; opacity: 0.5; }

/* Контент */
.bento-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.75;
    margin-bottom: 8px;
}
.bento-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #fff;
}
.bento-contacts .bento-content h2 { color: #1b5e20; }
.bento-content p {
    font-size: 0.88rem;
    opacity: 0.88;
    line-height: 1.5;
    margin-bottom: 0;
    color: #fff;
}
.bento-contacts .bento-content p { color: #2e7d32; }

/* Статистика */
.bento-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}
.bento-stat-num   { font-size: 2.4rem; font-weight: 800; line-height: 1; color: #fff; }
.bento-stat-label { font-size: 0.82rem; opacity: 0.75; font-weight: 600; color: #fff; }

/* Список в контактной плитке */
.bento-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 0;
    margin: 0;
}
.bento-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #1b5e20;
}
.bento-list i { color: #2e7d32; width: 16px; flex-shrink: 0; }
.bento-list a { color: #2e7d32; font-weight: 600; }
.bento-list a:hover { color: #1b5e20; text-decoration: underline; }

/* Адаптивность */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-large    { grid-column: 1 / -1; grid-row: auto; }
    .bento-g2, .bento-g3, .bento-g4, .bento-g5, .bento-g6 { grid-column: auto; grid-row: auto; }
    .bento-contacts { grid-column: 1 / -1; grid-row: auto; flex-direction: column !important; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card { min-height: 150px; }
    .bento-content h2 { font-size: 1.4rem; }
    .bento-stat-num { font-size: 1.8rem; }
    .bento-contacts { padding: 20px; }
}
