/* ==========================================================================
   Maple Tire — design tokens + components
   No framework, no external requests. Preset: "industrial".
   ========================================================================== */

:root {
  --c-primary: #c8102e;
  --c-primary-dark: #9d0c24;
  --c-dark: #14161a;
  --c-dark-2: #21252b;
  --c-accent: #f5a623;
  --c-light: #f7f7f5;
  --c-white: #fff;
  --c-text: #1d2025;
  --c-muted: #5b626d;
  --c-border: #d9dce1;
  --c-ok: #1a7f47;

  --font-h: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-b: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r: 2px;
  --sp: 1rem;
  --container: 1180px;
  --shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 12px rgb(0 0 0 / .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  padding-bottom: 64px; /* mobile action bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-primary-dark); }
img, svg, picture { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2.5rem 0; }
small { font-size: .85rem; color: var(--c-muted); }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-dark); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section--dark { background: var(--c-dark); color: #e9ecf1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--light { background: var(--c-light); }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 68ch; }
.section--dark .lead { color: #b9c0cc; }
.eyebrow {
  font-family: var(--font-h); text-transform: uppercase; letter-spacing: .14em;
  font-size: .95rem; color: var(--c-primary); margin: 0 0 .35rem;
}
.section--dark .eyebrow { color: var(--c-accent); }
.center { text-align: center; }
.narrow { max-width: 74ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-h); font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 600;
  min-height: 48px; padding: .7rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--r);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-dark); border-color: var(--c-dark); }
.btn--ghost:hover { background: var(--c-dark); color: #fff; }
.section--dark .btn--ghost { color: #fff; border-color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--c-dark); }
.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: #dd9314; color: var(--c-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.25rem; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--c-dark); color: #c8cdd6; font-size: .9rem;
  border-bottom: 1px solid #2c313a;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; padding-block: .55rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__spacer { margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-muted); }
.status.is-open { color: #6fe0a0; }
.status.is-open::before { background: #35c977; }
.status.is-closed { color: #ff9b9b; }
.status.is-closed::before { background: #e0574f; }

/* ---------- header / nav ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--c-border); }
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--c-dark); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { font-family: var(--font-h); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.logo__text span { color: var(--c-primary); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-h); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em;
  color: var(--c-dark); text-decoration: none; padding: .6rem .7rem; border-radius: var(--r);
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--c-light); color: var(--c-primary); }
.nav__item { position: relative; }
.nav__toggle { background: none; border: 0; font: inherit; cursor: pointer; }
.nav__caret { width: 10px; height: 10px; }

.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  display: none; width: min(940px, 92vw);
  background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); padding: 1.5rem;
}
.nav__item.is-open .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.mega__title { font-family: var(--font-h); text-transform: uppercase; font-size: .95rem; letter-spacing: .1em; color: var(--c-muted); margin: 0 0 .5rem; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list a { display: block; padding: .35rem 0; color: var(--c-dark); text-decoration: none; font-size: .95rem; }
.mega__list a:hover { color: var(--c-primary); text-decoration: underline; }
.mega__note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--c-border); font-size: .92rem; color: var(--c-muted); }

.header__cta { display: none; gap: .5rem; }
.burger { margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 1px solid var(--c-border); background: #fff; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--c-dark); margin-inline: auto; width: 22px; }

@media (max-width: 1023px) {
  .nav { position: fixed; inset: 70px 0 0; background: #fff; overflow-y: auto; padding: 1rem 1.25rem 4rem; display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: .9rem .25rem; border-bottom: 1px solid var(--c-border); }
  .mega { position: static; transform: none; width: 100%; border: 0; box-shadow: none; padding: .5rem 0 1rem; }
  .mega__grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (min-width: 1024px) {
  .burger { display: none; }
  .header__cta { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(115deg, rgb(20 22 26 / .93) 0%, rgb(20 22 26 / .72) 55%, rgb(20 22 26 / .55) 100%),
    repeating-linear-gradient(135deg, #2a2f38 0 22px, #23272f 22px 44px);
  background-size: cover;
}
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: 1.2rem; color: #d3d8e0; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 1.5rem 0 0; font-size: .95rem; color: #b9c0cc; }
.hero__trust li { display: flex; align-items: center; gap: .45rem; margin: 0; }
.hero__trust li::before { content: ""; width: 7px; height: 7px; background: var(--c-accent); flex: none; }
.hero--sub .hero__inner { padding-block: clamp(2.2rem, 5vw, 3.5rem); max-width: 54rem; }
.hero__price { font-family: var(--font-h); font-size: 1.35rem; color: var(--c-accent); text-transform: uppercase; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .9rem; color: var(--c-muted); padding-block: .85rem; border-bottom: 1px solid var(--c-border); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--c-border); }
.crumbs a { color: var(--c-muted); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r);
  padding: 1.35rem; display: flex; flex-direction: column; gap: .4rem;
}
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--c-primary); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: .15em; }
.card p { color: var(--c-muted); font-size: .97rem; margin: 0; }
.card__price { margin-top: auto; padding-top: .8rem; font-family: var(--font-h); font-size: 1.15rem; color: var(--c-primary); text-transform: uppercase; }
.card__icon { width: 40px; height: 40px; color: var(--c-primary); }
.section--dark .card { background: var(--c-dark-2); border-color: #333a45; }
.section--dark .card p { color: #aab2be; }

.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature__num {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; font-family: var(--font-h); font-size: 1.25rem;
}

/* ---------- banner ---------- */
.banner {
  background: var(--c-accent); color: var(--c-dark);
  border-block: 3px solid var(--c-dark);
}
.banner .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding-block: 1.4rem; }
.banner__text { flex: 1 1 30ch; margin: 0; font-size: 1.05rem; }
.banner__text strong { font-family: var(--font-h); font-size: 1.35rem; text-transform: uppercase; display: block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
caption { text-align: left; font-family: var(--font-h); text-transform: uppercase; font-size: 1.15rem; padding-bottom: .5rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--c-border); }
thead th { background: var(--c-light); font-family: var(--font-h); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #fbfbfa; }
.price { font-family: var(--font-h); font-size: 1.15rem; color: var(--c-primary); }

/* ---------- checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .28em;
  background: var(--c-ok);
  clip-path: polygon(14% 47%, 0 61%, 40% 100%, 100% 22%, 85% 8%, 38% 71%);
}
.checks--no li::before { background: var(--c-primary); clip-path: polygon(20% 0, 0 20%, 30% 50%, 0 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0, 50% 30%); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--font-h); font-size: 1.2rem; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--c-primary); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.1rem; max-width: 78ch; }

/* ---------- forms ---------- */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field .req { color: var(--c-primary); }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; min-height: 48px;
  border: 1px solid var(--c-border); border-radius: var(--r); background: #fff; color: var(--c-text);
  width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: .3rem; }
.field--check label { font-size: .9rem; color: var(--c-muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--c-muted); margin: 0; }
.form-box { background: #fff; border: 1px solid var(--c-border); padding: 1.5rem; border-radius: var(--r); }
.section--dark .form-box { background: var(--c-dark-2); border-color: #333a45; }
.section--dark .form-box label { color: #e9ecf1; }
.section--dark .form-box .field--check label { color: #aab2be; }

/* ---------- quiz ---------- */
.quiz { background: #fff; border: 2px solid var(--c-dark); padding: clamp(1.25rem, 3vw, 2rem); }
.quiz__steps { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.quiz__dot { flex: 1; height: 5px; background: var(--c-border); }
.quiz__dot.is-active { background: var(--c-primary); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__opts { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-block: 1rem; }
.quiz__opt {
  border: 1px solid var(--c-border); background: #fff; padding: .9rem 1rem; text-align: left;
  font: inherit; cursor: pointer; border-radius: var(--r); min-height: 48px;
}
.quiz__opt:hover { border-color: var(--c-primary); background: var(--c-light); }
.quiz__opt.is-picked { border-color: var(--c-primary); background: #fdeef0; font-weight: 500; }
.quiz__back { background: none; border: 0; font: inherit; color: var(--c-muted); cursor: pointer; text-decoration: underline; padding: .5rem 0; }
.quiz__done { display: none; }
.quiz__done.is-active { display: block; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-light); border: 1px solid var(--c-border); }
.gallery figcaption { font-size: .88rem; color: var(--c-muted); padding-top: .4rem; }

/* ---------- map ---------- */
.map-holder { position: relative; background: var(--c-light); border: 1px solid var(--c-border); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 2rem; }
.map-holder iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- article ---------- */
.article { max-width: 74ch; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.5rem; }
.article__meta { font-size: .9rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.answer-box { background: var(--c-light); border-left: 4px solid var(--c-primary); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.answer-box p:last-child { margin-bottom: 0; }

/* ---------- notice ---------- */
.notice { background: #fdf6e6; border: 1px solid #e8d69c; padding: 1rem 1.15rem; border-radius: var(--r); font-size: .95rem; }
.notice--info { background: #eef4fb; border-color: #bcd3ec; }

/* ---------- footer ---------- */
.footer { background: var(--c-dark); color: #aab2be; padding-block: 3rem 1.5rem; font-size: .95rem; }
.footer h2, .footer h3 { color: #fff; font-size: 1.1rem; letter-spacing: .08em; }
.footer a { color: #d8dde5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .35em; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2c313a; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; }
.footer__bottom .topbar__spacer { margin-left: auto; }

/* ---------- mobile action bar ---------- */
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--c-dark); border-top: 2px solid var(--c-primary);
}
.actionbar a {
  color: #fff; text-decoration: none; text-align: center; padding: .7rem .3rem;
  font-family: var(--font-h); text-transform: uppercase; font-size: .95rem; letter-spacing: .04em;
  border-right: 1px solid #2c313a; min-height: 56px; display: grid; place-items: center;
}
.actionbar a:last-child { border-right: 0; }
@media (min-width: 900px) { .actionbar { display: none; } }

/* ---------- consent ---------- */
.cmp {
  position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 76px;
  max-width: 560px; background: #fff; border: 2px solid var(--c-dark); box-shadow: var(--shadow);
  padding: 1.25rem; display: none;
}
.cmp.is-visible { display: block; }
.cmp p { font-size: .93rem; margin-bottom: .9rem; }
.cmp .btn { font-size: .95rem; min-height: 44px; padding: .5rem 1rem; }
@media (min-width: 900px) { .cmp { bottom: 1rem; left: 1rem; right: auto; } }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.25rem; }

@media print {
  .header, .topbar, .actionbar, .cmp, .footer, .btn { display: none !important; }
  body { padding: 0; font-size: 12pt; }
}
