/* Troistość więzi 2026 — sekcja hero */

/* Menu — kopia nawigacji ze strony głównej (circle.css nie jest tu ładowany) */
.ch-nav {
  --line: rgba(98, 74, 47, .16);
  --paper: #fbf8f1;
  --ink: #2c1f11;
  --brown-deep: #3f2c19;
  --gold-dark: #b8801f;

  position: sticky;
  top: 0;
  z-index: 200;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.ch-nav a { color: inherit; }

.ch-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}

.ch-nav__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.ch-nav__brand img {
  width: 46px;
  height: 46px;
}

.ch-nav__brand span {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.ch-nav__menu {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.ch-nav__menu a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}

.ch-nav__menu a:hover {
  color: var(--brown-deep);
  border-color: var(--gold-dark);
}

.ch-nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: .4rem .6rem;
}

.ch-nav__toggle span,
.ch-nav__toggle span::before,
.ch-nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.ch-nav__toggle span::before { top: -6px; position: absolute; }
.ch-nav__toggle span::after { top: 6px; position: absolute; }

@media screen and (max-width: 860px) {
  .ch-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 5%;
  }

  .ch-nav__menu.is-open {
    display: flex;
  }

  .ch-nav__menu a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .ch-nav__toggle {
    display: block;
  }
}

/* Hero mieści się w ekranie razem z menu (~71px). */
.ch-nav + .t26-hero {
  min-height: calc(100vh - 71px);
  min-height: calc(100svh - 71px);
}

.t26-hero,
.t26-org,
.t26-plan,
.t26-form {
  --t26-bg: #fbf7ee;
  --t26-ink: #1f1d1a;
  --t26-muted: #5a564e;
  --t26-blue: #2f5fd0;
  --t26-olive: #7b8a34;
  --t26-line: #8c9a5e;
  --t26-sun: #f6b54a;

  /* Kolory z ilustracji Torunia w hero (przyciemnione, żeby trzymały
     kontrast na kremowym tle) — używane w programie i formularzu. */
  --t26-river: #1f3f9e;   /* Wisła */
  --t26-teal: #17666e;    /* most, korony drzew */
  --t26-brick: #b2402a;   /* dachy, mury */
  --t26-leaf: #4c7a22;    /* zieleń */
  --t26-trunk: #5c4636;   /* pień drzewa */
  --t26-rule: rgba(23, 102, 110, 0.3);
}

.t26-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--t26-bg);
  color: var(--t26-ink);
  display: flex;
  justify-content: center;
}

.t26-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: clamp(3rem, 12vh, 9rem) 16px 0;
  text-align: center;
}

.t26-hero__title {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.5em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--t26-line);
  line-height: 1.1;
}

.t26-hero__name {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
}

.t26-hero__triad {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  letter-spacing: -0.015em;
  color: var(--t26-blue);
  white-space: nowrap;
}

.t26-hero__kind {
  margin: 1.1rem 0 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.t26-hero__when {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2em 0.6em;
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  color: var(--t26-olive);
  letter-spacing: 0.02em;
}

.t26-hero__where {
  margin: 0.9rem 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.5;
  color: var(--t26-muted);
}

.t26-hero__dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--t26-sun);
  opacity: 0.85;
}

.t26-hero__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.t26-hero__btn {
  display: inline-block;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--t26-olive);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--t26-olive);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.t26-hero__btn:hover,
.t26-hero__btn:focus-visible {
  background: var(--t26-olive);
  color: #fff;
}

.t26-hero__btn--primary {
  background: var(--t26-blue);
  border-color: var(--t26-blue);
  color: #fff;
}

.t26-hero__btn--primary:hover,
.t26-hero__btn--primary:focus-visible {
  background: #244bb0;
  border-color: #244bb0;
}

/* Ilustracja: przyklejona do dołu; na wąskich ekranach przycinana po bokach,
   na niskich i szerokich ograniczona, żeby nie wchodziła na tekst. */
.t26-hero__art {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -3%;
  transform: translateX(-50%);
  width: max(820px, min(100%, 170vh));
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Organizator i partner — pasek pod hero */

.t26-org {
  background: #fff;
  color: var(--t26-trunk);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border-top: 1px solid var(--t26-rule);
  border-bottom: 1px solid var(--t26-rule);
  padding: clamp(32px, 4vw, 48px) 16px;
}

.t26-org__inner {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
}

.t26-org__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.t26-org__role {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t26-teal);
}

.t26-org__item img {
  width: auto;
  height: 96px;
  object-fit: contain;
}

/* logo organizatora o 20% większe niż partnera */
.t26-org__item img.t26-org__logo--org {
  height: 115px;
}

.t26-org__name {
  margin: 0;
  max-width: 24ch;
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--t26-river);
}

/* pasek dofinansowania (Samorząd Województwa Kujawsko-Pomorskiego) */
.t26-org__fin {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: clamp(28px, 4vw, 44px) auto 0;
}

@media (max-width: 520px) {
  .t26-org__inner {
    grid-template-columns: 1fr;
  }
}

/* Program konferencji — wzorowany na page-konferencja-wrzesien.php (.fasd-prog),
   wyśrodkowany, w kolorach ilustracji z hero. */

.t26-plan {
  display: block;
  width: 100%;
  background: var(--t26-bg);
  color: var(--t26-trunk);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: clamp(56px, 7vw, 104px) 0;
}

.t26-plan * {
  box-sizing: border-box;
}

.t26-plan__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
  text-align: center;
}

/* nagłówek sekcji */
.t26-plan__head {
  margin: 0 auto clamp(36px, 4.5vw, 56px);
}

.t26-plan h2.t26-plan__title {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--t26-river);
  margin: 0;
  padding: 0;
  text-transform: none;
}

/* etykieta bloku: linia — nazwa — linia */
.t26-plan__ses {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(30px, 4vw, 44px) 0 0;
}

.t26-plan__ses::before,
.t26-plan__ses span {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--t26-rule);
}

.t26-plan__ses b {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t26-teal);
  background: rgba(23, 102, 110, 0.09);
  border: 1px solid rgba(23, 102, 110, 0.35);
  border-radius: 100px;
  padding: 7px 16px;
  white-space: nowrap;
}

/* pozycja programu: godzina nad treścią, linia między pozycjami */
.t26-plan__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(22px, 3vw, 30px) 0;
  border-top: 1px solid var(--t26-rule);
}

/* etykieta bloku ma już własną linię */
.t26-plan__ses + .t26-plan__slot {
  border-top: 0;
}

.t26-plan__slot:last-child {
  border-bottom: 1px solid var(--t26-rule);
}

.t26-plan__time {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--t26-brick);
  letter-spacing: 0.02em;
}

.t26-plan__slot h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--t26-river);
  margin: 0;
  padding: 0;
  text-transform: none;
}

.t26-plan__desc {
  margin: 4px auto 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--t26-trunk);
}

.t26-plan__workshops {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.t26-plan__workshops li {
  padding: 6px 15px;
  border-radius: 100px;
  background: rgba(76, 122, 34, 0.1);
  border: 1px solid rgba(76, 122, 34, 0.38);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--t26-leaf);
}

/* podtytuł pod nazwą bloku (np. „Zanim zaopiekuję się światem…”, „I warsztat”) */
.t26-plan__sub {
  margin: 2px 0 0;
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--t26-brick);
}

/* Drogi do siebie — krótkie opisy warsztatów pod programem */
.t26-plan__paths {
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--t26-rule);
}

.t26-plan h3.t26-plan__paths-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t26-teal);
  margin: 0 0 18px;
}

.t26-plan__paths dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.t26-plan__paths dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.4em;
}

.t26-plan__paths dt {
  font-weight: 600;
  color: var(--t26-leaf);
}

.t26-plan__paths dt::after {
  content: " –";
  font-weight: 400;
  color: var(--t26-trunk);
}

.t26-plan__paths dd {
  margin: 0;
  color: var(--t26-trunk);
}

/* wiersze organizacyjne (msza, rejestracja, przerwa, zakończenie) */
.t26-plan__slot--plain {
  padding-block: clamp(16px, 2vw, 20px);
}

.t26-plan__slot--plain h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t26-teal);
}

.t26-plan__slot--plain .t26-plan__time {
  color: var(--t26-trunk);
  font-weight: 500;
}

@media (max-width: 620px) {
  .t26-plan__ses b {
    white-space: normal;
  }
}

/* Formularz zgłoszenia */

.t26-form {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--t26-trunk);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: clamp(56px, 7vw, 104px) 0;
  border-top: 1px solid var(--t26-rule);
}

.t26-form * {
  box-sizing: border-box;
}

.t26-form__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

.t26-form__head {
  text-align: center;
  margin: 0 auto clamp(32px, 4vw, 48px);
}

.t26-form h2.t26-form__title {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--t26-river);
  margin: 0;
  padding: 0;
  text-transform: none;
}

.t26-form__lead {
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--t26-trunk);
}

.t26-form__grid {
  display: grid;
  gap: 22px;
}

.t26-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* Rejestracja zakończona: formularz wygaszony, napis na wierzchu */
.t26-form__stage {
  position: relative;
}

.t26-form__stage.is-closed .t26-form__grid {
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

.t26-form__closed {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--t26-brick);
}

.t26-form__row--single {
  grid-template-columns: 1fr;
}

.t26-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.t26-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t26-teal);
}

.t26-field label span {
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--t26-brick);
}

.t26-field input,
.t26-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--t26-ink);
  background: var(--t26-bg);
  border: 1px solid rgba(23, 102, 110, 0.35);
  border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.t26-field select {
  cursor: pointer;
}

.t26-field option:disabled {
  color: #a9a29a;
}

.t26-field input:focus,
.t26-field select:focus {
  outline: none;
  border-color: var(--t26-teal);
  box-shadow: 0 0 0 3px rgba(23, 102, 110, 0.18);
}

/* błędy pokazujemy dopiero po próbie wysłania */
.t26-form__grid.is-checked :invalid {
  border-color: var(--t26-brick);
}

/* zgoda RODO */
.t26-consent {
  display: grid;
  gap: 10px;
}

.t26-consent__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--t26-trunk);
  cursor: pointer;
}

.t26-consent__check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--t26-teal);
  cursor: pointer;
}

.t26-form__grid.is-checked .t26-consent__check input:invalid {
  outline: 2px solid var(--t26-brick);
  outline-offset: 2px;
}

.t26-consent__info {
  margin-left: 32px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--t26-trunk);
}

.t26-consent__info summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--t26-teal);
}

.t26-consent__info p {
  margin: 8px 0 0;
}

.t26-form__msg {
  margin: 0;
  min-height: 1.6em;
  text-align: center;
  font-size: 0.95rem;
  color: var(--t26-teal);
}

.t26-form__msg.is-error {
  color: var(--t26-brick);
}

/* Wysyłanie: kręcące się kółko przy komunikacie, pola przygaszone */
.t26-form__msg.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
}

.t26-form__msg.is-loading::before {
  content: "";
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  border: 3px solid var(--t26-rule);
  border-top-color: var(--t26-river);
  animation: t26-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes t26-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .t26-form__msg.is-loading::before {
    animation-duration: 2.4s;
  }
}

.t26-form__grid.is-sending .t26-form__row,
.t26-form__grid.is-sending .t26-consent {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Podziękowanie po wysłaniu, w miejscu formularza */
.t26-form__thanks {
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border: 1px solid var(--t26-rule);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  color: var(--t26-trunk);
}

.t26-form__thanks:focus {
  outline: none;
}

.t26-form__thanks p {
  margin: 0;
}

.t26-form__thanks .t26-form__thanks-title {
  margin-bottom: 0.6rem;
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--t26-river);
}

.t26-form__submit {
  justify-self: center;
  padding: 0.75rem 2.2rem;
  border: 2px solid var(--t26-river);
  border-radius: 999px;
  background: var(--t26-river);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.t26-form__submit:hover,
.t26-form__submit:focus-visible {
  background: #17307a;
  border-color: #17307a;
}

.t26-form__submit:focus-visible {
  outline: 2px solid var(--t26-teal);
  outline-offset: 3px;
}

.t26-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 620px) {
  .t26-form__row {
    grid-template-columns: 1fr;
  }
}

/* display:grid/flex z reguł wyżej nie może nadpisać atrybutu hidden */
.t26-form [hidden] {
  display: none !important;
}
