
    :root {
        /* Цветовая схема */
        --primary: #40AC5D;
        --primary-dark: #0A8D2D;
        --accent-blue: #3E6EB4;
        --white: #FFFFFF;
        --black: #121212;
        --gray-light: #F5F5F5;
        --gray-medium: #E0E0E0;
        --gray-dark: #757575;
        --red: #E53935;
        
        /* Темная тема */
        --bg-dark: #1A1A1A;
        --text-dark: #E0E0E0;
        --border-dark: #333333;
        
        /* Анимации */
        --transition: all 0.3s ease;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] {
        --white: var(--bg-dark);
        --black: var(--text-dark);
        --gray-light: #2D2D2D;
        --gray-medium: #444444;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--white);
        color: var(--black);
        line-height: 1.5;
    }

    /* Шапка */
    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--white);
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--gray-medium);
    }

    .header-container {
        max-width: 1700px;
        margin: 0 auto;
        padding: 0 32px;
        display: flex;
        align-items: center;
        height: 72px;
        position: relative;
    }

    /* Логотип */
 /* Логотип */
.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    margin-right: auto; /* Для правильного позиционирования в строке */
}

/* Стили для логотипа-изображения */
.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .logo {
        font-size: 24px;
    }
    
    .logo img {
        height: 36px;
        max-width: 180px;
    }
}

@media (max-width: 992px) {
    /* Скрываем ненужные элементы */
    .financial-data,
    .search-container {
        display: none;
    }
    
    /* Показываем кнопку мобильного меню */
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Особый режим для очень узких экранов (<450px) */
@media (max-width: 450px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }
    
    .logo {
        order: 1; /* Перемещаем наверх */
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        font-size: 24px;
        padding: 5px 0;
    }
    
    .logo img {
        height: 36px;
        max-width: 180px;
    }
    
    .header-controls {
        order: 2; /* Элементы управления после лого */
        margin-left: auto;
    }
    
    .mobile-menu-toggle {
        order: 3; /* Кнопка меню последняя */
    }
}

    /* Поиск */
    .search-container {
        position: relative;
        flex-grow: 1;
        max-width: 500px;
        margin: 0 30px;
    }

    .search-input {
        width: 100%;
        padding: 12px 20px;
        padding-right: 50px;
        border: 1px solid var(--gray-medium);
        border-radius: 30px;
        font-size: 16px;
        background: var(--white);
        color: var(--black);
        transition: var(--transition);
    }

    .search-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(64, 172, 93, 0.2);
        outline: none;
    }

    .search-button {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--gray-dark);
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .search-button:hover {
        color: var(--primary);
        background: var(--gray-light);
    }

    /* Финансовые данные */
    .financial-data {
        display: flex;
        gap: 20px;
        margin-right: 20px;
    }

    .ticker-item {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        font-weight: 500;
    }

    .ticker-label {
        color: var(--gray-dark);
    }

    .ticker-value {
        font-weight: 600;
        color: var(--black);
        min-width: 40px;
        text-align: right;
    }

    .ticker-change {
        font-size: 12px;
        padding: 2px 4px;
        border-radius: 3px;
        min-width: 40px;
        text-align: center;
    }

    .ticker-change.positive {
        background: rgba(64, 172, 93, 0.1);
        color: var(--primary-dark);
    }

    .ticker-change.negative {
        background: rgba(229, 57, 53, 0.1);
        color: var(--red);
    }

    /* Управление */
    .header-controls {
        display: flex;
        align-items: center;
        gap: 12px;
    margin: 0 auto;
}

    .control-button {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--black);
        transition: var(--transition);
        position: relative;
    }

    .control-button:hover {
        background: var(--gray-light);
    }

    .notification-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        background: var(--red);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Языковой переключатель */
    .language-switcher {
        position: relative;
        display: flex;
        align-items: center;
    }

    .language-button {
        display: flex;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        color: var(--black);
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 12px;
        border-radius: 20px;
        transition: var(--transition);
    }

    .language-button:hover {
        background: var(--gray-light);
    }

    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        border: 1px solid var(--gray-medium);
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 8px 0;
        min-width: 120px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
    }

    .language-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .language-option {
        padding: 8px 16px;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .language-option:hover {
        background: var(--gray-light);
    }

    .language-flag {
        width: 20px;
        height: 15px;
        border-radius: 2px;
    }

    /* Бургер меню для десктопа */
    .desktop-menu-toggle {
        display: none;
        background: none;
        border: none;
        color: var(--black);
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .desktop-menu-toggle:hover {
        background: var(--gray-light);
    }

    /* Оверлей меню */
    .desktop-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .desktop-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Само меню */
    .desktop-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        max-height: 0;
        background: var(--white);
        z-index: 1000;
        transition: max-height 0.5s ease;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .desktop-menu.active {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .desktop-menu-container {
        max-width: 1700px;
        margin: 0 auto;
        padding: 20px 32px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
		padding-bottom: 50px;
    }

    .desktop-menu-section {
        margin-bottom: 20px;
    }

    .desktop-menu-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--gray-medium);
        color: var(--primary-dark);
    }

    .desktop-menu-section ul {
        list-style: none;
    }

    .desktop-menu-section li {
        margin-bottom: 10px;
    }

    .desktop-menu-section a {
        color: var(--black);
        text-decoration: none;
        transition: var(--transition);
        font-size: 14px;
    }

    .desktop-menu-section a:hover {
        color: var(--primary);
    }

    /* Баннеры в меню */
    .desktop-menu-banners {
        grid-column: span 4;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 20px;
    }

    .menu-banner {
        background: var(--gray-light);
        border-radius: 8px;
        padding: 15px;
        transition: var(--transition);
    }

    .menu-banner:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .menu-banner-title {
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--primary-dark);
    }

    .menu-banner-text {
        font-size: 14px;
        color: var(--gray-dark);
        margin-bottom: 10px;
    }

    .menu-banner-link {
        display: inline-block;
        color: var(--accent-blue);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }

    /* Блок журнала в десктопном меню */
    .desktop-magazine {
        grid-column: span 4;
        background: var(--gray-light);
        border-radius: 8px;
        padding: 20px;
        margin-top: 20px;
    }

    .desktop-magazine-title {
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--primary-dark);
        text-align: center;
    }

    .desktop-magazine-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .desktop-magazine-item {
        text-align: center;
    }

    .desktop-magazine-link {
        display: block;
        padding: 10px;
        background: var(--white);
        border-radius: 6px;
        color: var(--black);
        text-decoration: none;
        transition: var(--transition);
    }

    .desktop-magazine-link:hover {
        background: var(--primary);
        color: white;
    }

    /* Партнеры */
    .partners-section {
        grid-column: span 4;
        margin-top: 20px;
    }

    .partners-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        margin-top: 15px;
    }

    .partner-logo {
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        transition: var(--transition);
        height: 75px;
		box-shadow: var(--shadow);
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        opacity: 0.8;
        transition: var(--transition);
    }

    .partner-logo:hover {
        box-shadow: var(--shadow);
    }

    .partner-logo:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }

    /* Мобильное меню */
	
	
    .mobile-menu-toggle {
        display: none;
        background: none;
        border: none;
        color: var(--black);
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .mobile-menu-toggle:hover {
        background: var(--gray-light);
    }

    /* Оверлей меню */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Само меню */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        z-index: 1000;
        transition: var(--transition);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--gray-medium);
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--black);
        font-size: 24px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .mobile-menu-close:hover {
        background: var(--gray-light);
    }

    .mobile-menu-content {
        flex-grow: 1;
        padding: 20px;
        overflow-y: auto;
    }

    .mobile-menu-search {
        position: relative;
        margin-bottom: 20px;
    }

    .mobile-menu-search input {
        width: 100%;
        padding: 12px 20px;
        border: 1px solid var(--gray-medium);
        border-radius: 30px;
        font-size: 16px;
        background: var(--white);
        color: var(--black);
    }

    .mobile-menu-search button {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--gray-dark);
        cursor: pointer;
    }

    .mobile-nav {
        list-style: none;
        margin-bottom: 30px;
    }

    .mobile-nav-item {
        border-bottom: 1px solid var(--gray-medium);
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
        color: var(--black);
        text-decoration: none;
        font-weight: 500;
    }

    .mobile-nav-link i {
        transition: transform 0.2s;
    }

    .mobile-nav-link.active i {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 15px;
    }

    .mobile-submenu.active {
        max-height: 1000px;
        padding-bottom: 10px;
    }

    .mobile-submenu-item {
        margin: 10px 0;
    }

    .mobile-submenu-link {
        color: var(--gray-dark);
        text-decoration: none;
        transition: var(--transition);
        display: block;
        padding: 5px 0;
    }

    .mobile-submenu-link:hover {
        color: var(--primary);
    }








/* опционально, если нужно оформить выпадающий блок подсказок */
.pw-search-suggest {
  position: absolute;
  z-index: 9999999999;
  width: 100%;
  max-height: 70vh;
  overflow: auto;
}

/* если контейнер внутри .search-container, зафиксируем контекст */
#pw-search { position: relative; }



    /* Баннеры в мобильном меню */
    .mobile-banner {
        background: var(--gray-light);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .mobile-banner-title {
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--primary-dark);
    }

    .mobile-banner-text {
        font-size: 14px;
        color: var(--gray-dark);
        margin-bottom: 10px;
    }

    .mobile-banner-link {
        display: inline-block;
        color: var(--accent-blue);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }

    /* Блок журнала в мобильном меню */
    .mobile-magazine {
        background: var(--gray-light);
        border-radius: 8px;
        padding: 20px;
        margin-top: 20px;
    }

    .mobile-magazine-title {
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--primary-dark);
        text-align: center;
    }

    .mobile-magazine-item {
        margin-bottom: 15px;
    }

    .mobile-magazine-link {
        display: block;
        padding: 10px;
        background: var(--white);
        border-radius: 6px;
        color: var(--black);
        text-decoration: none;
        transition: var(--transition);
        text-align: center;
    }

    .mobile-magazine-link:hover {
        background: var(--primary);
        color: white;
    }

    /* Анимации */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Адаптивность */
    @media (max-width: 1200px) {
        .header-container {
            padding: 0 20px;
        }
        
        .financial-data {
            gap: 15px;
        }
        
        .ticker-item.crypto,
        .ticker-item.stock {
            display: none;
        }

        .desktop-menu-container {
            grid-template-columns: repeat(3, 1fr);
        }

        .desktop-magazine-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 992px) {
       
        
        .mobile-menu-toggle {
            display: flex;
        }

        .desktop-menu-toggle {
            display: none;
        }

        .desktop-menu-container {
            grid-template-columns: repeat(2, 1fr);
        }
		
		
		
		
		
		/* Блок "Наши проекты" - мобильная версия */
.partners-block {
    width: 100%;
    margin: 25px 0;
    padding: 0 10px;
}

.partners-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.partners-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.desktop-menu div.desktop-menu-container div.desktop-menu-section ul{padding:0px !important;}


.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 95px;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.partner-logo:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Анимация при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-logo {
    animation: fadeInUp 0.5s ease forwards;
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }

/* Медиа-запросы для адаптации */
@media (max-width: 350px) {
    .partner-logo {
        height: 60px;
        padding: 8px 12px;
    }
    
    .partners-title {
        font-size: 16px;
    }
}

/* Отключение hover-эффектов на тач-устройствах */
@media (hover: none) {
    .partner-logo:hover {
        transform: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
}
    }

    @media (min-width: 993px) {
        .desktop-menu-toggle {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        .logo {
            font-size: 24px;
        }

 .financial-data,
        .search-container {
            display: none;
        }
		
		.header-controls{margin-right:0px;}


        .desktop-menu-container {
            grid-template-columns: 1fr;
        }

        .desktop-magazine-grid {
            grid-template-columns: 1fr;
        }
    }



    @media (max-width: 450px) {
     .header-controls {
    margin: 0 auto !important;
  }
        }
		
		
.top-baner-section{position: relative;
  max-width: 1700px;
  margin: 0 auto;
    margin-top: 0px;
  padding: 0 32px 40px;
margin-top: 2rem;}

#banner-top.container img{max-width:100% !important;}
.top-baner-section div.ad-banner.ad-banner--horizontal  img{max-width:100% !important;}
.ad-banner__content{margin-bottom:5rem;}