/* --- Стили для Калькулятора Шампанского (Gold/Amber Theme) --- */

:root {
    /* Более насыщенные цвета для контраста с белым текстом */
    --accent-gold: #D97706;        /* Amber 600 */
    --accent-gold-dark: #92400E;   /* Amber 800 */
    --accent-gold-light: #FFFBEB;  /* Amber 50 */
    
    /* Темный градиент для читаемости белого текста */
    --gradient-gold-card: linear-gradient(135deg, #D97706 0%, #92400E 100%);
    
    --font-main: 'Inter', system-ui, sans-serif;
}

.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; } }

/* 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, .input-wrapper select {
    width: 100%; padding: 16px; padding-right: 40px;
    font-size: 18px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
    background: #fff;
    -webkit-appearance: none; appearance: none;
}
.input-wrapper input:focus, .input-wrapper select:focus { 
    border-color: var(--accent-gold); 
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1); 
}
.suffix, .currency { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }

/* Select Arrow */
.select-wrapper { position: relative; }
.select-arrow {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--text-secondary); display: flex;
}

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.divider { border: 0; border-top: 1px solid #E5E7EB; margin: 24px 0; }

/* Range Slider */
.label-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.range-val { font-weight: 700; color: var(--accent-gold); }

/* ИСПРАВЛЕНО: Синхронизация отступов ползунка и подписей */
.range-wrapper { padding: 0 2px; } 

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%;
    background: var(--accent-gold); cursor: pointer; margin-top: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); border: 2px solid #fff;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #E5E7EB; border-radius: 2px;
}

/* ИСПРАВЛЕНО: Добавлен padding, чтобы текст совпадал с краями ползунка */
.range-steps {
    display: flex; justify-content: space-between; margin-top: 12px;
    font-size: 11px; color: var(--text-secondary);
    padding: 0 2px; 
}

/* Карточка результата (Gold) */
.card--gold { background: var(--gradient-gold-card); color: #fff; border: none; }
.card--gold h2 { color: rgba(255,255,255,0.95); margin-bottom: 24px; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.pyramid-price-big {
    font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 32px;
    display: flex; align-items: baseline; gap: 8px;
}
.pyramid-price-big small { font-size: 24px; opacity: 0.8; font-weight: 600; }

.pyramid-visual-box {
    background: rgba(255,255,255,0.15); border-radius: 16px; padding: 16px;
    display: flex; align-items: center; gap: 16px; backdrop-filter: blur(4px); margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.p-icon { font-size: 32px; }
.p-info { display: flex; flex-direction: column; }
.p-info span { font-size: 13px; opacity: 0.9; }
.p-info strong { font-size: 20px; font-weight: 700; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 24px 0; }

/* ИСПРАВЛЕНО: Белый фон для подсказки, чтобы текст не сливался */
.tip-box {
    font-size: 13px;
    line-height: 1.5;
    background: #FFFFFF;
    color: var(--accent-gold-dark); /* Темно-коричневый текст */
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- KILLER FEATURE: CSS Pyramid Visualizer --- */
.pyramid-css-render {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 24px;
    min-height: 120px;
    justify-content: flex-end;
}

.pyr-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    animation: fadeInRow 0.5s ease backwards;
}

.pyr-glass {
    width: 14px; height: 14px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}
/* Эффект наполнения */
.pyr-glass::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: #fff; opacity: 1;
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ИНФОРМАЦИОННЫЕ БЛОКИ --- */
.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; }

/* Заголовки */
.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; }

.blue-icon svg { color: #2563EB; }
.orange-icon svg { color: #F59E0B; }
.green-icon svg { color: #10B981; }
.red-icon svg { color: #E11D48; }

.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; transition: all 0.3s; display: flex; flex-direction: column;
}
.formula-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }

.formula-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.formula-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }

.badge-gold {
    background: #D97706; color: #fff; padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block;
}
.badge-green {
    background: #10B981; color: #fff; padding: 6px 12px; border-radius: 99px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block;
}

.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500; }

.math-expression {
    background: #F9FAFB; border: 1px solid #E5E7EB; padding: 12px 16px;
    border-radius: 12px; font-weight: 700; color: var(--accent-gold);
    text-align: center; margin-bottom: 16px; font-size: 15px;
}

.soft-divider {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 48px 0;
}

.calc-description p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.calc-description strong { color: var(--text-primary); }

/* FAQ */
.faq-fuel-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: all 0.2s;
}
.faq-fuel-style .faq-item[open] { border-color: var(--accent-gold); box-shadow: 0 4px 20px rgba(217, 119, 6, 0.1); }
.faq-fuel-style 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;
}
.faq-fuel-style summary.faq-question:hover { background-color: #F9FAFB; }
.faq-fuel-style .faq-item[open] summary.faq-question { color: var(--accent-gold); background: var(--accent-gold-light); }

.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); font-weight: 400; line-height: 1; }
.faq-question .icon-plus { display: none; }
.faq-fuel-style .faq-item[open] summary.faq-question::after { content: '−'; color: var(--accent-gold); }

.faq-answer { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }

@media (max-width: 900px) {
    .formulas-grid { grid-template-columns: 1fr; }
    .formula-card { text-align: center; align-items: center; }
    .formula-header { align-items: center; }
}