:root {
  --gold: #b8913f;
  --gold-light: #fff4a8;
  --gold-mid: #d9a520;
  --gold-dark: #8a6417;
  --olive: #4c5a2a;
  --muted: #a8977a;
  --beige: #f4ece2;
  --line: #e6d3a8;
  --lang-accent: var(--gold);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, #faf5ee 0, transparent 55%),
    radial-gradient(circle at 85% 90%, #efe2d3 0, transparent 50%),
    var(--beige);
  background-attachment: fixed;
  font-family: 'Cormorant Garamond', serif;
  color: var(--olive);
}

.card {
  container-type: inline-size;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}
@media (min-width: 560px) {
  body { padding: 32px 16px; }
  .card {
    width: min(100%, 620px);
    min-height: 0;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(140, 110, 80, .18);
  }
}

.page {
  position: relative;
  overflow: hidden;
  padding: 20cqw 12cqw 26cqw;
  border-radius: inherit;
}

/* złota podwójna ramka: cienka linia na zewnątrz, gruba w środku */
.page::before,
.page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-style: solid;
  border-image: linear-gradient(135deg, var(--gold-light), var(--gold-mid) 25%, var(--gold-dark) 50%, var(--gold-mid) 75%, var(--gold-light)) 1;
}
.page::before { inset: 3.5cqw; border-width: 1px; }
.page::after  { inset: 5.5cqw; border-width: .9cqw; }

.flower {
  position: absolute;
  width: 34cqw;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: sway 7s ease-in-out infinite alternate;
}
.flower.top    { top: -2cqw; left: -4cqw; transform-origin: 10% 10%; }
.flower.bottom { bottom: -3cqw; right: -4cqw; transform-origin: 90% 90%; animation-delay: -3.5s; }

/* górny pasek: powrót + język */
.topbar {
  position: absolute;
  top: 8cqw;
  right: 9cqw;
  display: flex;
  align-items: center;
  gap: 3cqw;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  color: var(--muted);
  text-decoration: none;
  font-size: 2.5cqw;
  letter-spacing: .4cqw;
  text-transform: uppercase;
  transition: color .2s;
}
.back .arrow { transition: transform .25s; }
.back:hover { color: var(--gold); }
.back:hover .arrow { transform: translateX(-1cqw); }


/* treść */
.content {
  position: relative;
  z-index: 2;
  text-align: center;
}

h1 {
  font-family: 'Allura', cursive;
  font-weight: 400;
  color: var(--gold);
  font-size: 19cqw;
  line-height: 1;
}
.subtitle {
  margin-top: 2cqw;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 3.7cqw;
  letter-spacing: .7cqw;
  color: var(--olive);
}
.rule {
  width: 34cqw;
  height: 1px;
  margin: 4cqw auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.course { margin-top: 7cqw; }
.course h2 {
  font-family: 'Allura', cursive;
  font-weight: 400;
  color: var(--gold);
  font-size: 9cqw;
  line-height: 1.05;
}
.course p {
  margin-top: 1.6cqw;
  font-size: 3.7cqw;
  font-weight: 600;
  line-height: 1.45;
}
.course .extra { margin-top: 3cqw; font-weight: 500; }

/* przerwa między obiadem a kolacjami */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  margin: 11cqw auto 0;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 3cqw;
  letter-spacing: .8cqw;
}
.divider::before, .divider::after {
  content: "";
  width: 14cqw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { transform: scaleX(-1); }

/* animacje przy przewijaniu */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes sway {
  from { rotate: -1.2deg; }
  to   { rotate: 1.2deg; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
