/* ═══════════════════════════════════════════════════════════
   KLUB WIDOKOWNI - fundament wizualny
   Skopiowany 1:1 z voucher.widokownia.eu (assets/css/style.css).
   NIE zmieniaj wartości w :root - to jest źródło ciągłości marki.
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper: #FAF7F1;
  --cream: #F1EBDF;
  --ink: #211D17;
  --ink-soft: #57503F;
  --espresso: #171310;
  --espresso-2: #211B15;
  --gold: #C09C5E;
  --gold-deep: #A98443;
  --gold-text: #806129;
  --gold-pale: #E5D8BC;
  --line: rgba(33, 29, 23, .14);
  --line-light: rgba(250, 247, 241, .18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--espresso);
  color: var(--gold-pale);
  padding: .8em 1.4em;
  font-size: .78rem;
  letter-spacing: .1em;
  transition: top .3s;
}
.skip-link:focus-visible { top: 1rem; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* ─────────────── Typography ─────────────── */

.eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--gold-pale); }
.eyebrow--gold { color: var(--gold); }
.section-head .eyebrow { text-indent: .42em; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: .005em;
  color: inherit;
  padding-bottom: .08em;
}
.h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
}

.body {
  font-weight: 400;
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.section-head .body { margin: 1.3rem auto 0; }
.section-head__sub { max-width: 52ch; }
.section-head__sub strong { color: var(--ink); font-weight: 600; }

/* ─────────────── Buttons ─────────────── */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 1.2em 2.9em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  text-align: center;
}
.btn--gold {
  background: var(--gold);
  color: var(--espresso);
}
.btn--gold:hover {
  background: var(--espresso);
  color: var(--gold-pale);
  transform: translateY(-2px);
}
.btn--ghost-light {
  border-color: rgba(250, 247, 241, .45);
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(250, 247, 241, .12);
  transform: translateY(-2px);
}
.btn--nav {
  padding: 1em 2.2em;
  background: var(--gold);
  color: var(--espresso);
}
.btn--nav:hover {
  background: var(--espresso);
  color: var(--gold-pale);
}
.btn--block { display: block; width: 100%; }
.btn--nav__short { display: none; }

/* ─────────────── Nav ─────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.nav__inner {
  position: relative;
  width: min(1360px, 100% - 3rem);
  margin-inline: auto;
  height: var(--nav-h);
  /* Trzy kolumny: menu jest wyśrodkowane, dopóki starczy miejsca, a przy
     dłuższych tłumaczeniach przesuwa się zamiast nachodzić na resztę. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}
.nav__brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
  transition: color .5s var(--ease);
}
.nav__mark { width: 34px; height: 38px; flex-shrink: 0; }
.nav__word { display: flex; flex-direction: column; line-height: 1.25; }
.nav__name {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.nav__sub {
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .52em;
  text-transform: uppercase;
  opacity: .75;
}
.nav__links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: clamp(1.4rem, 2.2vw, 2.4rem);
}
.nav__links a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  opacity: .85;
  transition: color .5s var(--ease), opacity .3s;
  position: relative;
  padding: .4rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.8rem); }
.nav__tel {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  white-space: nowrap;
  color: #fff;
  opacity: .85;
  transition: color .5s var(--ease), opacity .3s;
}
.nav__tel:hover { opacity: 1; }

.nav.is-solid {
  background: rgba(250, 247, 241, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid .nav__brand,
.nav.is-solid .nav__tel,
.nav.is-solid .nav__links a { color: var(--ink); }

/* ─────────────── Hero ─────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 58%;
  animation: kenburns 22s var(--ease) forwards;
  transform-origin: 45% 55%;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 56% at 50% 44%, rgba(18, 15, 11, .64), rgba(18, 15, 11, .26) 56%, rgba(18, 15, 11, 0) 74%),
    linear-gradient(to bottom, rgba(18, 15, 11, .5), rgba(18, 15, 11, .1) 40%, rgba(18, 15, 11, .5) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(880px, 100% - 3rem);
  padding: calc(var(--nav-h) + 2rem) 0 6rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  line-height: 1.12;
  margin-bottom: 1.6rem;
  padding-bottom: .06em;
  text-wrap: balance;
}
.hero__title {
  text-shadow: 0 2px 30px rgba(15, 12, 8, .55), 0 1px 3px rgba(15, 12, 8, .35);
}
.hero__title em {
  font-style: italic;
  color: #F2E7CD;
  text-shadow: 0 2px 26px rgba(15, 12, 8, .7), 0 1px 3px rgba(15, 12, 8, .5);
}
.hero__content .eyebrow {
  text-shadow: 0 1px 14px rgba(15, 12, 8, .6);
}
.hero__lede {
  font-weight: 300;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  max-width: 54ch;
  margin: 0 auto 2.6rem;
  color: rgba(250, 247, 241, .95);
  text-shadow: 0 1px 20px rgba(15, 12, 8, .65), 0 1px 2px rgba(15, 12, 8, .45);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  height: 5.5rem;
  width: 2rem;
  display: flex;
  justify-content: center;
}
.hero__scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(250, 247, 241, .75));
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ─────────────── Footer ─────────────── */

.footer {
  position: relative;
  background: var(--espresso);
  color: var(--paper);
  padding: clamp(4.5rem, 8vw, 7rem) 0 0;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}
.footer__mark {
  width: 44px;
  height: 49px;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer__claim {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(250, 247, 241, .8);
}
.footer__col h3 {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.footer__col a {
  display: block;
  font-size: .85rem;
  font-weight: 300;
  color: rgba(250, 247, 241, .75);
  padding: .28rem 0;
  transition: color .3s;
}
.footer__mail { overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--gold-pale); }
.footer__legal {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.6rem 8.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .72rem;
  font-weight: 300;
  color: rgba(250, 247, 241, .5);
}
.footer__legal nav { display: flex; gap: 1.6rem; }
.footer__legal a { transition: color .3s; padding-block: .35rem; }
.footer__legal a:hover { color: var(--gold-pale); }
.footer__watermark {
  position: absolute;
  bottom: -.16em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.4rem, 12.5vw, 11.5rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, .04);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* ─────────────── Sticky mobile CTA ─────────────── */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 241, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
  display: none;
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ─────────────── Consent banner ─────────────── */

.consent {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 130;
  width: min(430px, calc(100vw - 2.4rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 70px -20px rgba(23, 19, 16, .35);
  padding: 1.5rem 1.6rem 1.4rem;
}
.consent__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: .6rem;
}
.consent__text {
  font-size: .8rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.consent__text a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent__text a:hover { color: var(--ink); }
.consent__options { margin-bottom: 1.1rem; }
.consent__opt {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-block: .35rem;
  cursor: pointer;
}
.consent__opt input {
  margin-top: .25em;
  accent-color: var(--gold-deep);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.consent__opt strong { color: var(--ink); font-weight: 600; }
.consent__actions {
  display: flex;
  gap: .6rem;
}
.consent__actions + .consent__actions { margin-top: .6rem; }
.consent__btn {
  flex: 1;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .95em .5em;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.consent__btn--ghost:hover { background: var(--ink); color: var(--paper); }
.consent__btn--accept {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--espresso);
}
.consent__btn--accept:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.consent__btn--wide { flex: 1; }

.footer__cookies {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
  padding-block: .35rem;
  transition: color .3s;
}
.footer__cookies:hover { color: var(--gold-pale); }

html.capture .consent { display: none !important; }

@media (max-width: 520px) {
  .consent { left: .8rem; right: .8rem; bottom: .8rem; width: auto; }
  .consent__actions { flex-wrap: wrap; }
  .consent__btn { flex-basis: 100%; }
}

/* ─────────────── Reveal animations ─────────────── */

.reveal, .reveal-img {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-img { transform: translateY(0) scale(.985); clip-path: inset(6% 0 6% 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), clip-path 1.1s var(--ease); }
.reveal.is-inview, .reveal-img.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* clip-path tylko dla zdjęć - na zwykłym .reveal przycinał absolutnie
   pozycjonowane dzieci (dymek z kursem wychodził poza akapit i był ucinany). */
.reveal-img.is-inview { clip-path: inset(0 0 0 0); }

/* QA capture mode (?capture) - deterministic full-page screenshots */
html.capture .hero { min-height: 900px; }
html.capture .reveal,
html.capture .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
html.capture .hero__img { animation: none; }
html.capture .sticky-cta { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero__img { animation: none; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}


/* ─────────────── Responsive ─────────────── */
/* Przefiltrowane z sekcji responsywnej vouchera: zostały wyłącznie reguły
   dla części wspólnych (nav, hero, stopka, przyciski). Reguły sekcji
   voucherowych - wzorów, pudełka, zakupu - świadomie pominięte. */

@media (max-width: 1200px) {
  .nav__links { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__tel { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero__veil {
    background:
      radial-gradient(ellipse 120% 60% at 50% 48%, rgba(18, 15, 11, .52), rgba(18, 15, 11, 0) 74%),
      linear-gradient(to bottom, rgba(18, 15, 11, .66), rgba(18, 15, 11, .3) 42%, rgba(18, 15, 11, .66) 100%);
  }
  .btn--nav { padding: .95em 1.5em; font-size: .64rem; letter-spacing: .2em; }
  .nav__inner { width: calc(100% - 2rem); }
  .hero__actions .btn { width: 100%; }
  .footer__watermark { font-size: clamp(3rem, 15vw, 4.4rem); letter-spacing: .06em; }
}

@media (max-width: 480px) {
  .nav__mark { width: 28px; height: 31px; }
  .nav__name { font-size: .78rem; letter-spacing: .22em; }
  .nav__sub { font-size: .5rem; letter-spacing: .4em; }
  .btn--nav { padding: .9em 1.1em; }
}

@media (max-width: 430px) {
  .nav__inner { gap: .7rem; }
  .nav__brand { gap: .55rem; }
  .nav__name { font-size: .72rem; letter-spacing: .15em; }
  .nav__sub { font-size: .46rem; letter-spacing: .3em; }
  .btn--nav { padding: .9em .95em; letter-spacing: .14em; }
}

@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 345px) {
  /* Bardzo wąskie ekrany: zostaje sam znak graficzny, nazwa marki wraca w hero. */
  .nav__word { display: none; }
}
