/* --- Стили для Quit Smoking (Cyan Theme) --- */
:root {
    --accent-cyan: #0891B2; /* Cyan 600 */
    --accent-cyan-dark: #155E75; /* Cyan 800 */
    --accent-cyan-light: #ECFEFF; /* Cyan 50 */
    --gradient-cyan-card: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%);
    
    /* Темный цвет текста */
    --text-on-cyan: #164E63; 
}

.calc-header { margin-bottom: 24px; }
.subtitle { color: var(--text-secondary); margin-top: 6px; }

/* Сетка - Компактная */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs (Compact + Z-index fix for select) */
.calc-inputs { gap: 16px; position: relative; z-index: 50; overflow: visible; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-wrapper input {
    width: 100%; padding: 12px 14px; 
    font-size: 16px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 10px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1); }
.suffix, .currency { position: absolute; right: 14px; color: var(--text-secondary); pointer-events: none; font-size: 14px; }
.input-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.3; }

/* --- CUSTOM SELECT --- */
.calc-select-hidden { display: none; }
.custom-select { position: relative; user-select: none; width: 100%; }

.custom-select-trigger {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 14px; font-size: 16px; font-weight: 500;
    color: var(--text-primary); background: #fff;
    border: 1px solid #E5E7EB; border-radius: 10px; cursor: pointer;
    transition: all 0.2s; box-sizing: border-box;
}
.custom-select-trigger:hover { border-color: #D1D5DB; }
.custom-select.open .custom-select-trigger { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1); }

.custom-arrow {
    width: 8px; height: 8px; border-right: 2px solid #9CA3AF; border-bottom: 2px solid #9CA3AF;
    transform: rotate(45deg); transition: transform 0.2s; margin-left: 12px; margin-bottom: 2px;
}
.custom-select.open .custom-arrow { transform: rotate(-135deg); margin-bottom: -2px; border-color: var(--accent-cyan); }

.custom-options {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 100; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 300px; overflow-y: auto;
}
.custom-select.open .custom-options { opacity: 1; visibility: visible; transform: translateY(0); }

.custom-option {
    padding: 10px 14px; font-size: 15px; cursor: pointer; transition: background 0.1s;
    border-bottom: 1px solid #F3F4F6; color: var(--text-primary);
}
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: var(--accent-cyan-light); color: var(--accent-cyan-dark); }
.custom-option.selected { background: var(--accent-cyan-light); color: var(--accent-cyan-dark); font-weight: 600; }

.divider { border: 0; border-top: 1px solid #E5E7EB; margin: 20px 0; }

/* --- CARD RESULTS --- */
.card--cyan { 
    background: var(--gradient-cyan-card); 
    color: var(--text-on-cyan); 
    border: 1px solid rgba(8, 145, 178, 0.2);
    overflow: visible;
}

.result-header-row { 
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px;
}
.card--cyan h2 { color: var(--text-on-cyan) !important; margin: 0; font-size: 20px; }

.clean-time-big {
    font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 4px;
    display: flex; align-items: baseline; gap: 8px; color: var(--text-on-cyan) !important;
}
.clean-time-big small { font-size: 24px; opacity: 0.9; font-weight: 700; }
.clean-time-sub { font-size: 15px; font-weight: 600; opacity: 0.8; margin-bottom: 24px; }

.stats-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.stat-box {
    background: rgba(255,255,255,0.6); padding: 12px; border-radius: 12px;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.sb-label { font-size: 11px; text-transform: uppercase; font-weight: 700; opacity: 0.7; margin-bottom: 4px; }
.stat-box strong { font-size: 20px; font-weight: 800; color: var(--accent-cyan-dark); }
.sb-icon { position: absolute; right: 10px; bottom: 8px; font-size: 24px; opacity: 0.5; }

.summary-divider { height: 1px; background: rgba(21, 94, 117, 0.15); margin: 20px 0; }

/* --- RECOVERY TIMELINE --- */
.timeline-title { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; color: var(--text-on-cyan); opacity: 0.8; }

.recovery-list { display: flex; flex-direction: column; gap: 12px; }

.recovery-item {
    display: flex; gap: 12px; opacity: 0.6; transition: all 0.3s;
}
.recovery-item.done { opacity: 1; }
.recovery-item.next { opacity: 1; }

.rec-icon {
    width: 32px; height: 32px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.5); font-size: 14px; flex-shrink: 0;
    color: #D1D5DB; font-weight: 700;
}
.recovery-item.done .rec-icon { background: #10B981; color: #fff; border-color: #10B981; }
.recovery-item.next .rec-icon { border-color: var(--accent-cyan); color: var(--accent-cyan); background: #fff; }

.rec-content { flex: 1; }
.rec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.rec-title { font-weight: 700; font-size: 14px; color: var(--text-on-cyan); }
.rec-percent { font-size: 11px; font-weight: 700; opacity: 0.7; }
.rec-desc { font-size: 12px; opacity: 0.8; line-height: 1.3; }

/* Прогресс бар */
.rec-progress-bg { 
    height: 4px; background: rgba(0,0,0,0.05); border-radius: 2px; margin-top: 6px; overflow: hidden; 
    display: none; 
}
.recovery-item.next .rec-progress-bg { display: block; }
.rec-bar { height: 100%; background: var(--accent-cyan); width: 0; transition: width 0.5s; }

.tip-box { 
    font-size: 13px; opacity: 1; line-height: 1.4; 
    font-weight: 600; color: var(--text-on-cyan) !important; margin-top: 24px;
}
#tip-text { color: var(--text-on-cyan) !important; margin: 0; }

/* --- НИЖНИЙ КОНТЕНТ (BOGATY STYLE) --- */
.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; }

.small-heading { margin-top: 40px; margin-bottom: 16px; font-size: 20px; }
.small-heading .header-icon { width: 40px; height: 40px; }
.small-heading .header-icon svg { width: 20px; height: 20px; }

.intro-text {
    font-size: 16px; color: var(--text-secondary);
    margin-bottom: 32px; line-height: 1.6;
}

/* Формулы (Стиль Kitchen) */
.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 cubic-bezier(0.25, 0.8, 0.25, 1);
    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; 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-cyan { background: #0891B2; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-green { background: #10B981; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; 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, #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 Cyan Style (Стиль Kitchen) */
.faq-cyan-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s ease;
}
.faq-cyan-style .faq-item[open] {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.15); /* Цветная тень */
}
.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; transition: background 0.2s;
}
.faq-cyan-style summary.faq-question:hover { background-color: #F9FAFB; }
.faq-cyan-style .faq-item[open] summary.faq-question {
    color: var(--accent-cyan-dark);
    background: var(--accent-cyan-light);
}
.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); line-height: 1; }
.faq-question .icon-plus { display: none; }
.faq-cyan-style .faq-item[open] summary.faq-question::after { content: '−'; color: var(--accent-cyan); }
.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; gap: 16px; margin-bottom: 32px; }
    .icon-heading { font-size: 20px; gap: 12px; margin-bottom: 20px; }
    .header-icon { width: 40px; height: 40px; border-radius: 12px; }
    .header-icon svg { width: 20px; height: 20px; }
    
    .formula-card { padding: 24px; text-align: center; align-items: center; }
    .formula-header { align-items: center; width: 100%; }
    
    .info-wrapper { margin-top: 40px; padding-top: 40px; }
}