/* CR-005: approved reference compositions, existing Auto Family brand tokens. */
.home-refresh { --home-dark: #0b0f14; --home-panel: #1d242c; --home-muted: #bac3cc; }
.home-refresh .hero--workshop .hero__bg { object-position: 72% center; }
.home-refresh #offers { background: #fff; color: var(--ink); padding-block: 48px 56px; }
.home-refresh #offers .section__head { margin-bottom: 24px; }
.home-refresh #offers .h2 { color: var(--ink); }
.home-refresh #offers .btn--line { color: var(--ink); border-color: var(--line); }
.home-refresh .offers__grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; gap: 2px; border-radius: 12px; overflow: hidden; }
.promo-card { min-width: 0; min-height: 252px; display: flex; position: relative; overflow: hidden; padding: 28px 24px; color: white; background: var(--home-panel); }
.promo-card--accent { background: var(--brand); color: var(--brand-ink); }
.promo-card__body { position: relative; z-index: 1; width: 62%; display: flex; flex-direction: column; align-items: flex-start; }
.promo-card h3 { font-size: clamp(22px,2vw,28px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.promo-card p { margin: 9px 0 18px; font-size: 14px; line-height: 1.45; max-width: 19ch; }
.promo-card__price { background: var(--brand); color: var(--brand-ink); padding: 5px 9px; border-radius: 4px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.promo-card--accent .promo-card__price { background: var(--home-dark); color: white; }
.promo-card__link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; margin-top: auto; padding-top: 12px; }
.promo-card img { position: absolute; width: 49%; height: 72%; object-fit: contain; right: -3%; bottom: 8%; pointer-events: none; }
.promo-card--accent img { right: -5%; }
.catalog-section { background: var(--mist); color: var(--ink); border-top: 1px solid var(--line); }
.catalog-section .h2 { color: var(--ink); }
.catalog-section .btn--line { color: var(--ink); border-color: var(--line); }
.service-catalog { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 238px; gap: 14px; }
.service-tile { min-width: 0; position: relative; overflow: hidden; border: 0; border-radius: 12px; background: var(--home-panel); color: white; display: flex; align-items: flex-end; text-align: left; isolation: isolate; }
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.service-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0f1408 15%, #0b0f1470 42%, #0b0f14ee 100%); z-index: -1; }
.service-tile--lead { grid-column: span 2; grid-row: span 2; }
.service-tile--lead img { object-position: center 42%; }
.service-tile--help { grid-column: span 2; }
.service-tile__arrow { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: #0b0f14c9; border: 1px solid #ffffff55; border-radius: 8px; }
.service-tile__body { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.service-tile__price { display: inline-block; font-size: 14px; padding: 4px 8px; border: 1px solid #ffffff60; background: #0b0f14a6; border-radius: 4px; margin-bottom: 9px; }
.service-tile h3 { font-size: clamp(20px,1.8vw,25px); line-height: 1.14; font-weight: 700; max-width: 20ch; }
.service-tile--lead h3 { font-size: clamp(30px,3vw,42px); max-width: 17ch; }
.service-tile p { margin-top: 14px; line-height: 1.5; color: #eef3f7; }
.service-tile--help { background: var(--brand); color: var(--brand-ink); cursor: pointer; font: inherit; }
.service-tile--help::after { display: none; }
.service-tile--help .service-tile__arrow { background: var(--home-dark); color: white; border: 0; }
.service-tile--help strong { font-size: 30px; line-height: 1.1; font-weight: 700; margin-bottom: 12px; }
.service-tile--help .service-tile__body > span { max-width: 30ch; }
.catalog-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; }
.catalog-footer p { color: var(--steel); font-size: 14px; max-width: 60ch; }
.home-refresh .process-section { background: var(--home-dark); color: white; }
.process-layout { display: grid; grid-template-columns: 1fr 1.5fr; align-items: start; gap: clamp(40px,6vw,88px); }
.process-section .section__head { display: block; position: sticky; top: 120px; margin: 0; }
.process-section .h2 { color: white; }
.process-section .section__head .lead { margin-top: 24px; color: var(--home-muted); max-width: 30ch; }
.process-section .service-steps { display: block; border-left: 1px solid #53606c; margin: 0; padding: 0 0 0 30px; }
.process-section .service-steps::before, .process-section .service-steps::after { display: none; }
.process-section .step { display: grid; grid-template-columns: 76px minmax(0,1fr); column-gap: 24px; position: relative; padding: 28px 0; border-bottom: 1px solid #53606c; background: none; border-radius: 0; }
.process-section .step:first-child { padding-top: 0; }
.process-section .step::before { content: ''; position: absolute; left: -35px; top: 42px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.process-section .step:first-child::before { top: 15px; }
.process-section .step__n { background: none; color: var(--brand); font-size: 44px; line-height: 1; font-weight: 500; width: auto; height: auto; border: 0; border-radius: 0; padding: 0; margin: 0; grid-row: span 2; }
.process-section .step .h3 { color: white; font-size: 24px; line-height: 1.2; margin: 0; }
.process-section .step p { grid-column: 2; color: var(--home-muted); margin: 10px 0 0; line-height: 1.55; }
.service-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--home-dark); color: white; }
.service-cta__photo { position: absolute; left: 0; top: 0; height: 100%; width: 66%; object-fit: cover; object-position: center 45%; z-index: -2; }
.service-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 15%, #0b0f1455 35%, var(--home-dark) 65%); z-index: -1; }
.service-cta__layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; align-items: center; }
.service-cta__body { grid-column: 2; padding: 72px 0 72px 48px; }
.service-cta .h2 { color: white; }
.service-cta__body p { margin: 24px 0 28px; line-height: 1.6; color: #d8e0e7; max-width: 46ch; }
.service-cta__note { display: block; margin-top: 18px; color: var(--home-muted); font-size: 14px; }
.promo-card:focus-visible, .service-tile:focus-visible { outline: 3px solid white; outline-offset: -5px; }
@media (prefers-reduced-motion: no-preference) {
  .promo-card img, .service-tile img { transition: transform .35s ease; }
  .promo-card:hover img, .service-tile:hover img { transform: scale(1.04); }
  .service-tile__arrow { transition: background .2s, color .2s; }
}
.service-tile:is(:hover,:focus-visible) .service-tile__arrow { background: var(--brand); color: var(--brand-ink); }
.service-tile--help:is(:hover,:focus-visible) .service-tile__arrow { background: white; }
@media (max-width: 1100px) {
  .promo-card { padding: 22px 18px; min-height: 245px; }
  .promo-card h3 { font-size: 22px; }
  .promo-card img { width: 44%; right: -2%; bottom: 4%; height: 60%; }
  .promo-card__body { width: 74%; }
  .service-catalog { grid-auto-rows: 210px; }
  .service-tile__body { padding: 18px; }
  .service-tile h3 { font-size: 20px; }
  .service-tile--lead h3 { font-size: 34px; }
}
@media (max-width: 800px) {
  .home-refresh .offers__grid { grid-template-columns: 1fr; gap: 8px; overflow: visible; }
  .promo-card { min-height: 210px; border-radius: 10px; padding: 24px; }
  .promo-card h3 { font-size: 27px; max-width: 16ch; }
  .promo-card img { width: 39%; height: 90%; bottom: 3%; right: 1%; }
  .promo-card__body { width: 63%; }
  .service-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 230px; gap: 10px; }
  .service-tile--lead { grid-row: span 2; }
  .service-tile:nth-child(6) { grid-column: auto; }
  .service-tile--help { grid-column: span 2; }
  .service-tile__body { padding: 18px; }
  .service-tile__arrow { width: 34px; height: 34px; top: 10px; right: 10px; }
  .catalog-footer { align-items: flex-start; flex-direction: column; }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-section .section__head { position: static; }
  .process-section .section__head .lead { max-width: 46ch; }
  .service-cta__layout { grid-template-columns: 1fr; padding-top: 260px; }
  .service-cta__photo { width: 100%; height: 370px; object-position: center 42%; }
  .service-cta::before { background: linear-gradient(180deg, transparent 120px, var(--home-dark) 370px); }
  .service-cta__body { grid-column: 1; padding: 32px 0 64px; }
}
@media (max-width: 480px) {
  .home-refresh #offers { padding-block: 36px; }
  .home-refresh #offers .section__head { gap: 16px; }
  .home-refresh .hero--workshop .hero__bg { object-position: 75% center; }
  .promo-card h3 { font-size: 24px; }
  .promo-card { padding: 22px 18px; }
  .promo-card__body { width: 66%; }
  .promo-card img { right: -2%; width: 40%; }
  .service-catalog { grid-auto-rows: 220px; }
  .service-tile--lead { grid-row: span 2; }
  .service-tile__body { padding: 14px; }
  .service-tile h3 { font-size: 19px; overflow-wrap: break-word; }
  .service-tile--lead h3 { font-size: 34px; }
  .service-tile--lead .service-tile__body { padding: 24px; }
  .service-tile__price { font-size: 12px; }
  .process-section .service-steps { padding-left: 22px; }
  .process-section .step { grid-template-columns: 48px minmax(0,1fr); gap: 0 14px; padding-block: 24px; }
  .process-section .step::before { left: -27px; top: 36px; }
  .process-section .step__n { font-size: 34px; }
  .process-section .step .h3 { font-size: 21px; }
  .process-section .step p { font-size: 15px; }
}
.home-refresh #offers .btn--line, .catalog-section .btn--line { background: transparent; box-shadow: inset 0 0 0 1px #53606c; }
.home-refresh #offers .btn--line:hover, .catalog-section .btn--line:hover { background: #29333e; color: white; }
.process-section .step { border-top: 0; }
.process-section .step.is-in::before { width: 9px; }

/* CR-006: light section backgrounds and an active process timeline. */
.home-refresh .offers__grid { gap: 12px; overflow: visible; }
.promo-card { border-radius: 12px; }
.promo-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.process-section .service-steps { position: relative; }
.process-section .step:has(.process-marker)::before { display: none; }
.process-section .service-steps::after { content: ''; display: block; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--brand); transform: scaleY(var(--process-progress, 0)); transform-origin: top; pointer-events: none; }
.process-marker { position: absolute; left: -35px; top: 42px; width: 9px; height: 9px; border-radius: 50%; background: #6b7885; z-index: 1; }
.step:first-child .process-marker { top: 15px; }
.is-current .process-marker, .is-passed .process-marker { background: var(--brand); }
.process-marker::after { content: ''; position: absolute; inset: -6px; border: 1px solid var(--brand); border-radius: 50%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .is-current .process-marker::after { animation: process-pulse 1.6s ease-out 2; }
  .process-section .step__n { transition: color .3s ease; }
  .process-section .step:not(.is-current):not(.is-passed) .step__n { color: #d1d9e0; }
}
@keyframes process-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.home-workshop { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: clamp(32px,5vw,72px); align-items: center; }
.home-workshop__intro .lead { margin: 22px 0 18px; }
.home-workshop__intro > p:not(.lead) { margin: 16px 0; line-height: 1.65; color: var(--steel); max-width: 60ch; }
.home-workshop__intro .btn { margin-top: 12px; }
.home-workshop__videos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-workshop__videos figure { min-width: 0; margin: 0; }
.home-workshop__videos video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 570px; object-fit: contain; background: var(--home-dark); border-radius: 12px; }
.home-workshop__videos figcaption { margin-top: 12px; font-weight: 600; }
@media (max-width: 900px) { .home-workshop { grid-template-columns: 1fr; } .home-workshop__videos { max-width: 650px; } }
@media (max-width: 480px) {
  .process-marker { left: -27px; top: 36px; }
  .home-workshop__videos { grid-template-columns: 1fr; gap: 28px; }
  .home-workshop__videos video { max-height: 520px; }
}
@media (prefers-reduced-motion: reduce) { .process-marker::after { animation: none; } }

/* Keep both timeline strokes and marker centers on one shared axis. */
.process-section .service-steps { --process-indent: 30px; border-left: 0; padding-left: var(--process-indent); }
.process-section .service-steps::before,
.process-section .service-steps::after { content: ''; display: block; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; pointer-events: none; }
.process-section .service-steps::before { background: #53606c; }
.process-section .process-marker,
.process-section .step::before { left: calc(-1 * var(--process-indent)); transform: translateX(-50%); }
@media (max-width: 480px) { .process-section .service-steps { --process-indent: 22px; } }
