/* calc/assets/css/calculators/washer-fluid.css */

/* --- Theme: Cyan / Ice --- */
:root {
    --cyan-primary: #0891B2; /* Cyan 600 */
    --cyan-dark: #164E63;    /* Cyan 900 */
    --cyan-bg: #ECFEFF;      /* Cyan 50 */
    --liquid-conc: #3B82F6;  /* Blue */
    --liquid-water: #CFFAFE; /* Light Cyan */
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Grid */
.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; } }

/* Inputs */
.calc-inputs { gap: 24px; }
.input-group { margin-bottom: 24px; }
.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 input {
    width: 100%; padding: 16px; 
    padding-right: 80px; /* Увеличено, чтобы "литров" не перекрывало стрелки */
    font-size: 16px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s;
    font-family: var(--font-main); background: #fff;
}
.input-wrapper input:focus {
    border-color: var(--cyan-primary); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
.suffix { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* Range Slider */
.range-wrapper { margin-top: 10px; padding: 0 4px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%;
    background: var(--cyan-primary); cursor: pointer; margin-top: -8px;
    border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #E5E7EB; border-radius: 2px;
}

/* --- Result Card --- */
.card--cyan { background: linear-gradient(135deg, #22D3EE 0%, #0891B2 100%); color: #fff; border: none; overflow: hidden; position: relative; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Killer Feature: Bottle Visual */
.bottle-container {
    height: 180px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; position: relative; margin-bottom: 24px;
}

.bottle {
    width: 80px; height: 140px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.8);
    border-radius: 12px 12px 24px 24px;
    position: relative; overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.cap {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 12px; background: rgba(255,255,255,0.9);
    border-radius: 4px 4px 0 0;
}

.liquid {
    width: 100%; position: relative; transition: height 0.5s ease;
    display: flex; align-items: center; justify-content: center;
    /* Уменьшен шрифт и убрана разрядка, чтобы "Концентрат" влезал */
    font-size: 9px; font-weight: 700; color: rgba(0,0,0,0.5);
    text-transform: uppercase; letter-spacing: 0; 
}
.liquid span { background: rgba(255,255,255,0.4); padding: 2px 4px; border-radius: 4px; white-space: nowrap; }

.liquid-water { background: var(--liquid-water); opacity: 0.9; }
.liquid-conc { background: var(--liquid-conc); opacity: 0.9; }

.freeze-test {
    margin-top: 12px; display: flex; gap: 8px; align-items: center;
    font-size: 13px; font-weight: 600; background: rgba(0,0,0,0.2);
    padding: 6px 12px; border-radius: 20px;
}

/* Data */
.result-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.main-result { font-size: 18px; font-weight: 700; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 16px; }
.main-result .value { font-size: 32px; }
.secondary-result { font-size: 15px; opacity: 0.95; }
.secondary-result .value { font-weight: 600; }

.result-divider { border: 0; margin: 0; }

.savings-box {
    background: rgba(255,255,255,0.2); padding: 12px; border-radius: 12px; margin-top: 20px;
    display: flex; gap: 12px; align-items: center; font-size: 13px; line-height: 1.4;
}
.savings-box .icon { font-size: 24px; }

/* --- INFO WRAPPER STYLES --- */
.info-wrapper {
    padding: 60px 0 60px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.info-wrapper .container { max-width: 800px; margin: 0 auto; }

/* Headings */
.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; }

/* Colors */
.cyan-icon svg { color: var(--cyan-primary); }

/* Formulas */
.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; transition: transform 0.3s;
}
.formula-card:hover { transform: translateY(-4px); }

.formula-header { margin-bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.formula-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }

.badge-cyan { background: #ECFEFF; color: #0891B2; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-blue { background: #EFF6FF; color: #2563EB; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.math-expression {
    background: #F0FDFA; border: 1px solid #CCFBF1; padding: 12px;
    border-radius: 12px; font-weight: 700; color: #0F766E; text-align: center;
    margin-bottom: 16px; font-size: 15px; font-family: monospace;
}
.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* Divider */
.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 48px 0; }

/* Article */
.calc-description p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.calc-description ul { color: var(--text-secondary); margin-bottom: 24px; padding-left: 20px; line-height: 1.6; }
.calc-description li { margin-bottom: 8px; }

/* FAQ */
.faq-cyan-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all 0.2s;
}
.faq-cyan-style .faq-item[open] { border-color: var(--cyan-primary); box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1); }

.faq-cyan-style summary.faq-question {
    padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary);
    list-style: none; position: relative; display: flex; justify-content: space-between; align-items: center;
}
.faq-cyan-style .faq-item[open] summary.faq-question { color: var(--cyan-primary); background: #ECFEFF; }

.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); }
.faq-cyan-style .faq-item[open] summary.faq-question::after { content: '−'; color: var(--cyan-primary); }

.faq-answer { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }

/* Mobile Adaptation */
@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; gap: 16px; }
    .icon-heading { font-size: 20px; }
    .header-icon { width: 40px; height: 40px; }
    .header-icon svg { width: 20px; height: 20px; }
    .formula-card { text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    .info-wrapper { margin-top: 40px; padding-top: 40px; }
}