/* --- Стили для Шинного калькулятора (Zinc Theme) --- */
:root {
    --accent-zinc: #52525B;
    --accent-zinc-dark: #27272A;
    --gradient-zinc-card: linear-gradient(135deg, #52525B 0%, #27272A 100%);
    --accent-highlight: #F59E0B; /* Янтарный для акцентов в тексте */
}

.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 */
.tire-input-block { margin-bottom: 16px; }
.tire-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.title-old { color: var(--text-secondary); }
.title-new { color: #F59E0B; } 

.tire-selectors { 
    display: flex; align-items: flex-end; gap: 8px; 
    background: #F9FAFB; padding: 12px; border-radius: 12px; border: 1px solid #E5E7EB;
}

.select-wrapper { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.select-wrapper label { font-size: 11px; color: var(--text-secondary); font-weight: 600; text-align: center; }
.select-wrapper select {
    width: 100%; padding: 8px 0; font-size: 16px; font-weight: 700; text-align: center;
    border: 1px solid #D1D5DB; border-radius: 8px; background: #fff; outline: none; cursor: pointer;
    font-family: var(--font-main); color: var(--text-primary);
    -webkit-appearance: none; appearance: none;
}
.select-wrapper select:focus { border-color: var(--accent-zinc); }

.select-sep { font-size: 18px; color: #D1D5DB; font-weight: 300; padding-bottom: 6px; }

.divider-dashed { border-top: 2px dashed #E5E7EB; margin: 20px 0; position: relative; }
.divider-dashed::after { 
    content: 'VS'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; padding: 0 8px; color: var(--text-secondary); font-size: 12px; font-weight: 700;
}

.btn-text-gray {
    background: none; border: none; color: var(--text-secondary); width: 100%;
    font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 8px;
}

/* Результаты */
.card--zinc { background: var(--gradient-zinc-card); color: #fff; border: none; }
.card--zinc h2 { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 16px; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

/* Визуализация */
.tires-visual-container {
    height: 220px; background: rgba(255,255,255,0.1); border-radius: 16px;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 20px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.tire-visual-wrapper {
    position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-end;
}
.tire-circle {
    border-radius: 50%; position: absolute; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.tire-old-visual {
    background: #52525B; z-index: 1; opacity: 0.6;
    border: 2px dashed rgba(255,255,255,0.3);
}
.tire-new-visual {
    background: transparent; border: 3px solid #F59E0B; z-index: 2;
}
.rim-circle {
    width: 60%; height: 60%; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
}
.ground-line {
    position: absolute; bottom: -2px; width: 80%; height: 2px; background: rgba(255,255,255,0.3);
}

/* Метрики */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.metric-item {
    background: rgba(255,255,255,0.1); padding: 10px 12px; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.metric-label { font-size: 11px; opacity: 0.7; text-transform: uppercase; margin-bottom: 4px; }
.metric-val-row span { font-size: 18px; font-weight: 700; }

.val-good { color: #34D399; }
.val-bad { color: #F87171; }
.val-neutral { color: #fff; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }

/* Спидометр */
.speedometer-box {
    background: #fff; color: var(--text-primary); border-radius: 12px; padding: 16px;
}
.speed-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.speed-arrow { text-align: center; color: #6B7280; font-size: 16px; margin: 4px 0; }
.speed-warning { 
    margin-top: 12px; font-size: 12px; background: #F3F4F6; 
    padding: 8px; border-radius: 6px; text-align: center; color: var(--text-secondary); margin-bottom: 0;
}

/* Дисклеймер */
.calc-note {
    font-size: 13px; line-height: 1.5; color: #ffffff !important; 
    background: rgba(0, 0, 0, 0.4) !important; padding: 16px;
    border-radius: 12px; margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15); text-align: center;
}


/* --- НОВЫЕ ИНФОРМАЦИОННЫЕ БЛОКИ --- */

.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: #EF4444; }

/* Маленькие подзаголовки */
.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;
}

/* --- Секция Формул --- */
.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;
    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: var(--shadow-hover); }

/* Вертикальный хедер (бейдж сверху) */
.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-blue {
    background: #2563EB; 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;
}

.formula-card small {
    display: block; margin-top: 12px; font-size: 12px; color: var(--text-secondary); opacity: 0.7;
}

.math-expression {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--accent-highlight); /* Янтарный акцент */
    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 (Стиль Tires) */
.faq-tires-style .faq-item {
    background: #fff; border: 1px solid #E5E7EB;
    border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s ease;
}

.faq-tires-style .faq-item[open] {
    border-color: var(--accent-highlight); 
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.faq-tires-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-tires-style summary.faq-question:hover { background-color: #F9FAFB; }

.faq-tires-style .faq-item[open] summary.faq-question {
    color: #B45309; /* Темно-янтарный для текста */
    background: #FFFBEB; /* Светло-янтарный фон */
}

.faq-question::after {
    content: '+'; font-size: 20px;
    color: var(--text-secondary); font-weight: 400; line-height: 1;
}
.faq-question .icon-plus { display: none; }

.faq-tires-style .faq-item[open] summary.faq-question::after {
    content: '−'; color: #B45309;
}

.faq-answer {
    padding: 20px; color: var(--text-secondary);
    line-height: 1.6; font-size: 15px;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 900px) {
    /* Сетка в 1 колонку */
    .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; }
}