/* Tire shop (theme "tires").
   One markup, five designs: body.d-garage | d-clean | d-racing | d-eco | d-classic.
   Each design sets the tokens below and, where it needs to, its own layout. */

:root {
  --bg: #f7f8fa; --surface: #fff; --surface-2: #f1f5f9; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --accent: #2563eb; --accent-ink: #fff; --accent-soft: #dbeafe;
  --tire: #1d1f23; --tire-groove: #34373d; --tire-label: #9ca3af; --rim: #cbd5e1; --rim-dark: #94a3b8;
  --ok: #16a34a; --low: #d97706; --out: #dc2626;
  --radius: 14px; --radius-sm: 8px;
  --font-head: "Inter Tight", system-ui, sans-serif; --font-body: "Inter Tight", system-ui, sans-serif;
  --head-weight: 700; --head-transform: none; --head-style: normal; --head-spacing: -0.02em;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
  --wrap: 1200px;
}

/* ---------- 1. Garage: dark workshop, yellow safety accent ---------- */
.d-garage {
  --bg: #111214; --surface: #1a1c20; --surface-2: #23262b; --ink: #f2f2ee; --muted: #9a9ca3; --line: #2c2f35;
  --accent: #facc15; --accent-ink: #111214; --accent-soft: #3a3410;
  --tire: #050506; --tire-groove: #1f2125; --tire-label: #6b6e75; --rim: #3a3d44; --rim-dark: #facc15;
  --radius: 6px; --radius-sm: 4px;
  --font-head: "Oswald", "Inter Tight", sans-serif; --head-transform: uppercase; --head-spacing: 0.01em;
  --shadow: none;
}
/* ---------- 2. Clean: white, blue, soft (default tokens) ---------- */
/* ---------- 3. Racing: black and red, italic, hard edges ---------- */
.d-racing {
  --bg: #0a0a0a; --surface: #141414; --surface-2: #1d1d1d; --ink: #fff; --muted: #a3a3a3; --line: #262626;
  --accent: #e10600; --accent-ink: #fff; --accent-soft: #3b0a08;
  --tire: #000; --tire-groove: #1c1c1c; --tire-label: #e10600; --rim: #d4d4d4; --rim-dark: #e10600;
  --radius: 0; --radius-sm: 0;
  --font-head: "Oswald", "Inter Tight", sans-serif; --head-transform: uppercase; --head-style: italic; --head-spacing: 0.02em;
  --shadow: none;
}
/* ---------- 4. Eco: warm cream, forest green, round ---------- */
.d-eco {
  --bg: #f4f1e8; --surface: #fffdf7; --surface-2: #ece7d8; --ink: #1f2a1f; --muted: #5d6b5a; --line: #e0d9c6;
  --accent: #2f7d4f; --accent-ink: #fff; --accent-soft: #d8eadc;
  --tire: #2b2f2a; --tire-groove: #41463f; --tire-label: #a7b3a2; --rim: #c8d5c3; --rim-dark: #2f7d4f;
  --radius: 22px; --radius-sm: 999px;
  --shadow: 0 2px 0 rgb(31 42 31 / .05);
}
/* ---------- 5. Classic catalogue: navy, compact, table ---------- */
.d-classic {
  --bg: #eef1f5; --surface: #fff; --surface-2: #f5f7fa; --ink: #1b2430; --muted: #5b6675; --line: #d5dbe3;
  --accent: #1e3a8a; --accent-ink: #fff; --accent-soft: #e0e7ff;
  --radius: 4px; --radius-sm: 3px;
  --head-weight: 700; --head-spacing: 0;
  --shadow: none; --wrap: 1280px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.tz { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
.tz a { color: inherit; }
.tz h1, .tz h2, .tz h3, .tz h4 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-transform); font-style: var(--head-style); letter-spacing: var(--head-spacing); line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
.tz h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.tz h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.tz h3 { font-size: 1.05rem; }
.tz-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.tz-muted { color: var(--muted); }
.tz-small { font-size: .85rem; }
.tz-mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: .01em; }
.tz-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-sec { padding: clamp(40px, 6vw, 72px) 0; }
.tz-sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.tz-sec__head p { margin: 0; max-width: 46ch; }
.tz-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.d-eco .tz-eyebrow, .d-clean .tz-eyebrow { letter-spacing: .06em; }

.tz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.tz-btn:hover { filter: brightness(1.08); }
.tz-btn:active { transform: translateY(1px); }
.tz-btn:focus-visible, .tz select:focus-visible, .tz input:focus-visible, .tz textarea:focus-visible, .tz a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tz-btn[disabled] { opacity: .45; cursor: not-allowed; }
.tz-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.tz-btn--sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.tz-btn--lg { min-height: 54px; width: 100%; font-size: 1.05rem; }
.d-garage .tz-btn, .d-racing .tz-btn { text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-head); font-weight: 600; }
.d-racing .tz-btn { clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding: 0 24px; }

.tz-field { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 0; }
.tz select, .tz input, .tz textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 1rem/1.3 var(--font-body); }
.d-eco .tz select, .d-eco .tz input { border-radius: 14px; }
.tz textarea { resize: vertical; }
.tz-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.tz-check input { width: 18px; min-height: 18px; accent-color: var(--accent); }

/* ---------- header ---------- */
.tz-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tz-head__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.tz-logo { display: inline-flex; align-items: center; gap: 10px; font: var(--head-weight) 1.15rem/1 var(--font-head); text-transform: var(--head-transform); font-style: var(--head-style); text-decoration: none; }
.tz-logo__mark { width: 26px; height: 26px; border-radius: 50%; border: 6px solid var(--ink); box-shadow: inset 0 0 0 3px var(--accent); flex: none; }
.tz-nav { display: flex; gap: 20px; margin-left: auto; font-size: .92rem; }
.tz-nav a { text-decoration: none; color: var(--muted); }
.tz-nav a:hover { color: var(--ink); }
.tz-cart { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; }
.tz-cart b { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
.d-racing .tz-head { border-bottom: 3px solid var(--accent); }
.d-classic .tz-head { background: var(--accent); border: 0; }
.d-classic .tz-head, .d-classic .tz-head .tz-nav a { color: #fff; }
.d-classic .tz-logo__mark { border-color: #fff; box-shadow: inset 0 0 0 3px #93c5fd; }
.d-classic .tz-cart { border-color: rgb(255 255 255 / .35); }
.d-classic .tz-cart b { background: #fff; color: var(--accent); }

/* ---------- hero ---------- */
.tz-hero { padding: clamp(40px, 7vw, 96px) 0; overflow: hidden; position: relative; }
.tz-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.tz-hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.tz-hero__art { position: relative; justify-self: center; width: min(100%, 420px); }
.tz-hero__art .tz-tire { width: 100%; height: auto; animation: tz-roll 40s linear infinite; }
.tz-hero__badge { position: absolute; left: -8px; bottom: 8%; display: grid; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tz-hero__badge b { font: var(--head-weight) 2rem/1 var(--font-head); color: var(--accent); }
.tz-hero__badge span { font-size: .8rem; color: var(--muted); }
@keyframes tz-roll { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tz-hero__art .tz-tire { animation: none; } html { scroll-behavior: auto; } }

.tz-finder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.d-garage .tz-hero { background: repeating-linear-gradient(-45deg, transparent 0 22px, rgb(250 204 21 / .03) 22px 44px); border-bottom: 1px solid var(--line); }
.d-garage .tz-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.d-garage .tz-finder { border-top: 4px solid var(--accent); }

.d-racing .tz-hero { background: linear-gradient(105deg, var(--bg) 0 55%, var(--accent) 55% 56%, var(--surface) 56%); }
.d-racing .tz-hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .95; }
.d-racing .tz-hero h1::after { content: ""; display: block; width: 120px; height: 6px; margin-top: 18px; background: var(--accent); transform: skewX(-20deg); }
.d-racing .tz-finder { border-left: 6px solid var(--accent); }

.d-clean .tz-hero { background: radial-gradient(60% 80% at 85% 30%, var(--accent-soft), transparent 70%); }

.d-eco .tz-hero { background: var(--accent-soft); border-radius: 0 0 48px 48px; }
.d-eco .tz-hero__badge { border-radius: 999px; padding: 12px 22px; }

.d-classic .tz-hero { padding: 28px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.d-classic .tz-hero__grid { grid-template-columns: 1fr; }
.d-classic .tz-hero__art { display: none; }
.d-classic .tz-hero h1 { font-size: 1.8rem; }
.d-classic .tz-hero__lead { margin-bottom: 16px; }
.d-classic .tz-finder { box-shadow: none; background: var(--surface-2); }

/* ---------- tire drawing ---------- */
.tz-tire { display: block; width: 100%; height: 100%; }
.tz-tire__tread { fill: var(--tire); }
.tz-tire__grooves { fill: none; stroke: var(--tire-groove); stroke-width: 7; stroke-dasharray: 5 6; }
.tz-tire__wall { fill: var(--tire); stroke: var(--tire-groove); stroke-width: 1.5; }
.tz-tire__label { fill: var(--tire-label); font: 700 10.5px/1 var(--font-head); letter-spacing: 1.5px; }
.tz-tire__rim { fill: var(--rim); stroke: var(--rim-dark); stroke-width: 3; }
.tz-tire__spokes rect { fill: var(--rim-dark); opacity: .55; }
.tz-tire__hub { fill: var(--rim-dark); }

/* ---------- seasons ---------- */
.tz-seasons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tz-season { display: grid; gap: 6px; align-content: start; padding: 22px; min-height: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.tz-season:hover { border-color: var(--accent); transform: translateY(-2px); }
.tz-season__icon { font-size: 1.8rem; line-height: 1; }
.tz-season b { font: var(--head-weight) 1.3rem/1.1 var(--font-head); text-transform: var(--head-transform); font-style: var(--head-style); }
.tz-season__go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }
.d-racing .tz-season { border-left: 4px solid var(--accent); }
.d-classic .tz-seasons { padding: 24px 0 0; }
.d-classic .tz-season { min-height: 0; padding: 14px 16px; }
.d-classic .tz-seasons .tz-sec__head { display: none; }

/* ---------- catalogue layout ---------- */
.tz-catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.tz-filters { position: sticky; top: 84px; }
.tz-filters__form { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tz-filters__toggle { display: none; width: 100%; }
.tz-filters__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tz-filters__actions .tz-btn { flex: 1; }
.tz-field--range > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Garage + racing: filters as a horizontal bar above the results */
.d-garage .tz-catalog, .d-racing .tz-catalog { grid-template-columns: 1fr; }
.d-garage .tz-filters, .d-racing .tz-filters { position: static; }
.d-garage .tz-filters__form, .d-racing .tz-filters__form { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: end; }
.d-garage .tz-field--wide, .d-racing .tz-field--wide { grid-column: span 2; }
.d-garage .tz-field--range, .d-racing .tz-field--range { grid-column: span 2; }
/* Eco: filters on the right */
.d-eco .tz-catalog { grid-template-columns: minmax(0, 1fr) 260px; }
.d-eco .tz-filters { order: 2; }
.d-eco .tz-filters__form { background: var(--surface-2); border: 0; }
/* Classic: narrow dense sidebar */
.d-classic .tz-catalog { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.d-classic .tz-filters__form { gap: 8px; padding: 14px; }
.d-classic .tz-sec#katalog { padding-top: 24px; }

.tz-results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.tz-results__bar p { margin: 0; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.tz-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .82rem; text-decoration: none; }
.tz-chip:hover { text-decoration: line-through; }
.tz-sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-left: auto; }
.tz-sort select { width: auto; min-height: 38px; }

/* ---------- product cards ---------- */
.tz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.d-garage .tz-results .tz-grid, .d-racing .tz-results .tz-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tz-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tz-card:hover { border-color: var(--accent); }
.tz-card__media { position: relative; display: block; aspect-ratio: 1; padding: 22px; background: var(--surface-2); }
.tz-card__media img { width: 100%; height: 100%; object-fit: contain; }
.tz-card__media .tz-tire { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tz-card:hover .tz-card__media .tz-tire { transform: rotate(40deg); }
.tz-card__season { position: absolute; left: 10px; top: 10px; display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.tz-card__season.tz-inline { position: static; margin: 0 0 16px; }
.tz-card__season--winter { color: #0369a1; }
.tz-card__season--summer { color: #b45309; }
.tz-card__season--allseason { color: #15803d; }
.d-garage .tz-card__season, .d-racing .tz-card__season { color: var(--ink); }
.tz-card__flag { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tz-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.tz-card__brand { margin: 0 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tz-card h3 a { text-decoration: none; }
.tz-card__size { margin: 0 0 14px; font-weight: 600; font-size: 1.05rem; }
.tz-card__foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.tz-card__price { display: grid; }
.tz-card__price b { font: var(--head-weight) 1.35rem/1.1 var(--font-head); font-style: var(--head-style); }
.tz-card__price small { font-size: .74rem; }

.d-garage .tz-card { border-width: 1px 1px 3px; border-bottom-color: var(--line); }
.d-garage .tz-card:hover { border-bottom-color: var(--accent); }
.d-racing .tz-card { border-top: 3px solid var(--accent); }
.d-racing .tz-card__media { background: radial-gradient(circle at 50% 45%, #262626, var(--surface-2) 70%); }
.d-racing .tz-card__price b { color: var(--accent); }
.d-eco .tz-card { border: 0; }
.d-eco .tz-card__media { margin: 8px 8px 0; border-radius: calc(var(--radius) - 6px); }
.d-clean .tz-card { border-color: transparent; }
.d-clean .tz-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(15 23 42 / .06), 0 18px 40px rgb(15 23 42 / .12); }

/* ---------- classic: table ---------- */
.tz-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tz-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tz-table th { position: sticky; top: 0; padding: 10px 12px; text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tz-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tz-table td:nth-child(2), .tz-table td:nth-child(3), .tz-table td:nth-child(5) { white-space: nowrap; }
.tz-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tz-table tbody tr:hover { background: var(--accent-soft); }
.tz-table td a { text-decoration: none; }
.tz-table td a:hover { text-decoration: underline; }
.tz-tag { display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--ink); color: var(--surface); font-size: .7rem; font-weight: 700; }
.tz-ok { color: var(--ok); } .tz-low { color: var(--low); } .tz-out { color: var(--out); }
.tz-add--row { display: flex; gap: 6px; }
.tz-add--row select { width: 64px; min-height: 36px; padding: 4px 8px; }

.tz-empty { display: grid; gap: 8px; justify-items: start; padding: 40px 28px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.tz-empty b { font: var(--head-weight) 1.3rem/1.2 var(--font-head); }
.tz-empty p { margin: 0 0 8px; }
.tz-thanks { border-style: solid; border-color: var(--ok); }

/* ---------- explainer + services ---------- */
.tz-explain { background: var(--surface); border-block: 1px solid var(--line); }
.tz-explain__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; }
.tz-code { display: flex; flex-wrap: wrap; align-items: start; gap: 10px 18px; padding: 20px; border-radius: var(--radius); background: var(--tire); color: #f5f5f4; }
.tz-code span { display: grid; gap: 4px; }
.tz-code b { font: 700 clamp(1.6rem, 4vw, 2.4rem)/1 var(--font-head); color: #fff; }
.tz-code span:nth-child(odd) b { color: var(--accent); }
.d-garage .tz-code span:nth-child(odd) b, .d-classic .tz-code span:nth-child(odd) b { color: #facc15; }
.d-classic .tz-code, .d-eco .tz-code, .d-clean .tz-code { background: #1f2937; }
.d-eco .tz-code span:nth-child(odd) b { color: #86efac; }
.d-clean .tz-code span:nth-child(odd) b { color: #93c5fd; }
.tz-code i { font: 700 2rem/1 var(--font-head); color: #78716c; font-style: normal; }
.tz-code small { font-size: .72rem; color: #a8a29e; max-width: 12ch; }
.tz-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tz-service { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tz-service b { display: block; margin-bottom: 6px; font: var(--head-weight) 1.1rem/1.2 var(--font-head); text-transform: var(--head-transform); font-style: var(--head-style); }
.tz-service b::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 12px; background: var(--accent); border-radius: 2px; }
.tz-service p { margin: 0; font-size: .92rem; }

/* ---------- detail ---------- */
.tz-crumbs { font-size: .85rem; margin-bottom: 20px; }
.tz-crumbs a { text-decoration: none; }
.tz-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tz-detail__main { aspect-ratio: 1; padding: 32px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line); }
.tz-detail__main img { width: 100%; height: 100%; object-fit: contain; }
.tz-detail__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.tz-detail__thumbs button { width: 72px; height: 72px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.tz-detail__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.tz-detail__size { font-size: 1.25rem; font-weight: 600; margin: 0 0 10px; }
.tz-detail__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.tz-detail__price b { font: var(--head-weight) 2.4rem/1 var(--font-head); font-style: var(--head-style); }
.tz-buy { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tz-buy p { margin: 0; }
.tz-qty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tz-qty input { position: absolute; opacity: 0; pointer-events: none; }
.tz-qty span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.tz-qty input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tz-qty input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tz-specs { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: .95rem; }
.tz-specs th, .tz-specs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.tz-specs th { font-weight: 400; color: var(--muted); }
.tz-specs td { text-align: right; font-weight: 600; }
.tz-detail__desc { margin-top: 18px; color: var(--muted); }
.tz-related { margin-top: 56px; }

/* ---------- checkout ---------- */
.tz-page-title { margin-bottom: 20px; }
.tz-checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.tz-panel { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tz-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.tz-lines li { display: grid; grid-template-columns: 1fr 90px auto; grid-template-areas: "name qty total" "unit qty total"; align-items: center; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tz-lines li > a { grid-area: name; text-decoration: none; }
.tz-lines li > span { grid-area: unit; }
.tz-lines__qty { grid-area: qty; display: grid; gap: 2px; }
.tz-lines__qty input { min-height: 38px; }
.tz-lines li > b { grid-area: total; }
.tz-totals { margin: 18px 0 0; display: grid; gap: 8px; }
.tz-totals div { display: flex; justify-content: space-between; }
.tz-totals dt { color: var(--muted); }
.tz-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.tz-totals__sum { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 700; }
.tz-totals__sum dt { color: var(--ink); }
.tz-form { display: grid; gap: 12px; }
.tz-form p { margin: 0; }
.tz-error { padding: 10px 14px; border-radius: var(--radius-sm); background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- footer ---------- */
.tz-foot { padding: 48px 0 24px; background: var(--surface); border-top: 1px solid var(--line); }
.tz-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.tz-foot h4 { font-size: .85rem; letter-spacing: .08em; color: var(--muted); }
.tz-foot p { margin: 0 0 6px; }
.tz-foot__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }
.d-racing .tz-foot { border-top: 3px solid var(--accent); }

/* ---------- design preview switcher (admin / preview only) ---------- */
.tz-switcher { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; align-items: center; max-width: calc(100vw - 32px); padding: 6px; border-radius: 12px; background: #0f172a; color: #e2e8f0; font: 500 13px/1 "Inter Tight", system-ui, sans-serif; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.tz-switcher span { padding: 0 6px; opacity: .7; }
.tz-switcher a { padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.tz-switcher a:hover { background: #1e293b; }
.tz-switcher a.is-on { background: #fff; color: #0f172a; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tz-hero__grid { grid-template-columns: 1fr; }
  .tz-hero__art { width: min(70%, 300px); order: -1; }
  .tz-finder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-finder .tz-btn { grid-column: 1 / -1; }
  .tz-catalog, .d-eco .tz-catalog, .d-classic .tz-catalog { grid-template-columns: 1fr; }
  .d-eco .tz-filters { order: 0; }
  .tz-filters { position: static; }
  .tz-filters__toggle { display: flex; }
  .tz-filters__form { display: none; margin-top: 10px; }
  .tz-filters.is-open .tz-filters__form { display: grid; }
  .d-garage .tz-filters__form, .d-racing .tz-filters__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-services__grid { grid-template-columns: repeat(2, 1fr); }
  .tz-explain__grid, .tz-detail, .tz-checkout { grid-template-columns: 1fr; }
  .d-racing .tz-hero { background: var(--bg); }
}
@media (max-width: 640px) {
  .tz-nav { display: none; }
  .tz-cart { margin-left: auto; }
  .tz-seasons__grid, .tz-services__grid, .tz-foot__grid { grid-template-columns: 1fr; }
  .tz-season { min-height: 0; }
  .tz .tz-grid, .tz .tz-results .tz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tz-card__media { padding: 12px; }
  .tz-card__body { padding: 12px; }
  .tz-card h3 { font-size: .95rem; }
  .tz-card__foot { flex-direction: column; align-items: stretch; }
  .tz-card__foot .tz-btn { width: 100%; padding: 0 8px; }
  .tz-card__season { font-size: .68rem; padding: 3px 8px; }
  .tz-card__price b { font-size: 1.1rem; }
  .tz-sort { margin-left: 0; }
  .tz-switcher { bottom: 8px; font-size: 12px; }
}

/* ---------- pager ---------- */
.tz-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.tz-pager > a:not(.tz-btn), .tz-pager__now { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-variant-numeric: tabular-nums; }
.tz-pager > a:not(.tz-btn):hover { border-color: var(--accent); }
.tz-pager__now { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- "tires for my car" ---------- */
.tz-car { padding-top: 0; }
.tz-car__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 32px; align-items: end; padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tz-car__intro h2 { margin-bottom: 4px; }
.tz-car__intro p:last-child { margin: 0; }
.tz-car__form { display: flex; gap: 10px; align-items: end; }
.tz-car__input { flex: 1; }
.tz-car__result { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.tz-car__picked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font-size: 1.15rem; }
.tz-car__change { font-size: .85rem; color: var(--accent); }
.tz-car__step { margin: 0 0 10px; font-weight: 600; }
.tz-car__rims { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tz-rim { display: grid; place-items: center; min-width: 72px; min-height: 64px; padding: 6px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); text-decoration: none; transition: border-color .15s, transform .15s; }
.tz-rim:hover { border-color: var(--accent); transform: translateY(-1px); }
.tz-rim b { font: var(--head-weight) 1.35rem/1 var(--font-head); font-style: var(--head-style); }
.tz-rim small { font-size: .72rem; color: var(--muted); }
.tz-rim.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.tz-rim.is-on small { color: inherit; opacity: .8; }
.d-eco .tz-rim { border-radius: 18px; }
.d-racing .tz-rim { clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.tz-car__sizes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tz-fit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface-2); }
.tz-fit--none { border-left-color: var(--line); }
.tz-fit__size { font-weight: 700; font-size: 1.15rem; min-width: 9ch; }
.tz-fit__info { flex: 1; }
.tz-car__matches { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-car__matches .tz-chip { gap: 6px; min-height: 40px; }
.tz-car__note { margin: 0; font-size: .85rem; }
.d-classic .tz-car { padding-top: 24px; }
@media (max-width: 960px) {
  .tz-car__box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tz-car__form { flex-direction: column; align-items: stretch; }
  .tz-rim { min-width: 60px; min-height: 56px; }
  .tz-fit .tz-btn { width: 100%; }
}
