/* Страница „Полезно“ — калкулатор, таблици, тест. Ползва цветовете и шрифтовете от site.css */
.pz-hero { padding: 72px 0 56px; }
.pz-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 56px); line-height: 1.08; letter-spacing: -.01em; max-width: 16ch; }
.pz-lead-dark { color: var(--muted-dark); }
.pz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pz-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--ink-line); border-radius: 999px; color: #F4F3EF; text-decoration: none; font-weight: 600; font-size: 15px; }
.pz-chips a:hover { border-color: var(--red-on-dark); color: var(--red-on-dark); }
.pz-sec { padding: 80px 0; scroll-margin-top: 70px; }
.pz-eye { color: var(--red); }
.pz-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pz-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.section-white .pz-card { background: var(--paper); }
.pz-card h3 { font-size: 22px; font-weight: 700; }
.pz-note { margin: 0; font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }
.pz-input { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.pz-input input { font: inherit; font-size: 20px; font-weight: 600; min-height: 52px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; letter-spacing: .02em; }
.pz-input input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 0, 22, .15); }

/* Калкулатор */
.pz-calc { display: flex; flex-direction: column; gap: 20px; }
.pz-sizes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pz-size { margin: 0; padding: 18px 20px 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); min-width: 0; }
.pz-size legend { padding: 0 8px; font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.pz-size-new { border-color: var(--red); }
.pz-size-new legend { color: var(--red); }
.pz-sel { display: flex; align-items: flex-end; gap: 8px; }
.pz-sel b { font-family: var(--display); font-size: 22px; padding-bottom: 10px; }
.pz-sel label { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.pz-sel select { font: inherit; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); min-height: 54px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); width: 100%; }
.pz-result { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 12px; background: var(--ink); color: #F4F3EF; }
.pz-verdict { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 10px; border-left: 6px solid; }
.pz-verdict b { font-family: var(--display); font-size: 22px; }
.pz-verdict.ok { background: #13361F; border-color: #34C27A; }
.pz-verdict.warn { background: #3A2E10; border-color: #F2B33D; }
.pz-verdict.bad { background: #3A1A1D; border-color: var(--red-on-dark); }
.pz-res-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; }
.pz-wheels { width: 100%; max-width: 300px; height: auto; }
.pz-wheels .tyre { fill: #0C0D0F; stroke: #4A4E55; stroke-width: 2; }
.pz-wheels .wb .tyre { stroke: var(--red-on-dark); }
.pz-wheels .rim { fill: #8E949C; }
.pz-wheels .hub { fill: #C9CBCF; }
.pz-wheels .ground { stroke: #4A4E55; stroke-width: 2; }
.pz-wheels .lbl { fill: #C9CBCF; font-size: 13px; font-weight: 700; text-anchor: middle; }
.pz-wheels .lb { fill: var(--red-on-dark); }
.pz-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pz-table th, .pz-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--ink-line); }
.pz-table td { white-space: nowrap; }
.pz-table th:first-child { text-align: left; font-weight: 600; }
.pz-table thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark-2); }
.pz-table td.up { color: #7FE0A8; }
.pz-table td.down { color: #FFB1B5; }
.pz-speedo-t { margin: 0 0 8px; font-weight: 600; color: var(--muted-dark); }
.pz-speedo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pz-sp { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--ink-2); }
.pz-sp-show { font-family: var(--display); font-size: 28px; font-weight: 800; }
.pz-sp-show small { font-family: var(--body); font-size: 14px; font-weight: 500; margin-left: 4px; color: var(--muted-dark-2); }
.pz-sp-real { color: var(--muted-dark); font-size: 15px; }
.pz-sp-real b { color: #FFFFFF; font-size: 18px; }
.pz-result .pz-note { color: var(--muted-dark-2); }
.pz-alts { display: flex; flex-direction: column; gap: 12px; }
.pz-alts .btn { align-self: flex-start; }
.pz-alts-t { margin: 0; font-weight: 600; }
.pz-alts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pz-alts-list button { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; cursor: pointer; color: var(--ink); }
.pz-alts-list button:hover { border-color: var(--red); }
.pz-alts-list span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Разчитане */
.pz-decode { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.pz-sidewall { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .25em; padding: 30px 14px; border-radius: 16px; background: radial-gradient(140% 120% at 50% 120%, #2B2E33 0%, #16181B 60%); font-family: var(--display); font-weight: 800; font-size: clamp(26px, 7.4vw, 92px); letter-spacing: .02em; color: #E9E7E1; text-shadow: 0 2px 0 #000; }
.pz-sidewall .sw-sep { color: #6B6F76; }
.sw-w { color: #FF6B6B; } .sw-p { color: #F2B33D; } .sw-c { color: #C9CBCF; } .sw-r { color: #7FD0FF; } .sw-l { color: #7FE0A8; } .sw-s { color: #D59BFF; }
.pz-dec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; grid-row: span 2; }
.pz-dec-list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: var(--paper); }
.pz-dec-list li b { flex: 0 0 64px; font-family: var(--display); font-size: 22px; text-align: center; padding: 2px 0; border-radius: 6px; background: var(--ink); }
.pz-marks { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pz-marks div { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--muted); }
.pz-marks b { flex: 0 0 auto; min-width: 104px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 6px; text-align: center; color: var(--ink); font-size: 14px; }
.pz-snow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vertical-align: middle; }

/* DOT */
.pz-dotbox { gap: 18px; }
.pz-dot-out p { margin: 0 0 6px; }
.pz-dot-age b { font-family: var(--display); font-size: 34px; }
.pz-dot-age.ok b { color: #1E8A4C; }
.pz-dot-age.warn b { color: #B7790B; }
.pz-dot-age.bad b, .pz-bad { color: var(--red); }

/* Индекси */
.pz-idx { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pz-li-out { margin: 0; min-height: 1.6em; font-size: 17px; }
.pz-li-out b { color: var(--red); }
.pz-li-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.pz-li-grid div { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; background: var(--white); font-variant-numeric: tabular-nums; }
.pz-li-grid b { font-size: 17px; }
.pz-li-grid span { font-size: 13px; color: var(--muted); }
.pz-li-grid div.on { background: var(--red); color: #fff; }
.pz-li-grid div.on span { color: #fff; }
.pz-speed th, .pz-speed td { border-color: var(--line); }
.pz-speed thead th { color: var(--muted); }
.pz-speed tbody th { font-family: var(--display); font-size: 20px; color: var(--red); }

/* Грайфер */
.pz-tread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.pz-tread-bar { display: flex; flex-direction: column; gap: 6px; }
.tb { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--ink-2); border-left: 8px solid; }
.tb b { font-family: var(--display); font-size: 26px; min-width: 96px; }
.tb span { color: var(--muted-dark); }
.tb-new { border-color: #34C27A; } .tb-ok { border-color: #7FD0FF; } .tb-warn { border-color: #F2B33D; } .tb-bad { border-color: var(--red-on-dark); }
.pz-tread-txt { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.pz-law { padding: 18px 20px; border-radius: 12px; background: var(--red); color: #fff; }
.pz-law p { margin: 0; font-size: 18px; }
.pz-law-h { font-family: var(--display); font-size: 22px !important; margin-bottom: 4px !important; }
.pz-list-dark { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted-dark); }
.pz-list-dark b { color: #fff; }

/* Налягане */
.pz-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pz-tips li { padding: 14px 18px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.pz-tips b { color: var(--ink); }

/* Хотел */
.pz-hotel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px; border-radius: 12px; background: var(--paper); border-left: 6px solid var(--red); }
.pz-hotel > div { flex: 1 1 420px; min-width: 0; }
.pz-hotel h3 { font-size: 22px; margin-bottom: 6px; }
.pz-hotel p { margin: 0; color: var(--muted); max-width: 70ch; }

/* Тест */
.pz-quiz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pz-quiz fieldset { margin: 0; padding: 18px; border: 1px solid var(--ink-line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pz-quiz legend { padding: 0 6px; font-weight: 700; font-size: 17px; }
.pz-quiz legend span { color: var(--muted-dark-2); font-weight: 500; }
.pz-quiz label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 8px; background: var(--ink-2); cursor: pointer; }
.pz-quiz label:has(input:checked) { background: #3A1A1D; box-shadow: inset 0 0 0 2px var(--red-on-dark); }
.pz-quiz input { width: 18px; height: 18px; accent-color: var(--red); }
.pz-quiz-out { grid-column: 1 / -1; }
.pz-quiz-wait { margin: 0; color: var(--muted-dark-2); }
.pz-quiz-res { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 12px; border-left: 8px solid; background: var(--ink-2); }
.pz-quiz-res b { font-family: var(--display); font-size: 26px; }
.pz-quiz-res p { margin: 0; color: var(--muted-dark); max-width: 70ch; }
.pz-quiz-res.ok { border-color: #34C27A; } .pz-quiz-res.warn { border-color: #F2B33D; } .pz-quiz-res.bad { border-color: var(--red-on-dark); }
.pz-quiz-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Финал */
.pz-cta { padding: 72px 0; }
.pz-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.pz-cta-in > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pz-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .pz-two, .pz-decode, .pz-idx, .pz-tread, .pz-sizes, .pz-quiz { grid-template-columns: minmax(0, 1fr); }
  .pz-res-grid { grid-template-columns: minmax(0, 1fr); }
  .pz-wheels { justify-self: center; }
  .pz-dec-list { grid-row: auto; }
}
@media (max-width: 760px) {
  .pz-sec { padding: 56px 0; }
  .pz-hero { padding: 48px 0 40px; }
  .pz-result { padding: 18px 14px; }
  .pz-sel select { font-size: 19px; padding: 6px 4px; }
  .pz-sel b { font-size: 18px; }
  .pz-speedo-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pz-sp { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 10px 14px; }
  .pz-sp-show { font-size: 22px; }
  .pz-table thead th { font-size: 11px; letter-spacing: .04em; }
  .pz-table th, .pz-table td { padding: 8px 5px; font-size: 14px; }
  .pz-table th:first-child { white-space: normal; }
  .tb b { font-size: 20px; min-width: 70px; }
}
