/* Автоинструменты: какое масло заливать, какие лампы стоят, шинный калькулятор (/tools/…).
   Партнёрские блоки .j-parts — из journal.css. */
.av-app { max-width: 860px; margin: 0 auto; padding: 0 var(--lv-pad-x, 20px); box-sizing: border-box; }

.av-models { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.av-model {
    appearance: none; padding: 9px 14px; border: 1px solid #d6cfc2; border-radius: 999px; background: #fffdf8;
    font: 600 14px/1.2 'Inter', sans-serif; color: #3b3631; cursor: pointer;
}
.av-model:hover { border-color: #1f4e79; }
.av-model.is-active { background: #1f4e79; border-color: #1f4e79; color: #fff; }

.av-panel { padding: 22px 24px 18px; border: 1px solid #e3ddd1; border-radius: 10px; background: #fffdf8; }
.av-panel[hidden] { display: none; }
.av-title { margin: 0 0 14px; font-size: 26px; line-height: 1.15; }
.av-title small { display: block; margin-top: 4px; font: 400 14px 'Inter', sans-serif; color: #6b6457; }

.av-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 14px; }
.av-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #e3ddd1; border-radius: 8px; background: #fff; }
.av-card-label { font: 500 13px/1.3 'Inter', sans-serif; color: #6b6457; }
.av-card-value { font: 800 28px/1.1 'Inter', sans-serif; color: #1f4e79; font-variant-numeric: tabular-nums; }
.av-card-note { font: 400 12px/1.35 'Inter', sans-serif; color: #8a8175; }

.av-spec { margin: 0 0 12px; font: 400 15px/1.5 'Inter', sans-serif; color: #1b1b18; }
.av-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font: 400 14px/1.4 'Inter', sans-serif; color: #1b1b18; }
.av-table th, .av-table td { padding: 8px 10px; border-bottom: 1px solid #efe9de; text-align: left; vertical-align: top; }
.av-table thead th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b6457; border-bottom-color: #d6cfc2; }
.av-table tbody th { font-weight: 600; }
.av-lamp { font-variant-numeric: tabular-nums; }
.av-note { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid #1f4e79; background: #eef3f8; font: 400 14px/1.45 'Inter', sans-serif; color: #3b3631; }
.av-note:empty { display: none; }
.av-source { margin: 12px 0 0; font: 400 13px/1.5 'Inter', sans-serif; color: #6b6457; }
.av-panel .j-parts { margin: 14px 0; }

/* Шинный калькулятор */
.av-tyre { padding-bottom: 4px; }
.av-tyre-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.av-tyre-side { padding: 14px 16px; border: 1px solid #e3ddd1; border-radius: 10px; background: #fffdf8; }
.av-tyre-side + .av-tyre-side { border-color: #1f4e79; }
.av-tyre-cap { display: block; margin-bottom: 8px; font: 600 13px 'Inter', sans-serif; color: #6b6457; }
.av-tyre-size { display: flex; align-items: center; gap: 6px; }
.av-tyre-size span { font: 600 18px 'Inter', sans-serif; color: #8a8175; }
.av-tyre-size select {
    flex: 1 1 0; min-width: 0; padding: 8px 6px; border: 1px solid #d6cfc2; border-radius: 6px; background: #fff;
    font: 700 17px 'Inter', sans-serif; color: #1b1b18; font-variant-numeric: tabular-nums;
}
.av-tyre-table td { font-variant-numeric: tabular-nums; }
.av-tyre-table td:last-child { font-weight: 600; }
.av-tyre-cards .av-card-value { font-size: 24px; }
.av-pos { color: #c2410c; }
.av-neg { color: #1971c2; }
.av-note.is-warn { border-left-color: #e8590c; background: #fff4e6; }
.av-note.is-ok { border-left-color: #2b8a3e; background: #ebfbee; }
[data-tyre-ad] .j-parts { margin: 14px 0 0; }

@media (max-width: 640px) {
    .av-panel { padding: 16px 14px 14px; }
    .av-title { font-size: 22px; }
    .av-tyre-inputs { grid-template-columns: 1fr; }
    .av-table th, .av-table td { padding: 7px 6px; }
    .av-tyre-table { font-size: 13px; }
}
