/* ===================================
   ALL-TOR.RU - ФИНАЛЬНАЯ ВЕРСИЯ (ЗЕЛЕНАЯ СХЕМА)
   =================================== */

/* ===== ОБЩАЯ СТРУКТУРА ХЕДЕРА ===== */
.main-header-wrapper {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== ВЕРХНЯЯ СЕКЦИЯ С ЛОГОТИПОМ ===== */
.header-top-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo-section {
    flex: 1;
}

.info-section {
    flex-shrink: 0;
}

/* ===== ЛОГОТИП ===== */
.site-logo {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.site-logo a {
    text-decoration: none;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.site-logo a:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.logo-all {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.5));
}

.logo-dash {
    color: #ffffff;
    margin: 0 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-tor {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(79, 172, 254, 0.5));
}

.logo-domain {
    color: #ffffff;
    font-size: 32px;
    opacity: 0.95;
    margin-left: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 8px 0 0 0;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* ===== ССЫЛКА ПРАВООБЛАДАТЕЛЯМ ===== */
.info-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.info-link i {
    margin-right: 10px;
    font-size: 18px;
}

/* ===== НАВИГАЦИОННОЕ МЕНЮ (ЗЕЛЕНАЯ СХЕМА) ===== */
.header-navigation {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    position: relative;
    z-index: 100;
}

.desktop-menu {
    padding: 0;
}

.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile Header */
.mobile-header {
    display: none;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.1);
}

#horizontal-navtoggle {
    cursor: pointer;
    display: inline-block;
}

/* ===== МЕНЮ КАТЕГОРИЙ (АДАПТИВНОЕ БЕЗ ПЕРЕНОСА) ===== */
.horizontalMenu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Убираем перенос */
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto; /* Горизонтальная прокрутка при необходимости */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.horizontalMenu-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.horizontalMenu-list li {
    position: relative;
    flex: 0 0 auto;
    white-space: nowrap;
}

.horizontalMenu-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.horizontalMenu-list li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.horizontalMenu-list li a:hover::before {
    width: 85%;
}

.horizontalMenu-list li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.horizontalMenu-list li a i {
    margin-right: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.horizontalMenu-list li a:hover i {
    transform: scale(1.15);
}

.horizontalMenu-list li a span {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ===== СЛАЙДЕР НОВОСТЕЙ (ЗЕЛЕНАЯ СХЕМА) ===== */
.news-slider-wrapper {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 35px 0;
}

.news-slider {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-bottom: 4px solid #ffd93d;
}

.slider-title {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-title i {
    margin-right: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.15); 
    }
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.slider-btn:hover {
    background: #ffffff;
    color: #11998e;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-container {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    height: 100%;
    position: relative;
}

.slide-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.7) 0%, rgba(56, 239, 125, 0.7) 100%);
}

.slide-info {
    flex: 0 0 48%;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

.slide-category-wrapper {
    margin-bottom: 18px;
}

.slide-category-wrapper a {
    text-decoration: none;
}

.slide-category {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.3);
}

.slide-category i {
    margin-right: 8px;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.slide-description {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.slide-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.slide-meta-item {
    display: inline-flex;
    align-items: center;
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

.slide-meta-item i {
    margin-right: 6px;
    color: #11998e;
}

.slide-link {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.slide-link:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

.slide-link i {
    margin-left: 10px;
    transition: all 0.3s ease;
}

.slide-link:hover i {
    transform: translateX(5px);
}

.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.indicator.active {
    background: #ffffff;
    border-color: #11998e;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Большие экраны */
@media (max-width: 1400px) {
    .horizontalMenu-list li a {
        padding: 16px 10px;
    }
    
    .horizontalMenu-list li a span {
        font-size: 12px;
    }
}

/* Планшеты */
@media (max-width: 1200px) {
    .site-logo a {
        font-size: 42px;
    }
    
    .logo-domain {
        font-size: 28px;
    }
    
    .horizontalMenu-list li a {
        padding: 16px 8px;
    }
    
    .horizontalMenu-list li a span {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo-section {
        width: 100%;
    }
    
    .info-section {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .site-logo a {
        font-size: 38px;
    }
    
    .logo-domain {
        font-size: 26px;
    }
    
    .horizontalMenu-list li a span {
        display: none;
    }
    
    .horizontalMenu-list li a {
        padding: 16px 10px;
    }
    
    .horizontalMenu-list li a i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .slide-content {
        flex-direction: column;
    }
    
    .slide-info {
        flex: 1;
        padding: 35px 25px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slider-container {
        height: auto;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .header-top-section {
        padding: 15px 0;
    }
    
    .header-top-content {
        min-height: auto;
    }
    
    .site-logo a {
        font-size: 32px;
    }
    
    .logo-domain {
        font-size: 22px;
    }
    
    .site-tagline {
        font-size: 13px;
    }
    
    .info-link span {
        display: none;
    }
    
    .info-link {
        padding: 12px;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .info-link i {
        margin-right: 0;
    }
    
    .slider-title {
        font-size: 20px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slide-image {
        min-height: 250px;
    }
    
    .slide-info {
        padding: 25px 20px;
    }
    
    .slide-title {
        font-size: 22px;
    }
    
    .slide-description {
        font-size: 15px;
    }
    
    .news-slider-wrapper {
        padding: 25px 0;
    }
    
    .horizontalMenu-list {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .site-logo a {
        font-size: 28px;
    }
    
    .logo-domain {
        font-size: 20px;
    }
    
    .site-tagline {
        font-size: 12px;
    }
    
    .slider-header {
        padding: 20px 20px;
    }
    
    .slider-title {
        font-size: 18px;
    }
    
    .slider-controls {
        gap: 8px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .slide-info {
        padding: 20px 15px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .slide-description {
        font-size: 14px;
    }
    
    .slide-link {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .horizontalMenu-list li a {
        padding: 14px 8px;
        font-size: 16px;
    }
}

/* Анимации */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.slide-info {
    animation: slideInFromRight 0.6s ease;
}

/* Улучшение для Safari */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .info-link {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Плавная прокрутка меню */
.horizontalMenu-list {
    scroll-behavior: smooth;
}
