/* MJ Auto Service näidisleht. Kaasaegne alus nagu Quick Printil: Inter, valge taust, üks aktsent (logo punane ratas),
   ümarad kaardid, pehmed varjud, pill-nupud. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paber: #FFFFFF;
  --pind: #F6F6F4;
  --pind2: #ECECE8;
  --tint: #141A22;
  --teras: #5A5F69;
  --joon: #DCDCD6;
  --joon2: #ECECE7;
  --aktsent: #B5382D;
  --aktsent2: #96291F;
  --aktsent-tekst: #9E2F25;
  --aktsent-hele: #FBEEEC;
  --f: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --r: 12px;
  --r2: 20px;
  --vari: 0 1px 2px rgb(20 26 34 / .04), 0 12px 32px rgb(20 26 34 / .07);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paber); color: var(--tint); font: 400 17px/1.6 var(--f); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgb(181 56 45 / .45); outline-offset: 2px; }
.sek--tume :focus-visible, .kate :focus-visible { outline-color: #FFB4AA; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 5.4vw, 78px); line-height: 1.03; letter-spacing: -.04em; }
h1 em { font-style: normal; color: #FF9C90; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hyppa { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tint); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.hyppa:focus { top: 12px; }

.demo { background: var(--tint); color: #CFD1D6; font-size: 13.5px; line-height: 1.4; }
.demo__in { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; padding-block: 8px; }
.demo b { color: #fff; font-weight: 600; }
.demo a { color: #fff; font-weight: 600; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 24px; background: var(--aktsent); color: #fff; border: 1px solid transparent; border-radius: 999px; font: 600 16px/1.15 var(--f); letter-spacing: -.01em; text-decoration: none; text-align: center; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--aktsent2); box-shadow: 0 8px 20px rgb(181 56 45 / .26); }
.btn--joon { background: #fff; color: var(--tint); border-color: var(--joon); }
.btn--joon:hover { background: #fff; border-color: var(--tint); box-shadow: none; }
.btn--tumejoon { background: transparent; color: #fff; border-color: rgb(255 255 255 / .4); }
.btn--tumejoon:hover { background: #fff; color: var(--tint); box-shadow: none; }
.btn--vaike { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.nupud { display: flex; flex-wrap: wrap; gap: 10px; }
.nupud--tais .btn { flex: 1 1 100%; }

.pais { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--joon2); }
.pais__in { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.logo img { width: 76px; height: auto; }
.logo b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.menyy { display: flex; gap: clamp(12px, 1.8vw, 28px); margin-inline-start: auto; }
.menyy a { font-weight: 500; font-size: 15px; color: var(--teras); text-decoration: none; white-space: nowrap; padding: 6px 0; transition: color .15s; }
.menyy a:hover { color: var(--tint); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--pind); border: 0; border-radius: 50%; flex: none; margin-inline-start: auto; }

.kate { padding-block: clamp(12px, 1.6vw, 20px) 0; }
.kate .wrap { width: min(1440px, 100%); padding-inline: clamp(12px, 1.6vw, 20px); }
.kate__kaart { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: min(80vh, 720px); padding: clamp(28px, 5vw, 72px); border-radius: 28px; overflow: hidden; background: #17181C; color: #fff; }
.kate__pilt { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.kate__kaart::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgb(12 14 18 / .92) 0%, rgb(12 14 18 / .76) 46%, rgb(12 14 18 / .16) 84%); }
.kate__tekst { max-width: 800px; }
.rida { font: 500 14px/1.4 var(--f); margin-bottom: 18px; color: #FFD0CA; }
.kate__lead { max-width: 560px; margin: 22px 0 30px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: #E8E9ED; }
.kate__arvud { display: flex; flex-wrap: wrap; gap: 10px; }
.kate__arvud > div { display: flex; flex-direction: column; flex: 0 1 240px; min-width: 170px; padding: 14px 20px; background: rgb(255 255 255 / .1); backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / .16); border-radius: 16px; }
.kate__arvud dd { font: 650 26px/1.05 var(--f); letter-spacing: -.03em; }
.kate__arvud dt { order: 2; margin-top: 4px; font-size: 14px; line-height: 1.3; color: #D5D7DE; }

.sek { padding-block: clamp(64px, 8vw, 112px); }
.sek--tint { background: var(--pind); }
.sek--tume { background: var(--tint); color: #E8E9EC; color-scheme: dark; }
.pk2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: end; margin-bottom: 30px; }
.pk2 p { color: var(--teras); max-width: 560px; }
.lead { color: var(--teras); margin: 14px 0 24px; max-width: 520px; }

/* teenused */
.teen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.teen button { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px; background: var(--pind); border: 1px solid transparent; border-radius: var(--r2); text-align: left; transition: border-color .15s, transform .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.teen button:hover { background: #fff; border-color: var(--aktsent); transform: translateY(-2px); }
.teen i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; background: #fff; border-radius: 50%; color: var(--aktsent); box-shadow: 0 1px 2px rgb(20 26 34 / .08); }
.teen i .ico { width: 21px; height: 21px; }
.teen span { display: block; min-width: 0; }
.teen b { display: block; font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -.012em; }
.teen small { display: block; margin-top: 5px; font-size: 15px; font-weight: 500; color: var(--aktsent-tekst); }

/* hinnang */
.hn, .pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hn { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.koht { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.koht button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--joon); border-radius: 16px; text-align: left; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.koht button:hover { border-color: var(--tint); }
.koht .ico { width: 24px; height: 24px; margin-bottom: 8px; color: var(--teras); }
.koht b { font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.koht span { font-size: 14.5px; line-height: 1.35; color: var(--teras); }
.koht button[aria-pressed="true"] { background: var(--aktsent-hele); border-color: var(--aktsent); box-shadow: inset 0 0 0 1px var(--aktsent); }
.koht button[aria-pressed="true"] .ico { color: var(--aktsent); }

.tood { display: grid; gap: 8px; margin-bottom: 18px; }
.too { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 66px; padding: 10px 14px 10px 16px; background: #fff; border: 1px solid var(--joon2); border-radius: 14px; transition: border-color .15s; }
.too.on { border-color: var(--aktsent); }
.too label { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; min-height: 44px; cursor: pointer; }
.too input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--aktsent); }
.too b { display: block; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.too small { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.35; color: var(--teras); }
.samm { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--pind); border-radius: 999px; }
.samm button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 1px 2px rgb(20 26 34 / .12); -webkit-tap-highlight-color: transparent; }
.samm output { min-width: 56px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.too label.km { flex: none; gap: 10px; min-height: 0; font-size: 15px; font-weight: 500; }
.km input { width: 92px; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid var(--joon); border-radius: var(--r); }
.km input:focus { border-color: var(--tint); outline: none; }

.hn__silt { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.kiibid { display: flex; flex-wrap: wrap; gap: 8px; }
.kiip { min-height: 42px; padding: 8px 16px; background: #fff; border: 1px solid var(--joon); border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1.25; text-align: left; transition: background .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.kiip:hover { border-color: var(--tint); }
.kiip[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: #fff; }

.tu { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(18px, 2.4vw, 30px); background: #fff; border-radius: var(--r2); box-shadow: var(--vari); }
.tu__silt { font-size: 15px; font-weight: 500; color: var(--teras); }
.tu__nr { margin-top: 2px; font: 650 clamp(38px, 4.6vw, 54px)/1.05 var(--f); letter-spacing: -.04em; overflow-wrap: anywhere; }
.tu__nr small { font-size: .48em; font-weight: 600; letter-spacing: -.02em; }
.arv { margin-top: 14px; border-top: 1px solid var(--joon2); }
.arv:empty { display: none; }
.arv li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--joon2); font-size: 15.5px; line-height: 1.35; }
.arv b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.arv i { flex: none; font-style: normal; color: var(--teras); }
.tulem__markus { margin-top: 14px; padding: 12px 16px; font-size: 15.5px; line-height: 1.45; background: var(--aktsent-hele); border-radius: var(--r); }
.tulem__markus:empty { display: none; }
.tulem__markus span { display: block; }
.tulem__markus span + span { margin-top: 6px; }
.tu__all { font-size: 14.5px; line-height: 1.45; color: var(--teras); }

/* vorm ja kiri */
.vormi3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.vali { margin-bottom: 16px; min-width: 0; }
.vali label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.vali input, .vali select, .vali textarea { width: 100%; min-height: 50px; padding: 10px 14px; background: #fff; border: 1px solid var(--joon); border-radius: var(--r); }
.vali textarea { display: block; min-height: 90px; resize: vertical; }
.vali input:focus, .vali select:focus, .vali textarea:focus { border-color: var(--tint); outline: none; }
.vali--kp { max-width: 260px; }
.pr__kiri { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(18px, 2.4vw, 30px); background: #fff; border: 1px solid var(--joon2); border-radius: var(--r2); box-shadow: var(--vari); }
.pr__kellele { font-size: 15px; color: var(--teras); overflow-wrap: anywhere; }
.pr__kellele b { color: var(--tint); font-weight: 600; }
.pr__kiri pre { margin: 0; padding: 16px 18px; min-height: 220px; background: var(--pind); border-radius: var(--r); font: 400 15.5px/1.55 var(--f); white-space: pre-wrap; overflow-wrap: anywhere; }

/* hinnakiri */
.hk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.hk article { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(20px, 2.6vw, 32px); background: #fff; border-radius: var(--r2); box-shadow: var(--vari); }
.hk dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--joon2); }
.hk dl > div:last-child { border-bottom: 0; }
.hk dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hk .btn { align-self: flex-start; }

/* töökoda */
.tk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tk__foto { border-radius: var(--r2); overflow: hidden; background: var(--pind); }
.tk__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%; }
.tk__tekst p { margin-top: 16px; color: var(--teras); }
.tk__tekst h3 { margin-top: 26px; font-size: 17px; }
.partnerid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.partnerid a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--joon); border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color .15s; }
.partnerid a:hover { border-color: var(--tint); }

/* kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kontakt__aadress { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 22px; color: #C5C8CF; }
.kontakt__aadress .ico { margin-top: 5px; }
.rekv { display: grid; gap: 2px; padding: 8px 22px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r2); }
.rekv div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
.rekv div:last-child { border-bottom: 0; }
.rekv dt { color: #A9ADB6; font-size: 15px; }
.rekv dd { font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.jalus { background: var(--tint); color: #A9ADB6; border-top: 1px solid #2B2E36; padding-block: 22px; font-size: 14.5px; }
.jalus__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 26px; }
.mob { display: none; }

@media (max-width: 1040px) {
  .teen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hn, .pr, .kontakt, .pk2, .tk, .hk { grid-template-columns: minmax(0, 1fr); }
  .tu, .pr__kiri { position: static; }
  .menyy { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px clamp(16px, 3vw, 40px) 16px; background: #fff; border-bottom: 1px solid var(--joon2); box-shadow: var(--vari); }
  .menyy.lahti { display: flex; }
  .menyy a { padding: 12px 0; font-size: 17px; color: var(--tint); }
  .burger { display: flex; }
  .pais__cta { display: none; }
  .tk__foto img { aspect-ratio: auto; }
}
@media (max-width: 680px) {
  .kate__kaart { min-height: 0; border-radius: 22px; }
  .kate__kaart::before { background: linear-gradient(180deg, rgb(12 14 18 / .9) 0%, rgb(12 14 18 / .72) 60%, rgb(12 14 18 / .55) 100%); }
  .nupud .btn { flex: 1 1 100%; }
  .kate__arvud > div { flex: 1 1 calc(50% - 5px); min-width: 0; padding: 12px 14px; }
  .kate__arvud dd { font-size: 21px; }
  .teen { grid-template-columns: minmax(0, 1fr); }
  .teen button { padding: 16px; }
  .vormi3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vali--kp { max-width: none; }
  .mob { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; min-height: 52px; align-items: center; justify-content: center; background: var(--aktsent); color: #fff; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 26px rgb(20 26 34 / .28); transition: transform .2s; }
  .mob.peidus { transform: translateY(90px); }
  .jalus { padding-bottom: 84px; }
}
@media (max-width: 400px) {
  .vormi3 { grid-template-columns: minmax(0, 1fr); }
  .logo img { width: 62px; }
  .logo b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
