body{
	background-color: #3A7C8C;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
main{
	min-height: 1500px;
	color:#CFEFF7;
	/*border:1px solid black;*/
}
footer{
	background-color: #e6e6e6;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: var(--bs-navbar-toggler-icon-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
 /* Стили для кнопки */
.top-menu-button {
    border: none !important;
}

/* Стили для навигации - сохраняем fixed-top */
.top-nav {
    background-color: rgba(0, 0, 0, 0.5);
    margin-top: 1em;
    border-radius: 10px;
    /* fixed-top уже задан в классе, не переопределяем display */
}

/* Обертка для содержимого навигации */
.top-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

/* Стили для подменю */
.top-submenu {
    background-color: #CFEFF7;
    border-radius: 8px;
    margin: 5px;
    padding: 8px;
    width: calc(100% - 10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Начальное состояние - скрыто */
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    margin: 0 5px;
}

/* Активное состояние - показано */
.top-submenu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    max-height: 500px;
    padding: 8px;
    margin: 5px;
}

/* Стиль для контента внутри подменю */
.top-submenu-content {
    padding: 5px 0;
}

.top-submenu-content .dropdown-item {
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.top-submenu-content .dropdown-item:hover {
    background-color: #d4d4d4;
    color: #000;
}

/* Фикс для иконки бургера */
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.btn-outline-light {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-outline-light:hover {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

/* Отступ для контента под фиксированной навигацией */
main {
    margin-top: 75px;
}
/* ===== ОСНОВНОЙ БЛОК ФУТЕРА ===== */
footer.container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    
    /* Размеры */
    height: 100px; /* Полная высота блока */
    width: 100%;
    max-width: 1320px; /* Стандартный max-width container'а */
    
    /* Визуальное оформление */
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 8px 8px 0 0;
    /*box-shadow: 0 -4px 15px rgba(0,0,0,0.3);*/
    
    /* Трансформация для выдвижения */
    transform: translateX(-50%) translateY(80px); /* 100px - 20px = 80px */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Отключаем стандартные отступы container */
    padding: 0 !important;
    margin: 0 !important;
    
    /* Чтобы содержимое не вылезало */
    overflow: hidden;
    
    /* Поверх всего */
    z-index: 1050;
}

/* Состояние при наведении - полный выход */
footer.container:hover {
    transform: translateX(-50%) translateY(0);
}

/* Внутренний контейнер для отступов */
.footer-inner {
    height: 100px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Стили для ссылок */
.footer-inner a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-inner a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* Индикатор выступающей части (визуальная подсказка) */
.footer-handle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(44, 62, 80, 0.9);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    transition: opacity 0.3s;
}

.footer-handle::after {
    content: '▲';
    font-size: 14px;
}

/* Скрываем индикатор при наведении */
footer.container:hover .footer-handle {
    opacity: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    footer.container {
        height: auto;
        min-height: 100px;
        transform: translateX(-50%) translateY(calc(100% - 20px));
        border-radius: 12px 12px 0 0;
    }

    footer.container:hover {
        transform: translateX(-50%) translateY(0);
    }

    .footer-inner {
        height: auto;
        min-height: 100px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 15px;
    }

    .footer-handle {
        top: -20px;
        width: 80px;
        height: 20px;
        background: rgba(44, 62, 80, 0.95);
    }
}