
/* ========== СТИЛИ ДЛЯ НОВОГО БЛОКА ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sfu-layout {
    display: flex;
    max-width: 2500px;
    margin: 0 auto;
}

/* Левая колонка */
.sfu-sidebar {
    width: 320px;
    background: rgb(29, 52, 93);
    color: white;
    min-height: 100vh;
    padding: 30px 24px;
    flex-shrink: 0;
}

/* Логотипы в левой колонке */
.sfu-sidebar .sidebar-logos {
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
}

.sfu-sidebar .sidebar-logos .sidebar-logo {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    text-align: center !important;
}

.sfu-sidebar .sidebar-logos .sidebar-logo img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 65px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Левое меню */
.sfu-sidebar .left-menu {
    margin-bottom: 30px;
}

.sfu-sidebar .left-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sfu-sidebar .left-menu li {
    margin-bottom: 10px;
}

.sfu-sidebar .left-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    transition: 0.2s;
}

.sfu-sidebar .left-menu a:hover {
    color: #e85d04;
    padding-left: 5px;
}

/* Соцсети - иконки */
.sfu-sidebar .social {
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.sfu-sidebar .social a {
    color: rgba(255,255,255,1);
    text-decoration: none;
    transition: 0.2s;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sfu-sidebar .social a:hover {
    /* color: #e85d04; */
}

.sfu-sidebar .social .vk-icon i {
    font-size: 24px;
}

.sfu-sidebar .social .max-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    vertical-align: middle;
}

/* Правая основная часть */
.sfu-main {
    flex: 1;
    background: #fff;
}

/* ========== ВЕРХНЯЯ ПАНЕЛЬ С ПОИСКОМ ========== */
.sfu-top-search {
    background: white;
    padding: 16px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sfu-top-search .search-wrapper {
    flex: 1;
    max-width: 500px;
}

.sfu-top-search input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #f8fafc;
}

.sfu-top-search input:focus {
    border-color: #e85d04;
    box-shadow: 0 0 0 2px rgba(232,93,4,0.1);
    background: white;
}

.sfu-dev-btn {
    background: #e85d04;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.sfu-dev-btn:hover {
    background: #bf3f00;
    color: white;
    text-decoration: none;
}

/* ========== ОСНОВНОЕ МЕНЮ С ГОРИЗОНТАЛЬНЫМ СКРОЛЛОМ ========== */
.sfu-header {
    background: white;
    padding: 18px 32px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.sfu-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Контейнер для меню с горизонтальным скроллом */
.sfu-menu-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.sfu-menu-wrapper::-webkit-scrollbar {
    height: 3px;
}

.sfu-menu-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 3px;
}

.sfu-menu-wrapper::-webkit-scrollbar-thumb {
    background: #e85d04;
    border-radius: 3px;
}

.sfu-main-menu {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    min-width: min-content;
}

.sfu-main-menu a {
    text-decoration: none;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.sfu-main-menu a:hover {
    color: #e85d04;
}

/* Бургер скрыт */
.sfu-burger {
    display: none;
}

/* ========== БЛОК: ЛЕВЫЙ БЛОК (20%) + СЛАЙДЕР (80%) ========== */
.sfu-hero {
    margin-top: 20px;
    position: relative;
}

.sfu-hero-overlap {
    position: relative;
    left: -40px;
    width: calc(100% + 40px);
}

.sfu-hero-duo {
    display: flex;
    width: 100%;
    flex-direction: row;
}

/* Левый блок (20%) - светло-серый фон */
.sfu-left-block {
    width: 20%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-radius: 30px 0 0 30px;
}

.sfu-left-block img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
}

/* Слайдер (80%) */
.sfu-slider {
    width: 80%;
    border-radius: 0 30px 30px 0;
    overflow: hidden;
    position: relative;
}

.sfu-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.sfu-slide {
    min-width: 100%;
    position: relative;
}

.sfu-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* Текст на слайдере */
.sfu-slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.sfu-slide-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.sfu-slide-text p {
    font-size: 16px;
    opacity: 0.9;
    color: white;
}

/* Кнопки слайдера */
.sfu-slider-buttons {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.sfu-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
}

.sfu-slider-btn:hover {
    background: #e85d04;
    color: white;
}

/* Точки слайдера */
.sfu-dots {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.sfu-dot {
    width: 45px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.sfu-dot.active {
    background: #e85d04;
    width: 70px;
}

/* ========== КАРТОЧКИ ========== */
.sfu-cards {
    padding: 50px 32px 40px 32px;
}

.sfu-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sfu-card {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.sfu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.sfu-card h3 {
    font-size: 18px;
    color: rgb(29, 52, 93);
    line-height: 1.4;
}

.sfu-card-arrow {
    margin-top: 24px;
    text-align: right;
}

.sfu-card-arrow span {
    font-size: 26px;
    color: #ccc;
    transition: 0.2s;
}

.sfu-card:hover .sfu-card-arrow span {
    color: #e85d04;
    transform: translateX(4px);
    display: inline-block;
}

.sfu-card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e85d04, #ff8c42);
    border-radius: 0 0 20px 20px;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 1000px) {
    .sfu-sidebar {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .sfu-sidebar {
        position: relative;
        left: 0;
        width: 100%;
        min-height: auto;
    }
    
    .sfu-layout {
        flex-direction: column;
    }
    
    .sfu-menu-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sfu-main-menu {
        gap: 20px;
    }
    
    .sfu-main-menu a {
        font-size: 13px;
    }
    
    .sfu-hero-overlap {
        left: 0;
        width: 100%;
    }
    
    .sfu-hero-duo {
        flex-direction: column;
    }
    
    .sfu-left-block {
        width: 100%;
        border-radius: 30px 30px 0 0;
        order: 1;
    }
    
    .sfu-slider {
        width: 100%;
        border-radius: 0 0 30px 30px;
        order: 2;
    }
    
    .sfu-slide img {
        height: 400px;
    }
    
    .sfu-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sfu-top-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sfu-top-search .search-wrapper {
        max-width: 100%;
    }
    
    .sfu-dev-btn {
        text-align: center;
    }
    
    .sfu-slide img {
        height: 280px;
    }
    
    .sfu-slide-text {
        padding: 20px;
    }
    
    .sfu-slide-text h2 {
        font-size: 20px;
    }
    
    .sfu-slide-text p {
        font-size: 12px;
    }
    
    .sfu-cards {
        padding: 30px 16px;
    }
    
    .sfu-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sfu-header {
        padding: 12px 16px;
    }
    
    .sfu-main-menu {
        gap: 16px;
    }
    
    .sfu-main-menu a {
        font-size: 12px;
    }
}

/* Убираем отступы у меню */
#sp-menu .sp-column,
#sp-menu .sp-megamenu-wrapper,
#sp-menu .sp-megamenu-parent {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#sp-menu .sp-megamenu-parent > li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#sp-menu .sp-megamenu-parent > li > a,
#sp-menu .sp-megamenu-parent > li > span {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.sp-column {
    min-height: auto !important;
    height: auto !important;
}

.sp-megamenu-wrapper {
    min-height: auto !important;
}

#sp-menu .sp-megamenu-parent > li > a,
#sp-menu .sp-megamenu-parent > li > span {
    text-transform: uppercase !important;
}

.left-menu .menu-with-offset {
    padding-left: 60px !important;
}

.social-with-offset {
    padding-left: 60px;
}

/* Эффект при наведении на ссылку с логотипом */
.sfu-logo-link:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.sfu-logo-link {
    outline: none;
}

.sfu-logo-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}
    .social {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    /* Стили для VK */
.vk-icon {
    color: rgba(255, 255, 255, 1);
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vk-icon:hover {
   
    transform: scale(1.1);
}

    /* Стили для MAX иконок */
  .max-icon {
    color: rgba(255,255,255,1);
    font-size: 24px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .max-icon img {
        width: 40px;
        height: 40px;
        transition: all 0.3s ease;
        filter: brightness(1);
    }

    /* Подсветка оранжевым при наведении */
    .max-icon:hover img {
        filter: brightness(0) saturate(100%) invert(51%) sepia(93%) saturate(1748%) hue-rotate(1deg) brightness(104%) contrast(101%);
        /* ИЛИ проще - с помощью drop-shadow */
        transform: scale(1.1);
    }
    
    /* Альтернативный вариант с оранжевым свечением */
   .max-icon:hover {
    color: #e85d04;
    transform: scale(1.1);
}
    
    .max-icon:hover img {
        filter: invert(60%) sepia(91%) saturate(1604%) hue-rotate(344deg) brightness(98%) contrast(94%);
    }



/* Мобильная адаптация для виджета */
@media (max-width: 768px) {
    #subscribeWidget {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    #subscribeWidget h3 {
        font-size: 16px !important;
    }
    
    #subscribeWidget a {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    #subscribeWidget button {
        top: 12px !important;
        right: 12px !important;
        font-size: 24px !important;
    }
}
