/* ==========================================================================
   Ogonek — przychodnia weterynaryjna
   main.css · tokeny, baza, układ i komponenty wspólne dla wszystkich podstron
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie, bez zapytań do Google) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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;
}
/* zastępczy font na czas wczytywania Bricolage: Arial o zbliżonej szerokości — nagłówki łamią się tak samo i nie przeskakują */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 400 800;
  size-adjust: 80%;
  ascent-override: 116.25%;
  descent-override: 33.75%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "Figtree";
  src: url("../fonts/figtree-italic-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  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;
}

/* ---------- Tokeny ---------- */
:root {
  color-scheme: light;

  /* kolor: gaza, tusz i bandaż kohezyjny */
  --ink: #14151a;
  --ink-2: #4b4f57;
  --ink-3: #62656e;
  --bg: #f2f2ee;
  --bg-2: #e9e9e3;
  --surface: #ffffff;
  --line: rgba(20, 21, 26, 0.12);
  --line-2: rgba(20, 21, 26, 0.22);
  --line-strong: #14151a;

  --pink: #ff4d9d;
  --pink-ink: #c2185e;
  --lime: #c9f23d;
  --blue: #3355ff;
  --orange: #ff7a2f;
  --purple: #8b6bff;
  --sky: #7cc4ff;
  --mint: #3ddc97;
  --danger: #c62828;
  --danger-bg: #e5322d;
  --ok: #138a4a;
  --xray: #0a1430;

  /* kolory gatunków — zawsze w parze z ikoną i podpisem */
  --c-dog: var(--orange);
  --c-cat: var(--purple);
  --c-small: var(--lime);
  --c-bird: var(--sky);
  --c-reptile: var(--mint);

  --focus: var(--blue);

  /* typografia */
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-label: 0.78rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.375rem, 1.16rem + 0.75vw, 1.8rem);
  --fs-h2: clamp(2.05rem, 1.4rem + 2.2vw, 3.3rem);
  --fs-h1: clamp(2.55rem, 1.55rem + 3.4vw, 4.6rem);

  /* odstępy (siatka 8 pt) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4.5rem, 2.8rem + 6vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --container: 1320px;

  /* promienie */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* cienie */
  --sh-1: 0 1px 2px rgba(20, 21, 26, 0.06), 0 2px 10px rgba(20, 21, 26, 0.05);
  --sh-2: 0 14px 34px -14px rgba(20, 21, 26, 0.25);
  --sh-3: 0 34px 70px -28px rgba(20, 21, 26, 0.42);

  /* ruch */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-1: 160ms;
  --d-2: 280ms;
  --d-3: 520ms;
  --d-4: 900ms;

  /* warstwy */
  --z-raise: 2;
  --z-sticky: 20;
  --z-header: 40;
  --z-menu: 35;
  --z-cursor: 80;
  --z-dialog: 100;

  --header-h: 76px;

  /* tekstura bandaża kohezyjnego: drobne łapki + prążki krepy */
  --wrap-paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23fff' fill-opacity='.32'%3E%3Cg transform='translate(14 16) rotate(-18)'%3E%3Cellipse cx='0' cy='1.6' rx='3.4' ry='2.8'/%3E%3Ccircle cx='-3.7' cy='-2.6' r='1.35'/%3E%3Ccircle cx='-1.3' cy='-4.4' r='1.45'/%3E%3Ccircle cx='1.3' cy='-4.4' r='1.45'/%3E%3Ccircle cx='3.7' cy='-2.6' r='1.35'/%3E%3C/g%3E%3Cg transform='translate(42 42) rotate(24)'%3E%3Cellipse cx='0' cy='1.6' rx='3.4' ry='2.8'/%3E%3Ccircle cx='-3.7' cy='-2.6' r='1.35'/%3E%3Ccircle cx='-1.3' cy='-4.4' r='1.45'/%3E%3Ccircle cx='1.3' cy='-4.4' r='1.45'/%3E%3Ccircle cx='3.7' cy='-2.6' r='1.35'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --wrap-crepe: repeating-linear-gradient(97deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 5px);
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- Reset i baza ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
  margin: 0;
}
:where(ul[role="list"], ol[role="list"]),
.list-reset {
  list-style: none;
  padding: 0;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-dialog) + 1);
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--d-2) var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Typografia ---------- */
h1,
h2,
h3,
h4,
.t-h1,
.t-h2,
.t-h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1,
.t-h1 {
  font-size: var(--fs-h1);
  line-height: 0.98;
}
h2,
.t-h2 {
  font-size: var(--fs-h2);
  line-height: 1;
}
h3,
.t-h3 {
  font-size: var(--fs-h3);
  font-weight: 750;
  font-stretch: 84%;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}

.label {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-2);
}
.tnum {
  font-variant-numeric: tabular-nums;
}

/* zakładka w nagłówkach — kawałek bandaża kohezyjnego zamiast markera */
.wrap {
  --wrap-c: var(--pink);
  color: inherit;
  background-color: var(--wrap-c);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.1)),
    var(--wrap-paws), var(--wrap-crepe);
  background-size: 100% 100%, 56px 56px, auto;
  padding: 0 0.13em 0.02em;
  margin: 0 -0.03em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.wrap--lime {
  --wrap-c: var(--lime);
}
.wrap--sky {
  --wrap-c: var(--sky);
}
.wrap--orange {
  --wrap-c: var(--orange);
}
.wrap--purple {
  --wrap-c: var(--purple);
}

/* ---------- Układ ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--flush-top {
  padding-top: 0;
}

.dark {
  --focus: var(--lime);
  background: var(--ink);
  color: #f4f4f0;
}
.dark .lead,
.dark .muted {
  color: rgba(244, 244, 240, 0.78);
}

/* nagłówek sekcji: tytuł + krótki opis po prawej (od 900px) */
.sec-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.sec-head .lead {
  max-width: 46ch;
}
@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: var(--s-8);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: var(--s-4);
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.dark .eyebrow {
  color: rgba(244, 244, 240, 0.72);
}

/* ---------- Ikony ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}
.icon--sm {
  width: 1em;
  height: 1em;
}
.icon--lg {
  width: 1.75em;
  height: 1.75em;
}

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  --btn-hover-bg: var(--pink);
  --btn-hover-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 54px;
  padding: 0 0.5rem 0 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 650 1rem/1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-spring);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-hover-bg);
  transform: translate3d(0, 102%, 0);
  transition: transform var(--d-3) var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}
.btn:hover,
.btn:focus-visible {
  color: var(--btn-hover-fg);
  border-color: var(--btn-hover-bg);
}
.btn:active {
  transform: scale(0.965);
}
.btn__orb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  transition: background-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-spring);
}
.btn__orb .icon {
  width: 18px;
  height: 18px;
}
.btn:hover .btn__orb,
.btn:focus-visible .btn__orb {
  background: var(--ink);
  color: var(--pink);
  transform: rotate(-45deg);
}
.btn--plain {
  padding: 0 1.5rem;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  --btn-hover-bg: var(--ink);
  --btn-hover-fg: #fff;
  padding: 0 1.4rem;
}
.btn--ghost .icon {
  transition: transform var(--d-3) var(--ease-spring);
}
.btn--ghost:hover .icon-ring {
  animation: ring 0.9s var(--ease-out);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
  --btn-hover-bg: var(--lime);
  --btn-hover-fg: var(--ink);
}
.btn--light .btn__orb {
  background: var(--ink);
  color: #fff;
}
.btn--light:hover .btn__orb {
  background: var(--ink);
  color: var(--lime);
}
.btn--sm {
  min-height: 44px;
  padding: 0 0.35rem 0 1.1rem;
  font-size: 0.9375rem;
  gap: 0.55em;
}
.btn--sm .btn__orb {
  width: 32px;
  height: 32px;
}
.btn--sm.btn--plain,
.btn--sm.btn--ghost {
  padding: 0 1.1rem;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  15% {
    transform: rotate(-14deg);
  }
  30% {
    transform: rotate(12deg);
  }
  45% {
    transform: rotate(-9deg);
  }
  60% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 0.15em;
  transition: background-size var(--d-3) var(--ease-out);
}
.link-arrow .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform var(--d-3) var(--ease-spring);
}
.link-arrow:hover {
  background-size: 0% 1.5px;
  background-position: 100% 100%;
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* okrągły przycisk z ikoną */
.btn-round {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  transition: background-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), border-color var(--d-2), transform var(--d-2) var(--ease-spring);
}
.btn-round:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-round:active {
  transform: scale(0.92);
}

/* ---------- Chipy, segmenty ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.45em 1em;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: 600 0.9375rem/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-spring);
}
.chip:hover {
  border-color: var(--ink);
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-pressed="true"],
.chip[aria-selected="true"],
.chip[aria-checked="true"],
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip .icon {
  width: 1.15em;
  height: 1.15em;
}
.chip__dot {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--dot, var(--ink));
  box-shadow: 0 0 0 1.5px rgba(20, 21, 26, 0.18);
}
.dark .chip {
  color: #f4f4f0;
  border-color: rgba(244, 244, 240, 0.3);
}
.dark .chip:hover {
  border-color: #f4f4f0;
}
.dark .chip[aria-selected="true"],
.dark .chip[aria-pressed="true"],
.dark .chip.is-active {
  background: #f4f4f0;
  border-color: #f4f4f0;
  color: var(--ink);
}

/* przełącznik segmentowy */
.seg {
  position: relative;
  display: inline-flex;
  padding: 5px;
  gap: 2px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  isolation: isolate;
}
.seg__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 42px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-weight: 650;
  font-size: 0.9375rem;
  transition: color var(--d-2) var(--ease-out);
}
.seg__btn[aria-selected="true"],
.seg__btn[aria-pressed="true"],
.seg__btn[aria-checked="true"] {
  color: #fff;
}
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  transition: transform var(--d-3) var(--ease-out), width var(--d-3) var(--ease-out);
}
.dark .seg {
  background: rgba(255, 255, 255, 0.08);
}
.dark .seg__btn {
  color: rgba(244, 244, 240, 0.75);
}
.dark .seg__btn[aria-selected="true"],
.dark .seg__btn[aria-pressed="true"] {
  color: var(--ink);
}
.dark .seg__thumb {
  background: var(--lime);
}

/* ---------- Formularze ---------- */
.field {
  display: grid;
  gap: 0.45rem;
}
.field__label {
  font-weight: 650;
  font-size: 0.9375rem;
}
.field__label .req {
  color: var(--pink-ink);
  margin-left: 0.15em;
}
.field__hint {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b3261e;
}
.field__error .icon {
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.12em;
}
.input,
.textarea,
.select {
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(20, 21, 26, 0.26);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: #8a8d94;
}
.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(20, 21, 26, 0.5);
}
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(51, 85, 255, 0.28);
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #b3261e;
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12);
}

/* wyszukiwarka z ikoną */
.search {
  position: relative;
}
.search .input {
  padding-left: 3.1rem;
  border-radius: var(--r-pill);
}
.search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 1.3rem;
  height: 1.3rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-2);
}

/* checkbox w formie "kafelka" */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  cursor: pointer;
}
.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(20, 21, 26, 0.4);
  border-radius: 8px;
  background: var(--surface);
  color: transparent;
  transition: background-color var(--d-2) var(--ease-out), border-color var(--d-2), color var(--d-2), transform var(--d-2) var(--ease-spring);
}
.check__box .icon {
  width: 16px;
  height: 16px;
}
.check input:checked + .check__box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
  transform: scale(1.06);
}
.check input:focus-visible + .check__box {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Nagłówek strony ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: transform var(--d-3) var(--ease-out), background-color var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  background: rgba(242, 242, 238, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden:not(:focus-within) {
  transform: translate3d(0, -105%, 0);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 100%;
}

/* logo: „ǫgonek” — ogonek pod pierwszą literą merda */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.logo__word {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.03em;
  padding-bottom: 0.08em;
}
.logo__o {
  position: relative;
  display: inline-block;
}
.logo__tail {
  position: absolute;
  left: 63%;
  top: 73%;
  width: 0.42em;
  height: 0.52em;
  overflow: visible;
  transform-origin: 18% 4%;
  color: var(--pink);
  animation: wag-soft 6s var(--ease-in-out) 1.2s infinite;
}
.logo:hover .logo__tail,
.logo:focus-visible .logo__tail {
  animation: wag 0.5s ease-in-out infinite;
}
.logo__meta {
  display: none;
  padding-left: 0.75rem;
  border-left: 1.5px solid var(--line-2);
  color: var(--ink-2);
  line-height: 1.15;
}
/* od 1360 px — przy węższych ekranach menu potrzebuje tego miejsca */
@media (min-width: 1360px) {
  .logo__meta {
    display: block;
  }
}
@keyframes wag {
  0%,
  100% {
    transform: rotate(-16deg);
  }
  50% {
    transform: rotate(22deg);
  }
}
@keyframes wag-soft {
  0%,
  82%,
  100% {
    transform: rotate(0);
  }
  85% {
    transform: rotate(-18deg);
  }
  88% {
    transform: rotate(20deg);
  }
  91% {
    transform: rotate(-14deg);
  }
  94% {
    transform: rotate(12deg);
  }
  97% {
    transform: rotate(-4deg);
  }
}

.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--d-2) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--ink);
  -webkit-mask: var(--paw-mask) center / contain no-repeat;
  mask: var(--paw-mask) center / contain no-repeat;
  opacity: 0;
  transform: translateY(6px) scale(0.4) rotate(-20deg);
  transition: opacity var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-spring);
}
.nav__link:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-12deg);
}
.nav__link[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.nav__link[aria-current="page"]::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--pink);
}

:root {
  --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16'%3E%3Cellipse cx='0' cy='2.2' rx='4.4' ry='3.6'/%3E%3Ccircle cx='-4.8' cy='-3.2' r='1.8'/%3E%3Ccircle cx='-1.7' cy='-5.6' r='1.9'/%3E%3Ccircle cx='1.7' cy='-5.6' r='1.9'/%3E%3Ccircle cx='4.8' cy='-3.2' r='1.8'/%3E%3C/svg%3E");
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: var(--s-4);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0 0.95rem 0 0.8rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--d-2) var(--ease-out), background-color var(--d-2);
}
.status:hover {
  border-color: var(--ink);
  background: #fff;
}
.status__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9a9ca3;
  flex: none;
}
.status[data-state="open"] .status__dot {
  background: #1fae5f;
}
.status[data-state="open"] .status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #1fae5f;
  animation: pulse-ring 2.2s var(--ease-out) infinite;
}
.status[data-state="soon"] .status__dot {
  background: #f2a10a;
}
.status[data-state="closed"] .status__dot,
.status[data-state="holiday"] .status__dot {
  background: #9a9ca3;
}
.status__muted {
  color: var(--ink-2);
  font-weight: 500;
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.btn-sos {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding: 0 1rem 0 0.85rem;
  border: 1.5px solid var(--danger);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-spring);
}
.btn-sos:hover {
  background: var(--danger-bg);
  border-color: var(--danger-bg);
  color: #fff;
}
.btn-sos:active {
  transform: scale(0.95);
}
.btn-sos .icon {
  width: 1.2em;
  height: 1.2em;
}
.btn-sos:hover .icon {
  animation: ring 0.8s var(--ease-out);
}

.burger {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.burger__lines {
  position: relative;
  width: 20px;
  height: 12px;
}
.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--d-3) var(--ease-out), top var(--d-3) var(--ease-out);
}
.burger__lines::before {
  top: 0;
}
.burger__lines::after {
  top: 10px;
  width: 70%;
}
.burger[aria-expanded="true"] .burger__lines::before {
  top: 5px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger__lines::after {
  top: 5px;
  width: 100%;
  transform: rotate(-45deg);
}

@media (max-width: 1180px) {
  .header-actions .status {
    display: none;
  }
}
@media (max-width: 1023px) {
  .nav,
  .header-actions .btn {
    display: none;
  }
  .burger {
    display: inline-grid;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .btn-sos__text {
    display: none;
  }
  .btn-sos {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .logo__word {
    font-size: 1.6rem;
  }
}

/* ---------- Menu mobilne ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #f4f4f0;
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0 round 0 0 40px 40px);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  --focus: var(--lime);
}
.menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}
.menu__list {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(244, 244, 240, 0.12);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color var(--d-2);
}
.menu.is-open .menu__link {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
}
.menu__link .icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-left: auto;
  opacity: 0.5;
  transition: transform var(--d-3) var(--ease-spring), opacity var(--d-2);
}
.menu__link:hover .icon,
.menu__link[aria-current="page"] .icon {
  opacity: 1;
  color: var(--lime);
  transform: rotate(-12deg) scale(1.1);
}
.menu__link[aria-current="page"] {
  color: var(--lime);
}
.menu__foot {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 2rem;
}
.menu__foot .btn {
  width: 100%;
}
.menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
  color: rgba(244, 244, 240, 0.75);
}
.menu__contact a {
  color: #f4f4f0;
  font-weight: 600;
}
.menu-open .site-header {
  background: transparent;
  box-shadow: none;
}
.menu-open .site-header .logo {
  color: #f4f4f0;
}
.menu-open .site-header .btn-sos {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.menu-open .burger {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- Pasek akcji na telefonie ---------- */
.action-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: none;
  grid-template-columns: 1fr 1.35fr;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--ink);
  box-shadow: var(--sh-3);
  transition: transform var(--d-3) var(--ease-out), opacity var(--d-2);
}
.action-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
}
.action-bar a:last-child {
  background: var(--pink);
  color: var(--ink);
}
.action-bar.is-tucked {
  transform: translateY(140%);
  opacity: 0;
}
@media (max-width: 767px) {
  .action-bar {
    display: grid;
  }
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ---------- Stopka ---------- */
.site-footer {
  position: relative;
  margin-top: 120px;
  background: var(--ink);
  color: #f4f4f0;
  --focus: var(--lime);
}
.site-footer a {
  color: inherit;
}
.footer-cat {
  position: absolute;
  right: clamp(1rem, 8vw, 9rem);
  bottom: 100%;
  width: 190px;
  margin-bottom: -6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.footer-cat svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.footer-cat__tail {
  transform-origin: 26px 92px;
  animation: cat-tail 4.5s ease-in-out infinite;
}
.footer-cat__lid {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0);
}
.footer-cat.is-blinking .footer-cat__lid {
  animation: blink 0.32s ease-in-out;
}
.footer-cat.is-slow-blink .footer-cat__lid {
  animation: slow-blink 1.6s ease-in-out;
}
.footer-cat__ear {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.footer-cat:hover .footer-cat__ear--l {
  animation: ear-twitch 0.5s ease-in-out;
}
.footer-cat__bubble {
  position: absolute;
  right: 72%;
  bottom: 74%;
  padding: 0.5rem 0.8rem;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  width: max-content;
  max-width: 220px;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: 100% 100%;
  transition: opacity var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-spring);
  pointer-events: none;
}
.footer-cat.is-talking .footer-cat__bubble {
  opacity: 1;
  transform: none;
}
@keyframes cat-tail {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(9deg);
  }
}
@keyframes blink {
  0%,
  100% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes slow-blink {
  0%,
  100% {
    transform: scaleY(0);
  }
  35%,
  65% {
    transform: scaleY(1);
  }
}
@keyframes ear-twitch {
  0%,
  100% {
    transform: rotate(0);
  }
  40% {
    transform: rotate(-14deg);
  }
  70% {
    transform: rotate(6deg);
  }
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem);
}
.footer-brand .logo {
  color: #f4f4f0;
}
.footer-brand p {
  max-width: 34ch;
  margin-top: 1rem;
  color: rgba(244, 244, 240, 0.72);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
.footer-col h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: rgba(244, 244, 240, 0.6);
}
.footer-col ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a {
  text-decoration: none;
  transition: color var(--d-2);
}
.footer-col a:hover {
  color: var(--lime);
}
.footer-col address {
  font-style: normal;
}
.hours {
  display: grid;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}
.hours__row.is-today {
  font-weight: 700;
}
.hours__row.is-today .hours__day::after {
  content: "dziś";
  display: inline-block;
  margin-left: 0.45em;
  padding: 0.1em 0.45em 0.15em;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: 0.12em;
}
.footer-band {
  height: 30px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  font-size: 0.875rem;
  color: rgba(244, 244, 240, 0.66);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom a {
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
    gap: 4rem;
  }
  .footer-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

/* pas bandaża — dekoracyjny separator */
.vetwrap {
  --wrap-c: var(--pink);
  background-color: var(--wrap-c);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.14)), var(--wrap-paws),
    var(--wrap-crepe);
  background-size: 100% 100%, 56px 56px, auto;
}
.vetwrap--lime {
  --wrap-c: var(--lime);
}

/* ---------- Okno „Pilne?” ---------- */
.sos {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(540px, 100%);
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
.sos::backdrop {
  background: rgba(20, 21, 26, 0.6);
}
.sos[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.55s var(--ease-out);
}
.sos[open]::backdrop {
  animation: fade-in 0.4s var(--ease-out);
}
.sos.is-closing {
  animation: sheet-out 0.32s var(--ease-in) forwards;
}
.sos.is-closing::backdrop {
  animation: fade-out 0.32s var(--ease-in) forwards;
}
@keyframes sheet-in {
  from {
    transform: translateX(100%);
  }
}
@keyframes sheet-out {
  to {
    transform: translateX(100%);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
.sos__head {
  position: relative;
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--danger-bg);
  color: #fff;
  --focus: #fff;
}
.sos__head .label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: rgba(255, 255, 255, 0.9);
}
.sos__head h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  color: #fff;
}
.sos__head p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 40ch;
}
.sos__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.sos__close:hover {
  background: #fff;
  color: var(--danger);
  border-color: #fff;
}
.sos__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: grid;
  gap: 1.75rem;
  align-content: start;
  overscroll-behavior: contain;
}
.sos__call {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform var(--d-2) var(--ease-spring), background-color var(--d-2);
}
.sos__call:hover {
  background: #000;
}
.sos__call:active {
  transform: scale(0.98);
}
.sos__call-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--danger-bg);
  flex: none;
}
.sos__call-icon .icon {
  width: 26px;
  height: 26px;
  animation: ring 1.6s var(--ease-out) infinite;
}
.sos__call strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 80%;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.sos__call small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}
.sos__call--alt {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.sos__call--alt:hover {
  background: var(--bg-2);
}
.sos__call--alt small {
  color: var(--ink-2);
}
.sos__call--alt .sos__call-icon {
  background: var(--ink);
  color: #fff;
}
.sos__call--alt .sos__call-icon .icon {
  animation: none;
}
.sos h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.sos__list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sos__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.95rem;
  line-height: 1.45;
}
.sos__list .icon {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.05rem;
  color: var(--danger);
}
.sos__list--do .icon {
  color: var(--ok);
}
.sos__note {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---------- Kursor kontekstowy (tylko mysz) ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--z-cursor);
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  pointer-events: none;
  will-change: transform;
}
.cursor__inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem;
  transform: scale(0);
  transition: transform 0.45s var(--ease-spring);
}
.cursor.is-active .cursor__inner {
  transform: scale(1);
}
.cursor--pink .cursor__inner {
  background: var(--pink);
  color: var(--ink);
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- Animacje wejścia ---------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.85s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion [data-reveal="fade"] {
  transform: none;
}
.motion [data-reveal="scale"] {
  transform: scale(0.94);
}
.motion [data-reveal="left"] {
  transform: translate3d(-36px, 0, 0);
}
.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* nagłówki rozbite na słowa */
.sw {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.1em;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.sw__i {
  display: inline-block;
}
.motion [data-split] .sw__i {
  transform: translate3d(0, 108%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 42ms + var(--split-delay, 0ms));
}
.motion [data-split].is-in .sw__i {
  transform: none;
}
.motion [data-split] .wrap {
  clip-path: inset(0 100% 0 0 round 0.12em);
  transition: clip-path 0.9s var(--ease-out);
  transition-delay: calc(var(--split-delay, 0ms) + 380ms);
}
.motion [data-split].is-in .wrap {
  clip-path: inset(-0.1em -0.1em -0.1em -0.1em round 0.12em);
}

.motion-fallback [data-reveal],
.motion-fallback [data-split] .sw__i,
.motion-fallback [data-split] .wrap {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* ---------- Przejścia między podstronami (View Transitions API) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-old 0.45s var(--ease-in) both;
}
::view-transition-new(root) {
  animation: vt-new 0.7s var(--ease-out) both;
}
::view-transition-group(site-header) {
  animation-duration: 0.45s;
}
@keyframes vt-old {
  to {
    opacity: 0.4;
    transform: scale(0.97) translateY(-12px);
  }
}
@keyframes vt-new {
  from {
    clip-path: inset(100% 0 0 0 round 48px 48px 0 0);
  }
  to {
    clip-path: inset(0 0 0 0 round 0);
  }
}

/* ---------- Drobne elementy wspólne ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.crumbs a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs .icon {
  width: 0.9em;
  height: 0.9em;
  opacity: 0.6;
}

.species-dot {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 1.5px rgba(20, 21, 26, 0.18);
}

/* znaczek „pieczątka” */
.stamp {
  --stamp-c: var(--pink-ink);
  display: inline-grid;
  place-items: center;
  padding: 0.35em 0.7em 0.3em;
  border: 3px solid var(--stamp-c);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--stamp-c);
  color: var(--stamp-c);
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* karta z nagłówkiem „pola formularza” */
.note-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: var(--z-dialog);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--sh-3);
  transform: translate(-50%, 150%);
  transition: transform 0.5s var(--ease-spring);
  max-width: calc(100% - 32px);
}
.toast.is-visible {
  transform: translate(-50%, 0);
}
.toast .icon {
  color: var(--lime);
}
@media (max-width: 767px) {
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- Uzupełnienia stopki i okna SOS ---------- */
.footer-cat {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.footer-cat:focus-visible {
  outline-offset: 6px;
  border-radius: 20px;
}
.footer-cat__tail {
  transform-box: view-box;
  transform-origin: 176px 120px;
}
.footer-route {
  margin-top: 0.8rem;
}
.footer-sos {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 40px;
  padding: 0 0.9rem 0 0.7rem;
  border: 1.5px solid rgba(244, 244, 240, 0.35);
  border-radius: var(--r-pill);
  background: transparent;
  color: #f4f4f0;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color var(--d-2), border-color var(--d-2), color var(--d-2);
}
.footer-sos:hover {
  background: var(--danger-bg);
  border-color: var(--danger-bg);
  color: #fff;
}
.footer-sos .icon {
  width: 1.1em;
  height: 1.1em;
}
.sos__calls {
  display: grid;
  gap: 0.6rem;
}

/* po godzinach wyróżniony jest telefon dyżurny */
.sos__calls.is-after-hours .sos__call--alt {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.sos__calls.is-after-hours .sos__call--alt:hover {
  background: #000;
}
.sos__calls.is-after-hours .sos__call--alt small {
  color: rgba(255, 255, 255, 0.75);
}
.sos__calls.is-after-hours .sos__call--alt .sos__call-icon {
  background: var(--danger-bg);
}
.sos__calls.is-after-hours .sos__call:not(.sos__call--alt) {
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.sos__calls.is-after-hours .sos__call:not(.sos__call--alt):hover {
  background: var(--bg-2);
}
.sos__calls.is-after-hours .sos__call:not(.sos__call--alt) small {
  color: var(--ink-2);
}
.sos__calls.is-after-hours .sos__call:not(.sos__call--alt) .sos__call-icon {
  background: var(--ink);
  color: #fff;
}
.sos__calls.is-after-hours .sos__call:not(.sos__call--alt) .sos__call-icon .icon {
  animation: none;
}

/* przejście do bazy „Czy to trujące?” */
.sos__sniff {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring);
}
.sos__sniff:hover {
  transform: translateY(-2px);
}
.sos__sniff:active {
  transform: scale(0.98);
}
.sos__sniff-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}
.sos__sniff-icon .icon {
  width: 30px;
  height: 30px;
}
.sos__sniff strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.25rem;
  line-height: 1.1;
}
.sos__sniff small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.sos__sniff-arrow {
  flex: none;
  margin-left: auto;
}

/* ---------- Listy z odhaczeniem i tagi gatunków ---------- */
.ticks {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 0.6rem;
  line-height: 1.45;
}
.ticks .icon {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--ok);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--dot) 30%, #fff);
  font-size: 0.85rem;
  font-weight: 600;
}
.tag .icon {
  width: 1rem;
  height: 1rem;
}


/* ---------- CTA ---------- */
.cta-wrap {
  padding-bottom: clamp(1rem, 0.5rem + 2vw, 3rem);
}
.cta {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2rem, 1.4rem + 3vw, 4rem);
  border-radius: var(--r-xl);
  color: var(--ink);
  --focus: var(--ink);
}
.cta h2 {
  max-width: 19ch;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta .btn {
  --btn-hover-bg: var(--lime);
}
.cta__ghost {
  --btn-bd: var(--ink);
}
@media (min-width: 900px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* ---------- Wyniki „Czy to trujące?” (strona główna i poradnik) ---------- */
.tox {
  padding: 1.35rem;
  border-radius: var(--r-md);
  background: var(--bg);
  animation: diag-in 0.5s var(--ease-out);
}
.tox + .tox {
  margin-top: 0.75rem;
}
.tox__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.tox__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.6rem;
  line-height: 1.05;
}
.tox__kind {
  color: var(--ink-3);
}
.tox__verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0;
}
.tox__text {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.tox__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1.5px dashed var(--line-2);
  font-weight: 600;
}
.tox__call a {
  color: #a3161a;
}
.tox__empty {
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink-2);
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.verdict .icon {
  width: 1.1em;
  height: 1.1em;
}
.verdict__who {
  font-weight: 500;
}
.verdict--0 {
  background: #d9f5e3;
  color: #0d5c31;
}
.verdict--1 {
  background: #e3ebff;
  color: #1f3fb8;
}
.verdict--2 {
  background: #fff0d1;
  color: #864700;
}
.verdict--3 {
  background: #ffe1e1;
  color: #a3161a;
}
.verdict--4 {
  background: #a3161a;
  color: #fff;
}

@keyframes diag-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(2.3);
  }
  55% {
    opacity: 1;
    transform: rotate(-12deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}

@media (max-width: 559px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-col:last-child ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}
