:root {
  color-scheme: dark;
  --dark: #161713;
  --surface: #22231d;
  --line: #46473d;
  --white: #f6f3ea;
  --muted: #c8c5b9;
  --cream: #efede4;
  --accent: #f87854;
  --accent-dark: #9b3520;
  --heading: 'Arial Black', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font: 1rem/1.6 system-ui, sans-serif;
}
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
a { color: inherit; text-underline-offset: 0.24em; }
a:hover { text-decoration-thickness: 2px; }
p, h1, h2, h3, dl { margin: 0; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 6rem, 78rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.skip { position: fixed; top: 0.7rem; left: 0.7rem; z-index: 10; transform: translateY(-160%); background: var(--dark); padding: 0.7rem; }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 5.2rem; }
.signature {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.signature img { flex: none; }
nav { display: flex; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
nav a { text-decoration: none; font-weight: 650; font-size: 0.92rem; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.27rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.24;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--accent); color: #171812; border-color: var(--accent); }
.button-primary:hover { background: #ff9a7b; border-color: #ff9a7b; }
.button-outline { background: transparent; color: inherit; border-color: currentColor; }
.button-outline:hover { background: #80808025; }
.header-action { min-height: 2.55rem; }

.back-to-top {
  display: flex;
  width: max-content;
  gap: 0.45rem;
  margin: 1rem auto 0;
  border-radius: 2rem;
  box-shadow: 0 2px 14px #0005;
}
.back-to-top.is-floating {
  position: fixed;
  z-index: 5;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  margin: 0;
}
body:has(.back-to-top.is-floating) .footer {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}


.hero { position: relative; isolation: isolate; overflow: hidden; background: #1c2019; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 61% 42%; z-index: -2; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #131410 0%, #131410f5 25%, #131410a6 47%, #1314100a 73%), linear-gradient(0deg, #13141079, transparent 42%);
}
.hero-content { min-height: min(43rem, 75vw); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 3.3rem 3.9rem; }
.eyebrow { color: var(--accent); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 800; line-height: 1.45; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.65rem; }
.hero-eyebrow span { width: 1.8rem; height: 2px; background: currentColor; }
h1, h2, h3 { line-height: 1; letter-spacing: -0.055em; }
h1, h2 { font-family: var(--heading); font-weight: 900; }
h1 { font-size: clamp(4rem, 8.8vw, 8.2rem); line-height: 0.86; margin-block: 1.45rem 1.6rem; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.55rem, 5.3vw, 5rem); }
h3 { font-size: clamp(1.32rem, 2.3vw, 2rem); line-height: 1.12; }
.hero-description { color: var(--white); max-width: 30rem; font-size: clamp(1rem, 1.45vw, 1.18rem); margin-bottom: 1.55rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.image-credit { position: absolute; right: 1.4rem; bottom: 0.7rem; color: var(--white); font-size: 0.78rem; }
.section-heading .eyebrow, .event-info .eyebrow { margin-bottom: 0.75rem; }
.section-heading h2 + p { margin-top: 1.25rem; max-width: 38rem; }
.section-heading p + p:not(.eyebrow) { margin-top: 0.85rem; max-width: 38rem; }
.schedule-grid, .groups-grid, .about-grid, .contact-grid { display: grid; gap: clamp(1.6rem, 5vw, 5.2rem); align-items: start; }
.schedule { background: var(--cream); color: var(--dark); color-scheme: light; }
.schedule .eyebrow, .about .eyebrow { color: var(--accent-dark); }
.schedule-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.event {
  display: grid;
  grid-template-columns: auto 1fr;
  overflow: hidden;
  color-scheme: dark;
  background: var(--dark);
  color: var(--white);
  border-radius: 0.4rem;
}
.date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.2rem clamp(1rem, 3vw, 2rem);
  background: var(--accent);
  color: var(--dark);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.3;
}
.event-day { font-family: var(--heading); font-size: clamp(3rem, 6vw, 5.9rem); line-height: 1; letter-spacing: -0.075em; }
.event-info { padding: clamp(1.15rem, 3vw, 2.3rem); }
.event-info .eyebrow { color: var(--accent); }
.event-info dl, .event-info h3 + p { margin-block: 0.85rem 1.15rem; }
.event-info dl div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.65rem; border-bottom: 1px solid var(--line); padding-block: 0.34rem; }
.event-info dt { color: var(--muted); }
.event-info dd { margin: 0; }
.waiting { display: block; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3rem); margin-top: 2rem; }
.program-grid article { border-top: 2px solid var(--accent); padding-top: 1rem; }
.program-grid p { margin-top: 0.65rem; color: var(--muted); }
.program-grid .text-link { display: inline-block; margin-top: 0.6rem; color: var(--white); }
.program-grid .program-tools { grid-column: 1 / -1; }
.program-tools p { max-width: 47rem; }
.groups { background: #252820; }
.groups-grid { grid-template-columns: 1fr 1fr; align-items: end; }
.groups-grid .button { margin-top: 1.4rem; }
.groups-grid p:not(.eyebrow) { max-width: 36rem; color: var(--muted); }
.about { background: var(--cream); color: var(--dark); color-scheme: light; }
.about-grid { grid-template-columns: 0.9fr 1.1fr; }
.about .text-link { display: inline-block; margin-top: 1.1rem; }
.bio-feature { display: grid; grid-template-columns: minmax(9.5rem, 0.9fr) 1.1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.bio-feature img { width: 100%; height: auto; border-radius: 0.4rem; }
.bio-practice { border-left: 3px solid var(--accent-dark); padding: 0.4rem 0 0.4rem 1rem; }
.bio-practice p { margin-top: 0.7rem; max-width: 36rem; }
.gallery { background: #22241e; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.15rem, 3vw, 2.4rem); align-items: start; margin-top: 2rem; }
.edition { min-width: 0; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--dark); }
.edition figure { margin: 0; }
.edition figure a { display: block; border-radius: 0.35rem 0.35rem 0 0; }
.edition figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: inherit; background: #11120f; }
.edition figcaption { padding: 0.5rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.edition-info { padding: 1rem 1rem 1.15rem; }
.edition-info time { display: block; color: var(--accent); font-size: 0.875rem; font-weight: 750; margin-bottom: 0.45rem; }
.edition-reel { margin-top: 1rem; border-top: 1px solid var(--line); }
.edition-reel summary { cursor: pointer; padding-top: 0.7rem; font-weight: 750; }
.edition-reel summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.edition-reel summary::marker { color: var(--accent); }
.edition-reel video { display: block; width: min(100%, 18rem); height: auto; aspect-ratio: 9 / 16; margin: 0.9rem auto 0; border-radius: 0.25rem; background: #11120f; }
.text-link { font-weight: 750; }
.contact-grid { grid-template-columns: 0.8fr 1.2fr; }
.contact .section-heading .text-link { display: inline-block; margin-top: 1rem; }
form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}
fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
legend { margin-bottom: 0.6rem; padding: 0; font-weight: 750; }
.form-choice, .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
label { display: block; font-size: 0.93rem; font-weight: 700; }
.form-choice label { display: flex; align-items: center; gap: 0.6rem; padding: 0.68rem; border: 1px solid var(--line); border-radius: 0.27rem; cursor: pointer; }
.form-choice label:has(:checked) { border-color: var(--accent); }
input:not([type="radio"]), textarea { width: 100%; margin-top: 0.35rem; background: var(--dark); color: var(--white); border: 1px solid #6d6e62; border-radius: 0.27rem; padding: 0.68rem; font: inherit; font-weight: 400; }
input[type="radio"] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; flex: none; }
textarea { resize: vertical; }
#pola-grupy > label { margin-top: 0.75rem; }
form > button { justify-self: start; }
.hint { color: var(--muted); font-weight: 400; }
.draft { border: 1px solid var(--line); padding: 1rem; margin-top: 0.75rem; border-radius: 0.4rem; }
.draft .actions { margin-block: 0.6rem; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.footer-inner a { color: var(--white); }
.footer-inner .signature { flex: none; }
.footer-links { justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem clamp(1rem, 2.5vw, 2.15rem); }
.form-privacy { font-size: 0.9rem; }

.privacy { color: var(--dark); background: var(--cream); color-scheme: light; }
.privacy-header .header-inner { min-height: 4.6rem; padding-block: 0.75rem; }
.privacy-content { max-width: 48rem; overflow-wrap: anywhere; }
.privacy-content h1 { margin: 0 0 1.2rem; font-size: clamp(2.45rem, 7.2vw, 4.7rem); line-height: 1; }
.privacy-content h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.15; margin-bottom: 0.65rem; letter-spacing: -0.03em; }
.privacy-content section { margin-top: 1.8rem; }
.privacy-content p + p, .privacy-content li + li { margin-top: 0.65rem; }
.privacy-content ul { padding-left: 1.3rem; }
@media (max-width: 940px) {
  .container { width: min(100% - 3.4rem, 78rem); }
  .schedule-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 2.2rem); }
  .header-inner { min-height: auto; padding-top: 0.9rem; display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; }
  .header-inner nav {
    grid-row: 2;
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 0.35rem;
  }
  .header-inner nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.85rem;
    white-space: nowrap;
  }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .hero-content { min-height: 41rem; justify-content: end; padding-block: 8rem 3.05rem; }
  .hero-image { object-position: 66% 28%; }
  .hero::before { background: linear-gradient(0deg, #131410 0%, #131410f0 26%, #13141086 55%, #13141020 90%), linear-gradient(90deg, #13141062, transparent); }
  .hero .actions { width: 100%; }
  .image-credit { right: 1.1rem; bottom: 0.63rem; }
  .groups-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .groups-grid { gap: 1rem; }
  .program-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 460px) {
  .hero-content { min-height: 36rem; }
  h1 { font-size: clamp(3.55rem, 12.4vw, 5.2rem); }
  .hero .actions .button { flex: 1 0 auto; }
  .event { grid-template-columns: 1fr; }
  .date-block { flex-direction: row; justify-content: start; align-items: center; gap: 0.8rem; padding-block: 0.7rem; }
  .form-row, .form-choice { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .bio-feature { grid-template-columns: minmax(6.7rem, 0.85fr) 1.15fr; }
  .footer-inner { gap: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
