/* calc/assets/css/calculators/pc-airflow-calculator.css */

:root {
    --pc-primary: #0EA5E9; /* Неоновый голубой */
    --pc-danger: #EF4444;  /* Неоновый красный */
    --pc-bg: #0F172A;      /* Темный фон карточки */
    --pc-dark: #1E293B;    /* Панели */
    --pc-accent: #38BDF8;
}

/* --- ВЕРХНЯЯ ЧАСТЬ --- */
.calc-header { margin-bottom: 40px; }
.subtitle { color: var(--text-secondary); margin-top: 12px; font-size: 16px; line-height: 1.5; }

.calc-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 992px) { .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

/* Инпуты */
.pc-inputs-card { background: #F8FAFC; border: 1px solid #E2E8F0; }
.input-group { margin-bottom: 24px; }
.m-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 16px !important; }
.text-center { text-align: center; }

.input-wrapper input, .input-wrapper select {
    width: 100%; padding: 12px 14px; font-size: 15px; font-weight: 600;
    border: 1px solid #CBD5E1; border-radius: 10px; outline: none; background: #fff;
    color: #1E293B; transition: all 0.2s;
}
.input-wrapper select:focus { border-color: var(--pc-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.group-title-small { font-size: 13px; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 16px 0; border-left: 3px solid var(--pc-primary); padding-left: 8px; }
.form-divider { border: none; height: 1px; background: #E2E8F0; margin: 24px 0; }
.helper-text { font-size: 12px; color: #64748B; line-height: 1.4; }


/* --- ПРАВАЯ ЧАСТЬ: РЕЗУЛЬТАТ (KILLER FEATURE) --- */
@media (min-width: 992px) { .sticky-card { position: sticky; top: 24px; transition: top 0.3s; } }

.pc-result-card {
    background: var(--pc-bg); border: 2px solid #334155; padding: 32px;
    border-radius: 20px; box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.8);
    color: #F8FAFC; overflow: hidden;
}

.result-header-neon { text-align: center; margin-bottom: 40px; }
.result-header-neon h2 { font-size: 14px; font-weight: 800; color: #94A3B8; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 1px; }
.neon-profit span { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -1px; text-shadow: 0 0 20px currentColor; transition: color 0.5s; }

.text-neon-blue { color: var(--pc-primary); }
.text-neon-red { color: var(--pc-danger); }
.text-neon-yellow { color: #F59E0B; }

/* 3D СЦЕНА КОРПУСА (ИДЕАЛЬНАЯ ГЕОМЕТРИЯ) */
.scene-3d-wrapper {
    display: flex; justify-content: center; align-items: center;
    height: 380px; /* Увеличено для свободного вращения */
    margin-bottom: 24px; 
    perspective: 1200px;
    cursor: grab;
    touch-action: none; /* КРИТИЧЕСКИ ВАЖНО: отключает скролл экрана при свайпе по модели */
}
.scene-3d-wrapper:active { cursor: grabbing; }

/* Центр вращения */
.scene-3d {
    width: 120px; 
    height: 240px; 
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(-35deg); /* Стартовое положение */
}

/* Сборка граней (Размеры корпуса: Ш120 х В240 х Г240) */
.pc-case { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; }

.face { 
    position: absolute; 
    border: 2px solid rgba(56, 189, 248, 0.4); 
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(2px); 
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8); 
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}

.front  { width: 120px; height: 240px; transform: translateZ(120px); }
.back   { width: 120px; height: 240px; transform: rotateY(180deg) translateZ(120px); }
.right  { width: 240px; height: 240px; left: -60px; transform: rotateY(90deg) translateZ(60px); background: #0F172A; } /* Задняя стенка материнки */
.left   { width: 240px; height: 240px; left: -60px; transform: rotateY(-90deg) translateZ(60px); background: rgba(14, 165, 233, 0.05); } /* Прозрачная крышка */
.top    { width: 120px; height: 240px; top: 0; transform: rotateX(90deg) translateZ(120px); }
.bottom { width: 120px; height: 240px; top: 0; transform: rotateX(-90deg) translateZ(120px); background: #0F172A; border-color: #334155;}

/* Внутрянка (Материнская плата приклеена к Right) */
.mobo { 
    position: absolute; top: 30px; left: 30px; 
    width: 180px; height: 180px; 
    background: #1E293B; border: 1px solid #334155; 
    transform-style: preserve-3d; 
    transform: translateZ(5px); /* Чуть выпирает от стенки */
}
.cpu-cooler { 
    position: absolute; top: 20px; left: 40px; 
    width: 50px; height: 50px; background: #334155; 
    border: 1px solid #475569; display: flex; align-items: center; justify-content: center; 
    font-size: 10px; font-weight: 800; color: #94A3B8; 
    transform: translateZ(25px); box-shadow: -15px 15px 25px rgba(0,0,0,0.6); 
}
.gpu-card { 
    position: absolute; top: 100px; left: 10px; 
    width: 150px; height: 20px; background: #0F172A; 
    border: 1px solid #475569; border-left: 2px solid var(--pc-primary); 
    display: flex; align-items: center; justify-content: center; 
    font-size: 10px; font-weight: 800; color: #94A3B8; 
    transform: translateZ(40px); box-shadow: -15px 15px 25px rgba(0,0,0,0.6); 
}

/* Вентиляторы */
.fan-slots { display: flex; flex-direction: column; gap: 8px; justify-content: center; height: 100%; }
.fan-slots-h { display: flex; flex-direction: column; gap: 8px; justify-content: center; height: 100%; } 
.fan { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #334155; background: rgba(0,0,0,0.7); position: relative; overflow: hidden; box-shadow: inset 0 0 10px rgba(0,0,0,0.9); }
.fan::after { content: '⚙'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 38px; color: #475569; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Подсветка кулеров (RGB) */
.fan.in { border-color: var(--pc-primary); box-shadow: 0 0 15px rgba(14, 165, 233, 0.4), inset 0 0 10px rgba(14, 165, 233, 0.2); }
.fan.in::after { color: var(--pc-primary); animation: spin 0.3s linear infinite; }
.fan.out { border-color: var(--pc-danger); box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), inset 0 0 10px rgba(239, 68, 68, 0.2); }
.fan.out::after { color: var(--pc-danger); animation: spin 0.3s linear infinite; }

.neon-divider { height: 1px; background: #334155; margin: 24px 0; }

/* Метрики внизу */
.airflow-metrics { display: flex; align-items: center; justify-content: space-between; background: #1E293B; padding: 16px; border-radius: 12px; border: 1px solid #334155; }
.am-box { display: flex; flex-direction: column; align-items: center; width: 40%; text-align: center; }
.am-label { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.am-val { font-size: 22px; font-weight: 800; line-height: 1; }
.am-vs { font-size: 14px; font-weight: 800; color: #475569; }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sg-item { background: #1E293B; border: 1px solid #334155; border-radius: 12px; padding: 16px 12px; text-align: center; }
.sg-title { display: block; font-size: 11px; color: #94A3B8; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.sg-item strong { font-size: 16px; color: #F8FAFC; }


/* --- НИЖНЯЯ ЧАСТЬ (SEO, INFO) --- */
.info-wrapper { padding: 80px 0; margin-top: 60px; border-top: 1px solid #E5E7EB; }

.author-badge { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px; padding: 20px; background: #F8FAFC; border-radius: 16px; border: 1px solid #E2E8F0; }
.author-avatar { width: 48px; height: 48px; background: #1E293B; color: #0EA5E9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.author-info { display: flex; flex-direction: column; min-width: 0; }
.author-name { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.4; margin-bottom: 4px; }
.author-date { font-size: 13px; color: #6B7280; }

.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; font-size: 26px; font-weight: 800; color: #111827; line-height: 1.25; letter-spacing: -0.02em; }
.header-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); flex-shrink: 0; margin-top: -6px; font-size: 26px; }

.blue-icon { color: var(--pc-primary); }
.dark-icon { color: #1E293B; }
.text-danger { color: #EF4444; font-weight: 700;}
.text-success { color: #10B981; font-weight: 700;}
.text-warning { color: #F59E0B; font-weight: 700;}

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.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: 32px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; }
.formula-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.1); }
.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.formula-card h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }

.badge-blue { background: var(--pc-primary); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.badge-red { background: #EF4444; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }

.formula-card p { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; font-weight: 500; }
.math-expression { background: #F0F9FF; border: 1px dashed var(--pc-primary); padding: 18px; border-radius: 14px; font-weight: 700; color: #0C4A6E; text-align: center; margin-bottom: 20px; font-size: 17px; font-family: 'Courier New', Courier, monospace; letter-spacing: 0.5px; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 56px 0; opacity: 0.7; }
.intro-text { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 40px; }
.calc-description p { font-size: 17px; line-height: 1.7; color: #4B5563; margin-bottom: 24px; }
.calc-description strong { color: #1F2937; font-weight: 700; }

/* Перелинковка */
.internal-links-box { margin-top: 32px; background: #F3F4F6; padding: 24px; border-radius: 16px; border-left: 4px solid var(--pc-primary); }
.internal-links-box h4 { margin: 0 0 12px 0; font-size: 17px; color: #111827; }
.internal-links-box ul { margin: 0; padding-left: 20px; color: #4B5563; }
.internal-links-box li { margin-bottom: 8px; font-size: 15px; }
.internal-links-box a { color: var(--pc-primary); text-decoration: underline; font-weight: 600; }

/* SEO Таблица */
.seo-table-wrapper { overflow-x: auto; margin-bottom: 48px; background: #fff; border-radius: 16px; border: 1px solid #E5E7EB; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.seo-table-wrapper::-webkit-scrollbar { height: 6px; }
.seo-table-wrapper::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
.seo-table { width: 100%; border-collapse: collapse; min-width: 500px; text-align: left; }
.seo-table th { background: #F9FAFB; padding: 18px 24px; font-size: 13px; font-weight: 800; color: #6B7280; text-transform: uppercase; border-bottom: 1px solid #E5E7EB; letter-spacing: 0.5px; }
.seo-table td { padding: 18px 24px; font-size: 14px; border-bottom: 1px solid #F3F4F6; color: #374151; vertical-align: top; line-height: 1.5; }
.seo-table tr:last-child td { border-bottom: none; }

.howto-section { margin-top: 48px; }
.howto-step { display: flex; gap: 20px; margin-bottom: 32px; background: #fff; padding: 24px; border-radius: 20px; border: 1px solid #E5E7EB; transition: box-shadow 0.2s, transform 0.2s; }
.howto-step:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); transform: translateY(-2px); }
.step-num { width: 36px; height: 36px; background: #F0F9FF; color: var(--pc-primary); font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; border: 1px solid rgba(14, 165, 233, 0.2); }
.step-content h4 { margin: 0 0 10px 0; font-size: 18px; color: #111827; font-weight: 700; }
.step-content p { margin: 0; font-size: 16px; color: #6B7280; line-height: 1.6; }

.faq-section .faq-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; margin-bottom: 16px; overflow: hidden; transition: all 0.2s ease; }
.faq-section .faq-item:hover { border-color: #D1D5DB; }
.faq-section .faq-item[open] { border-color: var(--pc-primary); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.08); }
summary.faq-question { padding: 22px 28px; cursor: pointer; font-weight: 700; color: var(--text-primary); font-size: 17px; list-style: none; position: relative; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-section .faq-item[open] summary.faq-question { color: var(--pc-primary); background: #F0F9FF; border-bottom: 1px solid #BAE6FD; }
.faq-question::after { content: '+'; font-size: 26px; color: #9CA3AF; font-weight: 400; line-height: 1; transition: transform 0.3s; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: var(--pc-primary); }
.faq-answer, .faq-item div[itemprop="text"] { padding: 28px; color: var(--text-secondary); line-height: 1.7; font-size: 16px; background: #fff; }
.faq-answer p { margin: 0; }

@media (max-width: 900px) {
    .calc-header { margin-bottom: 32px; }
    .formulas-grid { grid-template-columns: 1fr; gap: 20px; }
    .icon-heading { font-size: 22px; gap: 12px; }
    .header-icon { width: 44px; height: 44px; font-size: 22px; }
    .formula-card { padding: 24px; }
    summary.faq-question { padding: 18px 20px; font-size: 16px; }