/* calc/assets/css/calculators/psu_calculator.css */

:root {
    --bg-tech-card: #0F172A; 
    --text-tech-main: #F8FAFC;
    --text-tech-muted: #94A3B8;
    --accent-tech-cyan: #38BDF8;
    --accent-tech-glow: rgba(56, 189, 248, 0.4);
    --accent-warn: #F59E0B;
}

/* =========================================
   КАРКАС КАЛЬКУЛЯТОРА
   ========================================= */
.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.2fr 0.8fr; } }

.calc-inputs { gap: 16px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper select, .input-wrapper input {
    width: 100%; padding: 14px 16px; font-size: 15px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit; background: #fff; appearance: none; 
}
.input-wrapper select { cursor: pointer; }
.input-wrapper select:focus, .input-wrapper input:focus { 
    border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); 
}
.input-wrapper select optgroup { font-weight: 700; color: #1E293B; background: #F8FAFC; }

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =========================================
   ПРАВАЯ КАРТОЧКА (Tech Theme)
   ========================================= */
.card--tech { 
    background: var(--bg-tech-card); color: var(--text-tech-main); 
    border: 1px solid #1E293B; border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.5);
}
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.tech-title {
    color: var(--text-tech-muted) !important; font-size: 14px !important;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 24px !important; text-align: center;
}

.tech-draw-box { text-align: center; margin-bottom: 32px; }
.draw-label { font-size: 15px; color: var(--text-tech-muted); margin-bottom: 8px; }
.draw-value { font-size: 42px; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.draw-value span { font-variant-numeric: tabular-nums; }

.power-bar-container { margin-bottom: 32px; }
.power-bar-track {
    width: 100%; height: 12px; background: #1E293B;
    border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.power-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #3B82F6, var(--accent-tech-cyan));
    border-radius: 99px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    box-shadow: 0 0 10px var(--accent-tech-glow);
}
.power-bar-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-tech-muted); font-weight: 600; }
#power-bar-target { color: var(--accent-tech-cyan); }

.tech-divider { height: 1px; background: linear-gradient(90deg, transparent, #334155, transparent); margin: 0 0 24px; }

.tech-result-main { text-align: center; margin-bottom: 24px; }
.rec-label { font-size: 16px; color: var(--accent-tech-cyan); font-weight: 600; margin-bottom: 8px; }
.rec-value { font-size: 56px; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 0 30px var(--accent-tech-glow); margin-bottom: 12px; }
.rec-value span { font-variant-numeric: tabular-nums; }
.rec-subtext { font-size: 13px; color: var(--text-tech-muted); line-height: 1.4; max-width: 250px; margin: 0 auto; }

.tech-badges { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tech-badge { padding: 8px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.badge-cert { background: rgba(245, 158, 11, 0.1); color: var(--accent-warn); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-atx { background: rgba(56, 189, 248, 0.1); color: var(--accent-tech-cyan); border: 1px solid rgba(56, 189, 248, 0.2); }
.hidden { display: none !important; }

/* =========================================
   SEO ИНФОБЛОКИ
   ========================================= */
.info-wrapper { padding: 60px 0; margin-top: 60px; border-top: 1px solid rgba(0,0,0,0.06); margin-bottom: 20px; }
.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: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-shrink: 0; margin-top: -4px; }
.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }
.cyan-icon svg { color: var(--accent-tech-cyan); }
.blue-icon svg { color: #3B82F6; }
.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: 24px; padding: 24px; display: flex; flex-direction: column; }
.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-tech { background: #1E293B; color: var(--accent-tech-cyan); padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-warn { background: #FEF3C7; color: #D97706; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 48px 0; }

.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: #3B82F6; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15); }
summary.faq-question { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; 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: #3B82F6; background: #EFF6FF; }
.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: #3B82F6; }
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }

@media (max-width: 900px) {
    .row-2-col { grid-template-columns: 1fr; }
    .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; }
}