/* =========================================================================
   KaJarkowym Szlakiem — szata graficzna „natura / rzeka"
   Fonty: Bricolage Grotesque (nagłówki) + Instrument Sans (tekst)
   ========================================================================= */

/* ---------- Fonts (self-hosted, latin + latin-ext dla polskich znaków) --- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/InstrumentSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/InstrumentSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --ink:      #0C2A2E;
  --petrol:   #0E4750;
  --petrol-2: #0A3941;
  --river:    #17707E;
  --current:  #2CA0B4;
  --reed:     #4E834F;
  --sun:      #EF9B34;
  --sun-deep: #D8801A;
  --paper:    #EDF2EF;
  --paper-2:  #E4ECE7;
  --surface:  #FFFFFF;
  --muted:    #4A5E5F;
  --line:     rgba(12,42,46,.12);
  --line-2:   rgba(12,42,46,.08);
  --shadow:   0 18px 50px -24px rgba(12,42,46,.45);
  --shadow-sm:0 8px 24px -14px rgba(12,42,46,.4);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-sm: 12px;

  --ff-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

  --step--1: clamp(.82rem, .78rem + .2vw, .92rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--step-0);
  line-height: 1.66;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-decoration: none; }
a:hover { color: var(--current); }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--current); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------------------------------------------- */
.wrap { width: min(100% - 2*var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--petrol); color: #EAF3F2; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--river);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sun);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--current); }

.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }
.section--dark .section-head p { color: #B9D3D2; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--ff-body); font-weight: 600; font-size: var(--step-0);
  padding: .82em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--sun { background: var(--sun); color: #3a2503; box-shadow: 0 10px 24px -12px rgba(239,155,52,.9); }
.btn--sun:hover { background: var(--sun-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--petrol); border-color: var(--line); }
.btn--outline:hover { border-color: var(--river); color: var(--river); transform: translateY(-2px); }
.btn--lg { padding: 1em 1.8em; font-size: var(--step-1); }

/* ---------- Header ------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 14px 0;
}
.header__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 48px; height: 48px; background: #fff; padding: 5px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.brand__name {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.12rem;
  line-height: 1; letter-spacing: -.01em; color: #fff; transition: color .3s ease;
}
.brand__name span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.75); font-family: var(--ff-body); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; color: rgba(255,255,255,.9); font-size: .98rem; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--sun); transition: width .25s ease; }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__tel { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: #fff; }
.header__tel svg { width: 1.1em; height: 1.1em; color: var(--sun); }

/* scrolled state */
.header.is-solid {
  background: rgba(10,57,65,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  padding: 9px 0;
}

/* burger */
.burger { display: none; width: 46px; height: 46px; border: none; background: rgba(255,255,255,.14);
  border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease; }
.burger span:nth-child(1){ top: 16px; } .burger span:nth-child(2){ top: 22px; } .burger span:nth-child(3){ top: 28px; }
body.menu-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* mobile panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--petrol-2);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 80px var(--gutter) 40px; transform: translateX(100%);
  transition: transform .38s cubic-bezier(.5,0,.2,1); visibility: hidden;
}
body.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.6rem,7vw,2.4rem); color: #fff; padding: 6px 0; }
.mobile-menu a:hover { color: var(--sun); }
.mobile-menu .btn { margin-top: 22px; align-self: flex-start; }
.mobile-menu__contact { margin-top: auto; color: #9fc0bf; font-size: .95rem; }
.mobile-menu__contact a { color: #fff; font-family: var(--ff-body); font-weight: 600; font-size: 1.05rem; }

/* ---------- Hero --------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; padding-top: clamp(96px, 14vh, 132px); padding-bottom: clamp(96px, 11vh, 128px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,45,52,.55) 0%, rgba(8,45,52,.15) 34%, rgba(8,45,52,.7) 82%, rgba(8,45,52,.94) 100%),
    linear-gradient(90deg, rgba(8,45,52,.6), rgba(8,45,52,0) 60%);
}
.hero__content { max-width: 45rem; }
.hero .eyebrow { color: #ffe0b2; }
.hero .eyebrow::before { background: var(--sun); }
.hero h1 { font-size: var(--step-4); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 .rot-wrap { display: inline-block; color: var(--sun); position: relative; }
.hero h1 .rot { display: inline-block; }
.hero__lead { font-size: var(--step-1); color: #e6f1f0; max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6rem; }

.hero__facts { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 34px); align-items: center; }
.fact { display: flex; align-items: baseline; gap: .5em; }
.fact b { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.fact span { color: #c7ddda; font-size: .95rem; }
.fact + .fact { padding-left: clamp(16px, 3vw, 34px); border-left: 1px solid rgba(255,255,255,.22); }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -2px; z-index: -1; width: 100%; height: clamp(48px, 5vw, 86px); color: var(--paper); }
.hero__scroll { position: absolute; bottom: 24px; right: var(--gutter);
  color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 960px) { .hero__scroll { display: none; } }
.hero__scroll::after { content:""; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0%,100%{ transform: scaleY(.4); opacity:.4; transform-origin: top; } 50%{ transform: scaleY(1); opacity:1; transform-origin: top; } }

/* ---------- Value cards -------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.vcard {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vcard__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--current), var(--river)); color: #fff; margin-bottom: 20px; }
.vcard__icon svg { width: 30px; height: 30px; }
.vcard h3 { font-size: var(--step-1); }
.vcard p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

/* ---------- Steps (proces) ---------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step__n { font-family: var(--ff-display); font-weight: 800; font-size: 2.4rem; color: var(--sun);
  line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; display: block; }
.step h3 { font-size: var(--step-1); margin-bottom: .35em; }
.step p { color: #B9D3D2; font-size: .96rem; margin-bottom: 0; }
.step::before { content:""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--sun); border-radius: 3px; }

/* ---------- Rivers ------------------------------------------------------- */
.river-nav { position: sticky; top: 70px; z-index: 30; display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px; width: fit-content; margin: 0 auto clamp(40px,6vw,64px); box-shadow: var(--shadow-sm); }
.river-nav a { padding: .5em 1.2em; border-radius: 999px; font-weight: 600; color: var(--muted); transition: all .2s ease; }
.river-nav a:hover { color: var(--petrol); background: var(--paper); }
.river-nav a.is-active { background: var(--petrol); color: #fff; }

.river { margin-bottom: clamp(70px, 9vw, 120px); scroll-margin-top: 130px; }
.river:last-child { margin-bottom: 0; }
.river__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 60px); align-items: start; margin-bottom: 40px; }
.river__num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(3rem,8vw,5.5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.6px var(--current); letter-spacing: -.04em; display: block; margin-bottom: 10px; opacity: .8; }
.river__title { font-size: var(--step-3); margin-bottom: .2em; }
.river__sub { color: var(--river); font-weight: 600; font-family: var(--ff-body); margin-bottom: 1.2em; }
.river__desc p { color: var(--muted); font-size: 1rem; }
.river__meta { display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.chip { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.chip:last-child { border-bottom: 0; padding-bottom: 0; }
.chip svg { width: 22px; height: 22px; color: var(--current); flex: none; }
.chip b { display: block; font-family: var(--ff-display); font-size: 1.05rem; }
.chip span { color: var(--muted); font-size: .9rem; }

/* ---------- Etapy: interaktywna mapa kilometrażu ------------------------- */
.trailmap { display: grid; grid-template-columns: minmax(250px, 380px) 1fr; gap: clamp(20px, 3vw, 44px);
  align-items: center; margin-top: 8px; padding: clamp(16px, 2.4vw, 28px);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* --- lewa kolumna: mapa --- */
.tm-map { position: relative; margin: 0; padding: 14px 6px 10px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(0deg, rgba(23,112,126,.055) 0 1px, transparent 1px 27px),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-2) 100%); }
.tm-map__cap, .tm-map__hint { display: block; text-align: center; font-family: var(--ff-body); color: var(--muted); }
.tm-map__cap { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.tm-map__hint { font-size: .76rem; margin-top: 2px; opacity: .7; }
.tm-svg { display: block; width: 100%; height: auto; }

.tm-p { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tm-p--base   { stroke: rgba(12,42,46,.17); stroke-width: 3; }
.tm-p--active { stroke: var(--current); stroke-width: 5.5; }
.tm-p--pulse  { stroke: var(--sun); stroke-width: 5.5; opacity: 0; }
.tm-hit { fill: none; stroke: transparent; stroke-width: 26; stroke-linecap: round; cursor: pointer; pointer-events: stroke; }

.tm-lake { fill: rgba(44,160,180,.15); stroke: rgba(44,160,180,.42); stroke-width: 1.2; }
.tm-lake-name { font-family: var(--ff-body); font-size: 11px; font-style: italic; fill: var(--river); opacity: .82; }

.tm-mark circle { fill: var(--surface); stroke: var(--river); stroke-width: 2;
  transition: fill .3s ease, stroke .3s ease, r .3s ease; }
.tm-mark--poi circle { stroke: var(--sun-deep); stroke-width: 1.8; }
.tm-mark--mouth circle { stroke-dasharray: 2.5 2.5; }
.tm-mark text { transition: fill .3s ease; }
.tm-name { font-family: var(--ff-body); font-size: 12px; font-weight: 600; fill: var(--petrol); letter-spacing: .01em; }
.tm-mark--poi .tm-name { font-weight: 500; font-size: 11px; fill: var(--sun-deep); }
.tm-km { font-family: var(--ff-display); font-size: 10.5px; font-weight: 700; fill: var(--muted); opacity: .8; }
.tm-mark.is-on circle { fill: var(--river); stroke: var(--surface); r: 6; }
.tm-mark--poi.is-on circle { fill: var(--sun); stroke: var(--surface); r: 4.4; }
.tm-mark--poi.is-on .tm-name { fill: var(--sun-deep); font-weight: 600; }

/* sekwencja: odcinek się „rysuje", potem przepływa nim iskra prądu */
@keyframes tm-draw { from { stroke-dasharray: 0 var(--tm-L); } to { stroke-dasharray: var(--tm-seg) var(--tm-L); } }
@keyframes tm-run {
  0%   { stroke-dashoffset: var(--tm-o1); opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: var(--tm-o2); opacity: 0; }
}
.tm-live .tm-p--active { animation: tm-draw .55s cubic-bezier(.33,1,.68,1) backwards; }
.tm-live .tm-p--pulse  { animation: tm-run 3s .5s cubic-bezier(.45,.05,.55,.95) 2 backwards; }

/* --- prawa kolumna: lista etapów --- */
.tm-side__h { font-size: var(--step-1); margin-bottom: 16px; display: flex; align-items: center; gap: .5em; }
.tm-side__h svg { width: 1.1em; height: 1.1em; color: var(--current); flex: none; }
.tm-stages { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.tm-stage { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.tm-stage.is-on { border-color: rgba(44,160,180,.5); box-shadow: 0 10px 26px -18px rgba(12,42,46,.7); }
.tm-stage__btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
  background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; border-radius: var(--radius-sm); }
.tm-stage__badge { font-family: var(--ff-display); font-weight: 800; font-size: .9rem; color: var(--river);
  background: rgba(44,160,180,.13); min-width: 38px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; flex: none; transition: background .25s ease, color .25s ease; }
.tm-stage.is-on .tm-stage__badge { background: var(--river); color: #fff; }
.tm-stage__t { flex: 1; min-width: 0; }
.tm-stage__t b { display: block; font-family: var(--ff-display); font-size: 1.02rem; line-height: 1.25; }
.tm-stage__t span { display: block; color: var(--muted); font-size: .86rem; font-weight: 500; margin-top: .15em; }
/* górny odstęp trzyma tekst z dala od obrysu focusa na przycisku wyżej */
.tm-stage__body { padding: 6px 16px 16px 68px; color: var(--muted); font-size: .95rem; }
.tm-stage__body p { margin-bottom: 0; }

/* zwijanie tylko przy działającym JS — bez niego wszystkie opisy są widoczne */
.tm-js .tm-stage__body { display: grid; grid-template-rows: 0fr; padding-top: 0; padding-bottom: 0;
  transition: grid-template-rows .35s ease, padding .35s ease; }
.tm-js .tm-stage__body > p { overflow: hidden; }
.tm-js .tm-stage.is-on .tm-stage__body { grid-template-rows: 1fr; padding-top: 6px; padding-bottom: 16px; }

/* Listwa kilometrażu — telefonowy odpowiednik mapy. Pionowa mapa nie mieści
   się na ekranie razem z listą etapów, więc wybór etapu działałby w niewidocznym
   miejscu. Listwa jest niska, przykleja się pod nawigacją rzek i zostaje w kadrze
   przez cały czas przewijania listy. */
.tm-strip { display: none; margin: 0; }
/* Stała wysokość zamiast skalowania do szerokości karty: na tablecie listwa
   rozciągała się do ~700 px i podpisy punktów robiły się większe od tytułów
   etapów pod nimi. Przy „meet" rysunek dopasowuje się do niższego wymiaru,
   więc na szerokim ekranie zostaje wyśrodkowany i nie rośnie.            */
.tm-svg--bar { height: 96px; }
/* na tablecie w pionie jest zapas szerokości — rysunek może urosnąć, byle
   podpisy punktów nie przebiły wielkością tytułów etapów pod listwą */
@media (min-width: 600px) and (max-width: 900px) { .tm-svg--bar { height: 118px; } }
.tm-svg--bar .tm-name { font-size: 11.5px; }
.tm-svg--bar .tm-km { font-size: 10px; }

@media (max-width: 900px) {
  .trailmap { grid-template-columns: 1fr; align-items: start; }
  .tm-map { display: none; }
  /* Wsuwa się pod pasek rzek (z-index 30), żeby nie było szczeliny, przez którą
     przebijała przewijana treść. Pasek bywa różnej wysokości (telefon 135 px,
     tablet 139 px), więc górny padding jest większy niż największe wsunięcie —
     wtedy chowa się tylko puste tło, nigdy podpisy. */
  /* karta na pełną szerokość — zawężona i wyśrodkowana czytała się jak
     przypadkowy dymek nad treścią, a nie jak przypięty pasek */
  .tm-strip { display: block; position: sticky; top: 126px; z-index: 22;
    padding: 15px 10px 2px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--line-2);
    box-shadow: 0 12px 26px -18px rgba(12,42,46,.9); }
}
@media (max-width: 520px) {
  .tm-stage__body { padding-left: 16px; }
  .tm-map__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-live .tm-p--active, .tm-live .tm-p--pulse { animation: none; }
  .tm-p--pulse { display: none; }
  .tm-js .tm-stage__body { transition: none; }
  .tm-stage, .tm-stage__badge, .tm-mark circle, .tm-mark text { transition: none; }
}

/* gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.gallery--port { grid-auto-rows: 1fr; }
.shot { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; aspect-ratio: 3/4; background: var(--paper-2); }
.gallery--land .shot { aspect-ratio: 4/3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot::after { content:""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8,45,52,.5)); opacity: 0; transition: opacity .3s ease; }
.shot:hover img { transform: scale(1.07); }
.shot:hover::after { opacity: 1; }
.shot__zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: all .3s ease; z-index: 2; }
.shot:hover .shot__zoom { opacity: 1; transform: none; }
.shot__zoom svg { width: 18px; height: 18px; color: var(--petrol); }

/* ---------- Booking / cennik -------------------------------------------- */
.booking { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.booking__card { background: var(--surface); border-radius: var(--radius); padding: clamp(28px,3.5vw,44px);
  box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list li > div b { display: block; font-family: var(--ff-display); font-size: 1.05rem; margin-bottom: 2px; }
.price-list li > div span { display: block; color: var(--muted); font-size: .9rem; }
.price-list .price { color: var(--river); font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.booking__note { font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { max-width: 60rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--ff-display); font-weight: 700; font-size: var(--step-1); color: var(--petrol); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content:"+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--sun); font-family: var(--ff-body); transition: transform .25s ease; line-height: 1; }
.faq details[open] summary::after { content:"–"; }
.faq details[open] summary { color: var(--river); }
.faq p { color: var(--muted); padding: 0 44px 22px 0; margin: 0; }

/* ---------- Contact ------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 60px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--petrol); }
.field input, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 4px rgba(44,160,180,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { grid-column: 1/-1; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; display: none; }
.form__msg.ok { display: block; background: #e6f4ea; color: #205e33; border: 1px solid #a9d5b6; }
.form__msg.err { display: block; background: #fdecec; color: #97362f; border: 1px solid #f0bcb8; }
.form .btn { grid-column: 1/-1; justify-content: center; }
.form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form .spinner { width: 1em; height: 1em; border: 2px solid rgba(58,37,3,.3); border-top-color: #3a2503; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-info { display: flex; flex-direction: column; gap: 4px; }
.contact-info .ci { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); align-items: flex-start; }
.contact-info .ci:last-child { border-bottom: 0; }
.contact-info .ci__ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; flex: none; color: var(--sun); }
.contact-info .ci__ic svg { width: 22px; height: 22px; }
.contact-info .ci b { display: block; font-family: var(--ff-display); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: #9fc0bf; font-weight: 600; margin-bottom: 3px; }
.contact-info .ci a, .contact-info .ci p { color: #fff; font-size: 1.08rem; margin: 0; font-weight: 500; }
.contact-info .ci a:hover { color: var(--sun); }
.contact-info .ci .acct { font-family: var(--ff-body); font-size: .98rem; letter-spacing: .02em; }

/* ---------- Footer ------------------------------------------------------- */
.footer { background: var(--petrol-2); color: #9fc0bf; padding: clamp(48px,6vw,72px) 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand__name { color: #fff; }
.footer p { font-size: .95rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--ff-body); font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #9fc0bf; } .footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer__bottom a { color: #cfe2e0; }

/* ---------- Lightbox ----------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6,30,34,.94); display: none;
  align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity .28s ease; }
.lb.open { display: flex; opacity: 1; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  transform: scale(.96); transition: transform .3s ease; }
.lb.open img { transform: none; }
.lb__btn { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s ease; }
.lb__btn:hover { background: rgba(255,255,255,.25); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__close { top: 3vw; right: 3vw; }
.lb__prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb__next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 3vw; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; letter-spacing: .1em; }

/* ---------- Scroll reveal ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ---------- Responsive --------------------------------------------------- */
/* Pełne menu mieści się w nagłówku dopiero od ~1280 px. Niżej „O nas" i „Jak to
   działa" łamały się na dwie linie, telefon na trzy, a nagłówek puchł z 80 do
   117 px — trafiało to w iPada w poziomie i małe okna laptopa. Do 1280 px
   linki idą pod hamburgera; telefon zostaje, bo miejsca na niego starcza. */
@media (max-width: 1279px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 960px) {
  .header__tel { display: none; }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .river__head { grid-template-columns: 1fr; }
  .booking, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__facts { gap: 14px; }
  .fact + .fact { padding-left: 14px; }
  .fact b { font-size: 1.25rem; }
  .header__cta .btn { display: none; }
}
