/* Autoserwis Tomasz Rutkowski - strona warsztatu.
   Papier i atrament, jeden akcent w kolorze znaku. Bez zdjęć, bo ich nie ma;
   cała hierarchia stoi na typografii. */

:root {
  --paper:        #f7f2e9;
  --paper-2:      #efe8db;
  --ink:          #16130f;
  --ink-muted:    #5c5349;   /* 6,75:1 na papierze */
  --accent:       #17548f;   /* 6,97:1 na papierze - marka pogłębiona do tekstu */
  --accent-mark:  #2a78d6;   /* kolor znaku, tylko jako grafika */
  --rule:         #ded4c2;
  --rule-strong:  #b9ab93;

  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body:    'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 3rem);

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --measure: 62ch;
}

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

html, body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { max-width: var(--measure); }

a { color: var(--accent); }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- nagłówek ------------------------------------------------------------ */

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.mast__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mast__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.mast__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mast__name strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.15;
}

.mast__where {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  min-height: 48px;
  align-content: center;
  flex-wrap: wrap;
}
.btn:hover { background: var(--accent); }
.btn:focus-visible { outline-color: var(--ink); }

.btn__label {
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.btn__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  white-space: nowrap;
}

/* --- sekcje -------------------------------------------------------------- */

main {
  padding: 0 var(--gutter) 3rem;
}

section {
  padding-block: clamp(2rem, 6vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: 0; }

.open h1 {
  font-size: var(--step-3);
  margin: 0 0 1rem;
}

.lede {
  font-size: var(--step-1);
  margin-top: 0;
}

h2 {
  font-size: var(--step-2);
  margin: 0 0 0.9rem;
}

/* --- objawy -------------------------------------------------------------- */

.symptoms__lede { margin-top: 0; }

.symptoms__list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: var(--measure);
}

.symptoms__list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--rule-strong);
}

.symptoms__list b {
  font-family: var(--font-display);
  font-weight: 600;
}

.jobs__list {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: var(--measure);
}

.jobs__list li {
  font-family: var(--font-display);
  font-size: var(--step-1);
  padding-left: 1.1rem;
  border-left: 3px solid var(--rule-strong);
}

/* --- telefon ------------------------------------------------------------- */

.call-prep__list {
  max-width: var(--measure);
  margin: 1.2rem 0;
  padding-left: 1.3rem;
}

.call-prep__list li {
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
}

.call-prep__list li::marker {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}

/* --- dojazd -------------------------------------------------------------- */

.where__addr {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  margin: 0 0 0.8rem;
}

.where__hours {
  margin: 0 0 1.1rem;
}

.where__hours b {
  font-family: var(--font-display);
  font-weight: 600;
}

.link { color: var(--accent); }

/* Mapa wczytywana na życzenie */
.where__map small {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
  max-width: 42ch;
}

.mapa__load {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  min-height: 44px;
  line-height: 44px;
}

.mapa__load + .mapa__load {
  margin-left: 1.5rem;
}

.mapa {
  margin-top: 1.2rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  max-width: 40rem;
}

.mapa[hidden] { display: none; }

.mapa iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- zakończenie --------------------------------------------------------- */

.close {
  background: var(--paper-2);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.close__line {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0 0 1.4rem;
  max-width: 40ch;
}

.close__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  overflow-wrap: anywhere;
  min-width: 0;
}
.close__num:hover { color: var(--accent); }

.close__where {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
}

.close__sign {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 1.6rem 0 0;
}

/* --- stopka -------------------------------------------------------------- */

.colophon {
  padding: 1.4rem var(--gutter) 6rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.colophon p { max-width: none; margin: 0; }

/* --- pasek z numerem ----------------------------------------------------- */

.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  background: var(--ink);
  border-top: 3px solid var(--accent);
}

.bar[hidden] { display: none; }

.bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 0.5rem 1rem;
  color: var(--paper);
  text-decoration: none;
}

.bar__link b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  white-space: nowrap;
}

.bar__link:focus-visible { outline-color: var(--paper); }

/* --- szersze ekrany ------------------------------------------------------ */

@media (min-width: 56rem) {
  /* Jedna kolumna, wyśrodkowana. Szersza siatka zostawiałaby prawą połowę ekranu
     pustą - a to wygląda jak strona, której ktoś nie dokończył, nie jak wybór. */
  .mast, main, .colophon {
    max-width: 54rem;
    margin-inline: auto;
  }

  .close {
    margin-inline: calc(var(--gutter) * -1);
  }

  .bar { display: none; }
}

@media print {
  .bar, .skip, .btn { display: none; }
  body { background: #fff; }
}
