/* calc/assets/css/calculators/oil_viscosity.css */

:root {
    /* Liquid Gold & Steel Palette */
    --bg-amber-light: #FFFBEB; /* Amber 50 */
    --text-amber-main: #B45309; /* Amber 700 */
    --text-steel-main: #1E293B; /* Slate 800 */
    
    --accent-amber: #F59E0B; /* Amber 500 */
    --accent-amber-glow: rgba(245, 158, 11, 0.25);
    
    --accent-blue: #1E3A8A; /* Blue 900 */
    --accent-blue-light: #3B82F6; /* Blue 500 */
    
    --warn-red: #EF4444;
}

.calc-header { margin-bottom: 32px; }

/* СЕТКА И ФИКС ВЫСОТЫ CMS */
.calc-grid { 
    display: grid !important; grid-template-columns: 1fr; gap: 24px; align-items: start; 
    width: 100%; box-sizing: border-box; 
}
@media (min-width: 900px) { 
    .calc-grid { grid-template-columns: 1fr 1fr !important; } 
}

.calc-inputs, .calc-results { 
    min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: visible !important; height: auto !important; 
}

.group-title { 
    font-size: 14px; font-weight: 800; margin: 0 0 16px 0; 
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #FEF3C7; padding-bottom: 8px;
}

/* ИНПУТЫ И ПОЛЗУНКИ */
.input-group { width: 100%; font-size: 14px; font-weight: 700; color: #334155;}
.badge-value { font-size: 13px; font-weight: 800; padding: 4px 8px; border-radius: 6px;}

.amber-badge { background: #FEF3C7; color: #B45309; }
.amber-slider { background: #FEF3C7 !important; }
.amber-slider::-webkit-slider-thumb { background: var(--accent-amber) !important; border: 4px solid #FFF !important; }

.cold-badge { background: #DBEAFE; color: #1D4ED8; }
.cold-slider { background: #DBEAFE !important; }
.cold-slider::-webkit-slider-thumb { background: var(--accent-blue-light) !important; border: 4px solid #FFF !important; }

.custom-slider {
    -webkit-appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none; margin-top: 8px;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px; border-radius: 50%; 
    cursor: pointer; transition: transform 0.1s; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.custom-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* СЕЛЕКТЫ */
.calc-select-wrap { position: relative; width: 100%; }
.calc-select {
    width: 100%; padding: 14px 16px; font-size: 14px; font-weight: 700;
    border: 2px solid #E2E8F0; border-radius: 12px;
    background: #F8FAFC; outline: none; transition: all 0.3s;
    font-family: inherit; color: #1E293B; box-sizing: border-box; cursor: pointer;
}
.calc-select:focus { border-color: var(--accent-amber); box-shadow: 0 0 0 4px var(--accent-amber-glow); background: #FFF;}

/* ЧЕКБОКСЫ ТЕХНОЛОГИИ */
.tech-options { display: flex; flex-direction: column; gap: 12px; }
.custom-checkbox {
    display: flex; align-items: flex-start; position: relative; padding-left: 36px;
    cursor: pointer; user-select: none; background: #F8FAFC; border: 2px solid #E2E8F0;
    border-radius: 12px; padding: 14px 14px 14px 44px; transition: all 0.2s;
}
.custom-checkbox:hover { border-color: #FCD34D; background: #FFF; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0;}
.checkmark {
    position: absolute; top: 18px; left: 14px;
    height: 20px; width: 20px; background-color: #FFF; border: 2px solid #CBD5E1; border-radius: 6px;
    transition: all 0.2s;
}
.custom-checkbox input:checked ~ .checkmark { background-color: var(--accent-amber); border-color: var(--accent-amber); }
.custom-checkbox input:checked ~ .chk-text .chk-title { color: #B45309; }
.custom-checkbox input:checked { border-color: #FBBF24; background: #FFFBEB; }

.checkmark:after {
    content: ""; position: absolute; display: none;
    left: 5px; top: 2px; width: 4px; height: 8px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.chk-text { display: flex; flex-direction: column; gap: 4px; }
.chk-title { font-size: 14px; font-weight: 800; color: #1E293B; transition: color 0.2s;}
.chk-desc { font-size: 12px; font-weight: 500; color: #64748B; line-height: 1.4;}


/* ========================================================
   ПРАВЫЙ БЛОК (LIQUID GOLD & STEEL)
   ======================================================== */
.calc-results { background: transparent !important; background-color: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important;}

div#result-card.card.card--result.card--gold-steel { 
    background-color: var(--bg-amber-light) !important; 
    background-image: linear-gradient(135deg, #FFFBEB 0%, #EFF6FF 100%) !important; /* Amber to Blue light */
    color: var(--text-steel-main) !important; 
    border: 1px solid #FDE68A !important; 
    border-radius: 24px !important; 
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.1) !important;
    overflow: hidden !important; 
    padding: 32px 24px !important; 
    display: flex !important; 
    flex-direction: column !important;
    box-sizing: border-box !important;
    isolation: isolate !important; 
    -webkit-appearance: none !important;
    outline: none !important;
    position: relative !important;
    z-index: 1 !important;
    height: auto !important; 
    min-height: max-content !important;
}

div#result-card.card.card--result.card--gold-steel::before, 
div#result-card.card.card--result.card--gold-steel::after { display: none !important; content: none !important; background: transparent !important; box-shadow: none !important;}

.hidden { display: none !important; }

.gold-title { 
    color: var(--text-amber-main); margin: 0 0 24px 0; 
    font-size: 13px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; text-align: center;
}

/* ГЛАВНЫЙ РЕЗУЛЬТАТ */
.main-result-box {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #FFFFFF; border: 2px solid var(--accent-amber); border-radius: 20px;
    padding: 24px; margin-bottom: 24px; box-shadow: 0 8px 24px var(--accent-amber-glow);
}
.mr-value { margin-bottom: 8px;}
.mr-num { font-size: 56px; font-weight: 900; color: #B45309; line-height: 1; letter-spacing: -1px; font-family: monospace; text-shadow: 0 2px 10px var(--accent-amber-glow);}
.mr-subtext { font-size: 13px; font-weight: 600; color: #64748B;}

/* SMART АЛЕРТ */
.smart-alert {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;
    padding: 16px; border-radius: 12px; border: 1px solid #FECACA; background: #FEF2F2;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.sa-icon { font-size: 24px; line-height: 1;}
.sa-text { display: flex; flex-direction: column; gap: 4px;}
.sa-title { font-size: 13px; font-weight: 900; color: #DC2626;}
.sa-desc { font-size: 12px; font-weight: 600; color: #991B1B; line-height: 1.5;}

/* ФИЗИКА (Сетка) */
.physics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;}
.phys-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid;}
.cold-card { background: #EFF6FF; border-color: #BFDBFE; }
.hot-card { background: #FFF7ED; border-color: #FED7AA; }

.phys-icon { font-size: 24px; line-height: 1;}
.phys-data { display: flex; flex-direction: column; gap: 2px;}
.pd-val { font-size: 20px; font-weight: 900; color: #0F172A;}
.pd-lbl { font-size: 11px; font-weight: 600; color: #64748B; line-height: 1.4;}

/* HTHS ИНФО */
.hths-panel {
    display: flex; align-items: flex-start; gap: 16px; background: #FFFFFF;
    border: 1px solid #E2E8F0; padding: 20px; border-radius: 16px;
}
.hp-icon { font-size: 24px; line-height: 1;}
.hp-info { display: flex; flex-direction: column; gap: 4px;}
.hp-title { font-size: 13px; font-weight: 800; color: #1E293B;}
.hp-desc { font-size: 13px; font-weight: 500; color: #475569; line-height: 1.5;}


/* ========================================================
   SEO ИНФОБЛОКИ (БЕЗ ЧЕРНОГО)
   ======================================================== */
.info-wrapper { padding: 60px 0; margin-top: 60px; border-top: 1px solid #E2E8F0; margin-bottom: 20px; }
.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; font-size: 24px; font-weight: 900; line-height: 1.3; }

.header-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; margin-top: -4px; }

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; width: 100%; box-sizing: border-box;}
.formula-card { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.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: 800; line-height: 1.3; }

.badge { padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em;}

.soft-divider { border: none; height: 2px; background: #E2E8F0; margin: 48px 0; }

.seo-table-container { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 16px; padding: 24px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); overflow: hidden; }
.seo-table-container h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; font-weight: 900;}
.seo-table { width: 100%; border-collapse: collapse; text-align: left; }
.seo-table th { padding: 12px 16px; font-weight: 800; border-bottom: 2px solid #CBD5E1;}
.seo-table td { padding: 16px; border-bottom: 1px solid #E2E8F0; font-weight: 600; line-height: 1.5;}
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 12px; margin-bottom: 12px; transition: all 0.2s; }
.faq-section .faq-item[open] { border-color: #D97706; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.1); }
summary.faq-question { padding: 16px 20px; cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
summary.faq-question:hover { background-color: #F8FAFC; }
.faq-question::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; color: #D97706;}
.faq-question .icon-plus { display: none; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: #D97706;}
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; line-height: 1.6; font-size: 15px; font-weight: 500;}

/* МОБИЛКИ */
@media (max-width: 900px) {
    .calc-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
    .formulas-grid { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 32px !important; }
    div#result-card.card.card--result.card--gold-steel { border-radius: 20px !important; padding: 24px 16px !important; margin-top: 16px !important;}
    .seo-table { display: block !important; width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
}
@media (max-width: 480px) {
    .mr-num { font-size: 48px; }
    .physics-grid { grid-template-columns: 1fr; }
}