/* Max Fit Gym Bytów - style */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/oswald-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1f1f25;
  --line: #2b2b33;
  --text: #f3f3f5;
  --muted: #a7a7b2;
  --accent: #e3262f;
  --accent-2: #ff444c;
  --ok: #2fbf71;
  --radius: 14px;
  --wrap: 1200px;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, .prose a, .note a, .social-line a, .check a { color: var(--accent-2); text-underline-offset: 3px; }
h1, h2, h3, .h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3, .h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.eyebrow { font: 600 .8rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 .95rem/1 var(--body); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: .7rem 1.1rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.center-row { justify-content: center; }

/* Nagłówek */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s; background: linear-gradient(rgba(0,0,0,.65), transparent); }
.site-header.is-scrolled, body:not(.home) .site-header.is-scrolled { background: rgba(13,13,15,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; padding: .4rem 0; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 16px 1.5rem;
    background: rgba(13,13,15,.98); border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--accent-2); }
  .site-header.menu-open { background: rgba(13,13,15,.98); }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 3rem) 0 2.5rem; isolation: isolate; }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,13,15,.92) 0%, rgba(13,13,15,.65) 45%, rgba(13,13,15,.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-inner { padding-bottom: 3rem; }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(13,13,15,.75) 0%, rgba(13,13,15,.82) 60%, var(--bg) 100%); } }
.hero h1 { max-width: 12ch; margin-bottom: .3em; }
.hero .lead { color: #d6d6dc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-facts li { background: rgba(22,22,26,.92); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .2rem; }
.hero-facts strong { font-family: var(--head); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.hero-facts strong::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: .55rem; vertical-align: middle; }
.hero-facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .hero-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hero-facts li { padding: 1rem; } .hero-facts strong { font-size: 1.05rem; } }

.page-hero { position: relative; padding: calc(var(--header-h) + 5rem) 0 4rem; isolation: isolate; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,13,15,.95), rgba(13,13,15,.7)), linear-gradient(0deg, var(--bg), transparent 60%); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { color: #d0d0d6; }

/* Sekcje */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 3rem; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.split-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Strefy */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.zone-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; text-decoration: none; isolation: isolate; }
.zone-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.zone-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%); }
.zone-card:hover img { transform: scale(1.06); }
.zone-body { position: absolute; inset: auto 0 0; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.zone-title { font: 700 1.5rem/1.1 var(--head); text-transform: uppercase; }
.zone-desc { color: #cfcfd6; font-size: .92rem; }
.zone-more { color: var(--accent-2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 1100px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } .zone-card { aspect-ratio: 4/3; } }

/* Zajęcia */
.classes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.class-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.class-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.class-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.class-body h3 { font-size: 2rem; margin-bottom: .2em; }
.class-body .eyebrow { margin-bottom: .6rem; }
.class-body .btn { align-self: flex-start; margin-top: auto; }
.coach { color: var(--muted); }
.coach strong { color: var(--text); }
.schedule { list-style: none; padding: 0; margin: .5rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.schedule li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .9rem; display: flex; gap: .6rem; font-size: .92rem; }
.schedule strong { color: var(--accent-2); }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.classes-detailed { grid-template-columns: 1fr; gap: 2rem; }
.classes-detailed .class-card { display: grid; grid-template-columns: 1fr 1.1fr; }
.classes-detailed .class-card:nth-child(even) .class-media { order: 2; }
.classes-detailed .class-media img { height: 100%; aspect-ratio: auto; min-height: 360px; }
.classes-detailed .class-body { padding: clamp(1.8rem, 4vw, 3rem); }
@media (max-width: 900px) {
  .classes, .classes-detailed .class-card { grid-template-columns: 1fr; }
  .classes-detailed .class-card:nth-child(even) .class-media { order: 0; }
  .classes-detailed .class-media img { min-height: 0; aspect-ratio: 16/10; }
}

.timetable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 3rem; }
.timetable-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.tt-day { background: var(--surface-2); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; min-height: 110px; }
.tt-name { font: 600 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tt-item { text-decoration: none; border-left: 3px solid var(--accent); padding: .2rem 0 .2rem .6rem; font-size: .92rem; }
.tt-item strong { display: block; font-family: var(--head); font-size: 1.2rem; }
@media (max-width: 800px) { .timetable-grid { grid-template-columns: 1fr; } .tt-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; } .tt-name { width: 100%; } }
.note { margin-top: 2rem; color: var(--muted); text-align: center; }

/* Cennik */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform .25s, border-color .25s; }
.section-alt .price-card { background: var(--surface-2); }
.price-card:hover { transform: translateY(-4px); border-color: #3c3c46; }
.price-card.is-featured { border-color: var(--accent); background: linear-gradient(160deg, rgba(227,38,47,.18), var(--surface) 55%); }
.price-no { font: 700 .85rem/1 var(--head); color: var(--accent-2); letter-spacing: .1em; }
.price-card h3 { margin-top: .7rem; font-size: 1.3rem; }
.price { margin: 1.2rem 0 .8rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price strong { font: 700 3.4rem/1 var(--head); }
.price span { color: var(--muted); }
.badge { position: absolute; top: -12px; right: 1.2rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 999px; }
.pricing-cta { margin-top: 2.5rem; }
@media (max-width: 1000px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing { grid-template-columns: 1fr; } }

/* Mozaika */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .8rem; }
.mosaic a { border-radius: 12px; overflow: hidden; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic-0 { grid-column: span 2; grid-row: span 2; }
.mosaic-2 { grid-row: span 2; }
.mosaic-4, .mosaic-5 { grid-column: span 2; }
.social-line { margin-top: 2rem; color: var(--muted); }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic-0 { grid-column: span 2; } .mosaic-2 { grid-row: span 1; } .mosaic-4 { grid-column: span 1; } .mosaic-5 { grid-column: span 2; }
}

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list svg { width: 46px; height: 46px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--accent-2); }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-2); }
.hours-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.section-alt .hours-card { background: var(--surface-2); }
.hours-card h3 { font-size: 1.1rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.open-now { margin: .8rem 0 0; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .5rem; }
.open-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.open-now.is-open { color: var(--ok); }
.open-now.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(47,191,113,.2); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--surface-2); isolation: isolate; }
.map-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.map::after { content: ""; position: absolute; inset: 0; background: rgba(13,13,15,.78); z-index: -1; }
.map-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .8rem; padding: 2rem; }
.map-overlay p { font-size: 1.1rem; }
.map-overlay small { color: #c3c3cb; max-width: 40ch; font-size: .78rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded::after { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* Formularz */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field span { font-weight: 600; font-size: .9rem; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: .9rem 1rem; font: inherit; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.field small, .err { color: var(--accent-2); font-size: .85rem; }
.has-error input, .has-error textarea { border-color: var(--accent); }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; font-weight: 600; }
.alert-ok { background: rgba(47,191,113,.12); border: 1px solid var(--ok); color: #8ff0b9; }
.alert-err { background: rgba(227,38,47,.12); border: 1px solid var(--accent); color: #ffb3b7; }

/* O nas - cechy */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.feature svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(227,38,47,.15); color: var(--accent-2); margin-bottom: 1rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Galeria */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.chips a { text-decoration: none; padding: .6rem 1.1rem; border: 1px solid var(--line); background: rgba(22,22,26,.92); backdrop-filter: blur(6px); border-radius: 999px; font-weight: 600; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent-2); }
.gallery-zone + .gallery-zone { margin-top: 5rem; }
.gallery-zone .section-head { margin-bottom: 1.6rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1400px); max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; font-size: 2.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: var(--accent); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Dokumenty */
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; color: var(--accent-2); }
.prose p, .prose li { color: #d3d3da; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: .6rem; }
.prose li::marker { color: var(--accent-2); font-weight: 700; }
.prose ol ol { margin-top: .6rem; }

.notfound { padding-top: calc(var(--header-h) + 6rem); min-height: 70vh; }

/* Stopka */
.site-footer { background: #08080a; border-top: 1px solid var(--line); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-grid img { width: 150px; margin-bottom: 1rem; }
.footer-grid h3 { font-size: 1rem; letter-spacing: .08em; color: var(--muted); }
.footer-grid .plain li { margin-bottom: .5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-grid .hours li { font-size: .92rem; }
.hours strong { white-space: nowrap; }
.social { display: flex; gap: .6rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pływający przycisk telefonu (mobile) */
.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(227,38,47,.45); }
  .call-fab svg { width: 24px; height: 24px; }
  .site-footer { padding-bottom: 80px; }
}

/* Animacje wejścia */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
