/* ==========================================================================
   WashTag — studio detailingu, Grudziądz
   Czarno-biały system, nagłówki Montserrat 900, nawigacja Catamaran.
   ========================================================================== */

/* Czcionki z serwera strony (licencja SIL OFL) */
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/catamaran-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/montserrat-900-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; }
@font-face { font-family: 'Catamaran'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/catamaran-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: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/montserrat-900-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; }

:root {
  --black: #000;
  --ink: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1f1f1f;
  --line: #2a2a2a;
  --line-light: #e4e4e4;
  --white: #fff;
  --paper: #f4f4f4;
  --muted: #8a8a8a;
  --muted-dark: #5c5c5c;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-ui: "Catamaran", system-ui, sans-serif;

  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius-pill: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--black); }

/* ==========================================================================
   Header / nawigacja
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--black);
  color: var(--white);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  justify-self: start;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  text-decoration: none;
  color: var(--white);
  line-height: 1;
}
/* Logo w stylu tablicy: skrypt Pacifico + podpis bezszeryfowy */
.logo__mark {
  font-family: "Pacifico", cursive;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: .005em;
}
.logo__sub {
  margin-top: 9px;
  font-family: var(--font-ui);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: .85;
}

.nav__list {
  display: flex; align-items: center; gap: 44px;
  list-style: none; margin: 0; padding: 0;
}

.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 16px; font-weight: 300;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--white); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  padding: 10px 0;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--ease);
}

.nav__item--has-sub { position: relative; }

.submenu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  min-width: 260px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--black);
  border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.submenu::before { /* mostek, żeby hover nie gasł w szczelinie */
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
}
.submenu a {
  display: block; padding: 11px 24px;
  font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em;
  color: var(--white); text-decoration: none;
  transition: background .15s;
}
.submenu a span { display: inline-block; transition: transform .2s var(--ease); }
.submenu a:hover { background: var(--ink-3); }
.submenu a:hover span { transform: translateX(6px); }

@media (hover: hover) and (min-width: 1025px) {
  .nav__item--has-sub:hover .submenu,
  .nav__item--has-sub:focus-within .submenu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .nav__item--has-sub:hover .caret { transform: translateY(1px) rotate(225deg); }
}
.nav__item--has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--has-sub.is-open .caret { transform: translateY(1px) rotate(225deg); }

.header-social {
  justify-self: end;
  display: flex; align-items: center; gap: 18px;
}
.header-social a {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  color: var(--white); opacity: .85;
  transition: opacity .2s;
}
.header-social a:hover { opacity: 1; }
.header-social svg { width: 17px; height: 17px; fill: currentColor; }

.burger {
  display: none;
  justify-self: center;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: var(--white);
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute; left: 10px; right: 10px; height: 3px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 50%; margin-top: -1.5px; }
.burger span::before, .burger span::after { content: ""; left: 0; right: 0; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); background: var(--white); }
.burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); background: var(--white); }

/* Mobile / tablet: burger w środku jak na wzorze, menu rozwija się na całą szerokość */
@media (max-width: 1024px) {
  .site-header__inner { grid-template-columns: 1fr auto auto; gap: 6px; }
  .burger { display: block; justify-self: end; margin-right: -10px; order: 3; }
  /* Ikony społecznościowe na pasku, tuż przed menu */
  .header-social { display: flex; order: 2; gap: 0; }
  .header-social a { width: 36px; height: 44px; opacity: .9; }
  .header-social svg { width: 18px; height: 18px; }
  .hero__media--placeholder::after { display: none; }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    background: var(--black);
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 20px; }
  .nav__link {
    width: 100%; justify-content: space-between;
    padding: 16px var(--gutter);
    font-size: 17px; font-weight: 500;
    border-bottom: 1px solid var(--ink-3);
  }
  .nav__link::after { display: none; }

  .submenu {
    position: static; transform: none; min-width: 0;
    border: 0; padding: 0; background: var(--ink-2);
    display: none; opacity: 1; visibility: visible;
  }
  .submenu::before { display: none; }
  .nav__item--has-sub.is-open .submenu { display: block; transform: none; }
  .submenu a { padding: 14px calc(var(--gutter) + 16px); border-bottom: 1px solid var(--ink-3); }

  .nav__social {
    display: flex; gap: 12px; padding: 20px var(--gutter) 0;
  }
  .nav__social a {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%; color: var(--white);
  }
  .nav__social svg { width: 17px; height: 17px; fill: currentColor; }
}
@media (min-width: 1025px) { .nav__social { display: none; } }

/* ==========================================================================
   Hero — pierwszy widok
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: grid; place-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

/* Placeholder zdjęcia / wideo w tle — podmień na <img> lub <video> z klasą .hero__media */
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  background:
    radial-gradient(ellipse 70% 55% at 50% 60%, #3a3a3a 0%, #1a1a1a 45%, #070707 100%);
}
.hero__media--placeholder::after {
  content: "ZDJĘCIE / WIDEO W TLE";
  position: absolute; right: var(--gutter); bottom: 24px;
  font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.35);
}
.hero::after { /* przyciemnienie dla czytelności tekstu */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.55) 100%);
}

.hero__content {
  width: 100%;
  text-align: center;
  padding-block: 48px 64px;
}

.hero__title {
  margin: 0 auto 40px;
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}

.hero__eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 14px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  max-width: 1100px; margin-inline: auto;
}

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: 17px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none;
  background: var(--black); color: var(--white);
  border: 1px solid transparent;
  transition: background .2s, color .2s, transform .2s var(--ease), border-color .2s;
}
.pill:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.pill--light { background: var(--white); color: var(--black); }
.pill--light:hover { background: var(--black); color: var(--white); border-color: var(--white); }
.pill--outline { background: transparent; color: var(--black); border-color: var(--black); }
.pill--outline:hover { background: var(--black); color: var(--white); }

@media (max-width: 760px) {
  .pill-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pill { min-height: 54px; padding: 0 16px; font-size: 15px; }
  .hero__title { margin-bottom: 32px; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--white); border-radius: 2px;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Sekcje
   ========================================================================== */

.section { padding-block: clamp(64px, 10vw, 120px); }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--white); color: var(--black); }
.section--paper { background: var(--paper); color: var(--black); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }

.kicker {
  display: block; margin-bottom: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
}
.h2 .thin { font-weight: 300; }

.lead {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted-dark);
}
.section--dark .lead { color: var(--muted); }
.section-head--center .lead { margin-inline: auto; }

/* --- Kafle oferty --- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(360px, 42vw, 520px);
  padding: clamp(22px, 3vw, 36px);
  color: var(--white); text-decoration: none;
  background: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 900px) { .tile { min-height: 300px; } }

.tile__media {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, #2b2b2b 0%, #121212 70%);
  transition: transform .8s var(--ease);
}
.tile__media span {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.3);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85) 100%);
}

.tile__num {
  font-family: var(--font-display); font-weight: 900; font-size: 15px;
  letter-spacing: .15em; color: rgba(255,255,255,.55);
  margin-bottom: auto;
}
.tile__title {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1;
  text-transform: uppercase;
}
.tile__text { margin: 0 0 22px; color: rgba(255,255,255,.72); max-width: 34ch; }

.tile__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0 0 22px; padding: 0;
}
.tile__tags li {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-pill);
}

.tile__more {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
}
.arrow {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.tile:hover .tile__media { transform: scale(1.05); }
.tile:hover .arrow { background: var(--white); color: var(--black); transform: translateX(4px); }

/* --- O nas --- */

.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.about p { color: var(--muted-dark); margin: 0 0 16px; max-width: 58ch; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 36px;
  border-top: 1px solid var(--line-light); padding-top: 28px;
}
.stat__value {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); line-height: 1;
}
.stat__label { display: block; margin-top: 8px; font-size: 14px; color: var(--muted-dark); line-height: 1.35; }

/* Placeholder zdjęcia */
.ph {
  position: relative;
  display: grid; place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, #e9e9e9 0 14px, #e2e2e2 14px 28px);
  color: #7a7a7a;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-align: center; padding: 16px;
}
.ph--dark {
  background: repeating-linear-gradient(135deg, #1b1b1b 0 14px, #161616 14px 28px);
  color: #6b6b6b;
}
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph svg { width: 34px; height: 34px; margin: 0 auto 10px; stroke: currentColor; fill: none; stroke-width: 1.5; display: block; }

/* --- Kontakt --- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 32px 0 36px; padding: 0; }
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list dt, .contact-list .label {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-top: 3px;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-list .big { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.3; }

@media (max-width: 480px) {
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .pill { min-width: 200px; }
@media (max-width: 480px) { .btn-row .pill { flex: 1 1 100%; } }

.map { min-height: 360px; height: 100%; aspect-ratio: auto; }

/* ==========================================================================
   Podstrony usług
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 88px);
  background: radial-gradient(ellipse 80% 90% at 70% 40%, #2a2a2a 0%, #0c0c0c 60%, #000 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 6vw, 72px); line-height: 1.05;
  text-transform: uppercase;
  max-width: 16ch;
}
.page-hero .lead { color: rgba(255,255,255,.7); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 22px; padding: 0;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.prose p { color: var(--muted-dark); margin: 0 0 16px; max-width: 58ch; }
.section--dark .prose p { color: var(--muted); }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li {
  position: relative; padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line-light);
  font-weight: 600;
}
.section--dark .checklist li { border-color: var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 14px; height: 7px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* Galeria realizacji */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}
.gallery .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; min-height: 320px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .ph:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

/* Usługi detailingu — wyróżnione karty */
.services {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.service { grid-column: span 2; }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: auto; }
  .service:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
}

.service {
  display: flex; flex-direction: column;
  background: var(--ink-2); color: var(--white);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .3s var(--ease);
}
.service:hover { border-color: #555; transform: translateY(-3px); }
.service .ph { aspect-ratio: 16 / 10; }
.service__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.service__num {
  font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .18em; color: var(--muted);
}
.service__title {
  margin: 8px 0 10px;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.15; text-transform: uppercase;
}
.service__text { margin: 0; color: var(--muted); font-size: 16px; }

/* Nawigacja między usługami */
.next-services {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
}
@media (max-width: 640px) { .next-services { grid-template-columns: 1fr; } }
.next-services a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(28px, 4vw, 48px) var(--gutter);
  background: var(--black); color: var(--white); text-decoration: none;
  transition: background .25s;
}
.next-services a:hover { background: var(--ink-3); }
.next-services .kicker { margin-bottom: 6px; }
.next-services strong {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1;
}
.next-services a:hover .arrow { background: var(--white); color: var(--black); }

/* CTA */
.cta {
  text-align: center;
}
.cta .h2 { max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.cta .lead { margin-inline: auto; text-wrap: balance; }
.cta .btn-row { justify-content: center; margin-top: 32px; }

/* ==========================================================================
   Stopka
   ========================================================================== */

.site-footer {
  background: var(--black); color: rgba(255,255,255,.6);
  border-top: 1px solid var(--ink-3);
  padding-block: 48px 32px;
  font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 {
  margin: 0 0 14px; color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.site-footer .logo { margin-bottom: 16px; }
.site-footer .logo__mark { font-size: 34px; }
.site-footer .logo__sub { font-size: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--ink-3);
  font-size: 13px;
}

/* ==========================================================================
   Animacje wejścia
   ========================================================================== */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

body.nav-open { overflow: hidden; }

.pill--ghost { background: transparent; color: var(--white); border-color: #444; }
.pill--ghost:hover { border-color: var(--white); }

/* ==========================================================================
   Opinie — karuzela
   ========================================================================== */

.reviews-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.rating-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 18px 0 0; color: var(--muted-dark); font-size: 15px;
}
.rating-summary strong { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--black); }
.g-logo { width: 22px; height: 22px; fill: var(--black); }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--black); }

.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--black); color: var(--white);
  border: 1px solid var(--black); cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.carousel-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.carousel-btn:hover:not(:disabled) { background: var(--white); color: var(--black); }
.carousel-btn:disabled { opacity: .25; cursor: default; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  list-style: none; margin: 0; padding: 0 0 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) { .carousel__track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; } }
@media (max-width: 640px)  { .carousel__track { grid-auto-columns: 86%; gap: 12px; } }

.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line-light);
}
.review__text { margin: 0; flex: 1; font-size: 16.5px; line-height: 1.6; color: #222; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author strong { display: block; font-weight: 700; line-height: 1.2; }
.review__author small { color: var(--muted); font-size: 13px; }
.review__avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--black); color: var(--white);
  font-weight: 700;
}

.reviews-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
}
.reviews-link .arrow { border-color: var(--black); }
.reviews-link:hover .arrow { background: var(--black); color: var(--white); }

@media (max-width: 640px) {
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .carousel-btn { width: 48px; height: 48px; }
}

.map { position: relative; min-height: 360px; height: 100%; background: var(--ink-2); }
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) contrast(1.05);
}

.review__text.is-clamped {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
  overflow: hidden;
}
.review__more {
  align-self: flex-start;
  margin-top: -8px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.review__text { flex: 0 1 auto; }
.review__author { margin-top: auto; }

/* ==========================================================================
   Cookies — baner zgody
   ========================================================================== */

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 980px; margin-inline: auto;
  background: var(--black); color: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transform: translateY(0); opacity: 1;
  transition: transform .35s var(--ease), opacity .35s;
}
.cookie[hidden] { display: none; }
.cookie.is-leaving { transform: translateY(20px); opacity: 0; }
.cookie__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px;
}
.cookie__text { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.8); }
.cookie__text a { color: var(--white); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie .pill { min-height: 48px; padding: 0 26px; font-size: 15px; }
@media (max-width: 760px) {
  .cookie { left: 0; right: 0; bottom: 0; border-width: 1px 0 0; }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .cookie__actions .pill { flex: 1; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a, .cookie-settings {
  color: inherit; text-decoration: none; font: inherit;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.footer-links a:hover, .cookie-settings:hover { color: var(--white); }

/* Mapa przed zgodą */
.map__consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, #1b1b1b 0 14px, #161616 14px 28px);
}
.map__consent p { margin: 0; color: var(--muted); max-width: 30ch; }
.map__consent a { color: var(--white); font-size: 14px; text-underline-offset: 3px; }
.map.is-loaded .map__consent { display: none; }

/* Polityka prywatności */
.legal { max-width: 820px; }
.legal h2 {
  margin: 44px 0 14px;
  font-family: var(--font-ui); font-weight: 800; font-size: clamp(20px, 2.2vw, 24px);
  text-transform: uppercase; line-height: 1.2;
}
.legal p, .legal li { color: #333; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 10px; }
.legal a { text-underline-offset: 3px; }
.legal__updated { font-size: 14px; color: var(--muted) !important; }
.contact-list a.big { overflow-wrap: anywhere; }

.stat--link { color: inherit; text-decoration: none; }
.stat--link .stat__value { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.stat--link:hover .stat__value { text-decoration-color: currentColor; }

/* O nas — pełna szerokość, bez zdjęcia */
.about-wide {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 6vw, 96px); align-items: start;
}
.about-wide .lead { margin-top: 0; color: var(--black); }
.about-wide p:not(.lead) { color: var(--muted-dark); margin: 16px 0 0; max-width: 58ch; }
@media (max-width: 900px) { .about-wide { grid-template-columns: 1fr; gap: 20px; } }

.stats--wide {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid #d6d6d6;
  gap: clamp(16px, 3vw, 40px);
}
.stats--wide .stat__value { font-size: clamp(30px, 5vw, 64px); }
.stats--wide .stat__label { font-size: clamp(13px, 1.3vw, 16px); }
@media (max-width: 560px) {
  .stats--wide { grid-template-columns: 1fr; }
  .stats--wide > * { display: flex; align-items: baseline; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #d6d6d6; }
  .stats--wide > *:last-child { border-bottom: 0; padding-bottom: 0; }
  .stats--wide .stat__label { margin-top: 0; }
}

img.tile__media { width: 100%; height: 100%; object-fit: cover; }
.tile--photo::after {
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.88) 100%);
}

/* Zdjęcia realizacji w galerii */
.gallery__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ink-2); }
.gallery > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; min-height: 320px; }
@media (max-width: 760px) {
  .gallery > :first-child { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

.split__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper); }

/* Realizacje — delikatne powiększenie po najechaniu */
.gallery__item { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.gallery__item .gallery__img { aspect-ratio: auto; height: 100%; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .gallery__item:hover .gallery__img { transform: scale(1.06); }
}
@media (max-width: 760px) {
  .gallery > .gallery__item:first-child { aspect-ratio: 4 / 3; }
}

.tile--photo .tile__tags li { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.split__img--tall { aspect-ratio: 4 / 5; object-position: 50% 62%; }

/* Galeria: 1 duże + 2 obok + 2 na całą szerokość pod spodem */
@media (min-width: 761px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery > * { grid-column: span 2; }
  .gallery > :first-child { grid-column: span 4; grid-row: span 2; }
  .gallery > :nth-child(4), .gallery > :nth-child(5) { grid-column: span 3; aspect-ratio: 16 / 10; }
}

/* Zdjęcia w kartach usług detailingu */
.service__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.service__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
@media (hover: hover) { .service:hover .service__media img { transform: scale(1.06); } }

/* Podpis realizacji (marka i model) — pojawia się po najechaniu */
.gallery__item { position: relative; }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.8) 100%);
  color: var(--white);
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
}
@media (hover: hover) {
  .gallery__caption { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .gallery__item:hover .gallery__caption { opacity: 1; transform: none; }
}
@media (max-width: 760px) { .gallery__caption { font-size: 12px; padding: 28px 10px 8px; } }
.split__img--wide { aspect-ratio: 16 / 9; }

/* Główne zdjęcie realizacji z podpisem po najechaniu */
.split__media { position: relative; margin: 0; overflow: hidden; }
.split__media .split__img { transition: transform .6s var(--ease); }
.split__media .gallery__caption { padding: 56px 20px 16px; line-height: 1.35; }
@media (hover: hover) {
  .split__media:hover .split__img { transform: scale(1.04); }
  .split__media:hover .gallery__caption { opacity: 1; transform: none; }
}
.split__media .gallery__caption strong { display: block; font-weight: 700; }
.split__media .gallery__caption span { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; letter-spacing: .02em; text-transform: none; opacity: .85; }

/* Stopka: logo Washtag + Luminus */
.footer-brands { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; margin-bottom: 16px; }
.footer-brands .logo { margin-bottom: 0; }
.partner {
  display: flex; align-items: center; gap: 12px;
  padding-left: 24px; border-left: 1px solid var(--ink-3);
  color: rgba(255,255,255,.6); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35;
  transition: color .2s;
}
.partner img { width: 44px; height: auto; filter: invert(1); opacity: .9; transition: opacity .2s; }
.partner:hover { color: var(--white); }
.partner:hover img { opacity: 1; }
@media (max-width: 760px) { .partner { padding-left: 0; border-left: 0; } }
.stat__value[data-count] { display: inline-block; font-variant-numeric: tabular-nums; }

/* Kontakt: telefon + komunikatory */
.contact-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 520px;
}
.contact-actions__main { grid-column: 1 / -1; }
.contact-actions .pill { gap: 10px; min-width: 0; padding: 0 18px; }
.contact-actions .pill svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 340px) { .contact-actions { grid-template-columns: 1fr; } }

/* Tło pierwszego widoku — zdjęcie */
.hero__media--photo { object-position: 45% 55%; }
.hero:has(.hero__media--photo)::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.6) 100%);
}
@media (max-width: 760px) { .hero__media--photo { object-position: 50% 50%; } }
picture { display: contents; }

/* Logo graficzne #Washtag */
.logo__img { display: block; height: 34px; width: auto; }
.site-footer .logo__img { height: 40px; }
@media (max-width: 760px) { .logo__img { height: 30px; } }
.logo__img + .logo__sub, picture + .logo__sub { margin-top: 6px; }

@media (max-width: 360px) {
  .header-social a { width: 30px; }
  .header-social svg { width: 16px; height: 16px; }
  .logo__sub { font-size: 9.5px; }
}

/* ==========================================================================
   Galeria (lightbox)
   ========================================================================== */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; align-items: center;
  background: #000;
  opacity: 0; transition: opacity .25s;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage {
  grid-column: 2; grid-row: 1; margin: 0; height: 100%;
  display: grid; place-items: center; padding: 64px 0 8px; min-width: 0;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain;
  opacity: 0; transform: scale(.98); transition: opacity .25s, transform .3s var(--ease);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-ready { opacity: 1; transform: none; }
.lightbox__btn {
  display: grid; place-items: center; width: 52px; height: 52px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); cursor: pointer; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.lightbox__prev { grid-column: 1; grid-row: 1; margin: 0 16px; }
.lightbox__next { grid-column: 3; grid-row: 1; margin: 0 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__bar {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.lightbox__count { color: rgba(255,255,255,.55); white-space: nowrap; }
@media (max-width: 760px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__stage { grid-column: 1; padding: 60px 8px 8px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: calc(56px + env(safe-area-inset-bottom)); width: 46px; height: 46px; margin: 0; }
  .lightbox__prev { left: 16px; }
  .lightbox__next { right: 16px; }
  .lightbox__img { max-height: calc(100dvh - 200px); }
  .lightbox__bar { font-size: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox__img { transition: none; } }
