/* =========================================================================
   ASTRUM × ID IDENTITY — Mercedes Premiere
   System wizualny. Tokeny pochodzą z kitu Elementora astrum.pl (zbadane 2026-09-23).
   Myśl przewodnia: „Zaproszenie, nie strona" — druk, nie landing page.
   ========================================================================= */

:root {
  /* — Kolory marki — */
  --red:         #C20E1A;  /* czerwień ASTRUM (--e-global-color-secondary) — akcja */
  --red-deep:    #9A0B14;  /* hover czerwonego */
  --id-red:      #DB052C;  /* czerwień ID Identity (id.dk) — WYŁĄCZNIE w Strefie ID */
  --red-on-dark: #FF6B75;  /* akcent na czerni — marki czerwień daje tam 2,6:1 */
  --night:       #111111;  /* czerń ID — hero, brama, stopka */
  --graphite:    #1F1F1F;  /* pas drugorzędny — Strefa ID */

  /* — Neutralne — */
  --ink:         #1C1719;
  --text:        #3A3436;
  --muted:       #666666;  /* ASTRUM ma #7F7F7F (3,6:1) — przyciemnione, żeby przejść AA także na piasku */
  --line:        #DDD9D3;
  --line-dark:   rgba(255,255,255,.16);
  --sand:        #EDEAE4;  /* dokładnie neutralna ID */
  --paper:       #F7F5F1;
  --white:       #FFFFFF;

  /* — Stan — */
  --ok:          #1E7F4F;
  --warn:        #B7791F;

  /* — Typografia — */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;  /* glos — jak w THE SIGN */
  --label:   "Oswald", "Arial Narrow", Impact, sans-serif;          /* etykiety, przyciski, dane */
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* — Rytm — */
  --gut:   20px;
  --max:   1140px;
  --nar:   760px;
  --r:     2px;          /* narożniki: prawie ostre — to ma wyglądać jak druk */
  --r-lg:  3px;

  --shadow-rest:  0 1px 2px rgba(17,17,17,.05);
  --shadow-lift:  0 14px 40px rgba(17,17,17,.13);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ========================= RESET ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ========================= UKŁAD ========================= */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: var(--nar); }
.section { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--graphite); color: rgba(255,255,255,.88); }
.section--darker { background: var(--night); color: rgba(255,255,255,.88); }
.section--dark h2, .section--darker h2,
.section--dark h3, .section--darker h3 { color: #fff; }

/* ========================= TYPOGRAFIA ========================= */
.eyebrow {
  font-family: var(--label);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
  display: block;
}
.eyebrow--muted { color: var(--muted); }
.section--dark .eyebrow, .section--darker .eyebrow { color: var(--red-on-dark); }
.section--dark h2.title i, .section--darker h2.title i,
.hero__title i, .gate__title i { color: var(--red-on-dark); }

.display {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  letter-spacing: 0; font-weight: 700;
  color: var(--ink);
}
h2.title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--ink); margin-bottom: 16px;
}
h2.title i, h1 i, .accent { color: var(--red); font-style: italic; }  /* sygnatura THE SIGN */
h3.sub { font-size: 1.35rem; color: var(--ink); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.section--dark .lead, .section--darker .lead { color: rgba(255,255,255,.72); }
.fineprint { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ========================= PRZYCISKI ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--label); font-size: 14px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--night); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* ========================= BRAMA DOSTĘPU ========================= */
.gate {
  position: fixed; inset: 0; z-index: 90;
  background: var(--night);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gut);
  text-align: center;
}
.gate__inner { width: 100%; max-width: 420px; }
.gate__logo { height: 44px; width: auto; margin: 0 auto 36px; }
.gate__mark {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.66); margin-bottom: 16px;
}
.gate__title {
  font-size: clamp(1.8rem, 7vw, 2.4rem); color: #fff; margin-bottom: 14px;
}
.gate__note { color: rgba(255,255,255,.62); font-size: 15px; margin-bottom: 30px; }
.gate__rule { width: 40px; height: 2px; background: var(--red); margin: 0 auto 30px; }
.gate__form { display: flex; flex-direction: column; gap: 12px; }
.gate input {
  width: 100%; padding: 16px 18px; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r); color: #fff;
  font-family: var(--label); font-size: 18px; letter-spacing: .28em; text-transform: uppercase;
}
.gate input::placeholder { color: rgba(255,255,255,.6); letter-spacing: .12em; }
.gate input:focus { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); outline: none; }
.gate__error { color: #FF9AA2; font-size: 14px; min-height: 20px; }
.gate__help { margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.6; }
.gate__help a { color: rgba(255,255,255,.72); }

/* ========================= HERO ========================= */
.hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(17,17,17,.96) 0%, rgba(17,17,17,.74) 38%, rgba(17,17,17,.38) 70%, rgba(17,17,17,.58) 100%);
}
.hero__body { position: relative; width: 100%; padding: 0 0 56px; }
.hero__rule {
  width: 40px; height: 2px; background: var(--red); margin-bottom: 24px;
}  /* ta sama pieczęć co w bramie */
.hero__lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.hero__logo { height: 46px; width: auto; flex: none; }
.hero__x { color: rgba(255,255,255,.62); font-size: 20px; line-height: 1; flex: none; }
.hero__id {
  font-family: var(--label); font-size: 15px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.88);
}
.hero__brands {
  display: block;
  font-family: var(--label); font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.78);
  margin-bottom: 26px;
}
.hero__brands span:nth-child(2) { color: rgba(255,255,255,.5); font-size: 15px; padding: 0 10px; }  /* separator jest ozdobą — czerwień zostaje dla akcji */
/* Wiersze łamie <br>, nie szerokość — „która zostaje z Państwem" ma stać w jednej linii,
   dopóki mieści się na ekranie. */
.hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: 0; margin-bottom: 20px; max-width: 26ch; }
.hero__greeting {
  font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 14px;
}
.hero__sub {
  max-width: 60ch; margin: 0 0 4px; text-wrap: pretty;
  font-family: var(--body); font-size: 1.08rem; line-height: 1.6;
  color: rgba(255,255,255,.84);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; margin-top: 30px; }
.hero__meta div { padding-right: 34px; margin-right: 34px; border-right: 1px solid rgba(255,255,255,.16); }
.hero__meta div:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.hero__meta dt { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-bottom: 6px; }
.hero__meta dd { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.hero__meta small { display: block; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.72); }
.hero__sound {
  position: absolute; right: var(--gut); bottom: 56px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(17,17,17,.45);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.hero__sound:hover { border-color: #fff; }

/* ========================= SIATKI / KARTY ========================= */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }


/* ========================= MIEJSCE ========================= */
/* Adres i termin w kolumnie tekstu; zdjęcie i mapa obok siebie w szerokości konfiguratora.
   Zdjęcie źródłowe ma 640 px — w połowie 1140 px (≈560 px) jest jeszcze ostre. */
.place {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px;
  flex-wrap: wrap; margin-top: 30px;
}
.place__facts { display: flex; gap: 20px 48px; flex-wrap: wrap; margin: 0; }
.place__facts div { border-top: 2px solid var(--ink); padding-top: 14px; min-width: 200px; }
.place__facts dt {
  font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.place__facts dd { margin: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.place__facts small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.place__media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.place__media figure { margin: 0; display: flex; flex-direction: column; }
.place__photo img, .place__map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sand);
}
/* Mapa przygaszona do tonu strony — kolor Google krzyczałby obok ciepłego papieru. */
.place__map iframe { filter: saturate(.45) contrast(1.03); }
.place__media figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.place__media figcaption span { letter-spacing: inherit; }
.place__photo figcaption span { color: var(--muted); font-weight: 500; }
.place__media figcaption a { color: var(--red); text-decoration: none; }
.place__media figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero__maplink { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.hero__maplink:hover { text-decoration-color: #fff; }

/* ========================= KROKI (RSVP / BOX / DANE) ========================= */
.step { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 44px; }
/* Pierwszy krok bez linii — przed nim stoją ukryte komunikaty, więc :first-child nie działa. */
.step:not(.step ~ .step) { border-top: 0; padding-top: 0; margin-top: 0; }
.step__num {
  font-family: var(--label); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.step__head { margin-bottom: 26px; }

/* — RSVP — */
.rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rsvp__opt {
  border: 1px solid var(--line); background: var(--white); border-radius: var(--r);
  padding: 26px 22px; text-align: left; cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.rsvp__opt:hover { border-color: var(--ink); box-shadow: var(--shadow-rest); }
.rsvp__opt strong { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.rsvp__opt span { font-size: 14px; color: var(--muted); }
.rsvp__opt[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fff; }
.rsvp__opt[aria-pressed="true"] strong { color: var(--red); }

/* ========================= KONFIGURATOR ========================= */
.counter {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: var(--r);
}
.counter--full { background: var(--ok); }
.counter b { font-size: 15px; font-weight: 600; }

/* Konfigurator wychodzi poza wąską kolumnę tekstu — kafle potrzebują szerokości. */
.bleed {
  width: min(var(--max), calc(100vw - 2 * var(--gut)));
  margin-left: 50%;
  transform: translateX(-50%);
}
.product__ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); background: repeating-linear-gradient(45deg, #EFEBE5, #EFEBE5 10px, #E9E4DD 10px, #E9E4DD 20px);
  padding: 20px;
}
.optlabel { font-family: var(--label); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(17,17,17,.18); position: relative;
  transition: transform .15s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.size {
  min-width: 46px; padding: 9px 10px; cursor: pointer;
  font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: .06em;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
  transition: all .15s var(--ease);
}
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.sizehelp {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0;
  font-size: 13px; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  margin-bottom: 14px;
}
.sizehelp:hover { color: var(--red); }

/* — pasek podsumowania — */
.summarybar {
  position: sticky; bottom: 0; z-index: 40;
  background: var(--ink); color: #fff;
  border-radius: var(--r) var(--r) 0 0;
  padding: 14px 20px; margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 -8px 30px rgba(17,17,17,.18);
}
.summarybar__txt { font-family: var(--label); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.summarybar__txt small { display: block; font-family: var(--body); font-size: 12px; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.6); margin-top: 3px; }
.summarybar .btn { padding: 12px 22px; }

/* ========================= FORMULARZ ========================= */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
  transition: border-color .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field small { font-size: 13px; color: var(--muted); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.field__err { color: var(--red); font-size: 13px; min-height: 0; }

.consent { grid-column: 1/-1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.consent label { font-family: var(--body); font-size: 14px; line-height: 1.5; color: var(--text); letter-spacing: 0; text-transform: none; font-weight: 400; }

.rodo { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-top: 22px; }
.rodo summary { font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.rodo p { margin-top: 12px; }

/* ========================= POTWIERDZENIE ========================= */
.done { text-align: center; padding: 60px 0; }
.done__seal {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 26px;
  border: 2px solid var(--red); display: grid; place-items: center; color: var(--red);
}
.recap { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 30px 0; }
.recap h3 { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.recap ul { list-style: none; margin: 0; padding: 0; }
.recap li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.recap li:last-child { border-bottom: 0; }
.recap li b { font-family: var(--label); font-weight: 500; letter-spacing: .03em; color: var(--ink); }
.recap li span { color: var(--muted); text-align: right; }

.alert { border-radius: var(--r); padding: 16px 18px; margin: 20px 0; font-size: 15px; }
.alert--warn { background: #FDF6E7; border: 1px solid #E8D9AE; color: #6B5312; }
.alert--err { background: #FCEEEF; border: 1px solid #F0C8CB; color: #8A1119; }
.alert strong { display: block; margin-bottom: 4px; }

/* ========================= STREFA ID ========================= */
.idcard {
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: var(--r-lg); padding: 24px; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.idcard:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.34); transform: translateY(-2px); }
.idcard__ico { color: var(--id-red); }
.idcard h3 { font-family: var(--label); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.idcard p { font-size: 14px; color: rgba(255,255,255,.66); margin: 0; }
.idcard { position: relative; }
.idcard__go {
  font-family: var(--label); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.78); margin-top: auto;
  padding-right: 52px;
}
.idcard__arrow {
  position: absolute; right: 20px; bottom: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.34); display: grid; place-items: center;
  color: #fff; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.idcard:hover .idcard__arrow { background: var(--id-red); border-color: var(--id-red); transform: translateX(3px); }
/* Kafel „wkrótce": wygaszamy ramę, ikonę i strzałkę — tekst zostaje czytelny (AA). */
.idcard.is-soon { pointer-events: none; background: transparent; border-style: dashed; }
.idcard.is-soon .idcard__ico { color: rgba(255,255,255,.4); }
.idcard.is-soon .idcard__arrow { opacity: .3; }
.idcard.is-soon h3 { color: rgba(255,255,255,.82); }

/* ========================= MODAL (POWIĘKSZENIE ZDJĘĆ) ========================= */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gut); }
.modal__back { position: absolute; inset: 0; background: rgba(17,17,17,.74); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; background: var(--white); border-radius: var(--r-lg);
  width: 100%; max-width: 620px; max-height: 84vh; overflow: auto; padding: 32px;
  box-shadow: var(--shadow-lift);
}
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); background: none; border-radius: var(--r); cursor: pointer; color: var(--muted); }
.modal__close:hover { border-color: var(--ink); color: var(--ink); }
.sizetable { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.sizetable th, .sizetable td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.sizetable th { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sizetable td:first-child { font-family: var(--label); font-weight: 500; color: var(--ink); }

/* ========================= STOPKA ========================= */
.footer { background: var(--night); color: rgba(255,255,255,.6); padding: 56px 0 34px; font-size: 14px; }
.footer__logo { height: 34px; width: auto; margin-bottom: 22px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); margin: 0 0 12px; font-weight: 600; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bar { border-top: 1px solid var(--line-dark); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.62); }

/* ========================= POMOCNICZE ========================= */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-l { margin-top: 32px; }
.stack > * + * { margin-top: 16px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ========================= PROGRAM ========================= */
.hero__kicker {
  font-family: var(--label); font-size: 13px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.86); margin: 0 0 10px;
}
.agenda { margin-top: 44px; border-top: 2px solid var(--ink); padding-top: 18px; }
.agenda__list { list-style: none; margin: 0; padding: 0; }
.agenda__list li {
  display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.agenda__list time { font-family: var(--label); font-size: 14px; font-weight: 500; letter-spacing: .06em; color: var(--red); font-variant-numeric: tabular-nums; }
.agenda__list span { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }

/* ========================= WELCOME BOX — GRUPY ========================= */
.groups { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.group {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .22s var(--ease);
}
.group.is-done { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.group__media { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.group__body { padding: 26px 28px 24px; display: flex; flex-direction: column; }
.group__num { font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.group__title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--ink); margin-bottom: 18px; }
.group__cfg { display: flex; flex-direction: column; }
.group__desc { font-size: 14px; color: var(--muted); margin: 14px 0 18px; }
.group__desc small { display: block; margin-top: 6px; font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.group__err { color: var(--red); font-size: 13px; margin: 0 0 12px; }
.group__status {
  margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.group__status.is-done { color: var(--ok); text-transform: none; letter-spacing: .02em; font-size: 14px; font-weight: 500; }
.group__status svg { flex: none; }

/* — wybór modelu: dwa kafle — */
.optpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.optpick__btn {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px 8px 8px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.optpick__btn:hover { border-color: var(--ink); }
.optpick__btn[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.optpick__btn img { width: 52px; height: 56px; object-fit: contain; flex: none; background: #fff; }
.optpick__btn b { display: block; font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); line-height: 1.25; }
.optpick__btn small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.optpick__btn[aria-pressed="true"] b { color: var(--red); }

/* — krój: przełącznik — */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; align-self: flex-start; }
.seg__btn {
  padding: 10px 22px; background: none; border: 0; cursor: pointer;
  font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.optlabel__val { color: var(--ink); letter-spacing: .08em; margin-left: 6px; }
.swatches { align-items: center; }
.swatch-more {
  height: 30px; padding: 0 12px; border: 1px dashed var(--line); background: none; border-radius: 15px; cursor: pointer;
  font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.swatch-more:hover { border-color: var(--ink); color: var(--ink); }
.size[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.size[disabled]:hover { border-color: var(--line); }

/* — galeria — */
.gal__main {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; overflow: hidden; border-radius: var(--r);
}
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__main--model { background: var(--sand); }
.gal__main--model img, .gal__main--detail img { object-fit: cover; }
.gal__cap {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--label); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--ink); padding: 5px 9px; border-radius: var(--r);
}
.gal__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gal__thumb { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: var(--r); overflow: hidden; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb--model img, .gal__thumb--detail img { object-fit: cover; }
.gal__thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.zoom { margin: 0; }
.zoom img { width: 100%; max-height: 72vh; object-fit: contain; background: #fff; }
.zoom figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.modal__box:has(.zoom) { max-width: 820px; }

/* ========================= HAFT Z LOGO ========================= */
.brand { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 22px; }
.brand__toggle { border-top: 0; }
.brand__toggle label strong { display: block; font-family: var(--label); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.brand__body { padding: 4px 0 12px 32px; display: flex; flex-direction: column; gap: 14px; }
.brand__body .optlabel { margin: 0; }
.brand__items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; cursor: pointer; }
.chip input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.chip:has(input:checked) { border-color: var(--ink); }
.upload {
  position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  border: 1px dashed #BDB6AC; border-radius: var(--r); padding: 18px; background: var(--paper); cursor: pointer;
  font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text);
}
.upload:hover, .upload.is-over { border-color: var(--ink); background: #fff; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__txt b { color: var(--red); font-weight: 600; }
.upload__txt u { color: var(--muted); margin-left: 6px; text-underline-offset: 3px; }
.upload__hint { font-size: 12px; color: var(--muted); }
.brand .consent { padding: 10px 0; }

@media (max-width: 900px) {
  .group { grid-template-columns: 1fr; }
  .group__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .gal__main { aspect-ratio: 1 / 1; }
}
@media (max-width: 640px) {
  .agenda__list li { grid-template-columns: 1fr; gap: 2px; }
  .group__media { padding: 12px; }
  .group__body { padding: 20px 16px; }
  .optpick { grid-template-columns: 1fr; }
  .seg { align-self: stretch; }
  .seg__btn { flex: 1; }
  .swatch-more { height: 34px; }
  .brand { padding: 4px 16px; }
  .brand__body { padding-left: 0; }
}

/* ========================= RESPONSYWNOŚĆ ========================= */
@media (max-width: 900px) {
  .bleed { width: calc(100vw - 2 * var(--gut)); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { min-height: 82vh; min-height: 82svh; }
  .hero__body { padding-bottom: 40px; }
  .hero__meta { flex-direction: column; gap: 16px; }
  .hero__meta div { border-right: 0; padding-right: 0; margin-right: 0; }
  .hero__sound { bottom: auto; top: 20px; right: 18px; }
  .hero__logo { height: 32px; }
  .hero__id { font-size: 13px; letter-spacing: .2em; }
  .bleed { width: auto; margin-left: 0; transform: none; }
  .swatch { width: 34px; height: 34px; }
  .sizes  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .size   { min-width: 0; padding: 12px 8px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .place { flex-direction: column; align-items: stretch; }
  .place .btn { width: 100%; }
  .place__media { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .place__map iframe { aspect-ratio: 1 / 1; }
  .rsvp { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  /* Pasek zostaje w jednym rzędzie — w kolumnie zabierał 150 px z ekranu telefonu. */
  .summarybar { padding: 12px 14px; gap: 12px; }
  .summarybar__txt { font-size: 12px; }
  .summarybar .btn { padding: 12px 14px; letter-spacing: .08em; flex: none; }
  .modal__box { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .gate, .hero__sound, .summarybar, .btn { display: none !important; }
  body { background: #fff; }
}

/* === RELACJA === */
.hero--rel { min-height: 0; display: block; }
.hero--rel .hero__body { padding: 72px 0 48px; }
.hero--rel .hero__title { max-width: 22ch; }
.rel-back {
  display: inline-block; margin-bottom: 30px;
  font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.78); text-decoration: none;
}
.rel-back:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.rel-head { margin-bottom: 30px; }
.rel-head .title { margin-bottom: 8px; }

/* — filmy: poziomy szeroko, rolki obok siebie (telefon: przewijany rząd) — */
.rel-film { margin: 0 0 20px; }
.rel-film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); border-radius: var(--r-lg); }
.rel-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-reels video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--night); border-radius: var(--r-lg); }
.rel-nojs { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* — siatka zdjęć — */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; grid-auto-flow: dense; }
.rel-grid__item {
  display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--sand);
  border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; position: relative; min-width: 0;
}
.rel-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.rel-grid__item:hover img { transform: scale(1.04); }
.rel-grid__item--tall { grid-row: span 2; aspect-ratio: auto; }

/* — lightbox — */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 56px 0; user-select: none; -webkit-user-drag: none; }
.lb__btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(17,17,17,.55); color: #fff;
  display: grid; place-items: center; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.lb__btn:hover { border-color: #fff; background: rgba(17,17,17,.85); }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; margin-top: -23px; }
.lb__next { right: 12px; top: 50%; margin-top: -23px; }
.lb__count {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; pointer-events: none;
  font-family: var(--label); font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.72);
}
body.is-lb { overflow: hidden; }

/* — zajawka na stronie głównej + CTA — */
.rel-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 34px; }
.rel-teaser img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--sand); }
.rel-cta__contact { margin: 22px 0 28px; font-size: 1.05rem; line-height: 1.8; }
.rel-cta__contact a { color: #fff; text-underline-offset: 3px; }

@media (min-width: 1000px) {
  .rel-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero--rel .hero__body { padding: 52px 0 36px; }
  .rel-reels {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; -webkit-overflow-scrolling: touch;
  }
  .rel-reels video { flex: 0 0 68%; width: 68%; scroll-snap-align: center; }
  .rel-grid { gap: 6px; }
  .rel-teaser { grid-template-columns: 1fr; }
  .rel-cta .btn { width: 100%; }
  .lb__btn { width: 42px; height: 42px; }
  .lb__prev { left: 6px; }
  .lb__next { right: 6px; }
}
