/*
 * WULTIX - style strony
 *
 * Wygląd przeniesiony 1:1 z poprzedniego index.html. Nowe rzeczy:
 *  - animacje przy przewijaniu ([data-reveal]),
 *  - podświetlanie bieżącej sekcji w menu,
 *  - przycisk "Zadzwoń" przyklejony do dołu ekranu na telefonach,
 *  - płynne skalowanie nagłówków (clamp) zamiast skoków na breakpointach,
 *  - efekty :hover tylko na urządzeniach z myszką (na dotyku "przyklejały się").
 */

:root {
  --paper: #f4f5f3;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5c5c5c;
  --line: #dddddd;
  --red: #cf2f2f;
  --red-dark: #961f1f;
  --amber: #efb322;
  --green: #2f8f46;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-width: 320px;
  -webkit-tap-highlight-color: transparent;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------------ */
/* Animacje                                                            */
/* ------------------------------------------------------------------ */

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes tireSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes tireTravel {
  from {
    right: 8%;
  }
  to {
    right: 22%;
  }
}

@keyframes trackMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 88px 0;
  }
}

@keyframes gearSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(207, 47, 47, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(207, 47, 47, 0.08);
  }
}

@keyframes statusPulseOpen {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(47, 143, 70, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(47, 143, 70, 0.1);
  }
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*
 * Pojawianie się przy przewijaniu. Używamy właściwości "translate", a nie
 * "transform" - dzięki temu nie gryzie się z uniesieniem kafelka po najechaniu
 * myszką, które siedzi na "transform".
 * Chowamy tylko przy włączonym JS (klasa .js na <html>), więc bez skryptu
 * wszystko jest widoczne od razu.
 */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0s),
    translate 0.7s var(--ease-out) var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ------------------------------------------------------------------ */
/* Nagłówek                                                            */
/* ------------------------------------------------------------------ */

.hero {
  align-items: center;
  color: #fff;
  display: flex;
  height: 58vh;
  max-height: 560px;
  min-height: 390px;
  overflow: hidden;
  position: relative;
  background: #141414;
}

/* Tło na osobnej warstwie, żeby mogło się delikatnie "dosunąć" przy wejściu */
.hero::before {
  animation: heroZoom 1.6s var(--ease-out) both;
  background-image:
    linear-gradient(90deg, rgba(14, 14, 14, 0.88), rgba(14, 14, 14, 0.48)),
    url("../img/hero-1600.webp");
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero__content {
  margin: 0 auto;
  max-width: 1160px;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  width: 100%;
  z-index: 2;
}

/* Elementy nagłówka wchodzą po kolei, a nie jednym blokiem */
.hero__content > * {
  animation: heroIn 0.8s var(--ease-out) both;
}

.hero__content > :nth-child(1) { animation-delay: 0.05s; }
.hero__content > :nth-child(2) { animation-delay: 0.15s; }
.hero__content > :nth-child(3) { animation-delay: 0.25s; }
.hero__content > :nth-child(4) { animation-delay: 0.35s; }
.hero__content > :nth-child(5) { animation-delay: 0.45s; }

.hero__logo {
  height: auto;
  margin-bottom: 1.25rem;
  width: 190px;
}

.hero__eyebrow {
  color: var(--amber);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3rem);
  line-height: 1.12;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.hero__lead {
  color: #f2f2f2;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  margin-top: 1rem;
  max-width: 660px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ------------------------------------------------------------------ */
/* Przyciski                                                           */
/* ------------------------------------------------------------------ */

.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:focus-visible {
  transform: translateY(-2px);
}

/* Na dotyku: krótkie "wciśnięcie" zamiast efektu najechania */
.button:active {
  transform: translateY(0) scale(0.98);
}

.button--primary {
  background: var(--red);
  color: #fff;
}

.button--primary:focus-visible {
  background: var(--red-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button--outline {
  background: #fff;
  border-color: var(--red);
  color: var(--red-dark);
}

.button--outline:focus-visible {
  background: var(--red);
  color: #fff;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button--primary:hover {
    background: var(--red-dark);
    box-shadow: 0 8px 18px rgba(150, 31, 31, 0.3);
  }

  .button--secondary:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .button--outline:hover {
    background: var(--red);
    color: #fff;
  }
}

/* ------------------------------------------------------------------ */
/* Animacja warsztatu w nagłówku                                       */
/* ------------------------------------------------------------------ */

.workshop-motion {
  bottom: 0;
  height: 104px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.workshop-motion::before {
  animation: trackMove 2.8s linear infinite;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.48) 0 28px,
      transparent 28px 52px
    );
  bottom: 20px;
  content: "";
  height: 8px;
  left: -80px;
  opacity: 0.58;
  position: absolute;
  right: -80px;
}

.tire {
  animation: tireSpin 1.6s linear infinite, tireTravel 5.5s ease-in-out infinite alternate;
  aspect-ratio: 1;
  border: 12px solid #111;
  border-radius: 50%;
  bottom: 34px;
  box-shadow: inset 0 0 0 7px #e7e7e7, inset 0 0 0 17px #1d1d1d;
  position: absolute;
  right: 8%;
  width: 72px;
}

.tire::before {
  border: 4px solid var(--red);
  border-radius: 50%;
  content: "";
  inset: 15px;
  position: absolute;
}

.tire::after {
  background: #111;
  border-radius: 50%;
  box-shadow:
    0 -24px 0 -9px #111,
    0 24px 0 -9px #111,
    24px 0 0 -9px #111,
    -24px 0 0 -9px #111;
  content: "";
  inset: 24px;
  position: absolute;
}

.gear {
  animation: gearSpin 7s linear infinite;
  aspect-ratio: 1;
  border: 7px solid var(--amber);
  border-radius: 50%;
  bottom: 34px;
  left: 9%;
  position: absolute;
  width: 58px;
}

.gear::before {
  border: 8px dashed var(--amber);
  border-radius: 50%;
  content: "";
  inset: -18px;
  position: absolute;
}

.gear::after {
  background: rgba(14, 14, 14, 0.88);
  border-radius: 50%;
  content: "";
  inset: 14px;
  position: absolute;
}

.gear--small {
  animation-duration: 4.5s;
  animation-direction: reverse;
  bottom: 58px;
  left: 17%;
  width: 38px;
}

/* ------------------------------------------------------------------ */
/* Menu                                                                */
/* ------------------------------------------------------------------ */

.site-nav {
  background: #151515;
  color: #fff;
  position: sticky;
  top: 0;
  transition: box-shadow 0.25s ease;
  z-index: 10;
}

/* Cień pojawia się dopiero, gdy menu przyklei się do góry ekranu */
.site-nav.is-stuck {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.site-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0.85rem 1rem;
}

.site-nav a {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  position: relative;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Pasek pod linkiem bieżącej sekcji */
.site-nav a::after {
  background: var(--amber);
  border-radius: 2px;
  bottom: 0.15rem;
  content: "";
  height: 3px;
  left: 0.8rem;
  position: absolute;
  right: 0.8rem;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.site-nav a.is-active {
  color: var(--amber);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  background: var(--amber);
  color: #111;
}

@media (hover: hover) {
  .site-nav a:hover {
    background: var(--amber);
    color: #111;
  }

  .site-nav a:hover::after {
    transform: scaleX(0);
  }
}

/* ------------------------------------------------------------------ */
/* Sekcje                                                              */
/* ------------------------------------------------------------------ */

.container {
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--light {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section__header {
  margin: 0 auto 2rem;
  max-width: 740px;
  text-align: center;
}

.section__kicker {
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 1.6rem + 0.8vw, 2.1rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.section__intro {
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ------------------------------------------------------------------ */
/* Usługi                                                              */
/* ------------------------------------------------------------------ */

.services {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Kafelek ma własne przejścia (uniesienie), więc łączymy je z pojawianiem się */
.js .service[data-reveal] {
  transition:
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0s),
    translate 0.7s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* Czerwony pasek wsuwający się u góry kafelka po najechaniu */
.service::before {
  background: var(--red);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  z-index: 1;
}

.service:focus-within {
  border-color: rgba(207, 47, 47, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service__image {
  aspect-ratio: 4 / 3;
  background: #e9e9e7;
  overflow: hidden;
}

.service img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.service:focus-within img {
  transform: scale(1.05) rotate(0.4deg);
}

@media (hover: hover) {
  .service:hover {
    border-color: rgba(207, 47, 47, 0.55);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
  }

  .service:hover::before {
    transform: scaleX(1);
  }

  .service:hover img {
    transform: scale(1.05) rotate(0.4deg);
  }
}

.service__body {
  padding: 1.2rem;
}

.service h3 {
  color: var(--red-dark);
  font-size: 1.22rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.service p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Godziny i kontakt                                                   */
/* ------------------------------------------------------------------ */

.info-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Prawa kolumna wjeżdża odrobinę później niż lewa */
.info-grid > [data-reveal]:nth-child(2) {
  --reveal-delay: 0.12s;
}

.opening-hours {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin-top: 1.3rem;
}

.opening-hours li,
.contact-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.opening-hours span,
.contact-row span {
  color: var(--muted);
}

.opening-hours strong,
.contact-row a,
.contact-row strong {
  font-weight: 700;
  text-align: right;
}

/* Wiersz z dzisiejszym dniem */
.opening-hours li.is-today span {
  color: var(--ink);
  font-weight: 700;
}

.today-badge {
  animation: badgeIn 0.4s var(--ease-out) 0.6s both;
  background: var(--amber);
  border-radius: 999px;
  color: #111;
  display: inline-block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.4rem;
  padding: 0.28rem 0.5rem;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.contact-row a {
  color: var(--red-dark);
  text-decoration: none;
}

.contact-row a:hover,
.contact-row a:focus-visible {
  text-decoration: underline;
}

.counter {
  animation: statusPulse 2.6s ease-in-out infinite;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 7px solid var(--red);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-top: 1.4rem;
  min-height: 74px;
  padding: 1rem 1.1rem;
  transition: border-color 0.4s ease;
}

.counter.status-open {
  animation-name: statusPulseOpen;
  border-left-color: var(--green);
}

.counter.status-closed {
  border-left-color: var(--red);
}

.counter__label {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.contact-list {
  margin-top: 1.3rem;
}

/* ------------------------------------------------------------------ */
/* Mapa i stopka                                                       */
/* ------------------------------------------------------------------ */

.map {
  margin-top: 2rem;
}

.map h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.map iframe {
  background: #e9e9e7;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  height: 390px;
  width: 100%;
}

footer {
  background: #151515;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 0.4rem 1.2rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.footer__links a,
.footer__link-button {
  background: none;
  border: 0;
  color: #bdbdbd;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__links a:hover,
.footer__link-button:hover,
.footer__links a:focus-visible,
.footer__link-button:focus-visible {
  color: var(--amber);
}

/* Przycisk "Zadzwoń" na telefonach - domyślnie ukryty */
.call-bar {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Baner zgody na cookies                                              */
/* ------------------------------------------------------------------ */

/* Wyjeżdża od dołu; transform trzyma też wyśrodkowanie (-50%) */
@keyframes consentIn {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.consent {
  align-items: center;
  animation: consentIn 0.45s var(--ease-out) both;
  background: #151515;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  color: #f2f2f2;
  display: flex;
  gap: 1rem 1.5rem;
  left: 50%;
  max-width: 860px;
  padding: 1rem 1.2rem;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 30;
}

.consent[hidden] {
  display: none;
}

.consent__text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.consent__text strong {
  color: #fff;
}

.consent__text a {
  color: var(--amber);
}

.consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.6rem;
}

.consent .button {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-width: 120px;
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

@media (hover: hover) {
  .button--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Póki baner jest na ekranie, przycisk "Zadzwoń" go nie zasłania */
body.consent-open .call-bar {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ------------------------------------------------------------------ */
/* Podstrony (polityka prywatności)                                    */
/* ------------------------------------------------------------------ */

.page-bar {
  background: #151515;
  color: #fff;
}

.page-bar__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0.6rem 1.5rem;
}

.page-bar__back {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-bar__back:hover,
.page-bar__back:focus-visible {
  background: var(--amber);
  color: #111;
}

.legal {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.legal p {
  color: #333;
}

.legal a {
  color: var(--red-dark);
}

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(14, 14, 14, 0.88), rgba(14, 14, 14, 0.48)),
      url("../img/hero-960.webp");
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Kolumny są jedna pod drugą - nie ma na co czekać */
  .info-grid > [data-reveal]:nth-child(2) {
    --reveal-delay: 0s;
  }

  .gear {
    opacity: 0.65;
  }
}

/* ------------------------------------------------------------------ */
/* Telefon                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 640px) {
  :root {
    --nav-height: 56px;
  }

  .hero {
    height: auto;
    min-height: 430px;
  }

  .hero__content {
    padding: 2rem 1rem 5.5rem;
  }

  .hero__logo {
    width: 150px;
  }

  .button {
    width: 100%;
  }

  /* Cztery linki mieszczą się w jednym rzędzie nawet na 320 px;
     przewijanie w poziomie zostaje jako zabezpieczenie */
  .site-nav__inner {
    flex-wrap: nowrap;
    gap: 0.25rem;
    justify-content: space-between;
    overflow-x: auto;
    padding: 0.6rem 0.75rem;
    scrollbar-width: none;
  }

  .site-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem;
  }

  .site-nav a::after {
    left: 0.6rem;
    right: 0.6rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .opening-hours li,
  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .opening-hours strong,
  .contact-row a,
  .contact-row strong {
    text-align: left;
  }

  .counter {
    font-size: 1rem;
  }

  .map iframe {
    height: 320px;
  }

  .gear {
    display: none;
  }

  .tire {
    width: 58px;
  }

  .call-bar {
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    display: flex;
    left: 0.75rem;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0.75rem;
    transform: translateY(calc(100% + 1.5rem));
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease, background 0.2s ease;
    width: auto;
    z-index: 20;
  }

  .call-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Miejsce na przyklejony przycisk, żeby nie zasłaniał stopki */
  footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .consent {
    align-items: stretch;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    flex-direction: column;
    width: calc(100% - 1.5rem);
  }

  .consent__actions .button {
    flex: 1;
    min-width: 0;
  }

  .page-bar__inner {
    padding: 0.5rem 1rem;
  }
}

/* Najwęższe telefony (320-360 px) - cztery linki muszą się zmieścić */
@media (max-width: 360px) {
  .site-nav__inner {
    padding: 0.6rem 0.4rem;
  }

  .site-nav a {
    padding: 0.45rem 0.5rem;
  }

  .site-nav a::after {
    left: 0.5rem;
    right: 0.5rem;
  }
}

/* ------------------------------------------------------------------ */
/* Ograniczony ruch (ustawienie systemu)                               */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
