/* Shared visual layer for the landing page and static guide. */
:root { --warm-white: #fafaf8; --container: 1160px; --border: #e4e5e9; }
body { font-size: 16px; }
body:not(.history-page) { position: relative; isolation: isolate; background: #fafaf8; }
body:not(.history-page)::before { content: ''; position: fixed; z-index: -1; inset: -18%; pointer-events: none; background: radial-gradient(ellipse 39% 33% at var(--ambient-x, 18%) var(--ambient-y, 14%), #aeb4c026 0%, transparent 72%), radial-gradient(ellipse 35% 39% at calc(100% - var(--ambient-x, 18%)) calc(100% - var(--ambient-y, 14%)), #858d9f19 0%, transparent 72%), radial-gradient(ellipse 27% 27% at 53% 52%, #d5d7dc12 0%, transparent 75%); filter: blur(46px); opacity: .85; animation: ambient-drift 22s ease-in-out infinite alternate; }
@keyframes ambient-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1%, 0) scale(1.035); } }
h2, #about .section-heading h2, .updates-grid h2, .cta-panel h2, #contact h2 { font-family: 'Inter', Arial, sans-serif; font-size: clamp(1.9rem, 3.3vw, 3rem); text-transform: none; font-weight: 500; line-height: 1.18; letter-spacing: -.045em; }
.section { padding-block: 88px; }
body:not(.history-page) .section:not(.section-dark) { background-color: #fafaf8aa; }
.section-soft { background: #f0f1f4c9; }
body:not(.history-page) h1, body:not(.history-page) h2, body:not(.history-page) h3 { text-shadow: 0 0 4px rgba(255, 255, 255, .72), 0 0 16px rgba(124, 135, 165, .42), calc(var(--ambient-text-x, 0px) / 2) calc(var(--ambient-text-y, 0px) / 2) 25px rgba(255, 255, 255, .3); transition: text-shadow .35s ease; }
body:not(.history-page) .feature-list li, body:not(.history-page) .class-card, body:not(.history-page) .schedule-row, body:not(.history-page) .news-entry, body:not(.history-page) .contact-card { position: relative; }
body:not(.history-page) .feature-list li::after, body:not(.history-page) .class-card::after, body:not(.history-page) .schedule-row::after, body:not(.history-page) .news-entry::after, body:not(.history-page) .contact-card::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none; background: radial-gradient(ellipse 20% 100% at var(--ambient-line-x, 50%) 50%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .65) 32%, transparent 76%); opacity: .98; transition: background-position .35s ease; }
body:not(.history-page) .class-card, body:not(.history-page) .schedule-row, body:not(.history-page) .news-entry { border-top-color: rgba(255, 255, 255, .82); }
body:not(.history-page) .class-card:last-child::after { top: auto; bottom: -1px; }
body:not(.history-page) .feature-list li:last-child::after, body:not(.history-page) .schedule-row:last-child::after, body:not(.history-page) .contact-card:last-child::after { top: auto; bottom: -1px; }
.eyebrow { letter-spacing: .12em; font-weight: 600; }
.site-header { background: #fafaf8ed; }
.header-inner { min-height: 84px; }
.site-nav { gap: 20px; }
.button { font-weight: 600; transition: background-color .25s, transform .25s; }
.hero { padding-block: 68px; }
.hero-grid, .low-power .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-copy { pointer-events: auto; }
.hero-copy h1 { margin: 0 0 28px; font-family: 'Inter', Arial, sans-serif; text-transform: none; line-height: 1.1; }
.hero-name { font-size: clamp(3.5rem, 7vw, 6rem); letter-spacing: -.055em; font-weight: 550; margin: 0; }
.hero-descriptor, .low-power .hero-descriptor { font-size: clamp(1.7rem, 3vw, 2.7rem); max-width: none; margin-top: 12px; line-height: 1.2; font-weight: 400; letter-spacing: -.045em; }
.hero-lead, .hero-support { width: 100%; max-width: 470px; font-size: .95rem; }
.hero-support { font-size: .86rem; }
.hero-actions, .hero-meta { max-width: none; }
.hero-meta { display: grid; gap: 7px; }
.hero-meta li { font-size: .72rem; }
.hero-visual { position: relative; inset: auto; height: 530px; border-radius: 22px; }
.hero-photo { object-position: 62% center; }
.hero-badge { font-size: .58rem; letter-spacing: .1em; }
.hero-badge::before, .brand-panel-frame::after, .section-dark::after, .site-footer::after { display: none; }
.quick-info { background: transparent; color: var(--navy); border-block: 1px solid var(--border); }
.quick-info a:hover { color: #bf1820; }
.info-mark { color: #bf1820; }
.value-grid { gap: 32px; }
.value-icon { font-family: inherit; font-size: .8rem; padding-top: 5px; }
.value-card { grid-template-columns: 24px 1fr; gap: 8px 12px; }
#about > .container { gap: 30px 70px; }
.about-panel-photo { aspect-ratio: 1.2; border-radius: 18px; }
.brand-panel { padding-top: 0; }
.brand-panel-note { margin: 18px 0 0; }
.class-card h3 { font-family: inherit; text-transform: none; font-size: 1.35rem; line-height: 1.3; font-weight: 500; }
.class-card p, .feature-list li, .about-copy p { font-size: .9rem; }
.section-dark { border-radius: 24px; margin-inline: max(20px, calc((100vw - 1240px) / 2)); }
.dark-grid { gap: 60px; }
.schedule-row span:last-child { font-family: inherit; font-size: 1.25rem; letter-spacing: -.03em; }
.schedule-head span:last-child { font-size: inherit; }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-card-featured { grid-row: auto; }
.gallery-card:nth-child(2) { padding-top: 0; }
.gallery-card .gallery-open img { height: 260px; }
.gallery-open { border-radius: 16px; }
.gallery-caption strong { line-height: 1.6; }
.section-cta { background: var(--navy); }
.cta-panel { gap: 50px; }
.contact-card:first-child a { font-family: inherit; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.contact-action-panel, .bank-account { border-radius: 16px; }
.site-footer { padding-bottom: 32px; }
.guide-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.guide-heading h2 { margin-bottom: 0; }
.guide-heading > p { max-width: 360px; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: white; transition: border-color .25s, transform .25s; }
.guide-card:hover { border-color: #a8adbf; transform: translateY(-3px); }
.guide-card small { color: #a51a25; font-size: .7rem; letter-spacing: .08em; margin-bottom: 24px; }
.guide-card h3 { font-size: 1.2rem; line-height: 1.4; font-weight: 500; }
.guide-card p { font-size: .85rem; color: var(--muted); }
.guide-card .text-link { margin-top: auto; padding-top: 16px; }
.guide-card:last-child { grid-column: span 2; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 48px; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 70px; align-items: start; }
.article-title { font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.13; }
.article-lead { font-size: 1.15rem; color: var(--muted); line-height: 1.8; }
.article-photo { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 18px; margin-block: 32px; }
.article-body h2 { font-size: 1.6rem; margin-top: 38px; }
.article-body p { line-height: 1.9; color: #484d60; }
.article-aside { position: sticky; top: 112px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; }
.article-aside h2 { font-size: 1.35rem; }
.article-aside dl { font-size: .85rem; margin-bottom: 24px; }
.article-aside dt { color: var(--muted); margin-top: 18px; }
.article-aside dd { margin: 4px 0 0; color: var(--navy); }
.article-aside .button { width: 100%; margin-top: 10px; }
.article-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-related a { display: block; padding: 10px 0; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 35px; } .hero-grid, .low-power .hero-grid { gap: 32px; } }
@media (max-width: 700px) {
  .section { padding-block: 56px; }
  .header-inner { min-height: 72px; }
  .hero-grid, .low-power .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { margin-bottom: 24px; }
  .hero-name { font-size: 4rem; }
  .hero-visual { inset: auto; height: 300px; border-radius: 18px; }
  .hero-actions .button { font-size: .8rem; }
  .hero-meta { gap: 6px; }
  .quick-info-inner { gap: 12px; }
  .quick-info a:last-child { margin-left: 0; }
  #about .section-heading h2, #contact h2, .cta-panel h2 { font-size: 2rem; }
  .class-card h3 { font-size: 1.35rem; }
  .section-dark { margin-inline: 10px; }
  .dark-grid, .cta-panel { gap: 28px; }
  .gallery-grid, .guide-grid, .article-layout { grid-template-columns: 1fr; }
  .gallery-card .gallery-open img { height: 250px; }
  .guide-card:last-child { grid-column: auto; }
  .guide-heading { display: block; }
  .guide-heading > p { margin-top: 20px; }
  .article-aside { position: static; }
  .breadcrumbs { margin-bottom: 32px; }
  .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }
.low-power { scroll-behavior: auto; }

.article-toc { padding: 24px; background: #f0f1f4; border-radius: 16px; font-size: .85rem; }
.article-toc strong { display: block; margin-bottom: 10px; color: var(--navy); }
.article-toc a { display: block; padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; }
.article-body section { scroll-margin-top: 110px; }

.belt-table { width: 100%; border-collapse: collapse; margin-block: 28px; font-size: .9rem; }
.belt-table caption { text-align: left; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.belt-table th, .belt-table td { padding: 15px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.belt-table th { white-space: nowrap; }
.belt-table td > span { vertical-align: middle; }
.belt-swatch { display: inline-block; width: 68px; height: 22px; border: 1px solid #0003; border-radius: 3px; background: var(--belt); margin: 4px 14px 4px 0; }
.belt-swatch.striped { background: linear-gradient(to bottom, white 33%, var(--belt) 33%, var(--belt) 67%, white 67%); }
.belt-swatch.yellow { --belt: #f4cb32; } .belt-swatch.orange { --belt: #e98529; }
.belt-swatch.green { --belt: #348958; } .belt-swatch.blue { --belt: #3472b5; }
.belt-swatch.brown { --belt: #855537; } .belt-swatch.black { --belt: #20222d; }
.article-body .article-source { font-size: .8rem; }
.article-source a { text-decoration: underline; text-underline-offset: 3px; }

.belt-swatch.white { --belt: #fff; }
.news-teaser { background: #f0f1f4; padding: 32px; border-radius: 18px; }
.season-notice { max-width: 860px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: 22px; background: #f0f1f4; margin-bottom: 64px; }
.season-notice h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.season-date { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.news-list { max-width: 960px; }
.news-list > h2 { font-size: 1.5rem; }
.news-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 36px; padding: 36px 0; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.news-entry time { color: var(--muted); font-size: .8rem; padding-top: 8px; }
.news-entry h2 { font-size: 1.5rem; line-height: 1.3; }
.news-entry p { color: var(--muted); line-height: 1.85; }
.news-permalink { display: block; margin-top: 16px; font-size: .8rem; color: var(--muted); text-decoration: underline; }
.news-social { margin-top: 40px; } .news-social a { text-decoration: underline; }
.site-nav a[aria-current="page"] { color: #bf1820; }
@media (max-width: 700px) { .news-entry { grid-template-columns: 1fr; gap: 12px; } }

.address-link { text-decoration: underline; text-underline-offset: 4px; }
.address-link:hover { color: #bf1820; }

.context-link { color: var(--navy); text-decoration: underline; text-decoration-color: #999eaf; text-underline-offset: 3px; }
.context-link:hover { color: #bf1820; text-decoration-color: currentColor; }

.history-teaser { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 24px; }
#about > .container > :is(.affiliation-panel, .history-feature, .people-heading, .people-grid) { grid-column: 1 / -1; }
.affiliation-panel { margin-top: 36px; padding: 30px; background: #f0f1f4; border-radius: 16px; }
.affiliation-panel h3, .people-card h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -.035em; }
.affiliation-panel p { max-width: 850px; }
.affiliation-links { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.history-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-top: 40px; padding: 32px; border-radius: 20px; background: #172139; color: #e9edf4; }
.history-feature-photo { display: block; overflow: hidden; border-radius: 10px; }
.history-feature-photo img { width: 100%; height: auto; transition: transform .35s; }
.history-feature-photo:hover img { transform: scale(1.025); }
.history-feature .eyebrow { color: #d5bf97; }
.history-feature h3 { color: white; font-size: clamp(1.6rem, 2.5vw, 2.3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.history-feature p { font-size: .9rem; }
.people-heading { margin-top: 50px; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.people-card { padding: 28px; border: 1px solid var(--border); border-radius: 16px; scroll-margin-top: 110px; }
.people-card p { font-size: .9rem; }
.people-note { color: #646875; margin-bottom: 0; }
#stowarzyszenie { scroll-margin-top: 110px; }
@media (min-width: 981px) and (max-width: 1180px) {
 .header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
 .nav-toggle { display: block; }
 .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 24px; background: var(--warm-white); border-bottom: 1px solid var(--border); }
 .site-nav.is-open { display: grid; }
 .site-nav a { min-height: 44px; padding: 10px; }
 .site-nav .nav-cta { justify-self: start; }
}
@media (max-width: 700px) {
 .history-feature, .people-grid { grid-template-columns: 1fr; }
 .history-feature { padding: 22px; gap: 24px; }
 .affiliation-panel, .people-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .history-feature-photo img { transition: none; } body:not(.history-page)::before { animation: none; } body:not(.history-page) h1, body:not(.history-page) h2, body:not(.history-page) h3 { text-shadow: none; transition: none; } body:not(.history-page) .feature-list li::after, body:not(.history-page) .class-card::after, body:not(.history-page) .schedule-row::after, body:not(.history-page) .news-entry::after, body:not(.history-page) .contact-card::after { display: none; } }
