/* =======================================
   1. ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ
======================================= */
@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Regular.woff2') format('woff2'), 
         url('fonts/MiSans-Regular.woff') format('woff'),
         url('fonts/MiSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiSans';
    src: url('fonts/MiSans-Bold.woff2') format('woff2'),
         url('fonts/MiSans-Bold.woff') format('woff'),
         url('fonts/MiSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =======================================
   2. БАЗОВЫЕ НАСТРОЙКИ И ФОН
======================================= */
:root {
    --primary: #4fc3f7;
    --glass: rgba(20, 25, 35, 0.6);
    --glass-heavy: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MiSans', -apple-system, BlinkMacSystemFont, sans-serif;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100dvh;
    overflow: hidden; 
    
    /* Темный тактический фон */
    background-color: #0b0c10; 
    background-image: repeating-radial-gradient(
        circle at 50% 0%, 
        #1f2833 0px, 
        #0b0c10 40px, 
        rgba(79, 195, 247, 0.05) 40px, 
        rgba(79, 195, 247, 0.05) 41px
    );
}

/* =======================================
   3. ГЛАВНЫЙ КОНТЕЙНЕР И ЛОГО
======================================= */
.main-container {
    width: 100%; 
    height: 100%;
    overflow-y: auto;
    padding-bottom: 115px; /* Место под нижнюю панель навигации */
}

.logo-img { 
    width: 180px; 
    height: auto; 
    margin: 40px auto 20px;
    display: block;
}

.main-menu { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 16px; 
    padding: 0 20px;
}

/* =======================================
   4. ПОИСКОВАЯ СТРОКА
======================================= */
.search-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 0 auto; 
    position: relative;
}

.search-input {
    width: 100%;
    box-sizing: border-box !important;
    padding: 16px 15px 16px 45px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    outline: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: block;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(79, 195, 247, 0.3);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    pointer-events: none;
}

/* =======================================
   5. КНОПКИ МЕНЮ И ОТКЛЮЧЕННЫЕ РАЗДЕЛЫ
======================================= */
.menu-btn { 
    width: 100%; 
    max-width: 360px; 
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px; 
    border-radius: 20px; 
    font-size: 17px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 16px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, background 0.1s;
    text-decoration: none;
    box-sizing: border-box;
}

.menu-btn:active { 
    transform: scale(0.97); 
    background: rgba(255, 255, 255, 0.15); 
}

.btn-icon { font-size: 24px; }
.btn-text { flex: 1; text-align: left; }

/* Отключенные (неактивные) кнопки */
.menu-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* Блокирует клик */
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.menu-btn.disabled .btn-icon {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Плашка "Скоро" для отключенных кнопок */
.badge-soon {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 8px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =======================================
   6. НИЖНЯЯ НАВИГАЦИЯ (BOTTOM NAV)
======================================= */
.bottom-nav { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    width: 92%; 
    max-width: 420px; 
    gap: 10px; 
    z-index: 1000; 
}

.nav-btn { 
    background: rgba(30, 40, 50, 0.8); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); 
    color: white; 
    transition: transform 0.1s, background 0.2s; 
    cursor: pointer; 
    text-decoration: none;
}

.btn-circle { width: 58px; height: 58px; font-size: 22px; }
.btn-pill { flex: 1; height: 58px; font-size: 15px; font-weight: 700; position: relative; overflow: hidden; }

.nav-btn:active { 
    transform: scale(0.95); 
    background: rgba(255, 255, 255, 0.2); 
}

.lang-anim-text { 
    position: absolute; 
    width: 100%; 
    text-align: center; 
    opacity: 0; 
    transition: 0.4s; 
}
.lang-anim-text.active { opacity: 1; }

/* =======================================
   7. ВСПЛЫВАЮЩИЕ МОДАЛЬНЫЕ ОКНА (BOTTOM)
======================================= */
.modal-bottom { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(8px); 
    display: none; 
    align-items: flex-end; 
    z-index: 3000; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.modal-bottom.active { display: flex; opacity: 1; }

.modal-b-content { 
    background: #1a2332; 
    color: #fff; 
    width: 100%; 
    border-radius: 24px 24px 0 0; 
    padding: 0 20px 40px; 
    max-height: 80vh; 
    overflow-y: auto; 
    transform: translateY(100%); 
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); 
    position: relative; 
    overscroll-behavior: contain; 
}

.modal-bottom.active .modal-b-content { transform: translateY(0); }

.modal-handle-container { 
    width: calc(100% + 40px); 
    margin-left: -20px; 
    padding: 16px 0 12px 0; 
    background: #1a2332; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-radius: 24px 24px 0 0; 
}

.modal-handle { 
    width: 45px; 
    height: 5px; 
    background: #4a5568; 
    border-radius: 10px; 
    margin: 0 auto; 
}

/* =======================================
   8. ВНУТРЕННОСТИ МОДАЛОК
======================================= */
.lang-item { 
    background: #2d3748; 
    padding: 16px 20px; 
    border-radius: 16px; 
    margin-bottom: 10px; 
    font-size: 16px; 
    font-weight: 700; 
    color: #e2e8f0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    cursor: pointer; 
    text-align: left; 
    transition: transform 0.1s, background 0.1s; 
}

.lang-item:active { 
    transform: scale(0.98); 
    background: #4a5568; 
}

.contact-section h3 { 
    font-size: 13px; 
    color: #a0aec0; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    padding-left: 5px; 
}

.c-card { 
    background: #2d3748; 
    border-radius: 16px; 
    padding: 16px; 
    margin-bottom: 12px; 
}

.c-info-row { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 16px; 
    color: #e2e8f0; 
}

.contact-link { 
    text-decoration: none; 
    display: block; 
}

.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: rgba(26, 35, 50, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow: hidden;
    display: none; /* Скрыто, пока не начали поиск */
}

.result-item {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:hover { background: rgba(79, 195, 247, 0.1); }