/* --- Sensitivity Theme --- */
:root {
    --sens-bg: #ECFDF5;       /* Mint Light */
    --sens-card-bg: linear-gradient(135deg, #059669 0%, #047857 100%);
    --sens-accent: #10B981;   /* Emerald 500 */
    --sens-dark: #064E3B;     /* Emerald 900 */
    --sens-text: #D1FAE5;     /* Light Mint */
}

.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: 1.1fr 0.9fr; } }

/* Inputs */
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 14px; font-weight: 700; color: #4B5563; margin-bottom: 8px; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input {
    width: 100%; padding: 14px; border: 2px solid #E5E7EB; border-radius: 12px;
    font-size: 18px; font-weight: 600; outline: none; transition: border 0.2s;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--sens-accent); }
.suffix { position: absolute; right: 14px; color: #9CA3AF; font-weight: 500; font-size: 12px; text-transform: uppercase; }

/* DPI Pills */
.dpi-pills { display: flex; gap: 8px; margin-top: 10px; }
.pill-btn {
    background: #F3F4F6; border: none; padding: 6px 14px; border-radius: 99px;
    font-size: 13px; font-weight: 600; color: #4B5563; cursor: pointer; transition: all 0.2s;
}
.pill-btn:hover { background: #D1FAE5; color: var(--sens-dark); }

/* Converter Row */
.converter-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.col-label { font-size: 12px; color: #6B7280; margin-bottom: 6px; font-weight: 600; }

.game-select {
    width: 100%; padding: 10px; border-radius: 10px; border: 2px solid #E5E7EB;
    font-weight: 600; color: #374151; outline: none; cursor: pointer;
    background: #fff; font-size: 14px;
}
.game-select:focus { border-color: var(--sens-accent); }

.mt-2 { margin-top: 8px; }

.swap-icon {
    display: flex; align-items: center; justify-content: center;
    color: #9CA3AF; font-size: 20px; padding-top: 24px;
}

.result-wrapper input { background: #F9FAFB; color: var(--sens-dark); border-color: #D1FAE5; }
.copy-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: none; background: transparent; cursor: pointer;
    color: var(--sens-accent); font-size: 18px; padding: 4px;
}
.copy-btn:hover { color: var(--sens-dark); }

/* --- RESULT CARD --- */
.card--sens {
    background: var(--sens-card-bg);
    color: #fff; border: none;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
    position: relative; overflow: hidden;
}
.card--sens h2 { color: #fff; font-size: 16px; margin-bottom: 20px; opacity: 0.9; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat-box { 
    background: rgba(0,0,0,0.2); border-radius: 12px; padding: 12px; 
    text-align: center; border: 1px solid rgba(255,255,255,0.1);
}
.stat-label { display: block; font-size: 12px; opacity: 0.8; margin-bottom: 4px; text-transform: uppercase; }
.stat-val { font-size: 20px; font-weight: 700; color: #fff; font-family: monospace; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 24px 0; }
.card--sens h3 { font-size: 14px; color: #fff; margin-bottom: 12px; opacity: 0.9; }

/* RULER Visual */
.ruler-container { position: relative; padding: 10px 0; }
.ruler-track {
    height: 40px; border-bottom: 2px solid rgba(255,255,255,0.3);
    position: relative; margin-bottom: 12px;
}
.ruler-marks {
    display: flex; justify-content: space-between; font-family: monospace;
    font-size: 10px; color: rgba(255,255,255,0.6); position: absolute; bottom: -20px; width: 100%;
}
.ruler-bar {
    height: 8px; background: #fff; border-radius: 4px;
    position: absolute; bottom: -5px; left: 0;
    width: 0%; /* JS sets this */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.ruler-handle {
    width: 14px; height: 14px; background: #fff; border-radius: 50%;
    position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mousepad-hint {
    margin-top: 24px; font-size: 13px; color: #D1FAE5;
    display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1);
    padding: 8px 12px; border-radius: 8px; width: fit-content;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .converter-row { grid-template-columns: 1fr; }
    .swap-icon { transform: rotate(90deg); padding: 8px 0; }
}

/* --- НОВЫЕ ИНФОРМАЦИОННЫЕ БЛОКИ (Sensitivity Style) --- */

.info-wrapper {
    padding: 60px 0 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
    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;
}

.header-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-shrink: 0; margin-top: -4px;
    color: var(--sens-accent);
}

.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }

/* Цвета иконок */
.blue-icon svg { color: #3B82F6; }
.green-icon svg { color: var(--sens-accent); }
.red-icon svg { color: #EF4444; }
.yellow-icon svg { color: #EAB308; }

.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;
}

/* --- Секция Формул --- */
.formulas-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px;
}

.formula-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-radius: 16px; 
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
}
.formula-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15); border-color: #A7F3D0; }

.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: var(--text-primary); line-height: 1.3;
}

/* Бейджи */
.badge-blue {
    background: #DBEAFE; color: #2563EB;
    padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-green {
    background: #D1FAE5; color: #059669;
    padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.formula-card p {
    font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500;
}

.math-expression {
    background: var(--sens-bg);
    border: 1px solid #D1FAE5;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--sens-accent);
    text-align: center;
    margin-bottom: 16px;
    font-size: 15px;
}

/* Разделитель */
.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, 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 Секция (Sensitivity Style) --- */
.faq-section .faq-item {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s ease;
}

.faq-section .faq-item[open] {
    border-color: var(--sens-accent); 
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

summary.faq-question {
    padding: 16px 20px; cursor: pointer;
    font-weight: 600; color: var(--text-primary);
    list-style: none; position: relative;
    display: flex; justify-content: space-between;
    align-items: center; transition: background 0.2s;
}

summary.faq-question:hover { background-color: #F9FAFB; }

.faq-section .faq-item[open] summary.faq-question {
    color: var(--sens-dark);
    background: var(--sens-bg);
}

.faq-question::after {
    content: '+'; font-size: 20px;
    color: var(--text-secondary); font-weight: 400; line-height: 1;
}
.faq-question .icon-plus { display: none; }

.faq-section .faq-item[open] summary.faq-question::after {
    content: '−'; color: var(--sens-accent);
}

.faq-answer, .faq-item div[itemprop="text"] {
    padding: 20px; color: var(--text-secondary);
    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; }
}