:root {
  --green: #1f3a2e;
  --green-2: #2b4c3d;
  --red: #8c2a2a;
  --red-2: #a33a36;
  --gold: #b8955a;
  --cream: #faf6ef;
  --cream-2: #f2ebdf;
  --ink: #23201c;
  --muted: #6b645a;
  --line: #e4dccd;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; }
strong, b { font-weight: 600; }
a { color: inherit; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--green); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h1 em { color: var(--red); font-style: italic; font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: .8em;
}
.eyebrow.light { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 500;
  border: 1px solid var(--red); cursor: pointer; font: inherit; font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-small { padding: 9px 20px; font-size: .9rem; white-space: nowrap; }
.btn-full { width: 100%; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--green); text-decoration: none; }

/* Hero */
.hero { padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(184,149,90,.18), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-photo { aspect-ratio: 4/5; border-radius: 200px 200px var(--radius) var(--radius); }

.countdown {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.cd-label { font-size: .85rem; color: var(--muted); }
.cd-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--red); line-height: 1; }
.cd-unit { font-size: .85rem; color: var(--muted); }

/* Photo slots (placeholder shown until an image is present) */
.photo {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(31,58,46,.05) 0 12px, transparent 12px 24px),
    var(--cream-2);
}
.photo::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--muted);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Sections */
.section { padding: 100px 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--green); color: #e9e4d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .photo { background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), var(--green-2); }
.section-dark .photo::after { color: rgba(255,255,255,.55); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin-inline: auto; }
.feature { background: #fff; padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--gold); margin-bottom: 18px;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: s; }
.steps li { position: relative; padding-top: 10px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; left: 70px; right: -20px; border-top: 1px dashed var(--gold);
}
.step-n {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--gold); font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--red);
  margin-bottom: 18px; background: var(--cream);
}
.steps p { color: var(--muted); font-size: .95rem; }

/* Gallery: 6 photos, 3x2 */
.gallery { margin-top: 50px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.gallery .photo { aspect-ratio: 4/5; }
.gallery .photo-wide { grid-column: span 2; aspect-ratio: auto; }
.photo-white, .section-dark .photo-white { background: #fff; }
.photo-white img { object-fit: contain; padding: 6%; background: #fff; }
.photo:has(img)::after { display: none; }

/* Deadline */
.deadline {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  padding: 50px 56px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--red), #6f1f22); color: #f6e9e2;
}
.deadline h2 { color: #fff; }
.deadline .eyebrow { color: var(--gold); }
.deadline p { margin: 0; max-width: 620px; }
.deadline .btn { background: #fff; color: var(--red); border-color: #fff; white-space: nowrap; }

/* FAQ */
.faq { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--green); display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-family: var(--sans); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Form */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { margin-bottom: 8px; }
.contact-list a { color: var(--gold); text-decoration: none; }

.form { background: var(--cream); color: var(--ink); padding: 40px; border-radius: var(--radius); }
.form label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 18px; color: var(--green); }
.form input[type=text], .form input[type=email], .form input[type=tel],
.form input[type=number], .form input[type=date], .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,149,90,.2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin: -8px 0 18px; }

.budget { border: 0; padding: 0; margin: 0 0 18px; }
.budget legend { font-size: .88rem; font-weight: 500; color: var(--green); margin-bottom: 6px; }
.toggle { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 8px; }
.toggle label { margin: 0; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { display: block; padding: 7px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--muted); }
.toggle input:checked + span { background: var(--green); color: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--gold); }

.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: .82rem !important; }
.consent input { margin-top: 4px; accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px; }

.form-msg { margin: 14px 0 0; font-size: .95rem; text-align: center; min-height: 1.4em; }
.form-msg.ok { color: var(--green); font-weight: 500; }
.form-msg.err { color: var(--red); }

/* Footer */
.footer { background: #172b22; color: #a9b3a8; padding: 30px 0; font-size: .88rem; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { color: #fff; font-size: 1.3rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-in, .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 460px; width: 100%; margin-inline: auto; }
  .features, .steps, .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .photo-wide, .gallery .photo-wide-sm { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .steps li::after { display: none; }
  .deadline { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .hero { padding: 40px 0 60px; }
  .features, .steps, .form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form { padding: 26px 20px; }
  .topbar .btn-small { padding: 8px 14px; font-size: .82rem; }
  .logo { font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .topbar .btn-small { display: none; }
}

/* Polityka prywatności */
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--red); }
.legal .muted { color: var(--muted); font-size: .9rem; }
.legal .back { margin-top: 2.5em; }
.legal .back a { color: var(--green); }
.consent a, .footer a { color: inherit; }

/* Baner cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin-inline: auto;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12);
  font-size: .9rem;
}
.cookie-banner p { margin: 0; color: var(--muted); }
.cookie-banner a { color: var(--red); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}
