/* ===== ZMIENNE / TOKENY ===== */
:root {
  --deep:   #0b3d5c;   /* głęboka woda */
  --river:  #1a7fa8;   /* rzeka */
  --aqua:   #35c4c9;   /* akcent wodny */
  --sand:   #f4a259;   /* wiosło / piasek */
  --coral:  #ef6f6c;   /* akcent ciepły */
  --ink:    #0f2733;
  --muted:  #5b7180;
  --paper:  #f5f9fb;
  --white:  #ffffff;
  --line:   #d9e6ec;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px -12px rgba(11, 61, 92, .28);
  --shadow-sm: 0 4px 14px -6px rgba(11, 61, 92, .25);
  --container: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--deep); }
h3 { font-size: 1.2rem; color: var(--deep); }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--river); margin-bottom: .5rem;
}

/* ===== PRZYCISKI ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sand); color: #3a2000; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #ffb673; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ===== NAGŁÓWEK ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 249, 251, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--deep); }
.logo-mark { color: var(--river); display: grid; place-items: center; }
.logo-text { font-weight: 800; font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-weight: 600; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.nav-list a { font-weight: 600; color: var(--ink); font-size: .95rem; transition: color .2s; }
.nav-list a:hover { color: var(--river); }
.nav-list a.btn { color: #3a2000; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span:not(.sr-only) { width: 24px; height: 2px; background: var(--deep); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--deep) 0%, var(--river) 55%, var(--aqua) 130%);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 8rem;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1.1rem; }
.hero h1 span { color: var(--sand); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-stats div { border-left: 3px solid var(--sand); padding-left: 1rem; }
.hero-stats dt { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.hero-stats dd { color: rgba(255,255,255,.8); font-size: .9rem; }

.hero-waves { position: absolute; inset: auto 0 -2px 0; height: 160px; z-index: 1; }
.wave {
  position: absolute; left: -50%; width: 200%; height: 100%;
  background-repeat: repeat-x; background-position: 0 bottom;
  border-radius: 45%;
}
.wave-1 { background: var(--paper); opacity: 1; bottom: -120px; animation: drift 14s linear infinite; }
.wave-2 { background: rgba(53,196,201,.5); bottom: -110px; animation: drift 10s linear infinite reverse; }
.wave-3 { background: rgba(255,255,255,.25); bottom: -100px; animation: drift 18s linear infinite; }
@keyframes drift { from { transform: translateX(0) } to { transform: translateX(25%) } }

/* ===== SEKCJE ===== */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-sub { color: var(--muted); max-width: 440px; }

/* ===== FILTRY / CHIPY ===== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.chip:hover { border-color: var(--river); color: var(--river); }
.chip.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ===== SPŁYWY ===== */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.trip-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trip-banner { height: 130px; position: relative; display: flex; align-items: flex-end; padding: 1rem; }
.trip-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(11,61,92,.35)); }
.trip-date {
  position: relative; z-index: 1; background: var(--white); color: var(--deep);
  border-radius: 12px; padding: .4rem .7rem; text-align: center; line-height: 1; box-shadow: var(--shadow-sm);
}
.trip-date b { display: block; font-size: 1.4rem; }
.trip-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trip-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.trip-body h3 { margin-bottom: .1rem; }
.trip-meta { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .85rem; }
.trip-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.badge { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; }
.badge.latwy { background: #e4f7ec; color: #1c8b4c; }
.badge.sredni { background: #fff2df; color: #b5730f; }
.badge.trudny { background: #fde6e5; color: #c0403c; }
.trip-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .4rem; }
.spots { font-size: .82rem; color: var(--muted); }
.spots b { color: var(--coral); }

/* ===== TRENINGI ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.feature-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s, box-shadow .2s;
}
.section-alt .feature-card { background: var(--paper); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: .8rem; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: .5rem 0 1rem; }
.feature-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--river); background: rgba(26,127,168,.1); padding: .3rem .7rem; border-radius: 999px; }

/* ===== WYPOŻYCZALNIA ===== */
.rent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.rent-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.rent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rent-visual { height: 150px; position: relative; overflow: hidden; background: linear-gradient(160deg, #d3eef4, #bfe6ef); display: grid; place-items: center; }
.rent-visual::before { content: ""; position: absolute; bottom: 0; left: -20%; width: 140%; height: 40px; background: rgba(26,127,168,.25); border-radius: 50%; }
.rent-visual::after { font-size: 3rem; }
.rent-visual[data-kayak="tour"]::after { content: "🛶"; }
.rent-visual[data-kayak="double"]::after { content: "🚣"; }
.rent-visual[data-kayak="white"]::after { content: "🛶"; filter: hue-rotate(180deg); }
.rent-visual[data-kayak="sup"]::after { content: "🏄"; }
.rent-body { padding: 1.1rem 1.2rem 1.3rem; }
.rent-body p { color: var(--muted); font-size: .88rem; margin: .3rem 0 1rem; }
.rent-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 800; font-size: 1.35rem; color: var(--deep); }
.price small { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ===== GALERIA ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.gallery-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; border: 0; padding: 0; box-shadow: var(--shadow-sm);
}
.gallery-item .g-visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; background: linear-gradient(135deg,#1a7fa8,#35c4c9); }
.gallery-item:hover .g-visual { transform: scale(1.08); }
.gallery-item .g-caption {
  position: absolute; inset: auto 0 0 0; padding: .7rem; color: #fff; font-size: .85rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(11,61,92,.8)); text-align: left;
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.gallery-item:hover .g-caption, .gallery-item:focus-visible .g-caption { opacity: 1; transform: none; }

/* ===== OPINIE ===== */
.testimonials { background: linear-gradient(160deg, var(--deep), var(--river)); color: #fff; text-align: center; }
.testimonials h2 { color: #fff; }
.testimonials .eyebrow { color: var(--aqua); }
.quote { max-width: 720px; margin: 1.5rem auto 1.2rem; }
.quote p { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 500; min-height: 3.2em; }
.quote footer { margin-top: 1rem; color: rgba(255,255,255,.85); }
.quote cite { font-weight: 700; font-style: normal; color: var(--sand); }
.quote-dots { display: flex; justify-content: center; gap: .5rem; }
.quote-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: .2s; padding: 0; }
.quote-dots button.is-active { background: var(--sand); transform: scale(1.3); }

/* ===== CTA / KONTAKT ===== */
.section-cta { background: var(--white); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.cta-text p { color: var(--muted); }
.contact-list { list-style: none; margin-top: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.contact-list li { color: var(--ink); }
.contact-list strong { color: var(--deep); }
.cta-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: .95rem; background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--river); box-shadow: 0 0 0 3px rgba(26,127,168,.15);
}
.field textarea { resize: vertical; }
.form-status { margin-top: .8rem; font-weight: 600; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: #1c8b4c; }
.form-status.err { color: var(--coral); }

/* ===== STOPKA ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .85rem; margin-top: .3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer nav a { font-size: .9rem; transition: color .2s; }
.site-footer nav a:hover { color: var(--aqua); }
.footer-copy { width: 100%; text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(7,30,45,.96);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox-content { max-width: min(1100px, 100%); width: 100%; text-align: center; }
.lightbox-img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); background: rgba(255,255,255,.06); }
.lightbox-caption { color: #fff; margin-top: 1rem; font-size: 1.05rem; font-weight: 600; }
.lightbox-close { position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 4%; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-list.is-open { max-height: 80vh; overflow-y: auto; }
  .nav-list li { padding: .2rem 0; }
  .nav-list a { display: block; padding: .7rem 0; }
  .nav-list a.btn { text-align: center; margin: .5rem 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
}
/* =============================================================
   ROZSZERZENIA CMS — elementy spoza makiety
   ============================================================= */

/* ----- Dostępność ----- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--deep); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.btn:focus-visible, .chip:focus-visible { outline-offset: 2px; }

/* ----- Menu: aktywna pozycja i rozwijane podmenu ----- */
.nav-list a[aria-current="page"]:not(.btn) { color: var(--river); box-shadow: inset 0 -2px 0 var(--sand); }
.nav-list .has-sub { position: relative; display: flex; align-items: center; gap: .15rem; }
.sub-toggle {
  background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; border-radius: 6px; transition: transform .2s;
}
.sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.sub-list {
  list-style: none; position: absolute; top: calc(100% + .6rem); left: -1rem; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-list::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; }
.sub-list a { display: block; padding: .55rem .8rem; border-radius: 10px; font-weight: 600; }
.sub-list a:hover { background: var(--paper); }
.has-sub:hover > .sub-list, .has-sub:focus-within > .sub-list, .has-sub.is-open > .sub-list {
  opacity: 1; visibility: visible; transform: none;
}

/* ----- Baner: slajdy ze zdjęciami ----- */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; z-index: 0; }
.hero-slide.is-active { opacity: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,61,92,.92) 0%, rgba(11,61,92,.7) 45%, rgba(26,127,168,.25) 100%);
}
.hero-slide:not(:has(.hero-bg))::after { display: none; }
.hero-inner { max-width: none; }
.hero-copy { display: none; max-width: 780px; }
.hero .eyebrow { color: var(--aqua); }
.hero-inner > h1 { max-width: 780px; }
.hero-copy.is-active { display: block; animation: heroIn .7s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .hero-title { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1.1rem; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.hero .hero-title span { color: var(--sand); }
.hero-inner > h1 { margin-bottom: 1.5rem; }
.hero-controls { display: flex; align-items: center; gap: .8rem; margin-top: 2.2rem; }
.hero-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.25); }
.hero-dots { display: flex; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.4); transition: .2s; }
.hero-dots button.is-active { background: var(--sand); transform: scale(1.3); }

/* ----- Nagłówek podstrony ----- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--deep) 0%, var(--river) 70%, var(--aqua) 150%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.8rem);
}
.page-hero.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,61,92,.93), rgba(11,61,92,.55));
}
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; margin-left: max(4%, calc((100% - var(--container)) / 2)); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .6rem 0 .8rem; }
.page-hero .lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 640px; }
.page-hero-meta { margin-top: .8rem; color: rgba(255,255,255,.8); font-weight: 600; font-size: .92rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.88); }
.breadcrumbs a:hover { color: var(--sand); }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }
.section-tight { padding-bottom: 0; }

/* ----- Treść z edytora ----- */
.prose { max-width: 760px; font-size: 1.05rem; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.08rem; color: var(--deep); margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.page-hero + .section { padding-top: 56px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--river); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--deep); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--river); }
.prose blockquote { border-left: 4px solid var(--sand); padding: .4em 0 .4em 1.1em; color: var(--deep); font-size: 1.12rem; font-weight: 500; }
.prose img { border-radius: var(--radius); height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose pre { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1em; overflow-x: auto; font-size: .92rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55em .8em; text-align: left; }
.prose th { background: var(--paper); color: var(--deep); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose img.ql-align-center, .prose p.ql-align-center img { margin-inline: auto; }
.prose .ql-video, .prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose .ql-indent-1 { margin-left: 2em; } .prose .ql-indent-2 { margin-left: 4em; } .prose .ql-indent-3 { margin-left: 6em; }
.empty-state { color: var(--muted); padding: 2rem 0; }

/* ----- Linki i przyciski dodatkowe ----- */
.text-link { color: var(--river); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(26,127,168,.35); text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.text-link:hover { color: var(--deep); text-decoration-color: currentColor; }
.section-link { font-weight: 700; color: var(--river); border-bottom: 2px solid var(--sand); padding-bottom: 2px; }
.section-link:hover { color: var(--deep); }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ----- Aktualności ----- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.news-card .trip-banner { height: 190px; background: linear-gradient(135deg, var(--river), var(--aqua)); overflow: hidden; }
.news-card .trip-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .trip-banner img { transform: scale(1.05); }
.news-card .trip-date { z-index: 2; }
.news-card h3 a:hover { color: var(--river); }
.news-date { font-size: .82rem; color: var(--muted); }
.news-excerpt { color: var(--muted); font-size: .93rem; }
.news-card.is-new { animation: heroIn .45s ease both; }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2.4rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 700; font-size: .9rem; background: var(--white);
}
.pagination a:hover { border-color: var(--river); color: var(--river); }
.pagination [aria-current] { background: var(--deep); border-color: var(--deep); color: #fff; }
.js .pagination { display: none; }
.js .load-more-wrap:not(:has(#loadMore)) .pagination { display: flex; }

.article { max-width: 820px; }
.article-cover { margin-bottom: 2rem; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article-nav a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--deep); transition: border-color .2s; }
.article-nav a:hover { border-color: var(--river); }
.article-nav small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.article-nav .next { text-align: right; grid-column: 2; }
.back-link { margin-top: 2rem; }

/* ----- Galeria: albumy ----- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.album-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--river), var(--aqua)); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-count { position: absolute; right: .8rem; bottom: .8rem; background: var(--white); color: var(--deep); font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.album-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.album-title { font-weight: 700; font-size: 1.12rem; color: var(--deep); }
.album-date { font-size: .85rem; color: var(--muted); }
.gallery-large { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ----- Lightbox: nawigacja ----- */
.lightbox-caption:empty { display: none; }
.lightbox-count { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: .3rem; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2.2rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox.single .lightbox-nav, .lightbox.single .lightbox-count { display: none; }

/* ----- Formularz ----- */
.optional { font-weight: 400; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: .2rem 0 1.1rem; cursor: pointer; }
.consent input { margin-top: .2rem; accent-color: var(--river); width: 16px; height: 16px; flex: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--coral); }
.cta-text a { color: var(--river); }

/* ----- Stopka ----- */
#galeria .gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cta-text h2 { margin-bottom: .9rem; }
.footer-contact { font-style: normal; display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; }
.footer-contact a:hover { color: var(--aqua); }

@media (max-width: 820px) {
  .nav-list .has-sub { flex-wrap: wrap; }
  .nav-list .has-sub > a { flex: 1; }
  .sub-list {
    position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem;
    opacity: 1; visibility: visible; transform: none; display: none; background: transparent;
  }
  .has-sub:hover > .sub-list, .has-sub:focus-within > .sub-list { display: none; }
  .has-sub.is-open > .sub-list { display: block; }
  .sub-list a { padding: .5rem 0; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { grid-column: 1; }
  .lightbox-nav { top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 1.4rem; }
  .hero-stats dt { font-size: 1.8rem; }
}

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