/* =====================================================================
   IntrasAutivo - autoteenindus ja rehvihotell. Laeb pärast v3.css-i ja sub.css-i.
   Grafiit, signaaloranž ja betoonhall. Tume avavaade nagu töökoda õhtul, jässakad nurgad,
   numbrimärk ja rehvisilt. Nupud on erksad oranžid tumeda kirjaga (nagu ohutusvest).
   ===================================================================== */
html.theme-autivo {
  --teal-rgb: 194, 62, 10;
  --hi-rgb: 255, 138, 76;
  --bg-rgb: 236, 238, 241;
  --acc-rgb: 217, 45, 32;
  --bg: #eceef1;
  --white: #fff;
  --ink: #15181c;
  --ink-2: #474d55;
  --ink-3: #666c74;                /* väike tekst vähemalt 4,5:1 valgel ja --bg taustal */
  --ink-4: #a3a9b1;
  --line: #d9dde2;
  --line-2: #e8eaee;
  --teal: #c23e0a;                 /* sildid --bg taustal vähemalt 4,5:1 */
  --teal-d: #9a3412;
  --teal-hi: #ff8a4c;
  --mint: #fff1e8;
  --mint-2: #ffdcc6;
  --navy: #15181c;
  --navy-d: #0e1013;
  --acc: #d92d20;
  --acc-d: #b42318;
  --acc-t: #fdeceb;
  --brand: #c23e0a;
  --av2: #5b6b7d;
  --sig: #ff6a1f;
  --ok: #1e7d47;                   /* roheline tekst valgel ja #e6f4ec taustal vähemalt 4,5:1 */
  --r: 10px;
  --r-lg: 14px;
}
html.theme-autivo .h1, html.theme-autivo .h2, html.theme-autivo .final__title { font-weight: 870; letter-spacing: -.038em; }
html.theme-autivo .btn { border-radius: 8px; }
html.theme-autivo .btn--lg { border-radius: 10px; }
html.theme-autivo .btn--teal { background: var(--sig); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -10px rgba(255, 106, 31, .75); }
html.theme-autivo .btn--teal:hover { background: #ff7d3b; }
html.theme-autivo .final { background: var(--white); }

/* menüü tume avavaate peal (enne kerimist läbipaistev); ainult JS-iga: ilma JS-ita on riba kinnine (v3.css .no-js .nav) ja tekst tume */
html.theme-autivo.js .nav:not(.is-solid) .brand { color: #fff; }
html.theme-autivo.js .nav:not(.is-solid) .brand__sub { color: var(--teal-hi); }
html.theme-autivo.js .nav:not(.is-solid) .nav__links > a, html.theme-autivo.js .nav:not(.is-solid) .nav__dd > summary { color: rgba(255, 255, 255, .86); }
html.theme-autivo.js .nav:not(.is-solid) .nav__links > a:hover, html.theme-autivo.js .nav:not(.is-solid) .nav__dd > summary:hover, html.theme-autivo.js .nav:not(.is-solid) .nav__dd[open] > summary { background: rgba(255, 255, 255, .08); }
html.theme-autivo.js .nav:not(.is-solid) .nav__links > a[aria-current], html.theme-autivo.js .nav:not(.is-solid) .nav__dd.is-cur > summary { color: var(--teal-hi); }
html.theme-autivo.js .nav:not(.is-solid) .nav__links > a[aria-current]::after { background: var(--teal-hi); }
html.theme-autivo.js .nav:not(.is-solid) .nav__cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
/* tumedal avavaatel ja selle kohal oleval menüül hele fookusrõngas (oranž --teal oleks tumedal napilt 3:1) */
html.theme-autivo.js .nav:not(.is-solid), .axh { --focus: var(--teal-hi); }

/* ---------------- tume avavaade ---------------- */
.axh { background: radial-gradient(50% 70% at 82% 38%, rgba(255, 106, 31, .16), transparent 70%), linear-gradient(180deg, #15181c, #1a1e23); color: #fff; }
.axh::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(62deg, rgba(255, 255, 255, .03) 0 9px, transparent 9px 24px), repeating-linear-gradient(-62deg, rgba(255, 255, 255, .022) 0 9px, transparent 9px 24px); -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 52%); mask-image: linear-gradient(100deg, #000 0%, transparent 52%); }
.axh .h1 { color: #fff; }
.axh .h1 .t { color: var(--teal-hi); }
.axh .sxh__lead { color: rgba(255, 255, 255, .74); }
.axh .crumbs ol { color: rgba(255, 255, 255, .5); }
.axh .crumbs [aria-current] { color: rgba(255, 255, 255, .86); }
.axh .crumbs a:hover { color: var(--teal-hi); }
.axh .pbadge { border-color: rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .06); box-shadow: none; color: #fff; }
.axh .pbadge em { color: var(--teal-hi); }
.axh .sxh__note { color: rgba(255, 255, 255, .62); }
.axh .sxh__note svg { color: var(--teal-hi); }
.axh .btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .24); box-shadow: none; }
.axh .btn--ghost:hover { border-color: rgba(255, 255, 255, .55); }

.astage { aspect-ratio: 1100 / 733; margin: 8% 5% 14% 7%; }
.astage__photo { position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.astage__photo img { object-position: 40% 50%; }
/* rehvisilt: augustatud riputusauk, QR, riiulikoht ja numbrimärk */
.tlabel { position: absolute; z-index: 3; left: -8%; top: -10%; width: clamp(122px, 22%, 152px); padding: 18px 11px 11px; border-radius: 10px; background: #fff; color: var(--ink); transform: rotate(-4deg); box-shadow: 0 20px 34px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25); }
.tlabel::before { content: ''; position: absolute; left: 50%; top: 7px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #1a1e23; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.tlabel::after { content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 34px; margin-left: -1px; transform: translateY(13px); background: linear-gradient(#0000, #3a4048 30%); border-radius: 2px; }
.tlabel__top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 7px; border-bottom: 2px solid var(--ink); }
.tlabel__top b { font: 700 21px/1 var(--mono); letter-spacing: -.02em; }
.tlabel__top span { font: 600 11px/1 var(--mono); color: var(--ink-3); }
.tlabel__qr { display: block; width: 100%; height: auto; margin-top: 8px; color: var(--ink); }
.tlabel__sz { margin: 6px 0 7px; font: 600 10.5px/1.3 var(--mono); color: var(--ink-2); text-align: center; }
.tlabel .plate { width: 100%; }
.asms { position: absolute; z-index: 3; right: -7%; bottom: -12%; width: min(300px, 58%); padding: 13px 15px 14px; border-radius: 18px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .04); }
.asms__h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.asms__app { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--sig); color: var(--ink); }
.asms__app svg { width: 15px; height: 15px; }
.asms__h b { font-weight: 850; }
.asms__h small { margin-left: auto; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.asms__t { margin-top: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.asms__btn { display: inline-flex; margin-top: 10px; padding: 7px 12px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; }
.achip { right: -5%; top: 7%; color: var(--ink); }
.tlabel__sz { white-space: nowrap; font-size: 10px; }
.js .sxh__stage.is-in .tlabel { animation: labelIn 1.1s var(--ease) 1s both; }
.js .sxh__stage.is-in .asms { animation: cardIn 1s var(--ease) .65s both; }
@keyframes labelIn { 0% { opacity: 0; transform: translateY(-40px) rotate(14deg); } 60% { opacity: 1; transform: translateY(4px) rotate(-7deg); } 100% { opacity: 1; transform: rotate(-4deg); } }

/* ---------------- numbrimärk (Eesti, sinine EL-i riba) ---------------- */
.plate { display: inline-flex; align-items: stretch; flex: none; height: 30px; overflow: hidden; border: 1.5px solid #15181c; border-radius: 5px; background: #fff; color: #15181c; font: 600 15px/1 var(--mono); letter-spacing: .05em; white-space: nowrap; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.plate i { width: 18px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3px 0 2px; background: #003399; }
.plate i svg { width: 12px; height: 12px; }
.plate i b { font: 800 6.5px/1 var(--font); letter-spacing: .02em; color: #fff; }
.plate > span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 9px 0 8px; }
.plate--sm { height: 24px; font-size: 12px; }
.plate--sm i { width: 14px; }
.plate--sm i svg { width: 9px; height: 9px; }
.plate--sm i b { font-size: 5.2px; }

/* ---------------- enne ja nüüd ---------------- */
html.theme-autivo .scope__col--off { border-color: #c1c7cf; }

/* ---------------- 01 rehvihotell: vastuvõtt ja riiul ---------------- */
.tyre__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.intake { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.intake__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.intake__head small { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.intake__head b { display: block; margin-top: 4px; font-size: 16px; font-weight: 850; letter-spacing: -.01em; }
.intake__swap { display: grid; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.intake__swap span { display: flex; align-items: center; gap: 8px; }
.intake__swap svg { width: 18px; height: 18px; flex: none; color: var(--teal); }
.intake__swap b { font: 600 13.5px/1 var(--mono); color: var(--ink); }
.intake__car { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); grid-template-areas: "a car b" "c car d"; gap: 10px 14px; align-items: center; margin: 16px 0 4px; }
.intake__svg { grid-area: car; width: 88px; height: auto; }
.intake__svg .cb { fill: #f6f7f9; stroke: var(--ink); stroke-width: 2; }
.intake__svg .cg { fill: #cdd3da; }
.intake__svg .cl { fill: none; stroke: #b7bec6; stroke-width: 1.5; stroke-linecap: round; }
.intake__svg .cw { fill: #2a2f35; transition: fill .4s; }
.tw { padding: 10px 12px 11px; border-radius: 10px; background: var(--bg); transition: background-color .35s, box-shadow .35s; }
.tw[data-w="0"] { grid-area: a; }
.tw[data-w="1"] { grid-area: b; text-align: right; }
.tw[data-w="2"] { grid-area: c; }
.tw[data-w="3"] { grid-area: d; text-align: right; }
.tw small { display: block; font-size: 12px; font-weight: 750; color: var(--ink-3); }
.tw b { display: block; margin-top: 3px; font: 600 23px/1.05 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tw b::after { content: ' mm'; font-size: 12px; letter-spacing: 0; color: var(--ink-3); }
.tw i { display: block; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--line); }
.tw i em { display: block; width: calc(var(--p, 0) * 100%); height: 100%; border-radius: inherit; background: var(--ok); transition: width 1s var(--ease); }
.tw[data-w="1"] i em, .tw[data-w="3"] i em { margin-left: auto; }
.tw.is-mid i em { background: #d99a06; }
.tw.is-low { background: var(--acc-t); box-shadow: inset 0 0 0 1.5px rgba(var(--acc-rgb), .55); }
.tw.is-low b { color: var(--acc-d); }
.tw.is-low i em { background: var(--acc); }
.intake__label { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; max-height: 0; margin-top: 0; padding: 0 12px; overflow: hidden; border-radius: 10px; background: #fff; opacity: 0; box-shadow: inset 0 0 0 1.5px var(--ink); transition: max-height .6s var(--ease), opacity .4s, margin .6s var(--ease), padding .6s var(--ease); }
.intake__label .qr { width: 64px; height: 64px; color: var(--ink); }
.intake__label b { display: block; font: 700 17px/1.2 var(--mono); letter-spacing: -.01em; }
.intake__label span { display: block; font: 500 11.5px/1.45 var(--mono); color: var(--ink-2); }
#tyre[data-step="2"] .intake__label, #tyre[data-step="3"] .intake__label { max-height: 120px; margin-top: 12px; padding: 12px; opacity: 1; }
#tyre[data-step="2"] .intake__label { animation: printOut .9s var(--ease) both; }
@keyframes printOut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.intake__ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.intake__steps { display: flex; gap: 4px; counter-reset: s; }
.intake__steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--bg); font-size: 12.5px; font-weight: 800; color: var(--ink-3); transition: background-color .3s, color .3s; }
.intake__steps li::before { content: counter(s); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font: 600 11px/1 var(--mono); }
#tyre[data-step="1"] .intake__steps li:nth-child(-n+1), #tyre[data-step="2"] .intake__steps li:nth-child(-n+2), #tyre[data-step="3"] .intake__steps li { background: var(--ink); color: #fff; }
#tyre[data-step="1"] .intake__steps li:nth-child(-n+1)::before, #tyre[data-step="2"] .intake__steps li:nth-child(-n+2)::before, #tyre[data-step="3"] .intake__steps li::before { background: var(--sig); color: var(--ink); }
.intake__go[disabled] { opacity: .5; cursor: default; box-shadow: none; }
.intake__st { margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: var(--bg); font-size: 13.5px; font-weight: 650; line-height: 1.5; color: var(--ink-2); }
.intake__st b { color: var(--ink); }
.intake__again { margin: 8px 0 0; align-self: flex-start; }

.rack { display: flex; flex-direction: column; padding: 20px; border-radius: var(--r-lg); background: #16191d; color: #fff; box-shadow: var(--sh-3); }
.rack__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rack__head b { display: block; font-size: 16px; font-weight: 850; }
.rack__head small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 650; color: rgba(255, 255, 255, .55); }
.rack__cnt { padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .08); font: 500 12px/1 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rack__find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 650; color: rgba(255, 255, 255, .6); }
.rack__find span { margin-right: 4px; }
.rack__find button { height: 30px; padding: 0 10px; border: 1.5px solid #15181c; border-radius: 5px; background: #fff; color: #15181c; font: 600 12.5px/1 var(--mono); letter-spacing: .04em; cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease); }
.rack__find button:hover { transform: translateY(-1px); }
.rack__find button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--sig); }
.rack__rows { display: grid; gap: 10px; margin-top: 16px; }
.rack__row { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; }
.rack__lbl { font: 600 13px/1 var(--mono); color: rgba(255, 255, 255, .5); }
.rack__row ul { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; padding: 8px 8px 10px; border-radius: 6px; background: linear-gradient(180deg, #2a3037, #20252b); box-shadow: inset 0 -4px 0 #3d444d, 0 6px 10px -6px rgba(0, 0, 0, .6); }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px 2px; border-radius: 5px; transition: box-shadow .3s, background-color .3s; }
.slot__t { width: 86%; height: 40px; border-radius: 4px; }
.slot.is-full .slot__t { background: linear-gradient(#2e343b, #0f1114 45%) 50% 0 / 100% 22% no-repeat, linear-gradient(#2e343b, #0f1114 45%) 50% 33.3% / 100% 22% no-repeat, linear-gradient(#2e343b, #0f1114 45%) 50% 66.6% / 100% 22% no-repeat, linear-gradient(#2e343b, #0f1114 45%) 50% 100% / 100% 22% no-repeat; }
.slot:not(.is-full) .slot__t { border: 1.5px dashed rgba(255, 255, 255, .16); }
.slot span:not(.sr-only) { font: 500 9.5px/1 var(--mono); color: rgba(255, 255, 255, .5); transition: color .3s; }
.slot.is-hit { background: rgba(255, 106, 31, .16); box-shadow: 0 0 0 2px var(--sig), 0 0 22px rgba(255, 106, 31, .45); }
.slot.is-hit span:not(.sr-only) { color: #fff; }
.slot.is-new .slot__t { animation: slotIn .8s var(--ease) both; }
.slot.is-out .slot__t { animation: slotOut .7s var(--ease) both; }
@keyframes slotIn { from { opacity: 0; transform: translateY(-26px); } 70% { opacity: 1; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@keyframes slotOut { from { opacity: 1; } to { opacity: 0; transform: translateX(14px); } }
.rack__res { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 650; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.rack__res b { color: #fff; }

/* ---------------- 02 hooajavahetus: SMS ja broneerimine ---------------- */
.season__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* kahes veerus (1181 px ja laiem) on pealkirja veerg ~460-516 px: pikk sõna „telefonijärjekorrata.“ (8,9 × kirja suurus) mahub ühele reale */
@media (min-width: 1181px) { .season .h2 { font-size: clamp(34px, 3.8vw, 54px); } }
.season__try { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 16px 10px 12px; border-radius: 10px; background: var(--mint); color: var(--teal-d); font-size: 14.5px; font-weight: 750; }
.season__try svg { width: 18px; height: 18px; flex: none; }
.season__demo { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; align-items: center; }
.bphone { width: 252px; aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 40px; background: #0f1114; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 34px 60px -26px rgba(21, 24, 28, .6); }
.bphone__scr { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 44px 12px 12px; overflow: hidden; border-radius: 32px; background: #eef0f3; }
.bphone__isl { position: absolute; top: 11px; left: 50%; width: 74px; height: 21px; margin-left: -37px; border-radius: 99px; background: #0f1114; }
.bsms { padding: 10px 12px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.bsms small { display: block; margin-bottom: 4px; font: 600 9.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bbook { flex: 1; display: flex; flex-direction: column; padding: 12px; border-radius: 16px; background: #fff; }
.bbook__h b { display: block; font-size: 15px; font-weight: 850; letter-spacing: -.01em; }
.bbook__h small { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.bslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.bslots button { height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 12.5px/1 var(--mono); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.bslots button:hover:not([disabled]) { border-color: var(--sig); background: var(--mint); transform: translateY(-1px); }
.bslots button[disabled] { border-color: transparent; background: var(--bg); color: var(--ink-4); text-decoration: line-through; cursor: not-allowed; }
.bslots button.is-mine { border-color: var(--sig); background: var(--sig); color: var(--ink); text-decoration: none; }
.bbook__ok { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; padding: 10px; border-radius: 10px; background: #e6f4ec; color: var(--ok); font-size: 12.5px; line-height: 1.4; animation: chipIn .5s var(--ease) backwards; }
.bbook__ok[hidden] { display: none; }
.bbook__ok svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.bbook__ok b { display: block; font-weight: 850; }
.bbook__ok span { display: block; font-weight: 650; color: #2a6b47; }
.bcal { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.bcal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; }
.bcal__head b { display: block; font-size: 15.5px; font-weight: 850; }
.bcal__head small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.bcal__live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; background: #e6f4ec; color: var(--ok); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.bcal__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .3; } }
.bcal__list li { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line-2); }
.bcal__list time { font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.bcal__list span { padding: 7px 10px; border-radius: 6px; background: repeating-linear-gradient(-45deg, var(--bg) 0 6px, #f4f5f7 6px 12px); font-size: 13px; font-weight: 650; color: var(--ink-3); transition: background-color .3s, color .3s; }
.bcal__list li.is-taken span { background: #2a2f35; color: #fff; font-weight: 750; }
.bcal__list li.is-new span { background: var(--sig); color: var(--ink); font-weight: 800; animation: chipIn .5s var(--ease) backwards; }
.bcal__sum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink-3); }
.bcal__sum b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------- 03 sõidukiregister ---------------- */
.vreg__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.vcard { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); }
.vsearch { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; transition: box-shadow .2s; }
/* fookus: sama rõngas mis mujal (väli ise on outline: 0), pehme kuma jääb lisaks */
.vsearch:focus-within { outline: 2.5px solid var(--focus, var(--teal)); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(255, 106, 31, .3); }
.vsearch svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.vsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 600 17px/1 var(--mono); letter-spacing: .03em; color: var(--ink); }
.vtry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.vtry span { margin-right: 2px; }
.vtry button { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: 600 12.5px/1 var(--mono); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.vtry button:hover { border-color: var(--ink); background: #fff; }
.vres { min-height: 1.5em; margin-top: 14px; font-size: 14px; font-weight: 750; color: var(--ink-3); }
.vres.is-ok { color: var(--ok); }
.vres.is-no { color: var(--acc-d); }
.vcar { margin-top: 10px; padding: 16px; border-radius: 12px; background: var(--bg); transition: opacity .35s, filter .35s; }
.vcar.is-dim { opacity: .38; filter: grayscale(1); }
.vcar.is-hit { animation: vHit .7s var(--ease); }
@keyframes vHit { from { box-shadow: 0 0 0 0 rgba(255, 106, 31, .55); } to { box-shadow: 0 0 0 12px rgba(255, 106, 31, 0); } }
.vcar__top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vcar__top b { display: block; font-size: 15.5px; font-weight: 850; }
.vcar__top small { display: block; margin-top: 3px; font: 500 11.5px/1.4 var(--mono); color: var(--ink-3); }
.vhist li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-top: 14px; }
.vhist li:not(:last-child)::before { content: ''; position: absolute; left: 16.5px; top: 48px; bottom: -14px; width: 1px; background: var(--line); }
.vhist__ic { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--teal); }
.vhist__ic svg { width: 17px; height: 17px; }
.vhist time { display: block; font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
.vhist b { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.vhist small { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }

/* ---------------- 04 pakkumisest arveni ---------------- */
.chain__box { padding: 12px; border-radius: var(--r-lg); background: #16191d; box-shadow: var(--sh-3); }
.chain__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.chain__steps li { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 16px; border-radius: 10px; background: #fff; transition: box-shadow .4s, transform .45s var(--ease); }
.chain__steps li > * { transition: opacity .4s; }
#chain[data-step="0"] .chain__steps li:not(:first-child) > *, #chain[data-step="1"] .chain__steps li:nth-child(n+3) > *, #chain[data-step="2"] .chain__steps li:nth-child(n+4) > * { opacity: .45; }
.chain__steps li.is-done { box-shadow: inset 0 0 0 2px var(--sig); }
.chain__steps li.is-now { transform: translateY(-4px); }
.chain__steps li:not(:last-child)::after { content: ''; position: absolute; z-index: 2; right: -15px; top: 34px; width: 18px; height: 18px; border-radius: 50%; background: var(--sig) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='%2315181c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.chain__ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); color: var(--ink); transition: background-color .3s; }
.chain__ic svg { width: 18px; height: 18px; }
.is-done .chain__ic { background: var(--sig); }
.chain__steps small { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.chain__steps b { font-size: 16px; font-weight: 850; letter-spacing: -.01em; line-height: 1.25; }
.chain__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.chain__row em { font: 600 13px/1.35 var(--mono); font-style: normal; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chain__row em.is-tick { animation: tick .5s var(--ease); }
@keyframes tick { 40% { color: var(--sig); transform: translateY(-2px); } }
.chain__st { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; font-weight: 750; color: var(--ink-3); }
.is-done .chain__st { color: var(--ok); }
.chain__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 6px 6px; }
.chain__ctl .btn[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.chain__warn { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.chain__warn:empty { display: none; }
.chain__warn svg { width: 18px; height: 18px; flex: none; color: var(--teal-hi); }
.chain__warn b { color: #fff; }
.chain .again { color: rgba(255, 255, 255, .6); }
.chain .again:hover { color: var(--teal-hi); }

/* ---------------- kohandumine ---------------- */
@media (max-width: 1180px) {
  .season__grid { grid-template-columns: minmax(0, 1fr); }
  .season__copy { max-width: 680px; }
  .chain__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain__steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 1060px) {
  .tyre__grid, .vreg__grid { grid-template-columns: minmax(0, 1fr); }
  .astage { margin: 9% 6% 15% 8%; }
}
@media (max-width: 760px) {
  .season__demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bcal { width: 100%; }
}
@media (max-width: 640px) {
  .astage { margin: 13% 2% 18% 4%; }
  .tlabel { left: -2%; top: -14%; width: 104px; padding: 15px 8px 8px; }
  .tlabel__top b { font-size: 17px; }
  .tlabel__sz, .tlabel .plate { display: none; }
  .asms { right: -1%; bottom: -16%; width: 74%; padding: 11px 12px 12px; }
  .asms__t { font-size: 12.5px; }
  .achip { display: none; }
  .intake, .rack, .vcard, .bcal { padding: 16px 14px; }
  .intake__car { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 8px 10px; }
  .intake__svg { width: 64px; }
  .tw { padding: 9px 10px 10px; }
  .tw b { font-size: 19px; }
  .intake__head { flex-wrap: wrap; }
  .rack__row ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot__t { height: 34px; }
  .chain__steps { grid-template-columns: minmax(0, 1fr); }
  .chain__steps li::after { display: none; }
  .chain__steps li:not(:last-child)::after { display: block; right: auto; left: 50%; top: auto; bottom: -15px; margin-left: -9px; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bcal__live i { animation: none; }
}

/* lisad: broneeringu järel teised ajad taanduvad, „Alusta uuesti“ nupud */
.bslots.is-done button:not(.is-mine):not([disabled]) { opacity: .45; pointer-events: none; }
.intake__ctl .again { width: 100%; margin-top: 0; text-align: left; }
.chain__ctl .again { margin: 0; }
.vreg__photo { margin-top: 30px; aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.vreg__photo img { object-position: 50% 66%; }
html.theme-autivo .mlegal { background: var(--white); }

/* ---------------- 07 kontakt: inimesed (autivo.fi) ja Soome haru ---------------- */
.apeople__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.apeople__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html.theme-autivo .person { border-radius: var(--r-lg); }
html.theme-autivo .person__photo { aspect-ratio: 4 / 4.3; background: #e2e5e9; }
html.theme-autivo .person__photo img { filter: grayscale(1) contrast(1.04); }
html.theme-autivo .person__role { color: var(--teal); }
html.theme-autivo .person__mail, html.theme-autivo .person__copy { border-radius: 8px; }
html.theme-autivo .person__mail:hover { background: var(--mint); color: var(--teal-d); }
/* vaba koht: üleskutse liituda meeskonnaga. Foto asemel katkendjoonega siluett, nupp on tekstiga igas laiuses */
.ajoin__photo { background: repeating-linear-gradient(118deg, rgba(21, 24, 28, .035) 0 2px, transparent 2px 16px), #e2e5e9; }
.ajoin__sil { position: absolute; left: 5%; bottom: 0; width: 90%; height: auto; fill: rgba(255, 255, 255, .55); stroke: #8b949e; stroke-width: 2; stroke-dasharray: 7 7; stroke-linecap: round; }
.ajoin__plus { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--sig); color: var(--ink); }
.ajoin__plus svg { width: 20px; height: 20px; }
.ajoin__tag { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 6px; background: rgba(255, 255, 255, .92); font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
html.theme-autivo .ajoin__go { flex: 1; width: auto; justify-content: center; padding: 0 12px; background: var(--sig); color: var(--ink); font-weight: 850; }
html.theme-autivo .ajoin__go:hover { background: #ff7d3b; color: var(--ink); }
html.theme-autivo .ajoin__go span { display: block; }
html.theme-autivo .ajoin__go svg { color: var(--ink); }
.acontact { display: flex; flex-direction: column; gap: 10px; }
.acontact__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.acontact__row:hover { border-color: var(--ink); box-shadow: var(--sh-1); transform: translateY(-2px); }
.acontact__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--mint); color: var(--teal); }
.acontact__ic svg { width: 19px; height: 19px; }
.acontact__row small { display: block; white-space: normal; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.acontact__row b { display: block; margin-top: 2px; font-size: 16px; font-weight: 850; letter-spacing: -.01em; }
.afi { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 20px 20px 18px; border-radius: var(--r-lg); background: #15181c; color: #fff; }
.afi::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(62deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 22px); -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.afi > * { position: relative; }
.afi__top { display: flex; align-items: center; gap: 10px; }
.afi__top small { font: 500 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
/* Soome lipp: valge, sinine rist */
.afi__flag { width: 24px; height: 16px; flex: none; border-radius: 2px; background: linear-gradient(90deg, transparent 28%, #003580 28% 47%, transparent 47%), linear-gradient(transparent 36%, #003580 36% 64%, transparent 64%), #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.afi b { display: block; margin-top: 12px; font-size: 18px; font-weight: 850; letter-spacing: -.015em; line-height: 1.25; }
.afi p { margin: 8px 0 18px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .7); }
.afi__go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 14px; border-radius: 8px; background: var(--sig); color: var(--ink); font-size: 14.5px; font-weight: 850; text-decoration: none; transition: background-color .2s; }
.afi__go:hover { background: #ff7d3b; }
.afi__go .i-up { width: 15px; height: 15px; }
/* Carson.ee: sama meeskonna varasem töö. Tume riba on logo tausta värvi, oranž joon ja kiirusetriibud seovad selle Autivoga */
.acarson { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px clamp(18px, 3vw, 40px); margin-top: 20px; padding: 18px clamp(18px, 2.6vw, 30px) 18px clamp(22px, 2.8vw, 34px); overflow: hidden; border-radius: var(--r-lg); background: #0b0e1b; color: #fff; text-decoration: none; box-shadow: var(--sh-2); transition: transform .35s var(--ease), box-shadow .35s; }
.acarson::before { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(112deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 15px); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); transition: opacity .35s; }
.acarson::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sig); transform-origin: 50% 100%; transition: width .35s var(--ease); }
.acarson:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.acarson:hover::after { width: 9px; }
.acarson__logo { display: block; padding-right: clamp(18px, 3vw, 40px); border-right: 1px solid rgba(255, 255, 255, .14); }
.acarson__logo img { display: block; width: clamp(132px, 15vw, 190px); height: auto; }
.acarson__txt { min-width: 0; }
.acarson__txt small { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-hi); }
.acarson__txt b { display: block; margin-top: 7px; font-size: clamp(18px, 1.75vw, 23px); font-weight: 860; letter-spacing: -.025em; line-height: 1.2; }
.acarson__txt > span { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.acarson__go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; font-size: 14.5px; font-weight: 850; white-space: nowrap; transition: background-color .25s, border-color .25s, color .25s; }
.acarson__go .i-up { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.acarson:hover .acarson__go { border-color: var(--sig); background: var(--sig); color: var(--ink); }
.acarson:hover .acarson__go .i-up { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .acarson { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 18px 24px; }
  .acarson__logo { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .acarson__logo img { width: 150px; }
  .acarson__go { justify-self: start; margin-top: 4px; }
}
@media (max-width: 1180px) {
  .apeople__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .apeople__list { grid-template-columns: minmax(0, 1fr); }
  html.theme-autivo .person__photo { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 640px) {
  /* kontaktid on telefonis ühes veerus: e-post mahub nupule tekstina */
  .apeople .person__mail { flex: 1; width: auto; justify-content: flex-start; padding: 0 12px; }
  .apeople .person__mail span { display: block; }
}
