/* --- Стили Car Ownership (Orange Theme) --- */
:root {
    --accent-orange: #F97316;
    --accent-orange-dark: #C2410C; /* Более темный для ховера */
    --accent-orange-light: #FFF7ED;
    --gradient-orange-card: linear-gradient(135deg, #FB923C 0%, #EA580C 100%);
    
    --chart-orange: #FB923C;
    --chart-blue: #3B82F6;
    --chart-green: #10B981;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --radius-lg: 16px;
    --font-main: 'Inter', sans-serif;
}

/* Base Layout */
.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; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .grid-2-col { grid-template-columns: 1fr; } }

.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: 40px;
    font-size: 18px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s; background: #fff;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--accent-orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }
.currency { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.divider { border: 0; border-top: 1px solid #E5E7EB; margin: 24px 0; }
.helper-link { font-size: 12px; color: var(--accent-orange); cursor: pointer; margin-top: 6px; text-decoration: underline; opacity: 0.8; }

/* Result Card */
.card--orange { background: var(--gradient-orange-card); color: #fff; border: none; }
.card--orange h2 { color: rgba(255,255,255,0.95); margin-bottom: 24px; text-align: center; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.fuel-price-big { font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 32px; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.fuel-price-big small { font-size: 24px; opacity: 0.8; font-weight: 600; }

/* Donut Chart */
.donut-wrapper { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.donut-chart {
    width: 180px; height: 180px; border-radius: 50%;
    position: relative; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.donut-hole {
    width: 120px; height: 120px; background: #fff; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--accent-orange-dark);
}
.donut-hole span { font-size: 24px; font-weight: 800; line-height: 1; }
.donut-hole small { font-size: 12px; opacity: 0.7; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.donut-legend { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; opacity: 0.9; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dot-orange { background: #FFD7A8; }
.dot-blue { background: #93C5FD; }
.dot-green { background: #6EE7B7; }

.split-cost-box { background: #fff; border-radius: 12px; padding: 16px; color: var(--accent-orange-dark); }
.split-label { font-size: 12px; color: var(--accent-orange-dark); margin-bottom: 4px; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.split-value { font-size: 24px; font-weight: 800; }
.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 24px 0; }
.tip-box { font-size: 13px; opacity: 0.9; line-height: 1.5; }

/* --- НИЖНИЙ БЛОК (SEO & STYLE FIX) --- */
.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; }
.orange-icon svg { color: #F97316; }
.blue-icon svg { color: #3B82F6; }
.red-icon svg { color: #EF4444; }

.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: var(--shadow-soft); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.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; }
.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500; }
.badge-blue { background: #3B82F6; 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; }
.math-expression { background: #F9FAFB; border: 1px solid #E5E7EB; padding: 12px 16px; border-radius: 12px; font-weight: 700; color: var(--accent-orange-dark); text-align: center; margin-bottom: 16px; font-size: 15px; }

/* Таблица сравнения (SEO Feature) */
.table-wrapper { overflow-x: auto; margin-bottom: 24px; border-radius: 12px; border: 1px solid #E5E7EB; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.comparison-table th { background: #F9FAFB; padding: 12px 16px; text-align: left; font-size: 13px; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; border-bottom: 1px solid #E5E7EB; }
.comparison-table td { padding: 16px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid #F3F4F6; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: #FFF7ED; }

/* Стилизация текста и ССЫЛОК (Fix) */
.calc-description p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; }
.calc-description strong { color: var(--text-primary); }

/* Правильные стили для ссылок, чтобы не были синими */
.calc-description a, 
.faq-answer a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-decoration-color: rgba(249, 115, 22, 0.3);
    font-weight: 500;
    transition: all 0.2s ease;
}
.calc-description a:hover, 
.faq-answer a:hover {
    color: var(--accent-orange-dark);
    text-decoration-color: var(--accent-orange-dark);
}

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E5E7EB, transparent); margin: 48px 0; }

/* FAQ Styles */
.faq-fuel-style .faq-item { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.2s ease; }
.faq-fuel-style .faq-item[open] { border-color: var(--accent-orange); box-shadow: 0 4px 20px rgba(249, 115, 22, 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 .faq-item[open] summary.faq-question { color: var(--accent-orange); background: var(--accent-orange-light); }
.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); font-weight: 400; line-height: 1; }
.faq-fuel-style .faq-item[open] summary.faq-question::after { content: '−'; color: var(--accent-orange); }
.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%; }
    .math-expression { width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .info-wrapper { margin-top: 40px; padding-top: 40px; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }