/* Основные стили для сайта MegaTV */

/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Стили для верхнего меню */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 1rem;
    background-color: #393d3d !important; /* Темно-синий для навигации */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    border-radius: 4px;
    margin: 0 5px; /* Увеличенное расстояние между разделами */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

/* Переключатель языков */
.lang-dropdown {
    min-width: 45px;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem; /* Меньший размер кнопки */
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.dropdown-item.active {
    background-color: #0055cc;
    color: white;
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%); /* Более светлый синий */
    color: white;
    padding: 4rem 0;
    position: relative;
}

/* Добавляем тонкую линию разделения между navbar и hero */
.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-section .btn-primary {
    padding: 0.8rem 2rem;
    font-weight: 600;
    background-color: #393d3d !important; /* Оранжевый для кнопки CTA */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: #ff5500 !important;
}

/* TV Анимация */
.tv-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.tv-outer {
    width: 280px;
    height: 200px;
    background-color: #222;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tv-inner {
    width: 100%;
    height: 100%;
    background-color: #111;
    border-radius: 8px;
    padding: 8px;
    position: relative;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000033, #003366);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.tv-content {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    line-height: 170px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: tvGlow 2s infinite alternate;
}

@keyframes tvGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(77, 148, 255, 0.8);
        transform: scale(1.05);
    }
}

/* Карточки с особенностями */
.feature-card {
    background-color: white;
    border-left: 4px solid #0055cc;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    color: #0055cc;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Контактная карточка */
.contact-card {
    border-left: 4px solid #0055cc;
    height: 100%;
}

/* Кнопки */
.btn-primary {
    background-color: #0055cc !important;
    border-color: #0055cc !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004299 !important;
    border-color: #003b88 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: #0055cc !important;
    border-color: #0055cc !important;
}

.btn-outline-primary:hover {
    background-color: #0055cc !important;
    color: white !important;
}

/* Модальное окно */
.modal-dialog {
    max-width: 500px;
}

.modal-header {
    border-bottom: 3px solid #0055cc;
    background-color: #f8f9fa;
}

.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0 !important; /* Еще меньшая высота футера */
}

footer p {
    margin-bottom: 0; /* Убрать лишний отступ внизу параграфа */
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #77b5ff !important;
}

/* Простые анимации (без использования внешних библиотек) */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay1 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.fade-in-delay2 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.4s;
}

.fade-in-delay3 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .tv-animation {
        height: 200px;
        margin-top: 20px;
    }
    
    .tv-outer {
        width: 220px;
        height: 160px;
    }
    
    .tv-content {
        line-height: 140px;
        font-size: 2rem;
    }
}
/* Стили для мобильного меню и переключателя языков */

/* Стили для переключателя языков в мобильной версии */
#languageDropdownMobile {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    padding: 8px 15px;
}

/* Стиль для выпадающего меню языков в мобильной версии */
.navbar-nav .dropdown-menu {
    background-color: #003d99;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.navbar-nav .dropdown-menu .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
}

/* Улучшения для мобильного меню в целом */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #003d99;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin-bottom: 5px;
    }
    
    /* Разделитель между пунктами меню */
    .navbar-nav .nav-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
/* Стили для фиксированного положения футера внизу страницы */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Дополнительные стили для корректного отображения на мобильных устройствах */
@media (max-width: 767px) {
    .content-wrapper {
        min-height: calc(100vh - 150px); /* Примерная высота с учетом меню и футера */
    }
}
