/* Колонки в выпадающем меню */
.menu-columns {
    display: block;
    padding: 15px;
    min-width: 1000px;
}

.menu-column {
    display: block;
}

/* Стили для пунктов с подменю 3-го уровня */
.dropdown-parent {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e3a8a !important;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-parent i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown-parent:hover i {
    transform: translateX(3px);
}

/* Подменю 3-го уровня */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    min-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 5px 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    padding: 10px 0;
}

.dropdown-parent:hover + .dropdown-submenu,
.dropdown-submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Обновляем стили для основного выпадающего меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Основные стили из style2 (1).css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Arial", sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #333333;
    background-color: #f5f5f5;
}

/* Фиксированное меню */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e3a8a;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #1e3a8a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan {
    font-style: italic;
    font-size: 1.2rem;
    color: #e5e7eb;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.main-menu {
    display: flex;
    justify-content: center;
    background-color: #1e3a8a;
}

.menu-list {
    display: flex;
    list-style: none;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.menu-link:hover {
    background-color: #3b82f6;
}

.menu-item.has-dropdown > .menu-link::after {
    content: " ▼";
    font-size: 0.8rem;
}

.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.dropdown-link:hover {
    background-color: #f0f8ff;
    color: #1e3a8a;
}

.main-content {
    margin-top: 140px;
}

/* Обновленные стили для слайд-шоу */
.forSlide {
    padding: 0;
    background: none;
    width: 60%;
    margin: 0 auto;
    max-width: 100%;
}

.flexslider {
    width: 100%;
    position: relative;
    height: auto;
    overflow: hidden;
    margin: 0;
}

.flexslider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slides, .flex-control-nav, .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    height: auto;
}

.slides li {
    position: relative;
    height: auto;
}

.slideContainer {
    position: absolute;
    width: 45%;
    height: auto;
    max-height: 100%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    padding: 2vw;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px 0 0 8px;
    margin-right: 2%;
}

.sp1 {
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    line-height: 1.3;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    color: #ffffff;
    display: block;
    margin-bottom: 1vw;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.sp2 {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    line-height: 1.4;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    color: #e5e7eb;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Стили для новостей */
.news-section {
    padding: 60px 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1e3a8a;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #3b82f6;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.news-excerpt {
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #1e3a8a;
}

/* Другие секции */
.about-section {
    padding: 60px 5%;
    background-color: #f8fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-highlight {
    color: #1e3a8a;
    font-weight: bold;
}

.partners-section {
    padding: 60px 5%;
    background-color: white;
}

.partners-container {
    overflow: hidden;
    position: relative;
}

.partners-carousel {
    display: flex;
    animation: scroll 20s linear infinite;
}

.partner-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    margin: 0 20px;
    background-color: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Футер */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 60px 5% 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.org-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.org-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    height: 80px;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

.org-logo-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.org-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #93c5fd;
}

.search-box {
    display: flex;
    margin-top: 15px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: #93c5fd;
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Адаптивность для многоуровневого меню */
@media (max-width: 992px) {
    .menu-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-columns {
        grid-template-columns: 1fr;
    }
    
    .dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background-color: #f8fafc;
        margin-top: 5px;
        border-radius: 5px;
    }
    
    .dropdown-parent:hover + .dropdown-submenu {
        display: block;
    }
}

/* Для очень широких экранов */
@media (min-width: 1200px) {
    .dropdown-menu {
        min-width: 220px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        margin-top: 180px;
    }
    
    .menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .org-logos {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .org-logo-link {
        height: 70px;
    }
}

/* Стили для прилипающего меню */
@media (min-width: 800px) {
    .topMenu.sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: url(p/men.png) left top repeat-x;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-top: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность для слайд-шоу */
@media (min-width: 1100px) {
    .forSlide {
        width: 60%;
    }
    .slideContainer {
        padding: 30px;
    }
    .sp1 {
        font-size: 24px;
        line-height: 28px;
    }
    .sp2 {
        font-size: 18px;
        line-height: 22px;
    }
}

@media (max-width: 1100px) and (min-width: 768px) {
    .forSlide {
        width: 70%;
    }
    .flexslider {
        height: 400px;
    }
    .flexslider img {
        height: 100%;
        object-fit: cover;
    }
    .slides li {
        height: 100%;
    }
    .slideContainer {
        width: 50%;
        padding: 20px;
    }
    .sp1 {
        font-size: 1.3rem;
    }
    .sp2 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .forSlide {
        width: 90%;
    }
    .flexslider {
        height: 300px;
    }
    .flexslider img {
        height: 100%;
        object-fit: cover;
    }
    .slides li {
        height: 100%;
    }
    .slideContainer {
        width: 60%;
        padding: 15px;
    }
    .sp1 {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    .sp2 {
        font-size: 0.9rem;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .forSlide {
        width: 95%;
    }
    .flexslider {
        height: 250px;
    }
    .slideContainer {
        width: 100%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.6);
        right: auto;
        left: 0;
        bottom: 0;
        top: auto;
        height: auto;
        transform: none;
        border-radius: 0;
        margin-right: 0;
    }
    .sp1 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .sp2 {
        font-size: 0.8rem;
    }
    .org-logo-link {
        height: 60px;
    }
}

/* Стили для строки поиска в хедере */
.header-search {
    display: flex;
    align-items: center;
    margin: 0 20px;
    flex: 0 1 300px;
}

.top-panel .search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.top-panel .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.top-panel .search-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.top-panel .search-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Адаптивность для строки поиска */
@media (max-width: 992px) {
    .header-search {
        flex: 0 1 250px;
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .top-panel {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        flex: 1 1 100%;
        margin: 15px 0 0 0;
    }
    
    .language-selector {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .header-search {
        margin: 10px 0 0 0;
    }
    
    .top-panel .search-input {
        padding: 6px 10px;
    }
    
    .top-panel .search-button {
        padding: 6px 12px;
    }
}

/* ПРОЗРАЧНЫЕ КНОПКИ УПРАВЛЕНИЯ СЛАЙД-ШОУ */
/* Стрелки навигации */
.flex-direction-nav a {
    height: 50px;
    margin: -25px 0 0;
    opacity: 0.5;
    transition: opacity 0.3s;
    background: transparent !important;
    text-decoration: none;
}

.flex-direction-nav a:hover {
    opacity: 1;
    background: transparent !important;
}

/* Стили для стрелок (если используются изображения) */
.flex-direction-nav .flex-prev,
.flex-direction-nav .flex-next {
    background: transparent !important;
    border: none;
}

/* Убираем стандартные фоновые изображения стрелок */
.flex-direction-nav a:before {
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.flex-direction-nav a:hover:before {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Точки пагинации - делаем полупрозрачными */
.flex-control-nav {
    bottom: 20px;
    z-index: 10;
}

.flex-control-paging li a {
    background: rgba(255, 255, 255, 0.3);
    width: 12px;
    height: 12px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.flex-control-paging li a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.flex-control-paging li a.flex-active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Стили для более прозрачных кнопок на мобильных устройствах */
@media (max-width: 768px) {
    .flex-direction-nav a {
        opacity: 0.3;
    }
    
    .flex-direction-nav a:hover {
        opacity: 0.7;
    }
    
    .flex-control-paging li a {
        background: rgba(255, 255, 255, 0.2);
        width: 10px;
        height: 10px;
    }
    
    .flex-control-paging li a.flex-active {
        background: rgba(255, 255, 255, 0.6);
    }
}

@media (max-width: 480px) {
    .flex-direction-nav a {
        opacity: 0.2;
    }
    
    .flex-direction-nav a:hover {
        opacity: 0.5;
    }
    
    .flex-control-nav {
        bottom: 15px;
    }
    
    .flex-control-paging li a {
        background: rgba(255, 255, 255, 0.15);
        width: 8px;
        height: 8px;
    }
    
    .flex-control-paging li a.flex-active {
        background: rgba(255, 255, 255, 0.5);
    }
}