/* ========== УЛУЧШЕНИЯ ДИЗАЙНА ASTRONODE ========== */

/* Улучшенная шапка с сохранением оригинальной структуры */
#header {
    background: linear-gradient(135deg, rgba(19, 19, 19, 0.95) 0%, rgba(31, 48, 71, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Улучшенный логотип */
.logo {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3);
}

/* Улучшенное меню */
.hedmenu ul li a {
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hedmenu ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f3047 0%, #455a73 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.hedmenu ul li a:hover::before {
    left: 0;
}

.hedmenu ul li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 48, 71, 0.4);
}

.rightmenuher ul.nav li a {
    padding: 8px 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.rightmenuher ul.nav li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Улучшенные карточки услуг, работающие с существующей структурой */
.services {
    margin: 0 0 5px -5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.service_block {
    width: 150.5px;
    height: 200px;
    border: 2px solid #1f3047;
    border-radius: 10px;
    margin: 0;
    background: linear-gradient(145deg, #131313 0%, #1f3047 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service_block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 48, 71, 0.3) 0%, rgba(183, 186, 205, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service_block:hover::before {
    opacity: 1;
}

.service_block:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #455a73;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.service_block * {
    position: relative;
    z-index: 1;
}

.service_block .poster {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 10px !important;
    border: 2px solid #1f3047 !important;
    border-radius: 50% !important;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service_block:hover .poster {
    transform: scale(1.1) rotate(5deg);
    border-color: #455a73 !important;
    box-shadow: 0 5px 15px rgba(31, 48, 71, 0.4);
}

.service_block .service_game {
    text-align: center;
    font-size: 12px !important;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.service_slot {
    color: #b7bacd !important;
    text-align: center;
    font-size: 11px !important;
    margin-bottom: 10px;
    font-weight: bold;
}

.service_block:hover .service_slot {
    color: #ffffff !important;
}

.read_more {
    width: 120px !important;
    height: 28px !important;
    background: linear-gradient(135deg, #1f3047 0%, #455a73 100%) !important;
    margin: 0 auto !important;
    border-radius: 15px !important;
    font-size: 10px !important;
    line-height: 28px !important;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff !important;
    display: block;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.read_more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #455a73 0%, #6b7a99 100%);
    transition: left 0.3s ease;
}

.read_more:hover::before {
    left: 0;
}

.read_more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 48, 71, 0.4);
    color: #ffffff !important;
}

.read_more span {
    position: relative;
    z-index: 1;
}

/* Улучшенные блоки в сайдбаре */
.r_block {
    background: linear-gradient(145deg, #131313 0%, #1f1f1f 100%);
    border: 1px solid #1f3047;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.r_block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #455a73;
}

.r_block_head {
    background: linear-gradient(135deg, #1f3047 0%, #455a73 100%) !important;
    color: #ffffff !important;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.left-menu ul {
    padding: 0;
    margin: 0;
}

.left-menu ul li {
    border-bottom: 1px solid rgba(31, 48, 71, 0.3);
    transition: all 0.3s ease;
}

.left-menu ul li:hover {
    background: rgba(31, 48, 71, 0.2);
    padding-left: 5px;
}

.left-menu ul li a {
    padding: 10px 15px;
    display: block;
    color: #b7bacd;
    transition: all 0.3s ease;
    text-decoration: none;
}

.left-menu ul li:hover a {
    color: #ffffff;
    padding-left: 20px;
}

.left-menu ul li a i {
    margin-right: 8px;
    width: 14px;
    color: #1f3047;
    transition: color 0.3s ease;
}

.left-menu ul li:hover a i {
    color: #455a73;
}

/* Улучшенный слайдер */
.flexslider {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border: 2px solid #1f3047;
}

.flexslider img {
    border-radius: 0;
    border: none;
}

/* Улучшенная информация о хостинге */
.info_hosting {
    padding: 20px 0;
}

.infos01, .infos02, .infos03, .infos04, .infos05, .infos06 {
    background: rgba(31, 48, 71, 0.2) !important;
    border-radius: 10px;
    padding: 15px;
    margin: 5px;
    border: 1px solid rgba(31, 48, 71, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.4 !important;
}

.infos01:hover, .infos02:hover, .infos03:hover, 
.infos04:hover, .infos05:hover, .infos06:hover {
    transform: translateY(-3px);
    background: rgba(31, 48, 71, 0.4) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #455a73;
}

.info01, .info02, .info03, .info04, .info05, .info06 {
    margin: 0 auto 10px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.infos01:hover .info01, .infos02:hover .info02, .infos03:hover .info03,
.infos04:hover .info04, .infos05:hover .info05, .infos06:hover .info06 {
    opacity: 1;
    transform: scale(1.1);
}

/* Улучшенный футер */
.footer {
    background: linear-gradient(135deg, #0f0f0f 0%, #1f3047 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

/* Улучшенный контент */
.wapper > .content {
    background: #131313;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #1f3047;
}

.block_content {
    padding: 15px;
    border: 2px solid #1f3047;
    margin-top: -10px;
    border-radius: 0 0 10px 10px;
    background: rgba(19, 19, 19, 0.5);
}

/* Улучшенная статистика */
.static__egp {
    color: #b7bacd !important;
    line-height: 1.6;
}

.static__egp b {
    color: #ffffff;
    font-weight: bold;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service_block {
    animation: fadeInUp 0.6s ease-out;
}

.service_block:nth-child(1) { animation-delay: 0.1s; }
.service_block:nth-child(2) { animation-delay: 0.2s; }
.service_block:nth-child(3) { animation-delay: 0.3s; }
.service_block:nth-child(4) { animation-delay: 0.4s; }
.service_block:nth-child(5) { animation-delay: 0.5s; }
.service_block:nth-child(6) { animation-delay: 0.6s; }

.r_block {
    animation: fadeInUp 0.5s ease-out;
}

.r_block:nth-child(1) { animation-delay: 0.1s; }
.r_block:nth-child(2) { animation-delay: 0.2s; }
.r_block:nth-child(3) { animation-delay: 0.3s; }
.r_block:nth-child(4) { animation-delay: 0.4s; }

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Адаптивность для планшетов */
@media screen and (max-width: 1199px) {
    .services {
        justify-content: center;
        gap: 10px;
    }
    
    .service_block {
        width: 140px;
        height: 180px;
        padding: 12px;
    }
    
    .service_block .poster {
        width: 60px !important;
        height: 60px !important;
    }
    
    .read_more {
        width: 110px !important;
        height: 26px !important;
        line-height: 26px !important;
        font-size: 9px !important;
    }
}

/* Адаптивность для мобильных */
@media screen and (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .service_block {
        width: 280px;
        height: 120px;
        flex-direction: row;
        padding: 15px;
        text-align: left;
    }
    
    .service_block .poster {
        width: 50px !important;
        height: 50px !important;
        margin-right: 15px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .service_block .service_game {
        text-align: left;
        margin-bottom: 5px;
    }
    
    .service_slot {
        text-align: left !important;
        margin-bottom: 10px;
    }
    
    .read_more {
        width: 120px !important;
        margin: 0 !important;
        align-self: flex-end;
    }
    
    .left_block, .right_block {
        width: 100% !important;
        float: none;
    }
    
    .left_block {
        order: 2;
    }
    
    .right_block {
        order: 1;
    }
    
    .content {
        display: flex;
        flex-direction: column;
    }
    
    .logo {
        margin: 20px auto !important;
        text-align: center;
        float: none !important;
        display: block;
    }
    
    .hedmenu, .rightmenuher {
        text-align: center;
        margin: 15px 0;
    }
    
    .top_line {
        text-align: center;
    }
}

/* Специальные цветовые схемы для разных услуг */
.service_block:nth-child(1) { border-color: #2563eb; }
.service_block:nth-child(1):hover { border-color: #3b82f6; }
.service_block:nth-child(1) .poster { border-color: #2563eb !important; }

.service_block:nth-child(2) { border-color: #dc2626; }
.service_block:nth-child(2):hover { border-color: #ef4444; }
.service_block:nth-child(2) .poster { border-color: #dc2626 !important; }

.service_block:nth-child(3) { border-color: #16a34a; }
.service_block:nth-child(3):hover { border-color: #22c55e; }
.service_block:nth-child(3) .poster { border-color: #16a34a !important; }

.service_block:nth-child(4) { border-color: #ca8a04; }
.service_block:nth-child(4):hover { border-color: #eab308; }
.service_block:nth-child(4) .poster { border-color: #ca8a04 !important; }

.service_block:nth-child(5) { border-color: #9333ea; }
.service_block:nth-child(5):hover { border-color: #a855f7; }
.service_block:nth-child(5) .poster { border-color: #9333ea !important; }

.service_block:nth-child(6) { border-color: #0891b2; }
.service_block:nth-child(6):hover { border-color: #0ea5e9; }
.service_block:nth-child(6) .poster { border-color: #0891b2 !important; }

/* Эффект загрузки */
.service_block {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Улучшенные тени и свечение */
.service_block:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(31, 48, 71, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.r_block:hover {
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(31, 48, 71, 0.3);
}
