/* calc/assets/css/calculators/greenhouse_cover.css */

:root {
    /* Crystal Glasshouse Palette (Light/Green Theme) */
    --bg-glass-card: #F0FDF4; /* Green 50 */
    --text-glass-main: #064E3B; /* Green 900 */
    --text-glass-muted: #166534; /* Green 800 */
    
    --accent-emerald: #10B981; /* Emerald 500 */
    --accent-emerald-dark: #047857; /* Emerald 700 */
    --accent-emerald-glow: rgba(16, 185, 129, 0.2);
    
    --border-glass: #BBF7D0; /* Green 200 */
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* СИММЕТРИЧНАЯ СЕТКА 50/50 */
.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: hidden !important; 
}

/* ЗАЩИТА ОТ БЕЛЫХ УГЛОВ КАРТОЧКИ CMS */
.calc-results { background: transparent !important; border: none !important; }

.group-title { 
    font-size: 14px; font-weight: 800; color: #171717; margin: 0 0 16px 0; 
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #E2E8F0; padding-bottom: 8px;
}

/* СЕЛЕКТЫ И РАДИО КАРТОЧКИ */
.calc-select-wrap { position: relative; width: 100%; }
.calc-select {
    width: 100%; padding: 14px 16px; font-size: 15px; font-weight: 600;
    border: 2px solid #E2E8F0; border-radius: 12px;
    background: #F8FAFC; outline: none; transition: all 0.3s;
    font-family: inherit; color: #0F172A; box-sizing: border-box; cursor: pointer;
}
.calc-select:focus { border-color: var(--accent-emerald); box-shadow: 0 0 0 4px var(--accent-emerald-glow); background: #FFF;}

.material-selector { display: flex; flex-direction: column; gap: 10px; }
.mat-card { cursor: pointer; }
.mat-card input { display: none; }
.mat-content {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    background: #F8FAFC; border: 2px solid #E2E8F0; border-radius: 12px;
    transition: all 0.2s;
}
.mat-card:hover .mat-content { border-color: #A7F3D0; background: #F0FDF4; }
.mat-card input:checked + .mat-content {
    border-color: var(--accent-emerald); background: #F0FDF4;
    box-shadow: 0 4px 12px var(--accent-emerald-glow);
}
.m-icon { font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));}
.m-text { display: flex; flex-direction: column; gap: 2px; }
.m-title { font-size: 14px; font-weight: 800; color: #1E293B;}
.m-desc { font-size: 11px; font-weight: 600; color: #64748B;}
.mat-card input:checked + .mat-content .m-title { color: var(--text-glass-main); }
.mat-card input:checked + .mat-content .m-desc { color: var(--text-glass-muted); }

.info-alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid;
}
.info-alert svg { flex-shrink: 0; margin-top: -2px; }


/* ========================================================
   ПРАВЫЙ БЛОК (СВЕТЛАЯ ХРУСТАЛЬНАЯ ТЕПЛИЦА)
   ======================================================== */
#result-card.card--crystal-glass { 
    background-color: var(--bg-glass-card) !important; 
    background-image: none !important;
    color: var(--text-glass-main) !important; 
    border: 2px solid var(--border-glass) !important; 
    border-radius: 24px !important;
    box-shadow: 0 16px 32px -8px var(--accent-emerald-glow) !important;
    overflow: hidden !important; 
    padding: 32px 24px !important; 
    display: flex !important; 
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    isolation: isolate !important; 
    -webkit-appearance: none !important;
    outline: none !important;
}
#result-card.card--crystal-glass::before, 
#result-card.card--crystal-glass::after { display: none !important; content: none !important; background: transparent !important;}

@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.crystal-title { 
    color: var(--accent-emerald-dark); margin: 0 0 24px 0; 
    font-size: 12px; text-align: center; 
    font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
}

/* ГОДЫ ЖИЗНИ */
.lifespan-box {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #FFF; border: 1px solid var(--border-glass); border-radius: 20px;
    padding: 24px; width: 100%; box-sizing: border-box; margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}
.ls-label { font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; margin-bottom: 8px;}
.ls-val-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;}
.ls-val { font-size: 64px; font-weight: 900; color: var(--text-glass-main); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -2px;}
.ls-unit { font-size: 16px; font-weight: 800; color: var(--text-glass-muted); text-transform: uppercase;}
.ls-strength { font-size: 13px; font-weight: 700; color: #D97706; background: #FEF3C7; padding: 6px 12px; border-radius: 99px;}

/* СВЕТОПРОПУСКАНИЕ BARS */
.light-box { width: 100%; margin-bottom: 24px; }
.light-title { font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; margin-bottom: 16px; text-align: left; width: 100%;}
.light-row { display: flex; flex-direction: column; gap: 6px; }
.light-info { display: flex; justify-content: space-between; align-items: flex-end; }
.light-lbl { font-size: 12px; font-weight: 700; color: #64748B; }
.light-val { font-size: 16px; font-weight: 900; color: var(--text-glass-main); }
.val-warn { color: #DC2626; } /* Красный, когда свет падает */

.light-bar-bg { width: 100%; height: 12px; background: #DCFCE7; border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);}
.light-bar-fill { height: 100%; border-radius: 99px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);}
.fill-start { background: linear-gradient(90deg, #10B981, #34D399); }
.fill-end { background: linear-gradient(90deg, #F59E0B, #FBBF24); }

/* ОПИСАНИЕ МАТЕРИАЛА */
.material-desc-box {
    display: flex; align-items: flex-start; gap: 12px; background: #FFF;
    border: 1px solid var(--border-glass); border-radius: 16px; padding: 16px; width: 100%; box-sizing: border-box;
}
.desc-icon { font-size: 20px; line-height: 1;}
.desc-text { font-size: 13px; font-weight: 600; color: #334155; line-height: 1.5;}


/* ========================================================
   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; }
.emerald-icon svg { color: var(--accent-emerald); }
.slate-icon svg { color: #64748B; }

.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; width: 100%; box-sizing: border-box;}
.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; min-width: 0; max-width: 100%; box-sizing: border-box;}
.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-emerald { background: #DCFCE7; color: #047857; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-dark { background: #F1F5F9; color: #334155; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; 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, #E2E8F0, transparent); margin: 48px 0; }

.seo-table-container { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 24px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); width: 100%; box-sizing: border-box; overflow: hidden; }
.seo-table-container h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; }
.seo-table { width: 100%; border-collapse: collapse; text-align: left; }
.seo-table th { background: #F8FAFC; padding: 12px 16px; font-weight: 700; border-bottom: 2px solid #E2E8F0; color: #475569;}
.seo-table td { padding: 16px; border-bottom: 1px solid #E2E8F0; font-weight: 500; color: #0F172A;}
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.2s ease; }
.faq-section .faq-item[open] { border-color: var(--accent-emerald); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
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: #F8FAFC; }
.faq-section .faq-item[open] summary.faq-question { color: #047857; background: #F0FDF4; }
.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: #047857; }
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }


/* ========================================================
   ИСТИННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (ДВУХУРОВНЕВАЯ)
   ======================================================== */
@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; }
    
    #result-card.card--crystal-glass { border-radius: 16px !important; padding: 24px 16px !important; margin-top: 16px !important;}
    .ls-val { font-size: 56px !important; }
    
    .seo-table-container { padding: 16px !important; width: 100% !important; box-sizing: border-box !important;}
    .seo-table { display: block !important; width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    .seo-table thead, .seo-table tbody { display: table !important; width: 100% !important; min-width: 500px !important; }
    .seo-table th, .seo-table td { padding: 12px !important; font-size: 13px !important; white-space: normal !important; }
}

@media (max-width: 480px) {
    /* ФИКС ДЛИННЫХ ЗАГОЛОВКОВ (Светопропускание, Эвапотранспирация и т.д.) */
    .icon-heading { 
        font-size: 18px !important; 
        gap: 12px !important; 
        word-break: break-word !important; 
        overflow-wrap: break-word !important; 
    }
    .header-icon { width: 36px !important; height: 36px !important; flex-shrink: 0 !important; }
    .header-icon svg { width: 20px !important; height: 20px !important; }
    
    .ls-val { font-size: 48px !important; }
}