/* 122 Labs / Rehabilitation Circle - wspólny design system
   Jasna paleta oryginału: tło #f5f5f5, tekst #4b4f58, czarne akcenty.
   Fonty: Alatsi (nagłówki), Karla (tekst). */

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #191b1f;
  --text: #43474f;
  --muted: #6c717a;
  --line: #e2e2e2;
  --accent: #191b1f;
  --accent-ink: #ffffff;
  --green: #27803f;
  --green-dark: #1d5f2f;
  --green-tint: #eef7f0;
  --font-display: "Alatsi", "Arial Narrow", sans-serif;
  --font-body: "Karla", "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --pad: clamp(1.1rem, 4vw, 2rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p + p { margin-top: 1em; }

a { color: var(--ink); text-decoration: none; }

::selection { background: var(--green); color: #fff; }

/* ==== linki z zielonym podkreśleniem rysowanym od lewej ==== */
.u-link {
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.35s ease;
  padding-bottom: 2px;
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 2px; }

/* ============ NAWIGACJA ============ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 22, 26, 0.06); }

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; padding: 0.6rem 0; }
.nav-logo img { height: 22px; width: auto; }

.nav-menu ul { list-style: none; display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.5rem); }
.nav-menu li { position: relative; }
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.1rem;
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.3s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a[aria-current] { background-size: 100% 1px; }

.sub-toggle {
  border: 0; background: none; cursor: pointer; padding: 0.3rem 0.15rem;
  width: 1.1em; height: 1.6em; vertical-align: middle; position: relative;
}
.sub-toggle::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 0.42em; height: 0.42em; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.has-sub .sub {
  list-style: none;
  position: absolute; top: calc(100% + 6px); left: -0.9rem;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  display: block;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
/* niewidoczny "mostek" - kursor nie gubi rozwinięcia w przerwie między linkiem a panelem */
.has-sub .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub .sub li { display: block; }
.has-sub .sub a {
  display: block; padding: 0.5rem 1.1rem 0.5rem 1.4rem; background: none;
  font-weight: 400; letter-spacing: 0.02em;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.has-sub .sub a:hover, .has-sub .sub a:focus-visible, .has-sub .sub a[aria-current] {
  background: var(--green-tint);
  border-left-color: var(--green);
  padding-left: 1.6rem;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-sub.open .sub-toggle::after { transform: translate(-50%, -30%) rotate(225deg); }

.lang-switch a { font-weight: 700; border: 1px solid var(--ink); border-radius: 999px; padding: 0.22rem 0.72rem; background: none; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: var(--green); border-color: var(--green); color: #fff; }

.nav-burger { display: none; }

@media (max-width: 920px) {
  .nav-burger {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; z-index: 70;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: fixed; inset: 0; background: #fff;
    padding: calc(var(--nav-h) + 1.5rem) var(--pad) 2rem;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  }
  body.nav-open .nav-menu { opacity: 1; visibility: visible; }
  /* backdrop-filter na pasku tworzy containing block i przycinałby menu do wysokości paska */
  body.nav-open .site-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  body.nav-open { overflow: hidden; }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .nav-menu > ul > li { width: 100%; border-bottom: 1px solid var(--line); padding: 0.45rem 0; }
  .nav-menu > ul > li.lang-switch { border-bottom: 0; padding-top: 1rem; }
  .nav-menu a { font-size: 1.15rem; }
  .sub-toggle { float: right; width: 3rem; height: 2.4rem; margin-top: -0.35rem; }
  .sub-toggle::after { width: 0.55em; height: 0.55em; border-width: 2px; }
  .has-sub .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none; padding: 0.2rem 0 0.4rem 0;
    margin-left: 0.2rem; border-left: 2px solid rgba(39, 128, 63, 0.35);
    display: none;
  }
  .has-sub .sub::before { display: none; }
  .has-sub .sub a { font-size: 1rem; padding: 0.45rem 0.9rem; border-left-width: 0; }
  .has-sub .sub a:hover, .has-sub .sub a:focus-visible, .has-sub .sub a[aria-current] { padding-left: 0.9rem; }
  .has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub, .has-sub.open .sub { display: block; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 12, 16, 0.45), rgba(10, 12, 16, 0.6)); }
.hero-content { position: relative; z-index: 2; padding: calc(var(--nav-h) + 2rem) var(--pad) 4rem; max-width: 1000px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  letter-spacing: 0.03em;
}
.hero .hero-kicker {
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2rem;
}
.hero .hero-words {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem;
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.hero-cta { margin-top: 2.6rem; }
.hero-scroll {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255, 255, 255, 0.8); font-size: 1.5rem; line-height: 1;
  padding: 0.7rem 1rem; /* wygodny cel dotykowy */
  animation: heroNudge 2.2s ease-in-out infinite;
}
@keyframes heroNudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* hero podstron: niższe, ze zdjęciem/wideo */
.hero--sub { min-height: 62svh; }
.hero--sub h1 { font-size: clamp(2.1rem, 5.5vw, 3.9rem); text-transform: lowercase; }

/* ============ PRZYCISKI ============ */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.85rem 2.1rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 128, 63, 0.28);
}
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

/* ============ SEKCJE ============ */
.section { padding: clamp(3.6rem, 9vw, 6.5rem) var(--pad); }
.section--alt { background: var(--surface); }

/* zielony panel - zaokrąglone pasmo z dryfującymi poświatami i szumem (bez płaskiego gradientu) */
.section--green {
  position: relative;
  width: min(1400px, calc(100% - 2 * clamp(0.8rem, 2.5vw, 2rem)));
  margin: clamp(1rem, 3vw, 2rem) auto;
  border-radius: clamp(18px, 3vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.09) 50%, transparent 60%) 0 0 / 280% 100% no-repeat,
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 14px),
    linear-gradient(168deg, #1e6132 0%, #164b26 68%, #123d1f 100%);
  animation: greenSheen 14s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.9);
}
@keyframes greenSheen {
  0%, 100% { background-position: 0% 0, 0 0, 0 0; }
  50% { background-position: 100% 0, 0 0, 0 0; }
}
.section--green::before {
  content: ""; position: absolute; inset: -22%;
  background:
    radial-gradient(640px 460px at 20% 22%, rgba(168, 232, 184, 0.34), transparent 60%),
    radial-gradient(560px 420px at 80% 80%, rgba(46, 160, 86, 0.5), transparent 64%),
    radial-gradient(420px 320px at 62% 8%, rgba(210, 245, 216, 0.16), transparent 60%);
  filter: blur(46px);
  animation: greenDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes greenDrift {
  from { transform: translate3d(-3.5%, -2.5%, 0) rotate(-1deg) scale(1); }
  to { transform: translate3d(3.5%, 2.5%, 0) rotate(1.5deg) scale(1.08); }
}
.section--green::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.32;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.section--green > * { position: relative; z-index: 1; }
.section--green .eyebrow { color: #a9dcb4; }
.section--green .section-title, .section--green h3 { color: #fff; }
.section--green .center .section-title::after { background: #fff; }
.section--green .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.section--green .btn:hover, .section--green .btn:focus-visible { background: #fff; color: #174f28; }
.section--green a { color: #fff; }
.wrap { max-width: 1140px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.stats-band .eyebrow, .hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section-title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin-bottom: 1.6rem; }
/* zielona kreska rysująca się pod wyśrodkowanymi tytułami */
.center .section-title::after {
  content: ""; display: block;
  width: 54px; height: 3px; border-radius: 2px;
  background: var(--green);
  margin: 1rem auto 0;
}
.js .reveal .section-title::after { transform: scaleX(0); }
.js .reveal.in .section-title::after { transform: scaleX(1); transition: transform 0.6s ease 0.3s; }
.section-lead { max-width: 62ch; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ============ BLOKI EDYTORSKIE (filary, partnerzy, produkty) ============ */
.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
}
@media (min-width: 821px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip > .feature-media { order: 2; }
}
.feature-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 3 / 2; object-fit: cover;
}
.feature-media--contain img { aspect-ratio: auto; object-fit: contain; box-shadow: none; background: none; }
.feature h3 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 0.9rem; }
.feature .btn { margin-top: 1.5rem; }

/* siatka zdjęć domykana jak przy markach */
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.4rem; }
.photo-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-grid > img:last-child:nth-child(odd) { grid-column: 1 / -1; height: 300px; }
@media (max-width: 620px) { .photo-grid { grid-template-columns: 1fr; } .photo-grid img { height: 220px; } }

/* ============ LICZNIKI ============ */
.stats-band { position: relative; overflow: hidden; color: #fff; text-align: center; }
.stats-media { position: absolute; inset: 0; }
.stats-media video, .stats-media img { width: 100%; height: 100%; object-fit: cover; }
.stats-media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, 0.68); }
.stats-band .wrap { position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem 1.2rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); color: #fff; line-height: 1; }
.stat-label { margin-top: 0.55rem; font-size: 0.92rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); }
.stats--light .stat-num { color: var(--ink); }
.stats--light .stat-label { color: var(--text); }

/* ============ CYTATY - czysty układ typograficzny ============ */
.quotes { display: grid; gap: 2.6rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 3rem; }
.quote {
  display: flex; flex-direction: column; gap: 1.2rem;
  border-top: 3px solid var(--green);
  padding-top: 1.5rem;
}
.quote blockquote { font-size: 1.13rem; line-height: 1.65; color: var(--ink); flex: 1; text-wrap: pretty; }
.quote cite {
  font-style: normal;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.7rem;
}
.quote cite::before { content: ""; width: 22px; height: 2px; background: var(--green); flex: none; }

/* ============ KARUZELA LOGO (marquee) ============ */
.marquee {
  overflow: hidden;
  margin-top: 2.8rem;
  /* pełna szerokość ekranu - monety znikają przy krawędzi okna, nie w środku treści */
  width: 100vw;
  margin: 1.4rem 0 -1.6rem calc(50% - 50vw);
  /* zapas na cień (także po uniesieniu monety hoverem) - overflow:hidden nie może go ścinać */
  padding: 1.6rem 0 3.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee .track { display: flex; width: max-content; }
.marquee .set {
  display: flex; align-items: center;
  gap: clamp(2.6rem, 6vw, 5rem);
  padding-right: clamp(2.6rem, 6vw, 5rem);
  animation: marquee 38s linear infinite;
}
/* logotypy w okrągłych białych "monetach" (jak na starej stronie) */
.marquee img, .logo-row img {
  width: 136px; height: 136px; max-width: none;
  padding: 26px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(20, 22, 26, 0.08);
  filter: grayscale(1);
  transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.marquee img:hover, .logo-row img:hover { filter: none; transform: translateY(-4px); box-shadow: 0 16px 32px rgba(39, 128, 63, 0.18); }
.marquee:hover .set { animation-play-state: paused; }
.marquee .set { gap: clamp(1.4rem, 3vw, 2.4rem); padding-right: clamp(1.4rem, 3vw, 2.4rem); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* rząd logotypów (prasa, targi) - te same monety */
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 2.6rem;
}
@media (max-width: 620px) {
  .marquee img, .logo-row img { width: 104px; height: 104px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee .set { animation: none; flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee .set + .set { display: none; }
}

/* ============ ŚCIANY LOGO ============ */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.logo-wall > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  padding: 1.4rem 1rem;
  min-height: 110px;
}
.logo-wall img {
  max-height: 62px; width: auto; max-width: 100%;
  filter: grayscale(1); opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-wall > div:hover img { filter: none; opacity: 1; }

/* ============ SIATKA WIDEO (YouTube) ============ */
.video-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 2.4rem; }
.video-grid .video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}
.video-grid iframe { width: 100%; height: 100%; border: 0; display: block; }

/* fasada YouTube - iframe ładuje się dopiero po kliknięciu (RODO) */
.video-grid .video { position: relative; }
.yt-facade {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
  background: #111 center / cover no-repeat;
  display: grid; place-items: center;
  color: #fff; font: inherit;
}
.yt-facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)); }
.yt-facade .play {
  position: relative;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: grid; place-items: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.yt-facade .play::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }
.yt-facade:hover .play, .yt-facade:focus-visible .play { transform: scale(1.1); background: var(--green-dark); }
.yt-facade .yt-note {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem; font-size: 0.78rem; letter-spacing: 0.02em; text-align: left;
  color: rgba(255, 255, 255, 0.85);
}

/* fasada Google Maps */
.map-facade {
  height: 300px;
  display: grid; place-items: center; text-align: center;
  padding: 1.4rem;
  background:
    linear-gradient(rgba(245, 245, 245, 0.92), rgba(245, 245, 245, 0.92)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(39, 128, 63, 0.12) 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(39, 128, 63, 0.12) 28px 29px);
  border-top: 1px solid var(--line);
}
.map-facade p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.9rem; max-width: 34ch; }
.map-facade .btn { font-size: 0.88rem; padding: 0.7rem 1.6rem; }
.map-facade .map-alt { display: inline-block; margin-top: 0.5rem; padding: 0.45rem 0.2rem; font-size: 0.85rem; }

/* pasek informacji o cookies */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  max-width: 720px; margin-inline: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem;
  font-size: 0.92rem; line-height: 1.5;
  animation: heroIn 0.6s ease backwards 0.4s;
}
.consent p { flex: 1 1 320px; margin: 0; }
.consent .btn { font-size: 0.85rem; padding: 0.6rem 1.4rem; }
.consent[hidden] { display: none; }

/* pasek logotypów Bluetooth / Google Play / App Store - białe znaki wymagają ciemnego tła */
.store-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.4rem 2.6rem;
  background: linear-gradient(160deg, #22252b, #141518);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.store-strip img { height: 58px; width: auto; }
@media (max-width: 620px) { .store-strip img { height: 46px; } }

/* ============ SPECYFIKACJE PRODUKTU ============ */
.spec-list { margin-top: 2rem; display: grid; gap: 0.7rem; }
.spec-list dt {
  font-family: var(--font-display); color: var(--ink);
  letter-spacing: 0.05em; margin-top: 1.1rem; font-size: 1.08rem;
}
.spec-list dd { border-left: 2px solid rgba(39, 128, 63, 0.35); padding-left: 1rem; white-space: pre-line; }

/* lista cech numerowanych (Rehabilitation Circle) - wiersze edytorskie, numer spójny z hotspotami */
.numbered {
  counter-reset: n;
  margin-top: 2.6rem; list-style: none;
  border-top: 1px solid var(--line);
}
.numbered li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 2.1rem minmax(190px, 280px) 1fr;
  gap: 0.5rem 1.3rem;
  align-items: start;
  padding: 1.15rem 0.6rem;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.25s ease;
}
.numbered li:hover { background: var(--surface); }
.numbered li::before {
  content: counter(n);
  font-family: var(--font-display);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(39, 128, 63, 0.3);
}
.numbered h3 { font-size: 1.04rem; letter-spacing: 0.05em; line-height: 1.35; padding-top: 0.3rem; }
.numbered p { font-size: 0.97rem; line-height: 1.6; padding-top: 0.22rem; }
@media (max-width: 760px) {
  .numbered li { grid-template-columns: 2.1rem 1fr; }
  .numbered p { grid-column: 2; padding-top: 0; }
}

/* ============ KAFELKI CECH ============ */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2.2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.tile h3 { font-size: 1.05rem; letter-spacing: 0.05em; }
.tile p { font-size: 0.95rem; margin-top: 0.4rem; }

/* ============ PLAKIETKI ============ */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0; }
.badges--center { justify-content: center; }
.badge {
  border: 1px solid var(--green); border-radius: 999px;
  padding: 0.35rem 1.05rem;
  font-weight: 700; font-size: 0.83rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
}

/* ============ BLOKI MAREK (partnerzy) ============ */
.brand { display: grid; gap: 1.6rem; padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--line); }
.brand:first-of-type { border-top: 0; }
@media (min-width: 761px) {
  .brand { grid-template-columns: 220px 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
  .brand-side { position: sticky; top: 90px; align-self: start; }
}
/* logotypy skalować tylko przez max-width/height (wymuszona wysokość zniekształca proporcje) */
.brand-side img { max-width: 175px; max-height: 85px; width: auto; height: auto; }
.brand-side a { display: inline-block; margin-top: 1.1rem; font-weight: 700; font-size: 0.95rem; }
.brand-main h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); margin-bottom: 0.9rem; letter-spacing: 0.04em; }

/* ============ KARTY PRODUKTÓW ============ */
.cards { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); margin-top: 2.6rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.card img.card-img--contain { object-fit: contain; padding: 1.2rem; }
.card .card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card h3 { font-size: 1.12rem; letter-spacing: 0.04em; }
.card .card-more { margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--green); }
.card .card-more::after { content: " \2197"; }

/* ============ HOTSPOTY NA ZDJĘCIU (Rehabilitation Circle) ============ */
.hotspots { position: relative; margin: 0; }
.hotspots img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hs {
  position: absolute;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.hs::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.65);
  animation: hsPulse 2.4s ease-out infinite;
}
@keyframes hsPulse {
  0% { transform: scale(0.75); opacity: 1; }
  70%, 100% { transform: scale(1.25); opacity: 0; }
}
.hs:hover, .hs:focus-visible { transform: scale(1.18); background: var(--ink); z-index: 2; }
@media (max-width: 620px) { .hs { width: 1.8rem; height: 1.8rem; font-size: 0.82rem; } .hs::after { inset: -4px; } }
@media (prefers-reduced-motion: reduce) { .hs::after { animation: none; opacity: 0; } }

/* podświetlenie celu po kliknięciu hotspotu */
.numbered li { scroll-margin-top: calc(var(--nav-h) + 24px); }
.numbered li:target {
  background: var(--green-tint);
  box-shadow: inset 3px 0 0 var(--green);
}

/* ============ KADRA ============ */
.people { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; }
.person h3 { font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }

/* ============ KONTAKT ============ */
.contact-grid { display: grid; gap: 2rem; margin-top: 2.4rem; }
@media (min-width: 821px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-card h3 { font-size: 1.05rem; padding: 1.3rem 1.4rem 0.4rem; }
.contact-card p { padding: 0 1.4rem 1.2rem; }
.contact-card iframe { width: 100%; height: 300px; border: 0; display: block; }

.form { display: grid; gap: 1rem; margin-top: 2rem; }
.form label { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; display: grid; gap: 0.4rem; }
.form input, .form textarea {
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.8rem 1rem;
  width: 100%;
}
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-weight: 700; }

/* tymczasowa blokada formularza - komunikat z adresem e-mail */
.form-notice {
  max-width: 820px; margin: 2.6rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center;
}
.form-notice .ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-tint); color: var(--green);
  display: grid; place-items: center; font-size: 1.4rem;
}
.form-notice h3 { font-size: 1.18rem; letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.form-notice .btn { margin-top: 1rem; }
@media (max-width: 620px) { .form-notice { grid-template-columns: 1fr; } }
.form-status.ok { color: #17691e; }
.form-status.err { color: #a3231d; }

/* ============ STOPKA ============ */
.site-footer { background: #141518; color: #b8bcc4; padding: 3rem var(--pad); }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between;
}
.footer-brand img { height: 20px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-nav { display: grid; gap: 0.2rem; justify-items: start; }
.footer-nav a {
  color: #e7e9ee; font-size: 0.95rem;
  background: linear-gradient(#5cbf74, #5cbf74) no-repeat 0 calc(100% - 0.35rem) / 0 2px;
  transition: background-size 0.3s ease;
  padding: 0.4rem 0; /* min. 32px wysokości celu dotykowego */
}
.footer-nav a:hover, .footer-nav a:focus-visible { background-size: 100% 1px; }

/* przycisk do góry */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; border: 0; cursor: pointer;
  font-size: 1.15rem; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.to-top.show { opacity: 0.85; visibility: visible; transform: none; }
.to-top:hover { opacity: 1; }

/* ============ ANIMACJE WEJŚCIA ============ */
/* stany ukryte tylko przy działającym JS (main.js dodaje klasę .js na <html>) */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease var(--rd, 0s), transform 0.7s ease var(--rd, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* w blokach feature tekst i zdjęcie wjeżdżają z przeciwnych stron */
@media (min-width: 821px) {
  .js .feature > .reveal:not(.feature-media) { transform: translateX(-28px); }
  .js .feature > .feature-media.reveal { transform: translateX(28px); }
  .js .feature--flip > .reveal:not(.feature-media) { transform: translateX(28px); }
  .js .feature--flip > .feature-media.reveal { transform: translateX(-28px); }
  .js .feature > .reveal.in { transform: none; }
}

/* kaskada elementów potomnych (loga itd.) - main.js nadaje --i dzieciom .stagger-kids */
.js .stagger-kids > * { opacity: 0; }
.js .stagger-kids.in > * { opacity: 1; animation: kidIn 0.55s ease backwards; animation-delay: calc(55ms * var(--i, 0)); }
@keyframes kidIn { from { opacity: 0; transform: translateY(14px); } }

/* sekwencja wejścia hero po załadowaniu */
.hero-content > * { animation: heroIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.28s; }
.hero-content > *:nth-child(3) { animation-delay: 0.46s; }
.hero-content > *:nth-child(4) { animation-delay: 0.64s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }

/* powolny zoom zdjęcia w hero (Ken Burns) */
.hero-media img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* punkty wskakujące na zdjęcie (opóźnienia nadaje main.js) */
.js .hotspots .hs { opacity: 0; }
.js .hotspots.in .hs { opacity: 1; animation: hsIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
@keyframes hsIn { from { opacity: 0; transform: scale(0.4); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hotspots .hs, .js .feature > .reveal, .js .feature--flip > .reveal,
  .js .stagger-kids > * { opacity: 1; transform: none; transition: none; animation: none; }
  .js .reveal .section-title::after { transform: none; }
  .hero-content > *, .hero-media img { animation: none; }
  .hero-scroll { animation: none; }
  .section--green, .section--green::before { animation: none; }
  .btn, .to-top { transition: none; }
}

/* strony prawne (polityka prywatności) */
.legal h2 { font-size: 1.35rem; letter-spacing: 0.03em; margin: 2.4rem 0 0.7rem; }
.legal h3 { font-size: 1.05rem; letter-spacing: 0.04em; margin: 1.4rem 0 0.4rem; color: var(--green); }
.legal p { max-width: 70ch; }
.legal .section-title { margin-bottom: 0.6rem; }

/* strona 404 */
.err-page { min-height: 72svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 3rem) var(--pad) 3rem; }
.err-page .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--ink); line-height: 1; }
