/* calc/assets/css/calculators/birch_sap.css */

:root {
    /* Spring Forest Palette */
    --bg-spring-light: #F7FEE7; /* Lime 50 */
    --text-forest-main: #064E3B; /* Emerald 900 */
    --text-forest-muted: #14532D; /* Emerald 800 */
    
    --accent-leaf: #84CC16; /* Lime 500 */
    --accent-leaf-glow: rgba(132, 204, 22, 0.2);
    
    --accent-amber: #F59E0B; /* Amber 500 */
    --accent-wood: #D97706; /* Amber 600 */
}

.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 #ECFCCB; padding-bottom: 8px;
}

/* ИНПУТЫ И ПОЛЗУНКИ (Синхронный ввод) */
.input-group { width: 100%; font-size: 14px; font-weight: 700; color: #166534;}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}
.lime-number-input {
    width: 90px; padding: 10px 30px 10px 12px; font-size: 16px; font-weight: 900;
    border: 2px solid #D9F99D; border-radius: 12px; background: #FFF;
    color: #14532D; outline: none; transition: all 0.3s; text-align: right;
}
.lime-number-input:focus { border-color: var(--accent-leaf); box-shadow: 0 0 0 4px var(--accent-leaf-glow); }
.input-suffix { position: absolute; right: 12px; font-size: 14px; font-weight: 800; pointer-events: none;}

/* Убираем стрелочки в input type number для эстетики */
.lime-number-input::-webkit-outer-spin-button,
.lime-number-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lime-number-input[type=number] { -moz-appearance: textfield; }

.custom-slider {
    -webkit-appearance: none; width: 100%; height: 8px; border-radius: 99px;
    background: #E2E8F0; outline: none; margin-top: 8px;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px; border-radius: 50%; 
    background: var(--accent-leaf); border: 4px solid #FFF;
    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 #D9F99D; border-radius: 12px;
    background: #F7FEE7; outline: none; transition: all 0.3s;
    font-family: inherit; color: #14532D; box-sizing: border-box; cursor: pointer;
}
.calc-select:focus { border-color: var(--accent-leaf); box-shadow: 0 0 0 4px var(--accent-leaf-glow); background: #FFF;}

/* ПЛИТКИ ВКУСА */
.taste-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.taste-card { cursor: pointer; }
.taste-card input { display: none; }
.t-content {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 12px 8px; background: #FFF; border: 2px solid #D9F99D; border-radius: 12px;
    transition: all 0.2s; height: 100%; box-sizing: border-box;
}
.taste-card:hover .t-content { border-color: var(--accent-leaf); }
.taste-card input:checked + .t-content {
    border-color: var(--accent-leaf) !important; background: #F7FEE7 !important;
    box-shadow: 0 4px 12px var(--accent-leaf-glow);
}
.t-icon { font-size: 24px; line-height: 1; margin-bottom: 4px;}
.t-name { font-size: 13px; font-weight: 800; color: #14532D;}
.t-desc { font-size: 10px; font-weight: 600; color: #4D7C0F; line-height: 1.2;}


/* ========================================================
   ПРАВЫЙ БЛОК (SPRING FOREST)
   ======================================================== */
.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--spring-forest { 
    background-color: var(--bg-spring-light) !important; 
    background-image: linear-gradient(135deg, #F7FEE7 0%, #FFFBEB 100%) !important; 
    color: var(--text-forest-main) !important; 
    border: 1px solid #D9F99D !important; 
    border-radius: 24px !important; 
    box-shadow: 0 20px 40px rgba(77, 124, 15, 0.1) !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: max-content !important; 
    min-height: 500px !important;
    overflow: visible !important; 
}

div#result-card.card.card--result.card--spring-forest::before, 
div#result-card.card.card--result.card--spring-forest::after { display: none !important; content: none !important; background: transparent !important; box-shadow: none !important;}

.hidden { display: none !important; }

.forest-title { 
    color: var(--text-forest-muted); margin: 0 0 24px 0; 
    font-size: 13px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; text-align: center;
}

/* ПАНЕЛЬ ТАРЫ */
.jars-panel {
    background: #FFFFFF; border: 2px solid var(--accent-leaf); border-radius: 16px;
    padding: 20px; margin-bottom: 24px; box-shadow: 0 8px 24px var(--accent-leaf-glow);
    text-align: center;
}
.jp-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px;}
.jp-icon { font-size: 20px; line-height: 1;}
.jp-title { font-size: 12px; font-weight: 800; color: #4D7C0F; text-transform: uppercase; letter-spacing: 0.05em;}
.jp-main { display: flex; align-items: baseline; justify-content: center; gap: 8px;}
.jp-num { font-size: 48px; font-weight: 900; color: #14532D; line-height: 1;}
.jp-text { font-size: 16px; font-weight: 700; color: #3F6212;}
.jp-remainder { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #D9F99D; font-size: 14px; color: #4D7C0F; font-weight: 600;}

/* ИНГРЕДИЕНТЫ */
.ingredients-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px;}
.ing-card {
    display: flex; align-items: center; gap: 16px; background: #FFFFFF;
    border: 1px solid #D9F99D; padding: 16px; border-radius: 12px;
}
.ing-icon { font-size: 28px; line-height: 1; flex-shrink: 0; background: #F7FEE7; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px;}
.ing-data { display: flex; flex-direction: column; gap: 2px;}
.ing-val { font-size: 20px; font-weight: 900; color: #064E3B;}
.ing-lbl { font-size: 12px; font-weight: 700; color: #4D7C0F;}

/* ИНСТРУКЦИЯ */
.step-guide {
    background: rgba(245, 158, 11, 0.05); border: 1px solid #FCD34D;
    padding: 20px; border-radius: 16px; margin-top: auto;
}
.sg-title { font-size: 13px; font-weight: 900; color: #D97706; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em;}
.sg-list { margin: 0; padding-left: 20px; font-size: 13px; color: #451A03; line-height: 1.5; font-weight: 500;}
.sg-list li { margin-bottom: 8px;}
.sg-list li:last-child { margin-bottom: 0;}


/* ========================================================
   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 #ECFCCB; 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; color: #064E3B; }

.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: #ECFCCB; margin: 48px 0; }

.seo-table-container { background: #FFFFFF; border: 2px solid #ECFCCB; 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; color: #14532D;}
.seo-table { width: 100%; border-collapse: collapse; text-align: left; }
.seo-table th { padding: 12px 16px; font-weight: 800; border-bottom: 2px solid #D9F99D; background: #F0FDF4; color: #166534;}
.seo-table td { padding: 16px; border-bottom: 1px solid #ECFCCB; font-weight: 600; line-height: 1.5; color: #3F6212;}
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #FFFFFF; border: 2px solid #ECFCCB; border-radius: 12px; margin-bottom: 12px; transition: all 0.2s; }
.faq-section .faq-item[open] { border-color: #84CC16; box-shadow: 0 4px 15px rgba(132, 204, 22, 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; color: #064E3B;}
summary.faq-question:hover { background-color: #F7FEE7; }
.faq-question::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; color: #84CC16;}
.faq-question .icon-plus { display: none; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: #84CC16;}
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; line-height: 1.6; font-size: 15px; font-weight: 500; color: #3F6212;}

/* МОБИЛКИ */
@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--spring-forest { 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) {
    .taste-grid { grid-template-columns: 1fr; }
    .t-content { flex-direction: row; text-align: left; padding: 16px; }
    .t-icon { margin-bottom: 0; margin-right: 12px; }
}