/* style.css — темная профессиональная тема с градиентом и анимациями для РЦИР */
/* Все оттенки синего заменены на черный / темно-серый */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap&subset=cyrillic');

body {
    background: linear-gradient(96.44deg, #e5ebee, #e2f0ff 51.56%, #d7d4ff);
    font-family: 'Montserrat', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* ========== ГЛОБАЛЬНЫЕ КОМПОНЕНТЫ ========== */
.nav g {
    fill: #696c77;
}
.nav svg {
    border: 2px solid #a5aaff;
    border-radius: 22px;
    padding: 4px;
}

.container div {
    margin: 20px 0px;
}

.personal-container {
    margin: 20px auto !important;
}
.container .header div {
    margin: unset;
}

 
/* Контейнеры */
.container, .dashboard-container, .dashboard {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ========== ФУТЕР ========== */
.footer {
    text-align: center;
    font-size: 0.85rem;
    color: #4a4a4a;
    padding: 32px 0;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-line {
    margin-bottom: 8px;
}

.footer-line:last-child {
    margin-bottom: 0;
}

.footer a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 700px) {
    .footer {
        padding: 24px 0;
        margin-top: 32px;
    }
    
    .footer-line {
        font-size: 0.7rem;
        line-height: 1.5;
    }
}

/* Карточки — стеклянный эффект (glassmorphism) */
.card, .stat-card, .layer-card, .quote-block, .macro-card, 
.chart-container, .lock-box, .main-content, .case-card,
.case-header, .feedback-card, .admin-container, .personal-container,
.auth-container {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(2px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.card:hover, .stat-card:hover, .layer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.97);
}

/* Кнопки с градиентом (черно-серый) */
.btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border: 1.5px solid #cccccc;
    padding: 8px 20px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.5);
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.btn-outline:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
    transform: translateY(-1px);
}

/* Бейджи */
.badge-success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.badge-warning {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #f5a623;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.badge-neutral {
    background: linear-gradient(135deg, #eef2f6, #e2e8f0);
    color: #4a4a4a;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

/* Тренды */
.trend-up { color: #2e7d32; font-weight: 600; }
.trend-down { color: #d32f2f; font-weight: 600; }
.trend-neutral { color: #6c7a89; font-weight: 600; }

/* ========== ШАПКА ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(to bottom, #f0f0f0a3 0%, #aaaaaa0a 102%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.logo-area {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.logo {
    width: 142px;
    height: 107px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.site-title p {
    font-size: 11px;
    color: #242424;
    margin: 0;
    padding-left: 9px;
    font-family: 'Montserrat', sans-serif;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #0D0D0D;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #1a1a1a;
}

.nav a.active {
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    background: rgb(255 255 255 / 13%);
    backdrop-filter: blur(2px);
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 2.3rem;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.2rem;
    color: #1a1a1a;
    border-left: 4px solid #1a1a1a;
    padding-left: 20px;
    margin-bottom: 32px;
    font-weight: 500;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin: 40px 0 20px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin: 24px 0 12px;
    color: #1a1a1a;
}

p {
    margin-bottom: 16px;
    color: #3a3a3a;
    line-height: 1.6;
}

.highlight {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 20px;
    border-left: 4px solid #1a1a1a;
}

.highlight strong {
    color: #1a1a1a;
}

ul, ol {
    margin: 16px 0 16px 24px;
}

li {
    margin-bottom: 8px;
    color: #3a3a3a;
}

/* Сетки */
.features-grid, .stats-grid, .layers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px;
    margin: 32px 0;
}

.feature-card, .stat-card, .layer-card {
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card h3, .stat-number {
    color: #1a1a1a;
    margin-bottom: 12px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.85rem;
    color: #5a5a5a;
    margin-top: 8px;
}

/* Цитата */
.quote-block {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
    border-left: 4px solid #f5a623;
    margin: 32px 0;
}

.quote-author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #1a1a1a;
}

/* Таблица */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comparison-table th, .comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    background: rgba(240, 240, 240, 0.9);
    color: #1a1a1a;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

/* FAQ анимация */
.faq-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    transition: all 0.2s ease;
    border-radius: 16px;
    padding: 3px 14px;
    margin: 10px 2px !important;
}

.faq-question {
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #1a1a1a;
}

.faq-answer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.cta-block {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
    text-align: center;
    padding: 48px;
    margin: 40px 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* ========== ДАШБОРД ========== */
.macro-card {
    background: rgba(255, 255, 255, 0.92);
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.macro-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #5a5a5a;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.macro-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.macro-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    background: rgba(240, 240, 240, 0.8);
    padding: 8px 20px;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.macro-item:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.macro-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a4a4a;
}

.macro-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.controls {
    display: flex;
    gap: 16px;
    padding: 3px 4px;
    border-radius: 60px;
    margin-bottom: 24px;
    width: fit-content;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 2;
}

select {
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid #cccccc;
    padding: 10px 28px;
    border-radius: 40px;
    color: #1a1a1a;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

select:hover {
    border-color: #1a1a1a;
    background: #ffffff;
}

.grid-2 {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
}

.card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5a5a5a;
    margin-bottom: 16px;
}

.index-value {
    font-size: 3rem;
    font-weight: 800;
    color: #5c80ab;
    font-family: 'Montserrat', sans-serif;
}

.index-date {
    font-size: 0.75rem;
    color: #5a5a5a;
    margin-top: 8px;
}

.factors-list {
    list-style: none;
}

.factors-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recommendation-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50;
}

.chart-container {
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

canvas {
    max-height: 300px;
    width: 100%;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.companies-note, .update-note {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    border-radius: 9px;
    padding: 10px 20px;
    margin: 20px 0;
    border-left: 2px solid #3e3e3e;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.companies-note p, .update-note p {
    margin: 0;
    color: #313131;
    font-size: 13px;
}

/* Футер */
.footer {
    text-align: center;
    font-size: 0.75rem;
    color: #4a4a4a;
    padding: 70px 0;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content, .dashboard-container > * {
    animation: slideUp 0.4s ease-out;
}

/* ========== СТРАНИЦА МЕТОДОЛОГИИ ========== */
.case-card .badge-confirmed {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #b8942e);
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
}

.data-table th, .data-table td {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: rgba(240, 240, 240, 0.9);
    color: #1a1a1a;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.sources {
    background: rgba(240, 240, 240, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 24px;
}

/* ========== БЛОКИРОВКА ========== */
.lock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.lock-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 48px;
    max-width: 500px;
    text-align: center;
}

.lock-box svg {
    stroke: #1a1a1a;
}

/* ========== АНИМИРОВАННЫЙ ФОН ========== */
/* Контейнер для фоновых эффектов */
.bg-effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Анимации для парящих фигур */
@keyframes floatShape {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(5deg);
    }
    50% {
        transform: translateY(5px) translateX(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) translateX(-5px) rotate(3deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
}

@keyframes pulseShape {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* Стили для фоновых SVG элементов */
.bg-effects-container svg {
    transition: all 0.3s ease;
    filter: blur(0.5px);
}

.bg-effects-container svg:hover {
    filter: blur(0);
    opacity: 0.8 !important;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 700px) {
    .container, .dashboard, .dashboard-container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .index-value {
        font-size: 2rem;
    }
    
    .macro-item {
        padding: 4px 12px;
    }
    
    .features-grid, .stats-grid, .layers-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-block {
        padding: 32px 24px;
    }
    
    .lock-box {
        padding: 24px;
        margin: 20px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ АДМИНКИ ========== */
.admin-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;
}

.admin-container h2, .admin-container h1 {
    color: #1a1a1a;
    margin-bottom: 24px;
}

.nav-links {
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Таблицы в админке */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: rgba(240, 240, 240, 0.9);
    color: #1a1a1a;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

/* Формы в админке */
.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    color: #3a3a3a;
    font-weight: 500;
}

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 10px;
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid #cccccc;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Кнопки в админке */
.btn-save, .btn-add {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.btn-save:hover, .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

/* Статусы в админке */
.status-active {
    color: #2e7d32;
    font-weight: 600;
}

.status-inactive {
    color: #d32f2f;
    font-weight: 600;
}

/* Карточка обратной связи */
.feedback-card {
    margin-bottom: 20px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.feedback-client {
    color: #1a1a1a;
    font-weight: 600;
}

.feedback-date {
    color: #5a5a5a;
    font-size: 0.8rem;
}

.feedback-subject {
    font-weight: 600;
    margin: 10px 0;
}

.feedback-message {
    background: rgba(240, 240, 240, 0.8);
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
}

.status-select {
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid #cccccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Убеждаемся что контент поверх фона */
.container, .dashboard-container, .main-content, .dashboard,
.header, .footer, .personal-container, .auth-container,
.lock-container, .case-card, .case-header, .controls,
.macro-card, .chart-container, .card, .stat-card,
.features-grid, .layers-grid, .cta-block {
    position: relative;
    z-index: 2;
}