/* Technoservis: strona WWW. Kolory i font zgodnie z docs/marka.md */
@font-face {
  font-family: "Exo 2"; src: url("exo2.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #171715;            /* czerń logo */
  --graphite: #323232;
  --yellow: #FDD509;
  --paper: oklch(0.985 0.004 95);
  --paper-2: oklch(0.952 0.009 95);
  --line: oklch(0.2 0.005 95 / 0.14);
  --muted: oklch(0.42 0.01 95);
  --on-dark: oklch(0.965 0.006 95);
  --on-dark-muted: oklch(0.74 0.01 95);
  --dark-2: oklch(0.245 0.005 95);
  --open: oklch(0.62 0.16 150);

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);       /* expo out */
  --ease-q: cubic-bezier(0.25, 1, 0.5, 1);     /* quart out */
  --chamfer: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 450 1.0625rem/1.55 "Exo 2", system-ui, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }

.ico { width: 1.35em; height: 1.35em; flex: none; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {   /* żółty trójkąt z sygnetu */
  content: ""; width: 0.7rem; height: 0.62rem; background: var(--yellow); flex: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- nagłówek ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(14px, 2.4vw, 28px) var(--gutter);
}
.brand { display: block; }
.brand .logo { width: clamp(150px, 19vw, 236px); height: auto; overflow: visible; }
.top-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.top-tel {
  display: none; align-items: center; gap: 0.5rem; text-decoration: none;
  font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums;
}
.top-tel:hover span { text-decoration: underline; text-underline-offset: 4px; }
.lang {
  font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-decoration: none;
  min-width: 44px; min-height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 0.85rem;
  transition: background-color 0.25s, color 0.25s;
}
.lang:hover { background: var(--ink); color: var(--yellow); }
@media (min-width: 640px) { .top-tel { display: inline-flex; } }

/* ---------- przyciski ---------- */
.btn {
  --c: var(--chamfer);
  display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none;
  padding: 0.95rem 1.5rem 0.95rem 1.2rem; min-height: 64px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
                     calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: background-color 0.3s var(--ease-q), transform 0.5s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px var(--yellow); }
.btn-txt { display: flex; flex-direction: column; line-height: 1.15; }
.btn small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.btn b { font-weight: 800; font-size: 1.125rem; }
.btn-call { background: var(--yellow); color: var(--ink); }
.btn-call b { font-size: 1.625rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.btn-call:hover { background: oklch(0.9 0.185 96); }
.btn-call:hover .ico { animation: ring 0.7s var(--ease-q); }
.btn-route, .btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-route small { color: var(--on-dark-muted); opacity: 1; }
.btn-route .ico, .btn-dark .ico { color: var(--yellow); }
.btn-route:hover, .btn-dark:hover { background: var(--graphite); }
.btn-route:focus-visible, .btn-dark:focus-visible { box-shadow: inset 0 0 0 3px var(--yellow); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost b { font-variant-numeric: tabular-nums; }
.btn-ghost:hover { background: oklch(1 0 0); }
.btn-sm { min-height: 56px; }
.btn-sm b { font-size: 1.0625rem; }

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); }
  45% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: grid; align-items: start;
  padding: calc(clamp(72px, 9vw, 120px) + 4vh) var(--gutter) 46vw;
}
.hero-car {
  position: absolute; z-index: -1; bottom: 0; right: -38vw; width: 150vw;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
}
.hero-car img { width: 100%; height: auto; }
.hero-in { max-width: 46rem; display: grid; gap: clamp(1.1rem, 2.2vw, 1.6rem); }
h1 {
  font-size: clamp(2.9rem, 1.5rem + 5.4vw, 6.25rem); line-height: 0.9; letter-spacing: -0.03em;
  margin-top: 0.15em;
}
h1 .line { display: block; padding-bottom: 0.06em; white-space: nowrap; }
h1 .line .wipe { display: inline-block; }
h1 .line:last-child .wipe {
  padding: 0 0.08em; margin-left: -0.08em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%);
}
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); max-width: 30rem; color: var(--graphite); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.ctas .btn { flex: 1 1 15rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.6rem; justify-self: start;
  font-weight: 600; font-size: 0.9375rem; padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  background: oklch(1 0 0 / 0.72); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.status[hidden] { display: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.is-open .dot { background: var(--open); box-shadow: 0 0 0 0 oklch(0.62 0.16 150 / 0.5); animation: pulse 2.4s var(--ease-q) infinite; }
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 9px oklch(0.62 0.16 150 / 0); } }

@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 8vh; padding-top: 120px; }
  .hero-car {
    right: -9vw; width: 78vw; bottom: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to bottom, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to bottom, transparent 0%, #000 30%);
            mask-composite: intersect;
  }
  .ctas .btn { flex: 0 1 auto; }
}

/* ---------- cennik ---------- */
.prices {
  background: var(--paper-2);
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
}
.prices > * { width: 100%; max-width: var(--max); margin-inline: auto; }
.prices-head { display: grid; gap: 1rem; }
.prices-head p:last-child { max-width: 34rem; color: var(--muted); font-size: 1.125rem; }
h2 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem); line-height: 0.98; }

.prices-body { display: grid; gap: 2rem; align-items: center; }
/* Koło z warstw: opona (skaluje się), w środku felga z tarczą (obracają się) i zacisk (stoi) */
.wheel-stage { display: grid; justify-items: center; }
.wheel { position: relative; width: min(100%, 470px); aspect-ratio: 1; }
.wheel::before {   /* cień pod kołem, nieruchomy */
  content: ""; position: absolute; inset: 8% 6% -4%; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.2 0.005 95 / 0.32), transparent);
  filter: blur(14px); transform: translateY(6%);
}
.wheel img, .w-rim { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-tire, .w-rim, .w-spin { transform-origin: 50% 50%; transition: transform 0.9s var(--ease); will-change: transform; }
.w-spin { transition-duration: 1.2s; }
.w-rim::before {   /* cień, który felga rzuca na oponę przy rancie */
  content: ""; position: absolute; inset: -3.5%; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 88%, oklch(0 0 0 / 0.55) 93%, transparent);
}
.tire-read { display: flex; align-items: baseline; gap: 1.25rem; margin: 0; }
.tire-size { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; }
.tire-price { font-size: 1.25rem; font-weight: 600; color: var(--muted); }
.tire-price b { display: inline-block; font-size: 2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.picker { display: grid; gap: 0.9rem; justify-items: start; width: 100%; max-width: 34rem; }
.slider-label {
  margin-top: 0.75rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* Suwak: tor wypełnia się czernią, uchwyt to żółta nakrętka, która obraca się z rozmiarem */
.slider {
  --p: 33%; --rot: 0deg;
  -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--p), oklch(0.2 0.005 95 / 0.14) var(--p));
}
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: oklch(0.2 0.005 95 / 0.14); }
.slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 36px; height: 32px; margin-top: -13px; border: 0;
  background: radial-gradient(circle, var(--ink) 0 5.5px, transparent 6px), var(--yellow);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transform: rotate(var(--rot)); transition: transform 0.6s var(--ease);
}
.slider::-moz-range-thumb {
  width: 36px; height: 32px; border: 0; border-radius: 0;
  background: radial-gradient(circle, var(--ink) 0 5.5px, transparent 6px), var(--yellow);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transform: rotate(var(--rot)); transition: transform 0.6s var(--ease);
}
.slider:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.ticks {
  display: flex; justify-content: space-between; width: 100%; padding-inline: 18px; margin-top: -0.6rem;
  font-size: 0.6875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; transition: color 0.3s; }
.ticks span.is-on { color: var(--ink); font-weight: 800; }
.hint { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.75rem; }
.hint b { color: var(--ink); }

@media (min-width: 900px) {
  .prices-body { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .ticks { font-size: 0.75rem; }
}

/* ---------- ciemna sekcja: usługi + mechanika ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h2 { line-height: 1.02; }
.svc {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
  display: grid; gap: 2.25rem;
}
.svc-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.svc-list li {
  display: grid; grid-template-columns: 3.25rem 1fr; align-items: baseline;
  padding: 1.05rem 0; border-top: 1px solid oklch(1 0 0 / 0.13);
}
.svc-list li:last-child { border-bottom: 1px solid oklch(1 0 0 / 0.13); }
.svc-n { color: var(--yellow); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.svc-t { font-size: clamp(1.45rem, 1rem + 2.1vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1.7fr; gap: 4rem; align-items: start; }
  .svc h2 { position: sticky; top: 3rem; }
}

.mech { background: var(--dark-2); padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); display: grid; gap: 2rem; }
.mech > * { max-width: var(--max); }
.mech-mark { width: clamp(120px, 26vw, 300px); }
.sygnet-big { width: 100%; height: auto; overflow: visible; }
.mech-txt { display: grid; gap: 1.25rem; max-width: 36rem; }
.mech-txt p { color: var(--on-dark-muted); font-size: 1.1875rem; line-height: 1.6; }
.link-call {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--yellow); font-weight: 700; font-size: 1.1875rem; text-decoration: none;
  padding-block: 0.6rem; border-bottom: 2px solid oklch(0.88 0.18 95 / 0.35);
  transition: border-color 0.3s;
}
.link-call .ico { transition: transform 0.5s var(--ease); }
.link-call:hover { border-color: var(--yellow); }
.link-call:hover .ico { transform: translateX(5px); }
@media (min-width: 760px) {
  .mech { grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(3rem, 8vw, 8rem); justify-content: center; }
}

/* ---------- dojazd ---------- */
.visit {
  background: var(--yellow); color: var(--ink);
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  display: grid; gap: 3rem;
}
.visit > * { width: 100%; }
.visit-where { display: grid; gap: 1.25rem; align-content: start; }
.addr { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.025em; margin-top: 0.5rem; }
.visit-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.visit-hours h3 { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.hours th, .hours td { padding: 0.8rem 0.75rem; border-bottom: 1.5px solid oklch(0.2 0.005 95 / 0.18); }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-today { background: var(--ink); color: var(--yellow); }
.hours tr.is-today th { color: var(--on-dark); }
.today-tag {
  margin-left: 0.6rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); vertical-align: 0.15em;
}
@media (min-width: 900px) {
  .visit { grid-template-columns: 1.2fr 1fr; column-gap: clamp(3rem, 7vw, 7rem); max-width: none; }
  .visit > * { max-width: calc(var(--max) / 2); }
  .visit-where { justify-self: end; }
  .visit-hours { margin-top: 0.6rem; }
}

/* ---------- stopka ---------- */
.foot {
  background: var(--ink); color: var(--on-dark-muted);
  padding: 3.5rem var(--gutter) calc(6.5rem + env(safe-area-inset-bottom));
  display: grid; gap: 1.25rem; font-size: 0.9375rem;
}
.foot-logo .logo { width: 190px; height: auto; }
.foot a { color: var(--on-dark); font-weight: 600; }
.foot-c { font-size: 0.8125rem; }
@media (min-width: 900px) {
  .foot { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; padding-bottom: 3.5rem; }
}

/* ---------- dok: Zadzwoń / Dojazd ---------- */
.dock {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px;
  filter: drop-shadow(0 10px 24px oklch(0.2 0.005 95 / 0.28));
  clip-path: inset(-40px -40px 100% -40px);   /* zwinięty jak brama garażowa */
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
}
.dock.is-shown { clip-path: inset(-40px); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.dock a {
  --c: 8px;
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 56px;
  font-weight: 800; font-size: 1.0625rem; text-decoration: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
                     calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.dock-call { background: var(--yellow); color: var(--ink); }
.dock-route { background: var(--ink); color: var(--on-dark); }
.dock-route .ico { color: var(--yellow); }
.dock a:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 5px var(--yellow); }
@media (min-width: 900px) {
  .dock { left: auto; right: 24px; bottom: 24px; grid-template-columns: auto auto; }
  .dock a { padding-inline: 1.4rem; }
}

/* ---------- ruch ---------- */
/* Odsłanianie „przecieraniem szyby”: ukośna maska przesuwa się po elemencie, a rozmycie znika. */
.js .wipe {
  -webkit-mask-image: linear-gradient(105deg, #000 40%, transparent 60%);
          mask-image: linear-gradient(105deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  filter: blur(7px);
  transition: -webkit-mask-position 1.25s var(--ease), mask-position 1.25s var(--ease), filter 1s var(--ease-q);
  transition-delay: var(--d, 0s);
}
.js .wipe.is-in { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0); }
.js .wipe.is-done { -webkit-mask-image: none; mask-image: none; filter: none; }

.js .hero-car img { filter: blur(22px); transform: scale(1.06); opacity: 0;
  transition: filter 2.2s var(--ease-q), transform 2.6s var(--ease), opacity 1s var(--ease-q); }
.js .hero-car.is-in img { filter: blur(0); transform: none; opacity: 1; }

.price-tick { animation: tick 0.55s var(--ease); }
@keyframes tick { from { filter: blur(6px); opacity: 0; transform: translateY(0.25em); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .wipe, .js .hero-car img { -webkit-mask-image: none; mask-image: none; filter: none; transform: none; opacity: 1; transition: none; }
  .w-tire, .w-rim, .w-spin, .dock, .slider::-webkit-slider-thumb { transition: none; }
  .price-tick, .btn-call:hover .ico, .is-open .dot { animation: none; }
}
