/* Podstrony — ta sama stylistyka co strona główna (style.css), ale układ przewijalny */
:root {
    --bg: #1e1e1e;
    --fg: #ffffff;
    --fg-muted: rgba(255, 255, 255, 0.78);
    --fg-subtle: rgba(255, 255, 255, 0.52);
    --fg-faint: rgba(255, 255, 255, 0.64);
    --panel-bg: rgba(18, 18, 18, 0.92);
    --panel-border: rgba(255, 255, 255, 0.08);
    --tag-border: rgba(255, 255, 255, 0.2);
    --divider: rgba(255, 255, 255, 0.2);
    --accent: #f2b544;
    --accent-ink: #1e1e1e;
    --font: 'Jost', 'Futura', sans-serif;
}
:root.light {
    --bg: #e9e9e9;
    --fg: #1f1f1f;
    --fg-muted: rgba(30, 30, 30, 0.88);
    --fg-subtle: rgba(30, 30, 30, 0.66);
    --fg-faint: rgba(30, 30, 30, 0.74);
    --panel-bg: rgba(255, 255, 255, 0.92);
    --panel-border: rgba(0, 0, 0, 0.12);
    --tag-border: rgba(0, 0, 0, 0.26);
    --divider: rgba(0, 0, 0, 0.2);
    --accent: #c98a1a;
    --accent-ink: #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-weight: 300;
    color: var(--fg);
    background: var(--bg);
    min-height: 100vh;
    transition: background 0.6s ease, color 0.6s ease;
    display: flex;
    flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Nagłówek (jak .ui-top na stronie głównej) ── */
.top {
    position: sticky;
    top: 0;
    z-index: 70;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: clamp(20px, 2.5vw, 32px) clamp(28px, 4vw, 56px);
    gap: 24px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, background 0.6s ease;
}
.top.scrolled { border-bottom-color: var(--divider); }
.brand {
    font-weight: 500;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-decoration: none;
    opacity: 0;
    animation: text-in 0.8s ease-out 0.2s both;
}
.brand .nick { font-style: italic; opacity: 0.55; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: clamp(20px, 2.5vw, 36px); align-items: center; }
.nav-link {
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    white-space: nowrap;
    opacity: 0;
    animation: text-in 0.8s ease-out 0.2s both;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: currentColor; transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover::after { width: 100%; }
.nav-link.current::after { width: 100%; background: var(--accent); }
.theme-toggle {
    background: none; border: none; color: var(--fg); cursor: pointer;
    width: 20px; height: 20px; padding: 0; opacity: 0;
    display: flex; align-items: center; justify-content: center;
    animation: text-in 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root.light .theme-toggle .icon-sun { display: none; }
:root.light .theme-toggle .icon-moon { display: block; }

@media (max-width: 640px) {
    .top { align-items: center; }
}

/* ── Treść ── */
main { flex: 1; padding: clamp(32px, 5vw, 80px) clamp(28px, 4vw, 56px) clamp(64px, 8vw, 120px); }
.container { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 760px; }

.eyebrow {
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    margin-bottom: 20px;
    opacity: 0; animation: text-in 0.8s ease-out 0.5s forwards;
}
h1 {
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    opacity: 0; animation: text-in 0.8s ease-out 0.6s forwards;
}
.lead {
    font-weight: 300;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.7;
    color: var(--fg-muted);
    margin-top: 28px;
    opacity: 0; animation: text-in 0.8s ease-out 0.7s forwards;
}
.divider { width: 32px; height: 1px; background: var(--divider); margin: 40px 0; }

.section { margin-top: clamp(48px, 7vw, 96px); }
.section-title {
    font-weight: 500;
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
    letter-spacing: -0.01em;
    color: var(--fg);
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}
h2 { font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.01em; margin-bottom: 20px; }
h3 { font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.25rem); letter-spacing: -0.005em; }
p { line-height: 1.7; color: var(--fg-muted); font-size: clamp(0.95rem, 1.1vw, 1.05rem); }
p + p { margin-top: 16px; }

/* ── Panele / karty (jak .about-panel) ── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: clamp(28px, 3vw, 40px);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0; animation: text-in 0.8s ease-out both;
}
.grid .panel:nth-child(1) { animation-delay: 0.6s; }
.grid .panel:nth-child(2) { animation-delay: 0.7s; }
.grid .panel:nth-child(3) { animation-delay: 0.8s; }
.grid .panel:nth-child(4) { animation-delay: 0.9s; }
.grid .panel:nth-child(n+5) { animation-delay: 1s; }
a.panel { text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.4s ease, transform 0.4s ease; }
a.panel:hover { border-color: var(--divider); transform: translateY(-3px); }
.panel .role {
    font-weight: 400; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--fg-subtle); margin-bottom: 18px;
}
.panel h3 { margin-bottom: 14px; }
.panel p { font-size: 0.95rem; }
.panel .more {
    margin-top: auto; padding-top: 24px;
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--fg);
}
.panel .more::after { content: ' →'; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
    font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--fg-faint); border: 1px solid var(--tag-border); padding: 6px 14px; border-radius: 2px;
}

/* ── Listy ── */
.list { list-style: none; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 24px; color: var(--fg-muted); line-height: 1.6; font-size: clamp(0.95rem, 1.1vw, 1.05rem); }
.list li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--fg-subtle); }
.two-col { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* ── Fakty (czas, format, grupa) ── */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 44px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    opacity: 0; animation: text-in 0.8s ease-out 0.8s forwards;
}
.fact {
    padding: 24px 28px;
    border-right: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    margin-right: -1px; margin-bottom: -1px;
}
.fact .k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-subtle); font-weight: 400; }
.fact .v { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 400; letter-spacing: -0.01em; color: var(--fg); margin-top: 10px; line-height: 1.2; }

/* ── Agenda ── */
.agenda { list-style: none; counter-reset: mod; display: grid; gap: 0; }
.agenda > li { counter-increment: mod; border-bottom: 1px solid var(--divider); }
.agenda summary {
    cursor: pointer; list-style: none; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 16px; align-items: baseline;
    padding: 20px 0; font-weight: 400; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--fg);
}
.agenda summary::-webkit-details-marker { display: none; }
.agenda summary::before { content: counter(mod, decimal-leading-zero); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--fg-subtle); }
.agenda summary::after { content: '+'; font-weight: 300; color: var(--fg-subtle); transition: transform 0.3s ease; }
.agenda details[open] summary::after { transform: rotate(45deg); }
.agenda .body { padding: 0 0 24px 3.2rem; display: grid; gap: 10px; }
.agenda .body p { font-size: 0.95rem; }
.agenda .lab {
    display: inline-block; margin-top: 6px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fg-faint); border: 1px solid var(--tag-border); padding: 5px 12px; border-radius: 2px;
}
@media (max-width: 560px) { .agenda summary { grid-template-columns: 2.4rem 1fr auto; } .agenda .body { padding-left: 2.4rem; } }

/* ── CTA ── */
.cta {
    margin-top: clamp(48px, 7vw, 96px);
    background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 16px;
    padding: clamp(40px, 5vw, 64px); text-align: center;
}
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 52ch; margin: 0 auto; }
.cta .email {
    display: inline-block; margin-top: 28px;
    font-weight: 300; font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: 0.06em;
    color: var(--accent); font-weight: 400; text-decoration: none; animation: email-pulse 4s ease-in-out infinite;
}
.cta .email:hover { color: var(--fg); animation: none; }
.btn {
    display: inline-block; margin-top: 28px; padding: 12px 26px;
    border: 1px solid var(--fg); border-radius: 2px; text-decoration: none;
    font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--fg);
    transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn.ghost { border-color: var(--tag-border); color: var(--fg-faint); }
.btn.ghost:hover { background: none; border-color: var(--fg); color: var(--fg); }
.back { display: inline-block; font-weight: 400; margin-bottom: 32px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--fg-subtle); }
.back:hover { color: var(--fg); }


@keyframes text-in { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes email-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; } }

/* ── Linki prawne w stopce ── */
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.bottom-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-links a { font-weight: 400; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--fg); }
.legal h1 { margin-bottom: 8px; }
.legal-body { max-width: 780px; margin-top: 40px; }
.legal-body > * + * { margin-top: 16px; }
.legal-body .section-title { margin-top: 44px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.legal-body h3 { margin-top: 28px; }
.legal-body code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; }


/* ── Kroki współpracy / FAQ ── */
.section-lead { max-width: 60ch; margin: -8px 0 28px; }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--divider); }
.steps .step-n { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--fg-subtle); padding-top: 0.35em; }
.steps h3 { margin-bottom: 6px; }
.steps p { max-width: 62ch; }
.agenda.faq summary::before { content: none; }
.agenda.faq summary { grid-template-columns: 1fr auto; }
.agenda.faq .body { padding-left: 0; }
@media (max-width: 560px) { .steps li { grid-template-columns: 2.4rem 1fr; } }

/* ── Filary usług ── */
.pillar h3 { margin-bottom: 10px; }
.pillar .hook { color: var(--fg); font-weight: 400; margin-bottom: 18px; }
.pillar .list { gap: 9px; }
.pillar .list li { font-size: 0.93rem; line-height: 1.5; }

/* ── Akcent: badge "Nowość" i wyróżnienia ── */
.badge { display: inline-block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--accent-ink); background: var(--accent); padding: 5px 10px; border-radius: 2px; vertical-align: middle; margin-left: 10px; }
.panel .role .badge { margin-left: 0; margin-right: 10px; }
.tag.accent { border-color: var(--accent); color: var(--accent); }
.highlight { color: var(--accent); }

/* ══════════════ Mobile — podstrony ══════════════ */
@media (max-width: 760px) {
    .theme-toggle { width: 20px; height: 20px; }
    main { padding-top: clamp(24px, 5vw, 40px); }
    h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .facts { grid-template-columns: 1fr 1fr; }
    .fact { padding: 18px 18px; }
    .fact .v { font-size: 1.05rem; word-break: break-word; }
    .panel { padding: 24px 20px; }
    .cta { padding: 32px 22px; }
    .cta .email { font-size: 1rem; word-break: break-all; }
}
@media (max-width: 400px) {
    .facts { grid-template-columns: 1fr; }
}

/* ── Menu mobilne (hamburger) ── */
.menu-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; width: 28px; height: 28px; padding: 0; align-items: center; justify-content: center; transition: transform 0.3s ease, color 0.6s ease; }
.menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.nav-menu { display: contents; }
@media (max-width: 760px) {
    .menu-toggle { display: flex; opacity: 0; animation: text-in 0.8s ease-out 0.2s both; }
    .nav-links { flex-wrap: nowrap; gap: 16px; }
    .nav-menu {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; left: 16px; right: 16px; top: calc(100% - 8px); z-index: 60;
        background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 16px;
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), visibility 0.35s;
    }
    .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
    .nav-menu .nav-link { display: block; padding: 16px 24px; font-size: 0.78rem; letter-spacing: 0.18em; opacity: 1; animation: none; border-bottom: 1px solid var(--divider); }
    .nav-menu .nav-link:last-child { border-bottom: 0; }
    .nav-menu .nav-link::after { display: none; }
    .nav-menu .nav-link.current { color: var(--accent); }
}

.badge-h1 { display: inline-block; margin: 10px 0 0; vertical-align: baseline; }
.cta-alt { margin-top: 28px; font-size: 0.9rem; }
.cta-alt a { color: var(--fg); }

.updated { margin-top: 22px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }

/* ── Stopka: jedna linia, przy ciasno kolumna (social → polityki → copyright) ── */
.site-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; width: 100%; font-family: 'Jost', 'Futura', sans-serif; }
.site-foot .copy { font-weight: 300; font-size: 0.65rem; letter-spacing: 0.08em; color: var(--fg-subtle); white-space: nowrap; }
.site-foot .footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot .footer-links a { font-weight: 400; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); text-decoration: none; transition: color 0.3s; }
.site-foot .footer-links a:hover { color: var(--fg); }
.site-foot .footer-links a[hidden] { display: none; }
.site-foot .socials { display: flex; gap: clamp(16px, 2vw, 28px); align-items: center; margin-left: auto; }
.site-foot .socials a { display: flex; color: var(--fg); transition: transform 0.3s ease, color 0.6s ease; }
.site-foot .socials a:hover { transform: translateY(-2px); }
.site-foot .socials a svg { height: clamp(20px, 2.2vw, 26px); width: auto; fill: currentColor; }
@media (max-width: 760px) {
    .site-foot { flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
    .site-foot .socials { order: 1; margin-left: 0; }
    .site-foot .footer-links { order: 2; justify-content: flex-end; }
    .site-foot .copy { order: 3; white-space: normal; font-size: 0.6rem; }
}
.site-foot { padding: 0 clamp(28px, 4vw, 56px) clamp(16px, 1.8vw, 24px); width: auto; }

@media (hover: none), (prefers-reduced-motion: reduce) { .contact-panel .contact-email, .cta .email { animation: none; opacity: 1; } }
