/* ==========================================================================
   PTTK Sandomierz - motyw WordPress
   Baza wizualna 1:1 z zaakceptowanej wizualizacji + rozszerzenia pod CMS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --cream: #f5f0e6;
  --cream-alt: #efe8d8;
  --green-dark: #0e3a24;
  --green-darker: #0a2c1b;
  --green: #007f43;
  --green-hover: #006636;
  --green-light-text: #8fd6a3;
  --mint: #dcefe1;
  --mint-text: #0e3a24;
  --text: #1a1f1b;
  --text-muted: #5b5a4e;
  --text-on-dark-muted: #b9ceba;
  --border: #e2dac6;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 12px 30px rgba(14, 58, 36, 0.08);
  --container: 1400px;
  --font-heading: "Sora", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--green);
  font-style: normal;
}

.accent-light {
  color: var(--green-light-text);
  font-style: normal;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow.on-dark {
  color: var(--green-light-text);
}

.eyebrow.pill {
  background: var(--mint);
  color: var(--green);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ==========================================================================
   Icons (inline SVG, Heroicons-style outline set)
   ========================================================================== */

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 30px; height: 30px; }

.read-more,
.offer-link,
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16.5px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-hover); color: var(--cream); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(255, 255, 255, 0.08); }

.btn-white { background: var(--cream); color: var(--green-dark); }
.btn-white:hover { background: var(--mint); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.admin-bar .navbar { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .navbar { top: 46px; }
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo img {
  width: 120px; height: 120px; object-fit: contain;
  background: var(--cream); border-radius: 50%; padding: 8px;
  box-shadow: var(--shadow);
  position: relative;
  top: 20px;
  z-index: 1;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .logo-main { font-family: var(--font-heading); font-weight: 800; font-size: 19px; color: var(--green); }
.logo-text .logo-sub { font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 0.18em; color: var(--text-muted); }

/* Nagłówek: pełna nazwa organizacji zamiast krótkiego wordmarku - dłuższy tekst, inna typografia */
.logo .logo-text { justify-content: center; line-height: 1.3; max-width: 250px; }
.logo .logo-text .logo-main { font-weight: 700; font-size: 13px; text-transform: none; letter-spacing: -0.4px; }
.logo .logo-text .logo-sub { font-size: 11px; text-transform: none; margin-top: 3px; letter-spacing: -0.4px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-weight: 600; font-size: 16.5px; color: var(--text); transition: color 0.2s ease; }
.nav-links a:hover,
.nav-links a.active,
.nav-links a.current-menu-item,
.nav-links li.current-menu-item > a { color: var(--green); }

.nav-right { display: flex; align-items: center; gap: 28px; }

.nav-panel { display: flex; align-items: center; gap: 24px; }

.social-links { display: flex; align-items: center; gap: 10px; }
.social-links a {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover { border-color: var(--text); }
.social-links a .icon { width: 24px; height: 24px; }

.footer-social { margin-top: 18px; }
.footer-social a { border-color: rgba(255, 255, 255, 0.3); color: var(--cream); }
.footer-social a:hover { border-color: var(--cream); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  align-items: center;
}

.hamburger span { width: 20px; height: 2px; background: var(--green-dark); transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero blocks
   ========================================================================== */

.hero-copy { min-width: 0; }

.hero-heading { font-size: 72px; margin: 22px 0 20px; }
.hero-heading span { display: block; }

.hero-text-lead { font-size: 18.5px; color: var(--text-muted); max-width: 460px; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-heading); font-weight: 800; font-size: 33px; color: var(--green); }
.hero-stats .stat-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* Pełnoekranowe zdjęcie hero (strona główna) z tekstem nałożonym na gradient */
.hero-photo {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 64px;
}

.hero-photo-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36, 26, 18, .94) 0%, rgba(36, 26, 18, .86) 32%, rgba(36, 26, 18, .45) 58%, rgba(36, 26, 18, .08) 78%, rgba(36, 26, 18, 0) 100%);
}

.hero-photo .container { position: relative; z-index: 1; }
.hero-photo .hero-copy { max-width: 620px; }
.hero-photo .eyebrow { display: block; margin-bottom: 4px; }
.hero-photo .hero-heading { color: var(--cream); }
.hero-photo .hero-text-lead { color: var(--text-on-dark-muted); }
.hero-photo .hero-stats { border-top-color: rgba(255, 255, 255, .22); }
.hero-photo .hero-stats .stat-num { color: var(--green-light-text); }
.hero-photo .hero-stats .stat-label { color: var(--mint); }

.hero-dark { background: var(--green-dark); padding: 88px 0 76px; color: var(--cream); }
.hero-dark.section-photo { min-height: 440px; display: flex; align-items: flex-end; }
.hero-article h1 { font-size: 51px; margin-bottom: 0; }
.hero-article .article-meta { margin-bottom: 18px; }
.article-meta.on-dark { color: var(--cream); }
.hero-dark .breadcrumb { font-size: 14.5px; color: var(--text-on-dark-muted); margin-bottom: 28px; }
.hero-dark .breadcrumb a:hover { color: var(--cream); }
.hero-dark .eyebrow { margin-bottom: 18px; display: block; }
.hero-dark h1 { font-size: 66px; color: var(--cream); margin-bottom: 22px; }
.hero-dark h1 span { display: block; }
.hero-dark .hero-text-lead { color: var(--text-on-dark-muted); max-width: 560px; margin-bottom: 0; }

/* ==========================================================================
   Sections / generic
   ========================================================================== */

section { padding: 88px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--cream-alt); }
.section-white { background: var(--white); }
.section-dark { background: var(--green-dark); color: var(--cream); }
.section-promo { background: var(--cream); }
.section-promo .eyebrow { color: #c1521f; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: 44px; margin-top: 10px; }

.section-head-center { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head-center h2 { font-size: 44px; margin-top: 10px; }
.section-head-center p { font-size: 17.5px; color: var(--text-muted); margin-top: 14px; }
.section-dark .section-head-center p { color: var(--text-on-dark-muted); }

.section-dark .eyebrow { color: var(--green-light-text); }

.section-title { font-size: 40px; margin-bottom: 36px; }

/* News / Aktualności cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.news-card-media img { width: 100%; height: 220px; object-fit: cover; background: var(--mint); }
.news-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.news-card h3 { font-size: 23px; margin-bottom: 10px; }
.news-card p { color: var(--text-muted); font-size: 16px; margin-bottom: 14px; flex: 1; }
.news-card .read-more { font-weight: 700; font-size: 15.5px; color: var(--green); margin-top: auto; }
.card-link:hover .news-card h3 { color: var(--green); }
.empty-state { color: var(--text-muted); font-size: 16.5px; }

/* Offer cards (dark) - kafle kategorii na stronie głównej, powiększone */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.offer-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.offer-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg); padding: 36px 32px;
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.offer-card.highlight { background: var(--green); border-color: var(--green); }
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}
.offer-card.highlight:hover { border-color: var(--green); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32); }

.offer-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 19.5px; color: var(--green-light-text);
}
.offer-card.highlight .offer-icon { color: var(--cream); }

.offer-card h3 { font-size: 25px; color: var(--cream); margin-bottom: 12px; }
.offer-card p { font-size: 16px; color: var(--text-on-dark-muted); margin-bottom: 20px; flex: 1; }
.offer-card .offer-link { font-weight: 700; font-size: 15px; color: var(--green-light-text); margin-top: auto; }
.offer-card.highlight p { color: rgba(245, 240, 230, 0.85); }
.offer-card.highlight .offer-link { color: var(--cream); }

/* Dom Wycieczkowy „Turysta” - sekcja z galerią/opisem i listą zalet obiektu */
.dom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dom-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.dom-content .eyebrow { display: block; margin-bottom: 10px; }
.dom-content h2 { font-size: 35px; margin-bottom: 14px; }
.dom-content > p { color: var(--text-muted); font-size: 17px; margin-bottom: 26px; }
.amenity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-bottom: 34px; }
.amenity-item { display: flex; align-items: center; gap: 14px; font-size: 17.5px; font-weight: 600; }
.amenity-item .icon-box {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm); background: var(--cream-alt);
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.amenity-item .icon-box .icon { width: 26px; height: 26px; }

.section-dark .dom-content > p { color: var(--text-on-dark-muted); }
.section-dark .amenity-item .icon-box { background: rgba(255, 255, 255, 0.1); color: var(--cream); }
.section-dark .dom-media img { box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.12); }

/* Kafle wyboru czasu trwania ("Ile masz czasu?") */
.duration-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.duration-tile {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: 999px;
  background: var(--cream-alt); border: 1.5px solid var(--border);
  font-weight: 700; font-size: 16.5px; color: var(--text);
}
.duration-tile .icon { color: var(--green); }
.duration-tile:hover { border-color: var(--green); background: var(--mint); color: var(--mint-text); }
.duration-tile:hover .icon { color: var(--mint-text); }

.related-offer-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.related-offer-card .archive-card-media img { height: 180px; }
.related-offer-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.related-offer-body h3 { font-size: 21px; color: var(--cream); margin-bottom: 8px; }
.related-offer-body p { font-size: 15.5px; color: var(--text-on-dark-muted); margin-bottom: 18px; flex: 1; }
.related-offer-body .btn { align-self: flex-start; }

/* Sekcja z pełnym zdjęciem w tle + ciemną nakładką (do ponownego użycia: cytat, CTA itp.) */
.section-photo { position: relative; overflow: hidden; }
.section-photo-media { position: absolute; inset: 0; z-index: 0; }
.section-photo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36, 26, 18, .9) 0%, rgba(36, 26, 18, .8) 40%, rgba(36, 26, 18, .68) 70%, rgba(36, 26, 18, .55) 100%);
}
.section-photo > .container { position: relative; z-index: 1; }

.section-photo.has-bg-photo .quote-block p { color: var(--cream); }
.section-photo.has-bg-photo .quote-block cite { color: var(--text-on-dark-muted); }
.section-photo.has-bg-photo .cta-simple h2 { color: var(--cream); }
.section-photo.has-bg-photo .cta-simple p { color: var(--text-on-dark-muted); }

.quote-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; }
.quote-block { display: flex; flex-direction: column; justify-content: center; }
.quote-block p { font-family: var(--font-heading); font-weight: 600; font-style: italic; font-size: 29px; line-height: 1.4; color: var(--text); margin-bottom: 18px; }
.quote-block cite { font-style: normal; font-size: 15.5px; color: var(--text-muted); }

.booking-card { background: var(--cream); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.booking-card .eyebrow { margin-bottom: 14px; display: block; }
.booking-card h3 { font-size: 30px; margin-bottom: 14px; }
.booking-card p { color: var(--mint-text); opacity: 0.85; font-size: 16px; margin-bottom: 24px; }
.booking-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* CTA band */
.cta-band { background: var(--green); padding: 34px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band p { color: var(--cream); font-weight: 600; font-size: 17.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer { background: var(--green-darker); color: var(--text-on-dark-muted); padding: 68px 0 0; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-icon { width: 72px; height: 72px; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: contain; background: var(--cream); border-radius: 50%; padding: 5px; }
.footer-logo .logo-text { line-height: 1.3; max-width: 250px; }
.footer-logo .logo-main { color: var(--cream); font-weight: 700; font-size: 15px; letter-spacing: -0.4px; text-transform: none; }
.footer-logo .logo-sub { color: var(--text-on-dark-muted); font-size: 12px; letter-spacing: -0.4px; text-transform: none; margin-top: 3px; }

.footer-desc { font-size: 15.5px; line-height: 1.6; max-width: 260px; margin-bottom: 20px; }
.footer-address { font-size: 15.5px; margin-bottom: 6px; }
.footer-phone { font-weight: 700; color: var(--cream); font-size: 16px; }

.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-light-text); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { font-size: 16px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14.5px; }
.footer-cookie-link { color: inherit; text-decoration: underline; opacity: 0.85; }
.footer-cookie-link:hover { opacity: 1; }

/* ==========================================================================
   O nas page
   ========================================================================== */

.history-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.history-grid h2 { font-size: 40px; margin: 10px 0 22px; }
.history-grid p { color: var(--text-muted); margin-bottom: 16px; font-size: 17px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.stat-tile {
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.stat-tile:last-child {
  background: linear-gradient(135deg, #f8f4ea 0%, #e9e0cc 100%);
  box-shadow: 0 10px 26px rgba(14, 58, 36, 0.08);
}
.stat-tile .num { font-family: var(--font-heading); font-weight: 800; font-size: 42px; display: block; margin-bottom: 8px; color: var(--green-dark); }
.stat-tile .label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); opacity: 0.85; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 18px;
}
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6n+4) { grid-column: span 2; }

/* Lightbox galerii */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox[hidden] { display: none; }

.lightbox-figure { max-width: 90vw; max-height: 90vh; margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 90vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-caption { color: var(--cream); font-size: 15.5px; margin-top: 16px; text-align: center; min-height: 1em; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-close { top: 20px; right: 24px; width: 48px; height: 48px; font-size: 31px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 35px; line-height: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .lightbox { padding: 24px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 29px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 26px; }
}

.structure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.structure-card { background: var(--cream-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; }
.structure-card.highlight {
  background: linear-gradient(135deg, #f8f4ea 0%, #e9e0cc 100%);
  box-shadow: 0 10px 26px rgba(14, 58, 36, 0.08);
}
.structure-card h3 { font-size: 23px; margin-bottom: 12px; }
.structure-card p { color: var(--text-muted); font-size: 16px; }

.cta-simple { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-simple h2 { font-size: 42px; margin-bottom: 16px; }
.cta-simple p { color: var(--text-muted); margin-bottom: 28px; font-size: 17.5px; }

/* ==========================================================================
   Kontakt page
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-grid h2 { font-size: 33px; margin-bottom: 30px; }

.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-icon { width: 44px; height: 44px; min-width: 44px; background: var(--mint); color: var(--green); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 19.5px; }
.contact-item .label { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-item p, .contact-item div { font-size: 18px; }
.contact-item .muted { color: var(--text-muted); font-size: 16.5px; }

.map-embed { margin-top: 8px; height: 260px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-placeholder {
  margin-top: 8px; height: 220px; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, #dcecf4, #dcecf4 10px, #d0e5ee 10px, #d0e5ee 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #2e5c72; gap: 6px; text-align: center;
}
.map-placeholder .pin { margin-bottom: 4px; color: #2e5c72; }
.map-placeholder strong { font-size: 16px; }
.map-placeholder span { font-size: 14px; opacity: 0.75; }

.map-embed-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px; background: var(--cream-alt);
}
.map-embed-consent .pin { color: var(--green); }
.map-embed-consent p { font-size: 15px; color: var(--text-muted); max-width: 280px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }

.field label { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.field { margin-bottom: 18px; }
.field:has(.wpcf7-not-valid-tip) { margin-bottom: 0; }

.field input,
.field select,
.field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: rgba(255, 255, 255, 0.3);
  font-family: var(--font-body); font-size: 17.5px; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b5a4e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9bfa0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 127, 67, 0.12); }

/* Contact Form 7 compatibility (form markup authored with .field/.form-row wrappers) */
.contact-form .wpcf7-form-control-wrap { display: block; }

.field-consent .wpcf7-list-item { margin: 0; }
.field-consent label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: normal;
  color: var(--text-muted); cursor: pointer; line-height: 1.5;
}
.field-consent input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; accent-color: var(--green); cursor: pointer; }
.field-consent a { color: var(--green); text-decoration: underline; font-weight: 400; }
.contact-form .wpcf7-not-valid-tip { display: block; color: #b3261e; font-size: 14px; line-height: 1.3; margin: 6px 0 18px; }
.contact-form .wpcf7-response-output {
  margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 16px;
}
.contact-form.wpcf7-mail-sent-ok .wpcf7-response-output,
.contact-form form.sent .wpcf7-response-output { border-color: var(--green); color: var(--green-dark); background: var(--mint); }
.contact-form form.invalid .wpcf7-response-output,
.contact-form form.unaccepted .wpcf7-response-output,
.contact-form form.payment-required .wpcf7-response-output { border-color: #b3261e; color: #b3261e; }
.wpcf7-spinner { margin-left: 10px; }

/* Honeypot anti-spam field - invisible to real visitors, catches basic bots */
.pttk-hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Blog article (aktualność)
   ========================================================================== */

.article-wrap { max-width: var(--container); margin: 0 auto; }

.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 16.5px; color: var(--text-muted); flex-wrap: wrap; }

.tag-pill { background: var(--mint); color: var(--green); font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; display: inline-block; }

.article-wrap h1 { font-size: 51px; margin-bottom: 26px; }

.article-lead { border-left: 3px solid var(--green); padding-left: 24px; font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.5; margin-bottom: 30px; }

.article-divider { height: 1px; background: var(--border); margin: 30px 0; }

.article-wrap .entry-content { color: var(--text-muted); font-size: 19px; }
.article-wrap .entry-content > * + * { margin-top: 20px; }
.article-wrap .entry-content h2 { font-size: 32px; margin: 38px 0 16px; color: var(--text); }
.article-wrap .entry-content h3 { font-size: 23px; margin: 28px 0 12px; color: var(--text); }
.article-wrap .entry-content a { color: var(--green); text-decoration: underline; }
.article-wrap .entry-content ul, .article-wrap .entry-content ol { padding-left: 22px; list-style: disc; }
.article-wrap .entry-content ol { list-style: decimal; }

.info-box { background: var(--cream-alt); border-left: 3px solid var(--green); border-radius: var(--radius-md); padding: 26px 30px; margin: 26px 0; }
.info-box h3 { font-size: 21px; margin-bottom: 16px; }
.info-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 17.5px; }

.article-cta { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.article-cta .phone-link { font-weight: 700; color: var(--green); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.related-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); height: 100%; }
.related-card h3 { font-size: 21px; margin: 10px 0 10px; }
.related-card p { font-size: 17px; color: var(--text-muted); }

/* ==========================================================================
   Usluga page
   ========================================================================== */

.service-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.service-grid h2 { font-size: 33px; margin-top: 48px; margin-bottom: 20px; }
.service-grid > .service-main > h2:first-child { margin-top: 0; }
.service-grid > .service-main > p,
.service-grid > .service-main > .entry-content { color: var(--text-muted); font-size: 17px; margin-bottom: 18px; }
.service-main .entry-content > * + * { margin-top: 16px; }

.timeline { margin-top: 8px; margin-bottom: 8px; }
.timeline-item { display: grid; grid-template-columns: 20px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -4px; width: 1px; background: var(--border); }
.timeline-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--green); margin-top: 2px; }
.timeline-dot.outline { background: transparent; border: 2px solid var(--green); }
.timeline-time { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.timeline-item h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.timeline-item p { font-size: 16px; color: var(--text-muted); }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 18px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.check-item .tick { color: var(--green); font-weight: 700; }

.price-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 108px; }
.price-card-head { background: var(--green); color: var(--cream); padding: 26px 28px; position: relative; }
.price-card-head .label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-bottom: 8px; display: block; }
.price-card-head .price { font-family: var(--font-heading); font-weight: 800; font-size: 44px; }
.price-card-head .price small { font-size: 17.5px; font-weight: 600; }
.price-card-head .note { font-size: 15.5px; line-height: 1.5; opacity: 0.95; margin-top: 8px; }

.price-card-body { padding: 26px 28px; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; gap: 12px; }
.price-row:last-of-type { border-bottom: none; }
.price-row .value { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-align: right; }

.price-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.meeting-note { background: var(--cream-alt); border-radius: var(--radius-md); padding: 16px 18px; font-size: 15px; margin-top: 18px; }
.meeting-note strong { display: block; margin-bottom: 4px; }

/* Archive grids (uslugi / aktualnosci listing) - flex-wrap so a handful of items
   never gets stretched across empty fixed columns like a rigid 3-col grid would. */
.archive-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.archive-grid > * { flex: 1 1 340px; max-width: 420px; }
.archive-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
  color: var(--text);
}
.archive-card-media { position: relative; }
.archive-card-media img { width: 100%; height: 200px; object-fit: cover; background: var(--mint); }
.archive-card .archive-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.archive-card h3 { font-size: 22px; margin-bottom: 10px; }
.archive-card p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; flex: 1; }
.archive-card .archive-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.archive-card .price-tag { font-weight: 700; color: var(--green); font-size: 15.5px; }
.archive-card .price-tag.price-tag-muted { color: var(--text-muted); font-weight: 600; font-size: 14.5px; }

/* Przy sidebarze z filtrami kolumna treści jest węższa niż cały kontener, więc
   elastyczne karty (340-420px) mieszczą tylko 2 w rzędzie. Od tej szerokości
   okna wymuszamy sztywną siatkę 3 kolumn, zamiast poszerzać cały layout. */
@media (min-width: 1300px) {
  .archive-content .archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .archive-content .archive-grid > * { max-width: none; }
}

.duration-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mint); color: var(--mint-text);
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px;
}

.promo-badge {
  position: absolute; top: 14px; right: 14px;
  background: #e2572c; color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(226, 87, 44, 0.35);
  transform: rotate(3deg);
}

.filter-label {
  font-family: var(--font-heading); font-weight: 700; font-size: 16.5px;
  color: var(--text); margin-bottom: 12px;
}
.filter-label-secondary { font-size: 14.5px; color: var(--text-muted); }

.archive-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.archive-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 15px; font-weight: 600; }
.archive-filter a:hover, .archive-filter a.active { border-color: var(--green); color: var(--green); background: var(--mint); }
.archive-filter-secondary { margin-bottom: 40px; padding-top: 14px; border-top: 1px solid var(--border); }
.archive-filter-secondary a { font-size: 14px; padding: 7px 14px; color: var(--text-muted); }
.archive-filter-secondary a:hover, .archive-filter-secondary a.active { color: var(--green); }

/* Archiwum ofert - filtry jako sticky sidebar z lewej, karty w głównej kolumnie. */
.archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.archive-sidebar {
  position: sticky; top: 140px; min-width: 0;
  background: var(--cream-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.archive-sidebar .filter-label { margin-top: 0; }
.archive-sidebar .archive-filter { flex-direction: column; gap: 8px; margin-bottom: 0; }
.archive-sidebar .archive-filter a { width: 100%; }
.archive-sidebar .filter-label-secondary { margin-top: 22px; }
.archive-sidebar .archive-filter-secondary {
  margin-bottom: 0; padding-top: 18px; margin-top: 14px; border-top: 1px solid var(--border);
}

/* Aktywne filtry (zdejmowalne pigułki) nad siatką wyników. */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.active-filters-label { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 16px; border-radius: 999px;
  background: var(--mint); color: var(--mint-text);
  font-size: 15px; font-weight: 600;
}
.filter-chip:hover { background: var(--green); color: var(--cream); }
.filter-chip-clear-all { font-size: 14.5px; font-weight: 600; color: var(--text-muted); text-decoration: underline; }
.filter-chip-clear-all:hover { color: var(--green); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
/* WP core wraps pagination links in the same .nav-links class as the main navbar menu - override it here
   so the navbar's (mobile) column/full-width/36px-gap rules can't leak into the pagination row. */
.pagination .nav-links {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 8px; width: auto;
}
.pagination .nav-links a,
.pagination .nav-links span {
  display: inline-flex; width: auto;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 15.5px; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--cream); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.dots { border: none; }
.pagination .page-numbers.prev, .pagination .page-numbers.next { gap: 8px; }
.icon-rotate-180 { transform: rotate(180deg); }

/* WordPress core alignment / caption helpers */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14.5px; color: var(--text-muted); margin-top: 8px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 404 / search */
.simple-page { padding: 88px 0; text-align: center; }
.simple-page h1 { font-size: 51px; margin-bottom: 18px; }
.simple-page p { color: var(--text-muted); font-size: 18.5px; max-width: 560px; margin: 0 auto 28px; }
.search-form-block { max-width: 480px; margin: 0 auto 40px; display: flex; gap: 10px; }
.search-form-block input[type="search"] { flex: 1; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: 16.5px; }

/* Karuzela mobilna (aktualności / oferta / bestsellery / promocje) - wskazówka przesuwania, tylko mobile */
@keyframes pttk-swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.carousel-swipe { display: none; }

/* Prevent CSS Grid/Flex tracks from being stretched by intrinsic content size */
.history-grid > *, .stat-grid > *, .quote-grid > *, .contact-grid > *,
.service-grid > *, .footer-grid > *, .news-grid > *, .offer-grid > *,
.structure-grid > *, .related-grid > *, .archive-grid > * {
  min-width: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-heading, .hero-dark h1 { font-size: 57px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar .container { height: 72px; }
  .logo img { width: 84px; height: 84px; padding: 6px; top: 10px; }
  .logo .logo-text { max-width: 190px; }
  .logo .logo-text .logo-main { font-size: 11px; }
  .logo .logo-text .logo-sub { font-size: 9px; }

  .nav-panel {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--cream);
    padding: 22px 24px 24px;
    border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
  }

  body.admin-bar .nav-panel { top: 118px; }

  .nav-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }

  .nav-panel .social-links { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }

  .nav-right .btn-primary { display: none; }
  .nav-right.mobile-cta-visible .btn-primary { display: inline-flex; }

  .hamburger { display: flex; }

  section { padding: 56px 0; }

  .hero-photo { min-height: 520px; padding: 100px 0 48px; }
  .hero-photo-overlay { background: linear-gradient(180deg, rgba(36, 26, 18, .92) 0%, rgba(36, 26, 18, .78) 55%, rgba(36, 26, 18, .6) 100%); }
  .hero-photo .hero-copy { max-width: none; }

  .hero-heading, .hero-dark h1 { font-size: 44px; }
  .hero-dark { padding: 56px 0 48px; }
  .hero-dark.section-photo { min-height: 360px; }

  .section-head h2, .section-head-center h2 { font-size: 31px; }
  .section-title { font-size: 29px; margin-bottom: 24px; }
  .history-grid h2 { font-size: 29px; }
  .cta-simple h2 { font-size: 29px; }
  .contact-grid h2 { font-size: 24px; }
  .service-grid h2 { font-size: 24px; }
  .article-wrap h2 { font-size: 23px; }
  .booking-card h3 { font-size: 23px; }

  .news-card h3, .offer-card h3, .structure-card h3, .archive-card h3 { font-size: 18.5px; }
  .related-card h3, .info-box h3, .timeline-item h3 { font-size: 17.5px; }

  .stat-tile .num { font-size: 33px; }

  .hero-actions { flex-wrap: wrap; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .news-grid, .offer-grid-3, .structure-grid, .related-grid { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }

  /* Aktualności / oferta / bestsellery / promocje na stronie głównej: karuzela ze scroll-snap (widać kolejny element) */
  /* (celowo ograniczone do .is-carousel - te same siatki na stronach archiwów/listing mają zostać zwykłą, stakowaną listą ze stronicowaniem) */
  .news-grid.is-carousel, .offer-grid.is-carousel, .archive-grid.is-carousel {
    display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -24px; padding: 4px 24px 8px; scroll-padding: 0 24px;
    scrollbar-width: none;
  }
  .news-grid.is-carousel::-webkit-scrollbar, .offer-grid.is-carousel::-webkit-scrollbar, .archive-grid.is-carousel::-webkit-scrollbar { display: none; }
  .news-grid.is-carousel > *, .offer-grid.is-carousel > *, .archive-grid.is-carousel > * {
    flex: 0 0 82%; max-width: 340px; scroll-snap-align: start;
  }

  .carousel-swipe {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    align-items: center; gap: 14px; margin-top: 18px;
  }
  .carousel-dots { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); }
  .carousel-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .25s ease, background .25s ease; cursor: pointer; border: 0; padding: 0; }
  .carousel-dot.is-active { width: 26px; background: var(--green); }
  .carousel-swipe-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); transition: opacity .3s ease; }
  .carousel-swipe-hint .icon { animation: pttk-swipe-nudge 1.6s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) { .carousel-swipe-hint .icon { animation: none; } }
  .carousel-swipe.is-used .carousel-swipe-hint { opacity: 0; }

  .section-dark .carousel-dots { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
  .section-dark .carousel-dot { background: rgba(255, 255, 255, 0.28); }
  .section-dark .carousel-dot.is-active { background: var(--green-light-text); }
  .section-dark .carousel-swipe-hint { color: var(--text-on-dark-muted); }
  .archive-sidebar { position: static; padding: 22px 0 24px; }

  /* Filtr kategorii w sidebarze na mobile: jeden rząd pigułek na scrollu X zamiast listy w kolumnie */
  .archive-sidebar .filter-label { font-size: 15px; margin-bottom: 12px; padding: 0 20px; }
  .archive-sidebar .archive-filter {
    flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
    padding: 0 20px 2px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, black calc(100% - 36px), transparent);
  }
  .archive-sidebar .archive-filter::-webkit-scrollbar { display: none; }
  .archive-sidebar .archive-filter a { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 8px 16px; font-size: 14px; }
  .archive-sidebar .filter-label-secondary { margin-top: 18px; padding: 0 20px; }
  .archive-sidebar .archive-filter-secondary { margin-top: 10px; padding-top: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .quote-grid, .history-grid, .contact-grid, .service-grid, .dom-grid { grid-template-columns: 1fr; gap: 32px; }
  .amenity-list { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-desc, .footer-logo .logo-text { max-width: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-band .container { flex-direction: column; text-align: center; }

  .article-wrap h1, .hero-article h1 { font-size: 28px; }
  .article-lead { font-size: 18.5px; padding-left: 18px; margin-bottom: 24px; }

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

  .price-card { position: static; }

  .footer-bottom { flex-direction: column; }

  .cookie-banner-inner { padding: 20px; }
  .cookie-banner-actions { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* ==========================================================================
   Banner zgody na cookies (RODO)
   ========================================================================== */

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1000;
  max-width: 520px; margin: 0 auto;
}
.cookie-banner-inner {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(14, 58, 36, 0.22);
  border: 1px solid var(--border);
  padding: 28px;
}
.cookie-banner-main h3 { font-size: 21px; margin-bottom: 10px; }
.cookie-banner-main p { font-size: 15.5px; color: var(--text-muted); margin-bottom: 18px; }
.cookie-banner-main p a { color: var(--green); text-decoration: underline; }

.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { flex: 1; white-space: nowrap; }

.cookie-banner-settings:not( [hidden] ) { display: flex; flex-direction: column; gap: 18px; }
.cookie-category { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cookie-category:last-of-type { border-bottom: none; padding-bottom: 0; }
.cookie-category p { font-size: 14.5px; color: var(--text-muted); margin-top: 6px; margin-left: 30px; }

.cookie-toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; cursor: pointer; }
.cookie-toggle input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; }
.cookie-toggle input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }
