/* Основные стили */
html, body {
    overflow: scroll;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff00);
    background-attachment: fixed;
    min-height: 100vh;
}

main {
    background: #ffffff00;
}

nav {
    background: linear-gradient(135deg, #667eea 0%, #0d6efd 100%);
}

.nav-link .material-icons {
    transition: transform 0.2s ease;
}

.nav-link:hover .material-icons {
    transform: scale(1.1);
}

footer {
    background: linear-gradient(135deg, #084aad 0%, #3e4c8d 100%);
}

.logo-block {
    color: #ffffff;
    text-decoration: none;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 2px;
}

.logo-block img {
    max-width: 70px;
    padding-right: 10px;
}

/* Кастомное выпадающее меню по ховеру */
@media (min-width: 992px) {
    .custom-dropdown {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        margin-top: 0;
    }

    .custom-dropdown.show,
    .nav-item.dropdown:hover>.custom-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

    /* Анимация появления */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown.show .custom-dropdown {
        animation: fadeInDown 0.3s ease forwards;
    }
}

/* Преимущества */
.bg-opacity-10 {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Призыв к действию */
.card.shadow-lg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Карточки */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 10px 25px #0000001a !important;
}

/* Стили для карточек с hover эффектом */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Стили для активных ссылок в навбаре */
.nav-link.active {
    font-weight: 600;
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}


/* Кнопки */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-lg {
    padding: 12px 30px;
    border-radius: 12px;
}

/* Формы */
.form-range::-webkit-slider-thumb {
    background-color: #4361ee;
    box-shadow: 0 2px 5px #00000033;
}

/* Поле пароля */
.font-monospace {
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Прогресс бар */
.progress {
    border-radius: 10px;
    overflow: auto;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.5s ease;
}

.d-flex-custom {
    display: flex;
}

.material-icons {
    vertical-align: middle;
}

/* Стили для футера */
footer {
    background: linear-gradient(135deg, #232eaa 0%, #115ccb 100%);
    color: #f8f9fa;
}

.footer-menu {
    font-size: 0.95rem;
}

.footer-category {
    transition: all 0.3s ease;
    color: #e9ecef !important;
}

.footer-category:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.footer-item {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #adb5bd !important;
}

.footer-item:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-link {
    transition: all 0.3s ease;
    color: #e9ecef;
}

.footer-link:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.footer-link.active {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
}

.footer-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4361ee;
}

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

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Scroll to top button */
#scrollToTopBtn {
    display: none;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px #00000033;
}

#scrollToTopBtn .scrollToTopBtn_icon{
    display: block;
    font-size: 30px;
}

/* 404 */
.custom-bg-err404 {
    background: linear-gradient(to right, #e2e8f0, #e5e7eb);
}

.custom-bg-err404 .custom-btn:hover {
    background-color: #f3e8ff !important;
    transition: background-color 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
    .custom-bg-err404 {
        background: linear-gradient(to right, #1f2937, #111827);
        color: white !important;
    }

    .custom-bg-err404 .custom-btn {
        background-color: #374151 !important;
        color: white !important;
    }

    .custom-bg-err404 .custom-btn:hover {
        background-color: #4b5563 !important;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 2rem 0 !important;
    }
}