/* ==========================================================================
   Auto-naprawa Grzegorz Walaszek
   Krzywda, ul. Nowa 9
   ========================================================================== */

:root {
  /* kolory */
  --ink:        #16181B;  /* ciemne tło sekcji */
  --ink-deep:   #0F1113;  /* nagłówki na jasnym */
  --ink-line:   #2C3238;  /* obramowanie na ciemnym */
  --body:       #1F2328;  /* tekst podstawowy */
  --muted:      #5A646D;  /* tekst pomocniczy na jasnym */
  --muted-dark: #A6AFB7;  /* tekst pomocniczy na ciemnym */
  --line:       #CDD3D8;  /* obramowanie kart */
  --red:        #D42A20;  /* akcent */
  --red-deep:   #B4211A;  /* linki, akcent na jasnym */
  --red-dark:   #8F1A15;  /* hover linków */
  --red-light:  #EA8177;  /* akcent na ciemnym */
  --paper:      #F5F3F0;  /* tło strony */
  --paper-alt:  #EDE9E3;  /* tło sekcji kontakt */
  --white:      #fff;

  /* typografia */
  --display: Oswald, "Arial Narrow", system-ui, sans-serif;
  --numeric: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --text:    Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* wymiary */
  --wrap:   1320px;
  --gutter: 24px;
  --radius: 3px;
  --header-h: 71px;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; margin: 0; padding: 0; }
dl, dd, dt { margin: 0; }
a   { color: var(--red-deep); }
a:hover { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--white); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --- elementy wspólne ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--md { height: 46px; padding: 0 20px; font-size: 15px; }

.btn--red   { background: var(--red);   color: var(--white); }
.btn--red:hover   { background: var(--red-deep); color: var(--white); }

.btn--light { background: var(--white); color: var(--ink-deep); }
.btn--light:hover { background: var(--paper-alt); color: var(--ink-deep); }

.btn--dark  { background: var(--ink);   color: var(--white); }
.btn--dark:hover  { background: #23272C; color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.eyebrow--light { color: var(--red-light); }
.eyebrow__dash {
  width: 22px;
  height: 3px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink-deep);
}
.section-title--light { color: var(--white); margin-bottom: 20px; }

.section-lead {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.65;
  max-width: 62ch;
}

.tag {
  display: inline-flex;
  background: var(--red);
  color: var(--white);
  border-radius: 2px;
  padding: 3px 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* --- nagłówek ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { height: 46px; width: auto; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--white);
}
.brand__owner {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
  color: var(--muted-dark);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav__link {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--muted-dark);
  padding-bottom: 3px;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
  border-bottom-color: var(--red);
}
.nav__cta { display: none; }

/* przycisk hamburger — widoczny tylko na wąskich ekranach */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-4px) rotate(-45deg); }

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 78% 30%, rgba(212, 42, 32, .20), transparent 46%);
  pointer-events: none;
}

.hero__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: repeating-linear-gradient(135deg, var(--red) 0 14px, var(--ink) 14px 28px);
}

.hero__inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--white);
}

.hero__lead {
  margin: 0;
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted-dark);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__art { display: flex; justify-content: center; }
.hero__art img { width: 82%; max-width: 340px; }

.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat__value {
  font-family: var(--numeric);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--white);
}
.stat__label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-dark);
}

/* --- usługi --------------------------------------------------------------- */

.services {
  padding: 96px 0;
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 17, 19, .10);
}
.service__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.15;
  color: var(--ink-deep);
}
/* dłuższe nazwy — mniejszy stopień, żeby karta nie rozpychała rzędu */
.service__name--long { font-size: clamp(18px, 1.9vw, 21px); }

/* --- o mnie --------------------------------------------------------------- */

.about {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0;
}

.about__inner {
  position: relative;
  max-width: 1140px;
}

.about__text {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted-dark);
  max-width: 62ch;
}
.about__text:last-child { margin-bottom: 0; }

/* --- kontakt -------------------------------------------------------------- */

.contact {
  padding: 96px 0;
  background: var(--paper-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 880px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.card__phone {
  font-family: var(--numeric);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--ink-deep);
  text-decoration: none;
}
.card__phone:hover { color: var(--red-deep); }
.card__phone--sm { font-size: 23px; }
.card__hint { font-size: 13px; color: var(--muted); margin-top: -12px; }
.card__mail {
  font-size: 17px;
  color: var(--red-deep);
  text-decoration: none;
  margin-top: auto;
  word-break: break-word;
}
.card__mail:hover { text-decoration: underline; }

.card__address {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 23px;
  line-height: 1.15;
  color: var(--ink-deep);
}
.card__region { margin: 0; font-size: 15px; line-height: 1.65; }
.card__coords {
  margin: 0;
  font-family: var(--numeric);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--muted);
}
.card__map { margin-top: auto; align-self: flex-start; }

/* --- stopka --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 48px 0;
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.brand--footer { align-items: center; }
.brand--footer .brand__mark { height: 56px; }
.brand--footer .brand__text { line-height: 1.3; }
.brand__name--footer { font-size: 17px; }
.brand__tagline { font-size: 15px; color: var(--muted-dark); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__phone {
  color: var(--white);
  text-decoration: none;
  font-family: var(--numeric);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
}
.footer__mail { color: var(--red-light); text-decoration: none; }
.footer__mail:hover { color: var(--white); }

/* --- pływający przycisk „Zadzwoń" (tylko mobile) -------------------------- */

.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 17, 19, .35);
}
.call-fab:hover { background: var(--red-deep); color: var(--white); }

/* pojawia się dopiero po minięciu hero, żeby nie zasłaniać przycisków */
.call-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.call-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ==========================================================================
   RWD
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner { gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 71px; }

  .header__cta { display: none; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
  }
  .nav.is-open { display: flex; }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 17px;
  }
  .nav__link:hover,
  .nav__link.is-active { border-bottom-color: var(--ink-line); }

  .nav__cta { display: inline-flex; margin-top: 16px; height: 48px; font-size: 15px; }

  .site-header { position: sticky; }
  .header-inner { position: relative; gap: 16px; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 40px;
  }
  .hero__art { order: -1; }
  .hero__art img { width: 55%; max-width: 220px; }

  .services, .about, .contact { padding: 64px 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .call-fab { display: inline-flex; }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .brand__mark { height: 38px; }

  .hero__lead, .section-lead, .about__text { font-size: 17px; }

  .btn { width: 100%; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .nav__cta { width: 100%; }
  .card__map { width: 100%; align-self: stretch; }

  .stats { gap: 24px 32px; }
  .stat__value { font-size: 30px; }

  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service { min-height: 76px; padding: 20px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 24px; }
}

/* --- druk ----------------------------------------------------------------- */

@media print {
  .site-header, .call-fab, .hero__art, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .about, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__title, .section-title--light, .about__text, .stat__value, .stat__label { color: #000 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
