@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --night: #1c1410;
  --night-2: #2a1f18;
  --ink: #2b211a;
  --muted: #6f6157;
  --paper: #fbf7f0;
  --sand: #f2e7d5;
  --line: #e4d6c1;
  --terra: #b4512a;
  --gold: #e3a64a;
  --gold-dark: #c98a2e;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); }
.muted { color: var(--muted); }
.dark .muted { color: #b9a996; }
.small { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-paypal { background: #ffc439; color: #111; }
.btn-block { width: 100%; margin-top: 10px; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; }
.site-header.on-hero { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.site-header.on-hero.scrolled { position: fixed; background: var(--night); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; text-decoration: none; line-height: 1.05; }
.brand small { display: block; font: 600 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.main-nav { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; }
.main-nav a { text-decoration: none; opacity: .9; }
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { font-weight: 700; font-size: .85rem; text-decoration: none; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 4px 8px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; content: ""; }
.menu-toggle i { top: 19px; }
.menu-toggle i::before { top: -7px; left: 0; right: 0; }
.menu-toggle i::after { top: 7px; left: 0; right: 0; }

/* Hero */
.hero, .tour-hero { position: relative; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero { min-height: min(94vh, 900px); padding: 140px 0 70px; }
.tour-hero { min-height: 62vh; padding: 140px 0 48px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .tour-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,13,9,.2) 25%, rgba(20,13,9,.82)); }
.hero-content, .tour-hero-content { position: relative; z-index: 1; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-content .btn { text-shadow: none; }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.season { font-size: .92rem; opacity: .85; margin: 0; }
.crumbs { font-size: .88rem; opacity: .85; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }

/* Pasek zaufania */
.trust { background: var(--night-2); color: #fff; }
.trust-list { list-style: none; padding: 22px 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-list strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.trust-list span { font-size: .9rem; opacity: .8; }

/* Sekcje */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--night); color: #f3ebe0; }
.kicker { font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 10px; }
.dark .kicker { color: var(--gold); }
.section-lead { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-guide { grid-template-columns: .8fr 1fr; }

/* Karty wycieczek */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(60,35,15,.35); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 22px 40px -20px rgba(60,35,15,.45); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 14px; top: 14px; background: rgba(28,20,16,.82); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .96rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--terra); }
.price small { font: 600 .82rem var(--sans); color: var(--muted); }
.more { font-weight: 700; font-size: .92rem; }

/* Wyróżniony pakiet */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--night); color: #f3ebe0; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.feature-text { padding: clamp(40px, 7vw, 90px); align-self: center; }
.feature .kicker { color: var(--gold); }

/* Zdjęcia */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-grid a, .gallery a { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1; }
.photo-grid img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img, .gallery a:hover img { transform: scale(1.05); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; margin-top: 30px; }
.gallery a:nth-child(1), .gallery a:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.guide-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.contact-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.contact-line { margin-bottom: 12px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%231c1410' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Wideo — YouTube ładuje się dopiero po kliknięciu (szybkość strony, mniej śledzenia) */
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #000; margin-top: 26px; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold); }
.video .play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 24px solid var(--night); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Opinie */
.rating { font-size: 1.1rem; }
.rating strong { font-family: var(--serif); font-size: 2rem; margin-right: 6px; }
.rating span { color: var(--muted); margin-left: 6px; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 26px 0 30px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.review footer { color: var(--muted); font-size: .9rem; }
.stars { color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--terra); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Strona wycieczki */
.tour-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding: 56px 0 80px; align-items: start; }
.tour-main h2 { font-size: 1.7rem; margin-top: 44px; }
.tour-price { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--terra); margin: 0; }
.tour-price small { font: 600 1rem var(--sans); color: var(--muted); }
.lead { font-size: 1.18rem; margin-top: 18px; }
.note { background: var(--sand); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.tour-side { position: sticky; top: 92px; }
.booking { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 20px 40px -26px rgba(60,35,15,.5); }
.booking h2 { font-size: 1.45rem; }
.booking label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.booking input[type=number], .booking input[type=date], .booking select { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: var(--paper); }
.booking .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.booking .check input { margin-top: 5px; }
.totals { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.totals p { display: flex; justify-content: space-between; margin: 0 0 6px; }
.totals strong { font-family: var(--serif); font-size: 1.25rem; }
.price-big { font-family: var(--serif); font-size: 1.6rem; color: var(--terra); margin: 6px 0 0; }

/* Stopka */
.site-footer { background: var(--night); color: #d9cdbd; padding: 64px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-h { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.brand-footer { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 20px; font-size: .85rem; opacity: .7; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,7,5,.92); display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

.page-404 { background: var(--sand); }

/* Telefon i tablet */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tour-layout { grid-template-columns: 1fr; gap: 30px; }
  .tour-side { position: static; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); padding: 10px 20px 20px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .header-actions .btn span { display: none; }
  .split, .split-guide, .feature { grid-template-columns: 1fr; }
  .feature-img img { min-height: 280px; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a:nth-child(8) { grid-column: auto; grid-row: auto; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Otwarte menu na zdjęciu — nagłówek musi być ciemny, inaczej logo ginie */
.site-header.on-hero:has(.main-nav.open) { background: var(--night); }
