/* NEODROP 2030 - Global Styles */
:root {
    --primary-color: #0066ff;
    --primary-light: #e6f0ff;
    --primary-dark: #0052cc;
    --bg-color: #f8faff;
    --text-color: #1a1a2e;
    --text-light: #5e6e82;
    --gray-light: #f0f4f9;
    --gray-medium: #d9e2ec;
    --gray-dark: #9fb3c8;
    --error-color: #ff2200;
    --success-color: #00c853;
    --warning-color: #ffab00;
    --radius-large: 24px;
    --radius-medium: 16px;
    --radius-small: 8px;
    --shadow-sm: 0 4px 12px rgba(0, 102, 255, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.15);
    --futuristic-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --logo-font: 'Grandstander', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--futuristic-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.search-focused .search-overlay {
    display: block;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 2rem;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.header_left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 0 0 auto;
}

/* Стили для бейджа с количеством сообщений */
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.message-badge.has-messages {
    opacity: 1;
    transform: scale(1);
}

.message-badge:empty {
    display: none;
}

/* Для десктопной версии в хедере */
.header_right .nav-item,
.header_right2 .nav-item {
    position: relative;
}

.header_right .message-badge,
.header_right2 .message-badge {
    top: 5px;
    right: 10px;
}

/* Для мобильной нижней панели */
.mobile-bottom-panel .nav-item {
    position: relative;
}

.mobile-bottom-panel .message-badge {
    top: 2px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
}

/* Анимация при новом сообщении */
@keyframes pulse-message {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--error-color);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(255, 34, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 34, 0, 0);
    }
}

.message-badge.new-message {
    animation: pulse-message 0.6s ease-out;
}

@media (max-width: 1000px) {
    .header_right .message-badge,
    .header_right2 .message-badge {
        top: 0;
        right: 0;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .mobile-bottom-panel .message-badge {
    top: 0px;
    right: 0px;
    min-width: 15px;
    height: 15px;
    font-size: 10px;
}
}
/* Улучшенные стили для счетчика сообщений */
.message-badge.high-count {
    min-width: 22px;
    height: 18px;
    font-size: 10px;
    border-radius: 9px;
    padding: 0 4px;
}

/* Анимация для нового сообщения */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 34, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 34, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 34, 0, 0);
    }
}

.message-badge.new-message {
    animation: pulse-glow 0.6s ease-out;
}

.message-badge:not(.has-messages) {
    display: none !important;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(0, 102, 255, 0.3));
}

.header_center {
    flex: 1;
    min-width: 0;
    margin: 0 2rem;
    position: relative;
}

.search_form {
    position: relative;
    width: 100%;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-logo {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
}

.search-logo img {
    height: 24px;
    width: 24px;
}

.back-search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    z-index: 2;
    display: none;
}

.back-icon {
    width: 100%;
    height: 100%;
}

.search_field {
    width: 100%;
    padding: 1rem 3rem 1rem 2.5rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-large);
    font-size: 1.1rem;
    transition: var(--transition);
    background-color: var(--gray-light);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    height: 55px;
    min-width: 0;
}

.search-focused .search_field {
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.search_field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background-color: white;
}

.clear-search-btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
    display: none;
}

.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn svg {
    width: 100%;
    height: 100%;
    fill: var(--text-light);
}

.search_field:not(:placeholder-shown) + .clear-search-btn {
    display: block;
}

.search-submit-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: none;
}

.search-icon {
    height: 20px;
    width: 20px;
}

.search_btn {
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-large);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    height: 55px;
    min-width: 120px;
}

.search_btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0047b3 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search_btn:active {
    transform: scale(0.98);
}

.search_btn.cancel-btn {
    background: var(--gray-light);
    color: var(--text-color);
    display: none;
}

.search_btn.cancel-btn:hover {
    background: var(--gray-medium);
    transform: none;
    box-shadow: none;
}

.search_btn.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: none;
}

.suggestions {
    position: absolute;
    top: 108%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-md);
    border-top-left-radius: 0;
    border-top-right-radius:0;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid var(--gray-medium);
}

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

.suggestions a {
    display: flex;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
    gap: 1rem;
}

.suggestions a:last-child {
    border-bottom: none;
}

.suggestions a:hover {
    background-color: var(--primary-light);
}

.suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-small);
    object-fit: cover;
    background-color: var(--gray-light);
}

.suggestion-text {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.suggestion-category {
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-loading {
    display: none;
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

.search-loading::after {
    content: " ";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-medium);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

.header_right1, .header_right2 {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.authBtn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-large);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    height: 55px;
    display: flex;
    align-items: center;
}

.authBtn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Navigation Items */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    gap: 4px;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius-medium);
    min-width: 70px;
    height: 70px;
    justify-content: center;
}

.nav-item:hover {
    background-color: var(--primary-light);
}



.nav-item img {
    height: 24px;
    width: 24px;
    transition: all 0.3s ease;
}



.nav-item span {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

/* Footer Styles */
footer {
    background: white;
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-medium);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.upper_footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-medium);
}

.upper_footer_block {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.svg {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    border-radius: var(--radius-medium);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.svg_information h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.svg_information span {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.lower_footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.lower_footer_left {
    padding-right: 2rem;
}

.lower_footer_left h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-family: var(--logo-font);
    font-weight: 700;
}

.lower_footer_left p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.lower_footer_left h2 {
    margin: 1.8rem 0 1.2rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.icons {
    display: flex;
    gap: 1.2rem;
}

.icon {
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.lower_footer_right h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.agreements_block {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: var(--radius-medium);
    transition: var(--transition);
    margin-bottom: 1rem;
    background: var(--gray-light);
}

.agreements_block:hover {
    transform: translateX(8px);
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.file_icon {
    width: 28px;
    height: 28px;
    filter: invert(36%) sepia(91%) saturate(2590%) hue-rotate(202deg) brightness(101%) contrast(101%);
}

.agreements_block p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile Bottom Panel */
.mobile-bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 5px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid var(--gray-medium);
}

.mobile-bottom-panel .nav-item {
    padding: 0.3rem;
    height: auto;
    min-width: auto;
}

.mobile-bottom-panel .nav-item span {
    font-size: 10px;
}

.clear-search-btn {
        right: 20px;
    }

/* Utility Classes */
.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

/* Адаптивность шапки */
@media (max-width: 1400px) {
    .header-container {
        max-width: 100%;
        padding: 0 0.3rem;
    }
}

@media (max-width: 1200px) {
    header {
        height: auto;
        padding: 0 0 0 0;
        flex-wrap: wrap;
    }
    .suggestions {
    top: 99%;
    }
    .header_center {
        margin: 0 1rem;
    }
    
    .search_field {
        padding: 1rem 3rem 1rem 2.5rem;
    }
    
    .search_btn {
        padding: 0 1.5rem;
    }
}



@media (max-width: 1001px) {
 header {
        padding: 0.21rem 0 0.21rem 0;

    }
    .suggestions {
    top: 90%;
    }
    .logo-img {
        height: 70px;
    }
    
    .search_form {
        flex-direction: row;
    }
    
    .search_btn {
        margin-left: 0.5rem;
        padding: 0.8rem;
        width: auto;
        height: 50px;
        min-width: 100px;
    }
    
    .authBtn {
        padding: 0.7rem 1.2rem;
        height: 50px;
        font-size: 0.95rem;
    }
    
    /* Mobile specific styles */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header_left {
        display: none;
    }
    
    .header_center {
        order: 2;
        width: 100%;
        margin: 10px 0 0;
    }
    
    .header_right {
        display: none;
    }
    
    .search_form {
        position: relative;
    }
    
    .search_field {
        padding: 0.9rem 4.7rem 0.9rem 3rem;
    }
    
    .clear-search-btn {
        right: 45px;
    }
    
    .search-submit-btn {
        display: flex;
        right: 15px;
    }
    
    .back-search-btn {
        display: flex;
        left: 15px;
    }
    
    .search-logo {
        display: flex;
        left: 15px;
    }

     .search-logo img {
        display: flex;
    height: 35px;
    width: 35px;
}

    
    .mobile-bottom-panel {
        display: flex;
    }
    
    /* Адаптация выпадающих подсказок */
    .suggestions {
        width: 100vw;
        left: 0 !important;
        max-width: 100%;
    }
    
    .mobile-search-focused .header_left,
    .mobile-search-focused .header_right {
        display: none;
    }
    
    .mobile-search-focused .header_center {
        margin: 0;
    }
}

@media (min-width: 781px) {
    .desktop-only {
        display: flex;
    }
     .search-logo img {
        display: flex;
    height: 30px;
    width: 30px;
}
    
    .search_btn.search-btn {
        display: flex;
    }
    
    /* Улучшаем внешний вид крестика на компьютере */
    
}

@media (max-width: 576px) {
    .search_field {
        padding: 0.9rem 2.8rem 0.9rem 2.8rem;
        font-size: 1rem;
        height: 50px;
    }
    
    .search_btn {
        padding: 0 0.8rem;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .suggestions a {
        padding: 0.8rem 1.2rem;
    }
    
    .authBtn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        height: 45px;
    }
    
    .upper_footer_block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mobile-bottom-panel {
        padding: 1px 0;
        padding-bottom: 11px;
    }
    
    .mobile-bottom-panel .nav-item img {
        width: 20px;
        height: 20px;
    }
    
    .nav-item {
        min-width: 50px;
        height: 50px;
    }
     .search-logo img {
        display: flex;
    height: 30px;
    width: 30px;
}
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader-animation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    width: 100%;
}

.loader-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: float 1.5s infinite ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.loader-circle:nth-child(2) {
    animation-delay: 0.2s;
    background-color: #00c4ff;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.4s;
    background-color: #0066ff;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    position: relative;
    font-family: var(--logo-font);
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Стили для нижней панели на мобильных устройствах */
@media (max-width: 780px) {
    body {
        padding-bottom: 70px;
    }
    
    .mobile-bottom-panel {
        display: flex;
    }
}


/* Добавить в конец файла */
.countdown-blue {
    font-size: 14px;
    color: #2196F3;
    font-weight: 600;
    margin-top: 5px;
    background: #e3f2fd;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #bbdefb;
}

.countdown-blue.expiring {
    color: #f44336;
    background: #ffebee;
    border-color: #ffcdd2;
}

/* Убедимся, что кнопка лупы на мобильной версии всегда видима */
@media (max-width: 780px) {
    .search-submit-btn {
        display: flex !important;
    }
}

/* Улучшаем отступы для поля поиска на мобильной версии */
@media (max-width: 780px) {
    .search_field {
        padding: 0.9rem 4.5rem 0.9rem 3rem !important;
    }
}