@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --green: #153c34;
  --green-deep: #0d2c27;
  --cream: #f5f0e8;
  --paper: #fbf9f4;
  --gold: #bf9c64;
  --ink: #1d2825;
  --muted: #68726e;
  --line: rgba(21, 60, 52, .14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { position: relative; min-height: min(880px, 100svh); color: #fff; background: var(--green); overflow: hidden; display: flex; flex-direction: column; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .17; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.hero::after { content: '25'; position: absolute; right: -1vw; bottom: -18vw; font: 600 min(46vw, 680px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); }
.nav { position: relative; z-index: 3; height: 96px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; font: 600 25px/1 var(--serif); letter-spacing: .08em; }
.brand i { color: var(--gold); font-size: 18px; margin: 0 6px; }
.nav-link { color: rgba(255,255,255,.8); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; text-decoration: none; }
.nav-link span { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-left: 8px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 80px 130px; }
.eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: #d8c4a2; }
.eyebrow.dark { color: #88704c; }
.hero h1 { margin: 0; max-width: 1000px; font: 500 clamp(67px, 11vw, 145px)/.78 var(--serif); letter-spacing: -.045em; }
.hero h1 em { color: var(--gold); font-weight: 500; }
.hero-copy { margin: 42px 0 35px; max-width: 620px; color: rgba(255,255,255,.76); font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { border: 0; border-radius: 2px; min-height: 56px; padding: 0 25px; display: inline-flex; justify-content: center; align-items: center; gap: 11px; font-weight: 700; font-size: 13px; letter-spacing: .03em; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.button-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); }
.button-icon { width: 21px; height: 16px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 3px; font-size: 7px; }
.microcopy { margin: 18px 0 0; color: rgba(255,255,255,.45); font-size: 11px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); background: rgba(191,156,100,.12); }
.glow-one { width: 520px; height: 520px; top: -280px; left: 35%; }
.glow-two { width: 450px; height: 450px; right: -250px; bottom: 20%; }
.scroll-cue { z-index: 3; position: absolute; bottom: 32px; left: 50%; color: rgba(255,255,255,.6); text-decoration: none; animation: bounce 2s infinite; }
@keyframes bounce { 50% { transform: translateY(7px); } }

.latest-section { padding: 100px 0; background: var(--cream); overflow: hidden; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 38px; }
.section-head .eyebrow { margin-bottom: 12px; }
h2 { margin: 0; font: 600 clamp(42px, 5vw, 67px)/.95 var(--serif); letter-spacing: -.025em; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #e06155; box-shadow: 0 0 0 4px rgba(224,97,85,.12); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.latest-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 28vw); gap: 16px; overflow-x: auto; padding: 0 max(20px, calc((100vw - 1180px) / 2)) 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.latest-strip:empty::after { content: 'Pierwsze chwile pojawią się tutaj już za moment…'; display: grid; place-items: center; height: 230px; width: min(600px, calc(100vw - 40px)); border: 1px dashed rgba(21,60,52,.25); color: var(--muted); font: italic 22px var(--serif); }
.latest-card, .gallery-card { position: relative; border: 0; padding: 0; overflow: hidden; background: #d9d4ca; text-align: left; }
.latest-card { height: 350px; scroll-snap-align: start; }
.latest-card img, .latest-card video, .gallery-card img, .gallery-card video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.latest-card:hover img, .latest-card:hover video, .gallery-card:hover img, .gallery-card:hover video { transform: scale(1.035); }
.card-shade { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(7,26,22,.72)); pointer-events: none; }
.card-info { position: absolute; inset: auto 18px 17px; color: #fff; display: flex; justify-content: space-between; align-items: end; }
.card-info strong { font-size: 12px; }
.card-info small { color: rgba(255,255,255,.66); font-size: 10px; }
.play-badge { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; padding-left: 3px; color: #fff; background: rgba(9,35,30,.68); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }

.story { min-height: 640px; padding-block: 130px; display: grid; grid-template-columns: .9fr 1fr .65fr; align-items: center; gap: 60px; }
.story-number { color: var(--green); font: 500 clamp(170px, 23vw, 320px)/.7 var(--serif); letter-spacing: -.1em; }
.story-copy > p:last-child { max-width: 460px; margin: 30px 0 0; color: var(--muted); line-height: 1.85; font-size: 14px; }
.rings { position: relative; height: 230px; }
.rings i { position: absolute; display: block; width: 170px; height: 170px; border: 2px solid var(--gold); border-radius: 50%; }
.rings i:first-child { top: 0; left: 0; }
.rings i:last-child { top: 55px; left: 65px; border-color: rgba(191,156,100,.45); }

.gallery-section { padding: 110px 0 130px; background: #fff; }
.filters { display: flex; padding: 4px; background: var(--cream); }
.filter { min-height: 38px; padding: 0 17px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter.active { color: #fff; background: var(--green); }
.gallery { columns: 3; column-gap: 16px; }
.gallery-card { width: 100%; height: 340px; margin-bottom: 16px; break-inside: avoid; }
.gallery-card:nth-child(5n+2), .gallery-card:nth-child(5n+4) { height: 455px; }
.empty-state { padding: 80px 20px; border: 1px dashed var(--line); text-align: center; }
.empty-icon { color: var(--gold); font: 60px var(--serif); }
.empty-state h3 { margin: 4px 0 8px; font: 600 34px var(--serif); }
.empty-state p { color: var(--muted); margin: 0 0 24px; }
.button-dark { color: #fff; background: var(--green); }

.cta { color: #fff; background: var(--green); }
.cta-inner { min-height: 410px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.cta h2 { font-size: clamp(49px, 6vw, 78px); }
.cta p:last-child { color: rgba(255,255,255,.65); line-height: 1.7; max-width: 590px; }
.button-light { flex: none; color: var(--green); background: var(--cream); }
footer { color: rgba(255,255,255,.55); background: var(--green-deep); }
.footer-inner { min-height: 155px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.footer-date { color: var(--gold); }

.upload-dialog { width: min(650px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; background: transparent; overflow: visible; }
.upload-dialog::backdrop, .viewer::backdrop { background: rgba(6,25,21,.82); backdrop-filter: blur(7px); }
.upload-card { position: relative; padding: 50px; background: var(--paper); max-height: calc(100dvh - 28px); overflow-y: auto; }
.upload-card h2 { font-size: 48px; }
.dialog-copy { color: var(--muted); line-height: 1.6; }
.close-button { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 27px; }
.dropzone { min-height: 145px; margin: 27px 0 22px; border: 1px dashed rgba(21,60,52,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: #fff; }
.drop-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 5px; border-radius: 50%; background: var(--green); color: #fff; font-size: 22px; }
.dropzone strong { font-size: 13px; max-width: 85%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dropzone small { color: var(--muted); font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { font-size: 11px; font-weight: 700; }
.form-row label span { color: var(--muted); font-weight: 400; }
.form-row input { width: 100%; height: 48px; margin-top: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 0; background: #fff; outline: none; }
.form-row input:focus { border-color: var(--green); }
.submit-button { width: 100%; margin-top: 20px; }
.submit-button:disabled { opacity: .6; }
.progress { height: 3px; margin-top: 17px; background: #dedbd4; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; transform: translate(-50%, 30px); padding: 14px 20px; color: #fff; background: var(--green); box-shadow: 0 12px 50px rgba(0,0,0,.24); font-size: 12px; opacity: 0; pointer-events: none; transition: .3s; }
.toast.error { background: #823e38; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.floating-add { display: none; position: fixed; z-index: 20; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); width: 58px; height: 58px; border: 0; border-radius: 50%; color: #fff; background: var(--gold); box-shadow: 0 10px 30px rgba(17,45,38,.3); font-size: 0; }
.floating-add::before { content: ''; position: absolute; width: 24px; height: 18px; border: 2px solid #fff; border-radius: 3px; inset: 19px 15px; }
.floating-add::after { content: ''; position: absolute; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; inset: 23px 24px; }

.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,25,21,.97); color: #fff; }
.viewer-media { width: 100%; height: calc(100% - 100px); display: grid; place-items: center; padding: 35px 80px 15px; }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close { position: fixed; z-index: 2; top: 20px; right: 24px; width: 45px; height: 45px; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; font-size: 28px; }
.viewer-nav { position: fixed; z-index: 2; top: 50%; width: 52px; height: 70px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 45px; }
.viewer-nav.prev { left: 15px; }.viewer-nav.next { right: 15px; }
.viewer-caption { height: 100px; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 13px; }
.viewer-caption span { color: rgba(255,255,255,.6); }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 650px); }
  .nav { height: 76px; }
  .hero { min-height: 770px; }
  .hero-content { padding-block: 70px 110px; }
  .hero h1 { max-width: 360px; font-size: clamp(70px, 22vw, 105px); line-height: .78; }
  .hero h1 em { display: block; height: .65em; margin-left: 46%; }
  .hero-copy br { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; }
  .latest-section { padding: 74px 0; }
  .latest-strip { grid-auto-columns: 78vw; padding-inline: 14px; }
  .latest-card { height: 380px; }
  .story { min-height: auto; padding-block: 90px; grid-template-columns: 1fr; gap: 40px; }
  .story-number { font-size: 190px; }
  .rings { display: none; }
  .gallery-section { padding: 80px 0 100px; }
  .gallery-head { align-items: flex-start; flex-direction: column; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery-card, .gallery-card:nth-child(5n+2), .gallery-card:nth-child(5n+4) { height: 260px; margin-bottom: 10px; }
  .gallery-card:nth-child(3n+2) { height: 360px; }
  .card-info { inset-inline: 10px; }
  .cta-inner { padding-block: 85px; flex-direction: column; align-items: flex-start; }
  .footer-inner { padding-block: 45px; flex-direction: column; justify-content: center; text-align: center; }
  .floating-add { display: block; }
  .upload-card { padding: 42px 22px 24px; }
  .upload-card h2 { font-size: 42px; }
  .form-row { grid-template-columns: 1fr; }
  .viewer-media { padding: 70px 12px 10px; height: calc(100% - 130px); }
  .viewer-nav { top: auto; bottom: 30px; height: 50px; }
  .viewer-nav.prev { left: 18px; }.viewer-nav.next { right: 18px; }
  .viewer-caption { height: 90px; padding: 0 70px; flex-direction: column; gap: 3px; text-align: center; }
}

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

