/* Osiedle Archipelag — Zimowy Dzień Otwarty 12.12. Branding z osiedle-archipelag.pl:
   Bebas Neue (nagłówki), Barlow (tekst), granat #0c1b31 / #030911, karmel #ae815d, beż #dfbb9f. */
:root {
  --navy: #0c1b31;
  --navy-2: #122242;
  --ink: #030911;
  --caramel: #ae815d;
  --caramel-2: #c9a07e;
  --sand: #dfbb9f;
  --paper: #f7f4f0;
  --line: rgba(223, 187, 159, .45);
  --radius: 22px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --text: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--text); letter-spacing: .02em; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, .eyebrow { font-family: var(--display); font-weight: 400; letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.small { font-size: .85rem; }
.muted { color: #6d7480; }

/* ── nagłówek ─────────────────────────────────────────── */
/* Logo „wisi” z górnej krawędzi na granatowej plakietce — na jasnym renderze białe litery ginęły. */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 clamp(16px, 4vw, 48px); }
.logo { display: block; padding: 18px 20px 16px; background: rgba(12, 27, 49, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 14px 30px rgba(3, 9, 17, .35); }
.logo img { width: 104px; height: auto; }
.top-cta { margin-top: 18px; }
.top-cta { font: 600 .8rem var(--text); text-transform: uppercase; letter-spacing: .12em; color: #fff; text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); background: rgba(12, 27, 49, .35); }
.top-cta:hover { background: var(--caramel); border-color: var(--caramel); }

/* ── hero ─────────────────────────────────────────────── */
.hero { position: relative; color: #fff; background: var(--navy); padding: 160px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(3, 9, 17, .55) 0%, rgba(12, 27, 49, .55) 40%, rgba(12, 27, 49, .97) 100%),
    url("osiedle-zima.jpg") center 30% / cover no-repeat; }
.hero-grid { position: relative; display: grid; }
.hero-text { max-width: 640px; }
.eyebrow { color: var(--sand); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1; }
.hero h1 { font-size: clamp(4rem, 17vw, 9rem); line-height: .9; margin: 6px 0 22px; }
.hero-lead { margin: 0 0 8px; font: 400 clamp(1.5rem, 4.5vw, 2.1rem)/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.when { margin: 0 0 30px; color: rgba(255, 255, 255, .85); font-size: 1.05rem; letter-spacing: .03em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 400 1.5rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 0; border-radius: 14px; padding: 18px 34px; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sand); }
.btn-gold { width: 100%; background: var(--caramel); color: #fff; font-size: 1.7rem; padding: 20px; }
.btn-gold:hover { background: #9c7150; }
.btn-gold[disabled] { opacity: .6; cursor: progress; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); font-size: 1.3rem; padding: 14px 26px; }
.btn-outline:hover { background: var(--navy); color: #fff; }


/* ── atuty ────────────────────────────────────────────── */
.perks { display: grid; gap: 20px; margin-block: 56px; }
.perk { background: #fff; border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; box-shadow: 0 10px 30px rgba(12, 27, 49, .06); }
.perk img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.perk > div { padding: 22px 24px 26px; }
.perk h2 { font-size: 2rem; color: var(--navy); }
.perk p { margin: 6px 0 0; color: #3b4350; }
.perk-price .price { background: var(--navy); color: #fff; padding: 28px 24px; display: grid; gap: 2px; aspect-ratio: auto; }
.price span { color: var(--sand); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 500; }
.price strong { font: 400 clamp(3rem, 10vw, 4rem)/1 var(--display); letter-spacing: .02em; }

/* ── zapisy ───────────────────────────────────────────── */
.booking { background: var(--navy); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.booking::before { content: ""; position: absolute; inset: 24px; border: 1px solid var(--line); border-radius: 36px; pointer-events: none; display: none; }
.booking-grid { position: relative; display: grid; gap: 32px; align-items: start; }
.booking-intro h2 { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; margin: 6px 0 14px; }
.booking-intro p { color: rgba(255, 255, 255, .8); max-width: 46ch; }
.booking-intro a { color: var(--sand); font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; }
.steps li::before { content: counter(s); font: 400 1.4rem/1 var(--display); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sand); color: var(--sand); display: grid; place-items: center; flex: none; padding-top: 3px; }

.card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); display: grid; gap: 22px; box-shadow: 0 30px 60px rgba(3, 9, 17, .4); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font: 400 1.7rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--caramel); color: #fff; display: grid; place-items: center; font-size: 1.2rem; padding-top: 2px; }
.fields { display: grid; gap: 14px; }
.fields label { display: grid; gap: 6px; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
input, select { font: 400 1rem var(--text); letter-spacing: .02em; color: var(--ink); width: 100%; padding: 14px 16px; border: 1px solid #d8d2ca; border-radius: 12px; background: #fff; text-transform: none; }
input:focus, select:focus { outline: 2px solid var(--caramel); outline-offset: 1px; border-color: transparent; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .78rem; line-height: 1.5; color: #4a515c; margin-top: 16px; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--caramel); }
.step .small a { color: var(--caramel); }
.error { color: #b3261e; margin: -8px 0 0; font-weight: 500; }

/* SDK LeadCRM: wybór doradcy i godziny (klasy .lc-*) w barwach osiedla */
.lc-hosts { display: grid; gap: 14px; }
.lc-host { border: 1px solid #e6dfd6; border-radius: 16px; padding: 16px; margin: 0; }
/* legend domyślnie siedzi na ramce fieldsetu — float wciąga go do środka */
.lc-host-head { float: left; width: 100%; display: flex; gap: 12px; align-items: center; padding: 0; margin-bottom: 2px; }
.lc-host-head > span { display: grid; gap: 2px; }
.lc-host-head br { display: none; }
.lc-host-name { font: 400 1.5rem/1 var(--display); letter-spacing: .04em; color: var(--navy); }
.lc-host-title { font-size: .8rem; color: #6d7480; letter-spacing: .04em; }
.lc-slot-list { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.lc-slot span { display: block; text-align: center; padding: 12px 6px; border: 1.5px solid #d8d2ca; border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); background: #fff; transition: border-color .15s, background .15s; }
.lc-slot:not(.lc-slot--full) span:hover { border-color: var(--caramel); }
.lc-slot input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.lc-slot input:focus-visible + span { outline: 2px solid var(--caramel); outline-offset: 2px; }
.lc-slot--full span { background: #f3f0ec; color: #a8a29a; border-color: #eee8e1; text-decoration: line-through; opacity: 1; }
.lc-closed { color: #6d7480; }

.done { text-align: left; }
.done h2 { font-size: 2.4rem; color: var(--navy); }
.done .eyebrow { color: var(--caramel); font-size: 1.6rem; }
.meeting { font: 400 clamp(1.8rem, 6vw, 2.4rem)/1.1 var(--display); color: var(--caramel); letter-spacing: .03em; margin: 0; }

/* ── miejsce i stopka ─────────────────────────────────── */
.place { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 48px; }
.place .eyebrow { color: var(--caramel); font-size: 1.4rem; }
.place h2 { font-size: 2.4rem; color: var(--navy); }
.place p { margin: 4px 0 0; color: #3b4350; }
.foot { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .85rem; padding: 36px 0 96px; }
.foot-grid { display: grid; gap: 10px; justify-items: start; }
.foot p { margin: 0; }
.foot a { color: var(--sand); text-decoration: none; }
.foot .disclaimer { margin-top: 8px; font-size: .75rem; line-height: 1.5; color: rgba(255, 255, 255, .55); max-width: 90ch; }

.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; text-align: center; font: 400 1.4rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--caramel); padding: 16px; border-radius: 14px; text-decoration: none; box-shadow: 0 12px 30px rgba(3, 9, 17, .35); transition: opacity .2s, transform .2s; }

/* ── większe ekrany ───────────────────────────────────── */
@media (min-width: 720px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .full { grid-column: 1 / -1; }
  .lc-hosts { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perk { grid-template-rows: auto 1fr; }
  .perk-price .price { aspect-ratio: 16 / 10; align-content: center; }
}
@media (min-width: 980px) {
  .hero { padding: 190px 0 90px; min-height: 92vh; display: grid; align-items: end; }
  .logo { padding: 22px 26px 20px; }
  .logo img { width: 140px; }
  .top-cta { margin-top: 26px; }
  .hero-bg { background:
      linear-gradient(90deg, rgba(3, 9, 17, .25) 0%, rgba(12, 27, 49, .55) 45%, rgba(12, 27, 49, .96) 72%),
      url("osiedle-zima.jpg") left center / cover no-repeat; }
  .hero-text { justify-self: end; text-align: right; max-width: none; }
  .hero h1 { font-size: clamp(5rem, 9vw, 8.5rem); white-space: nowrap; }
  .booking { padding: 96px 0; }
  .booking::before { display: block; }
  .booking-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .booking-intro { position: sticky; top: 40px; }
  .done { grid-column: 2; }
  .sticky-cta { display: none; }
  .foot { padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── zima ─────────────────────────────────────────────────
   Oprawa zimowa: chłodniejszy granat w hero, szron (jasny błękit) jako drugi akcent obok
   karmelu, padający śnieg z gradientów (bez obrazków i JS), wyłączany przy reduced-motion. */
:root { --frost: #dcebf5; --ice: #a9cbe3; }
.hero-bg { filter: brightness(.95); } /* zdjęcie już w zimowej wersji (kampania/zimowe.py) */
.hero .eyebrow { color: var(--frost); }
.flake { display: inline-block; font-family: var(--text); font-size: .8em; color: var(--ice); transform: translateY(-.08em); }
.offer-badge { display: inline-block; margin: 0 0 18px; padding: 10px 18px 8px; background: var(--caramel); border-radius: 10px; font: 400 clamp(1.6rem, 5vw, 2.2rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(3, 9, 17, .35); }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: rgba(220, 235, 245, .12); border: 1px solid rgba(220, 235, 245, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 1rem; letter-spacing: .03em; }
.chips strong { font-weight: 700; }
.hero-lead { color: #fff; }
.when { max-width: 52ch; }
.perk-price .price { background: linear-gradient(160deg, var(--navy-2), var(--navy) 70%); }
.price span { color: var(--ice); }
.booking { background: radial-gradient(1200px 500px at 85% -10%, rgba(169, 203, 227, .18), transparent 60%), var(--navy); }
.booking .eyebrow { color: var(--frost); }

.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .9;
  background-image:
    radial-gradient(2.5px 2.5px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 90px 120px, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(3px 3px at 160px 60px, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 60px 170px, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(2px 2px at 200px 200px, #fff 50%, transparent 52%),
    radial-gradient(3.5px 3.5px at 120px 230px, rgba(255,255,255,.75) 50%, transparent 52%);
  background-size: 240px 260px;
  animation: snow 14s linear infinite; }
.snow::after { content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 40px 80px, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(2px 2px at 150px 20px, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 230px 140px, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(2px 2px at 300px 260px, rgba(255,255,255,.55) 50%, transparent 52%);
  background-size: 340px 320px;
  animation: snow-far 24s linear infinite; }
.snow-soft { opacity: .35; }
.hero-grid, .booking-grid { z-index: 2; }
@keyframes snow { from { background-position: 0 0; } to { background-position: 60px 260px; } }
@keyframes snow-far { from { background-position: 0 0; } to { background-position: -40px 320px; } }
@media (prefers-reduced-motion: reduce) { .snow, .snow::after { animation: none; } }
@media (min-width: 980px) {
  .hero-text { justify-self: end; }
  .chips { justify-content: flex-end; }
  .when { margin-left: auto; }
}

/* ── śnieg na przyciskach i mikroanimacje ─────────────────
   Czapa śniegu: SVG w ::before, rozciągnięte na szerokość przycisku, z kilkoma soplami.
   Na hover czapa lekko się kołysze, a przycisk unosi. Wszystko wyłączone przy reduced-motion. */
.btn, .sticky-cta, .top-cta { position: relative; }
.btn::before, .sticky-cta::before, .top-cta::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: -9px; height: 17px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M2 14C2 6 12 4 20 7 28 1 44 1 52 6 62 0 80 2 88 6 98 1 116 1 124 6 134 2 150 2 158 7 168 2 186 3 192 8 199 9 200 14 196 16H170C166 16 165 24 161 24S157 16 152 16H96C92 16 92 21 89 21S86 16 82 16H40C36 16 35 27 31 27S27 16 22 16H6C2 16 2 15 2 14Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(12, 27, 49, .18));
  transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.btn-light::before, .card .btn::before { filter: drop-shadow(0 1px 0 rgba(169, 203, 227, .9)) drop-shadow(0 2px 3px rgba(12, 27, 49, .25)) brightness(.97) sepia(.15) hue-rotate(170deg); }
.top-cta::before { top: -6px; height: 11px; left: 10px; right: 10px; }
.sticky-cta::before { top: -8px; }
.btn:hover, .sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(3, 9, 17, .28); }
.btn:hover::before, .sticky-cta:hover::before, .top-cta:hover::before { animation: cap-wiggle .6s ease; }
.btn:active { transform: translateY(1px); }
@keyframes cap-wiggle { 30% { transform: rotate(-1.6deg) translateY(-1px); } 60% { transform: rotate(1.2deg); } 100% { transform: none; } }

/* płatek przy „Zimowy dzień otwarty” powoli się obraca */
.flake { animation: flake-spin 9s linear infinite; }
@keyframes flake-spin { to { transform: translateY(-.08em) rotate(360deg); } }

/* rabat: szronowy błysk co kilka sekund */
.offer-badge { position: relative; overflow: hidden; }
.offer-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: glint 5s ease-in-out 1.2s infinite; }
@keyframes glint { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* wejście treści hero kolejno, przy starcie strony */
.hero-text > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-text > :nth-child(6) { animation-delay: .40s; }
.hero-text > :nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* zaspa na dole hero, przechodząca w jasne tło strony */
.hero::after { content: ""; position: absolute; inset: auto 0 -1px; height: clamp(34px, 6vw, 64px); z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.55' d='M0 34C120 18 220 30 330 22S560 6 700 20 950 34 1060 18 1170 14 1200 20V60H0Z'/%3E%3Cpath fill='%23f7f4f0' d='M0 44C140 30 250 42 380 34S600 22 740 34 990 46 1100 32 1180 30 1200 34V60H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }

/* sekcje wjeżdżają przy przewijaniu (klasę .reveal dokłada app.js — bez JS wszystko widać od razu) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.perk.reveal:nth-child(2) { transition-delay: .1s; }
.perk.reveal:nth-child(3) { transition-delay: .2s; }
.perk { transition: transform .3s ease, box-shadow .3s ease; }
.perk.in:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 27, 49, .12); }

/* wybór godziny: krótkie „kliknięcie” */
.lc-slot input:checked + span { animation: pop .28s ease; }
@keyframes pop { 50% { transform: scale(1.07); } }

@media (prefers-reduced-motion: reduce) {
  .flake, .offer-badge::after, .hero-text > *, .lc-slot input:checked + span { animation: none; }
  .btn:hover::before, .sticky-cta:hover::before, .top-cta:hover::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
