/* --- Стили для KDA (Cyber Theme) --- */
:root {
    --cyber-bg: #18181B; /* Zinc 900 */
    --cyber-card: linear-gradient(135deg, #27272A 0%, #09090B 100%);
    --neon-cyan: #22D3EE;
    --neon-pink: #E879F9;
    --neon-red: #F87171;
    --neon-green: #34D399;
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; } }

/* Inputs */
.calc-inputs { gap: 24px; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.05em; }

.input-wrapper { position: relative; }

.input-wrapper input {
    width: 100%; padding: 16px; padding-right: 44px;
    font-size: 20px; font-weight: 700; font-family: monospace;
    border: 2px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    background: #fff;
}

/* Neon Focus */
.input-wrapper.neon-wrapper input:focus { 
    border-color: var(--text-primary); 
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1); 
}

.icon-suffix { 
    position: absolute; 
    right: 16px; 
    top: 50%; 
    transform: translateY(-50%);
    font-size: 24px;
    color: #9CA3AF; 
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}

.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* Результаты (Cyber Card) */
.card--cyber { 
    background: var(--cyber-card); 
    color: #fff; 
    border: 1px solid #3F3F46;
}
.card--cyber h2 { display: none; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Бейдж ранга */
.rank-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 24px; padding: 20px;
    background: rgba(255,255,255,0.05); border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.rank-badge i { font-size: 48px; margin-bottom: 8px; color: var(--neon-cyan); }
.rank-badge span { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }

/* Статистика */
.kda-stats { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }

.stat-main { flex: 1; }
.stat-sub { text-align: right; }

.stat-label { font-size: 12px; text-transform: uppercase; color: #A1A1AA; display: block; margin-bottom: 4px; }
.stat-val { font-size: 40px; font-weight: 800; font-family: monospace; line-height: 1; }
.stat-sub .stat-val { font-size: 24px; color: var(--neon-pink); }

/* Разделитель */
.dark-divider { height: 1px; background: #3F3F46; margin: 24px 0; }

/* График (Bar Chart) */
.kda-chart-box { margin-top: 12px; }
.kda-bar-container {
    height: 12px; display: flex; border-radius: 6px; overflow: hidden; background: #18181B; margin-bottom: 12px;
}
.kda-bar { height: 100%; transition: width 0.3s ease; }
.k-bar { background: var(--neon-green); }
.d-bar { background: var(--neon-red); }
.a-bar { background: var(--neon-cyan); }

.kda-legend { display: flex; justify-content: space-between; font-size: 12px; color: #A1A1AA; }
.kda-legend span { display: flex; align-items: center; gap: 4px; }
.c-kill { color: var(--neon-green); }
.c-death { color: var(--neon-red); }
.c-assist { color: var(--neon-cyan); }

/* --- НОВЫЕ СТИЛИ (CYBER INFO SECTIONS) --- */

.info-wrapper {
    padding: 60px 0 60px 0;
    margin-top: 60px;
    border-top: 1px solid #3F3F46;
    margin-bottom: 20px;
}

.info-wrapper .container {
    max-width: 800px;
    margin: 0 auto;
}

/* Заголовки */
.icon-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Иконки заголовков (Dark Mode) */
.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #27272A; /* Dark BG */
    border: 1px solid #3F3F46;
    flex-shrink: 0;
    margin-top: -4px;
}

.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }

/* Неоновые цвета иконок */
.blue-icon svg { color: var(--neon-cyan); }
.green-icon svg { color: var(--neon-green); }
.red-icon svg { color: var(--neon-red); }

.small-heading {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 20px;
}
.small-heading .header-icon { width: 40px; height: 40px; }
.small-heading .header-icon svg { width: 20px; height: 20px; }

.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Секция Формул (Dark Mode) --- */
.formulas-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px;
}

.formula-card {
    background: #27272A; /* Zinc 800 */
    border: 1px solid #3F3F46;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.formula-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); 
    border-color: var(--neon-cyan);
}

.formula-header {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}

.formula-card h3 {
    margin: 0; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3;
}

/* Бейджи (адаптация под темный фон) */
.badge-blue {
    background: rgba(34, 211, 238, 0.1); color: var(--neon-cyan);
    padding: 6px 12px; border-radius: 4px; border: 1px solid rgba(34, 211, 238, 0.2);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green {
    background: rgba(52, 211, 153, 0.1); color: var(--neon-green);
    padding: 6px 12px; border-radius: 4px; border: 1px solid rgba(52, 211, 153, 0.2);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.formula-card p {
    font-size: 14px; color: #A1A1AA; margin: 0; line-height: 1.5; font-weight: 500;
}

.math-expression {
    background: rgba(0,0,0,0.3);
    border: 1px solid #3F3F46;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-family: monospace;
}

/* Разделитель */
.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #3F3F46, transparent);
    margin: 48px 0;
}

/* Описание */
.calc-description p {
    font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px;
}
.calc-description strong { color: var(--text-primary); }

/* --- FAQ Секция (Cyber Style) --- */
.faq-section .faq-item {
    background: #27272A; 
    border: 1px solid #3F3F46;
    border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s ease;
}

.faq-section .faq-item[open] {
    border-color: var(--neon-pink); 
    box-shadow: 0 4px 20px rgba(232, 121, 249, 0.15); /* Pink Glow */
}

summary.faq-question {
    padding: 16px 20px; cursor: pointer;
    font-weight: 600; color: #fff;
    list-style: none; position: relative;
    display: flex; justify-content: space-between;
    align-items: center; transition: background 0.2s;
}

summary.faq-question:hover { background-color: #3F3F46; }

.faq-section .faq-item[open] summary.faq-question {
    color: var(--neon-pink);
    background: rgba(232, 121, 249, 0.1);
}

.faq-question::after {
    content: '+'; font-size: 20px;
    color: #71717A; font-weight: 400; line-height: 1;
}
.faq-question .icon-plus { display: none; }

.faq-section .faq-item[open] summary.faq-question::after {
    content: '−'; color: var(--neon-pink);
}

.faq-answer, .faq-item div[itemprop="text"] {
    padding: 20px; color: #A1A1AA;
    line-height: 1.6; font-size: 15px;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .icon-heading { font-size: 20px; gap: 12px; margin-bottom: 20px; }
    .header-icon { width: 40px; height: 40px; border-radius: 12px; }
    .header-icon svg { width: 20px; height: 20px; }
    
    .formula-card { padding: 24px; text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    .math-expression { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    
    .info-wrapper { margin-top: 40px; padding-top: 40px; }
}