/* ═══════════════════════════════════════
   MADEby — Styles v24.0 (Balanced & Harmonious LinkedIn Badge Icon Sizing)
   ═══════════════════════════════════════ */

/* ── TOKENS ── */
:root {
    --bg: #f5f4f1;
    --ink: #111110;
    --ink-mid: #555550;
    --ink-light: #999990;
    --white: #ffffff;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & STRICT HORIZONTAL OVERFLOW LOCK ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    font-size: 16px;
    position: relative;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lock page background scroll when menu or modal is active */
body.menu-open,
body.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

#mainContent {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── WCAG FOCUS VISIBILITY ── */
:focus-visible {
    outline: 2px solid var(--ink) !important;
    outline-offset: 3px !important;
}

#nav:not(.scrolled) :focus-visible {
    outline: 2px solid var(--white) !important;
}

/* ── NAVIGATION ── */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease);
    width: 100%;
    max-width: 100vw;
}

#nav.scrolled {
    background: rgba(245, 244, 241, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s, transform 0.3s var(--ease);
}

.nav-logo:hover { opacity: 0.9; transform: scale(1.02); }

.nav-logo-img {
    height: 62px;
    width: 62px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.4s var(--ease), height 0.4s var(--ease), width 0.4s var(--ease);
}

#nav.scrolled .nav-logo-img {
    filter: brightness(0);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links-desktop {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links-desktop a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
}

.nav-links-desktop a:hover { color: var(--white); }
#nav.scrolled .nav-links-desktop a { color: var(--ink-mid); }
#nav.scrolled .nav-links-desktop a:hover { color: var(--ink); }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
}

#nav.scrolled .lang-switcher {
    color: var(--ink-light);
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: currentColor;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.3s, opacity 0.3s;
}

.lang-btn:hover { color: var(--white); }
#nav.scrolled .lang-btn:hover { color: var(--ink); }

.lang-btn.active {
    color: var(--white);
    font-weight: 700;
}

#nav.scrolled .lang-btn.active { color: var(--ink); }
.lang-sep { opacity: 0.4; font-size: 0.7rem; }

/* Burger button (Mobile & Tablet) */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    color: var(--white);
    transition: color 0.4s var(--ease);
    z-index: 1001;
}

#nav.scrolled .nav-menu-btn { color: var(--ink); }

.burger-bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
    border-radius: 1px;
}

.burger-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: currentColor;
    margin-top: 2px;
}

/* ── BURGER MENU OVERLAY LAYER ── */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
    overflow: hidden;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-overlay-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.nav-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.overlay-header-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.overlay-lang .lang-btn { color: rgba(255, 255, 255, 0.5); }
.overlay-lang .lang-btn.active,
.overlay-lang .lang-btn:hover { color: var(--white); }

.overlay-logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-close-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    transition: opacity 0.3s;
}

.nav-close-btn:hover { opacity: 0.7; }
.close-icon { font-size: 1.4rem; line-height: 1; }
.close-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.nav-overlay-content {
    padding: 2.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-overlay-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.nav-overlay-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.overlay-link-item {
    display: flex;
    align-items: baseline;
    gap: 1.8rem;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s var(--ease-out);
}

.overlay-link-item:hover { transform: translateX(12px); }

.link-num {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    min-width: 2.5rem;
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease);
}

.overlay-link-item:hover .link-title { color: rgba(255, 255, 255, 0.75); }
.link-sub {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.nav-overlay-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.overlay-contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.person-role {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.person-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

/* ── LINKEDIN BADGE LINK (BALANCED & ELEGANT SIZING MATCHED TO TEXT) ── */
.linkedin-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    cursor: pointer;
}

#partnerzy .linkedin-badge-link {
    color: var(--ink);
}

.linkedin-badge-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.linkedin-icon-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    background: #0077b5 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
}

.linkedin-icon-box svg,
.linkedin-badge-link svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: block !important;
    fill: currentColor !important;
}

/* ── COMMUNICATION ICONS ROW ── */
.contact-icons-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.comm-icon-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0 !important;
}

.comm-icon-link svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    display: block !important;
}

#partnerzy .comm-icon-link {
    background: rgba(17, 17, 16, 0.06);
    color: var(--ink);
    border: 1px solid rgba(17, 17, 16, 0.15);
}

.comm-icon-link:hover {
    transform: translateY(-2px);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ── HERO ── */
#hero {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.45) 50%,
        rgba(0,0,0,0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 3rem;
    text-align: left;
}

.hero-slides {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 4.8rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--white);
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
    max-width: 1000px;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-slide.exit {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* ── SECTION SHARED ── */
section {
    padding: 7rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 2.5rem;
}

.section-heading {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
}

.section-heading em { font-style: italic; font-weight: 400; }

/* ── O NAS ── */
#o-nas { padding-bottom: 3rem; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.display-serif {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.display-serif em { font-weight: 400; font-style: italic; }

.about-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-mid);
    margin-bottom: 1.25rem;
}

.about-body strong { color: var(--ink); font-weight: 600; }

.about-body .strong-line {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    margin-top: 2rem;
}

.about-photo { position: sticky; top: 6rem; }

.about-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    display: block;
}

.photo-caption {
    margin-top: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
}

/* ── SPECJALIZACJE & CREDENTIALS ── */
#credentials {
    padding-top: 5rem;
    padding-bottom: 7rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.credentials-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.credentials-card {
    background: #ffffff !important;
    border: 1px solid rgba(17, 17, 16, 0.12) !important;
    border-radius: 10px !important;
    padding: 3.5rem 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.035) !important;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out) !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.credentials-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(17, 17, 16, 0.25) !important;
}

.credentials-tag {
    font-family: var(--sans) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--ink) !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

.credentials-tag::before {
    content: '' !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: var(--ink) !important;
    border-radius: 50% !important;
}

.credentials-subtitle {
    font-family: var(--serif) !important;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    color: var(--ink) !important;
    margin-bottom: 1.75rem !important;
}

.credentials-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.1rem !important;
    margin-bottom: 2.5rem !important;
}

.credentials-body p {
    font-family: var(--sans) !important;
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
    color: var(--ink-mid) !important;
}

.credentials-strong {
    font-family: var(--sans) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: var(--ink) !important;
    margin-top: 0.5rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px dashed rgba(17, 17, 16, 0.18) !important;
}

.credentials-action {
    margin-top: auto !important;
    padding-top: 0.5rem !important;
}

.credentials-pdf-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 1.25rem 1.75rem !important;
    background: #111110 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.35s var(--ease-out) !important;
    border: 1px solid #111110 !important;
    box-shadow: 0 6px 18px rgba(17, 17, 16, 0.12) !important;
    cursor: pointer !important;
}

.credentials-pdf-btn:hover {
    background: #ffffff !important;
    color: #111110 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(17, 17, 16, 0.18) !important;
}

.pdf-btn-left {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.pdf-icon-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    transition: all 0.35s var(--ease-out) !important;
}

.credentials-pdf-btn:hover .pdf-icon-badge {
    background: #111110 !important;
    color: #ffffff !important;
}

.pdf-btn-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    gap: 0.15rem !important;
}

.pdf-btn-title {
    font-family: var(--sans) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

.pdf-btn-sub {
    font-family: var(--sans) !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
    letter-spacing: 0.04em !important;
}

.pdf-btn-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out) !important;
}

.credentials-pdf-btn:hover .pdf-btn-arrow {
    background: rgba(17, 17, 16, 0.08) !important;
    transform: translateY(3px) !important;
}

/* ── KLIENCI MARQUEE ── */
#klienci {
    padding: 4rem 0 3rem;
    max-width: 100%;
    width: 100%;
    background: var(--bg);
    overflow: hidden;
}

#klienci .section-label {
    padding: 0 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.marquee-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    height: 48px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.7);
    opacity: 0.7;
    transition: opacity 0.3s, filter 0.3s;
    flex-shrink: 0;
}

.client-logo:hover { filter: grayscale(0%) contrast(1); opacity: 1; }

/* ── PRE-FOOTER "DO GÓRY" BAND (ALIGNED WITH RIGHT GRID BOUNDARY) ── */
.pre-footer-band {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 3rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--bg);
    box-sizing: border-box;
}

.pre-footer-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 0;
}

.pre-footer-top-btn:hover {
    color: var(--ink-mid);
    transform: translateY(-3px);
}

.pre-footer-top-btn svg {
    transition: transform 0.3s var(--ease-out);
}

.pre-footer-top-btn:hover svg {
    transform: translateY(-2px);
}

/* ── PARTNERZY ── */
.partners-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.partners-hero-photo { width: 100%; overflow: hidden; }

.partners-hero-photo img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(15%);
    transition: transform 0.6s var(--ease-out);
}

.partners-hero-photo:hover img { transform: scale(1.02); }

.partners-bios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.partner-name {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.partner-bio {
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--ink-mid);
    margin-bottom: 1rem;
}

.partner-bio strong { color: var(--ink); font-weight: 600; }

/* ── PUBLIKACJE / BLOG ── */
#publikacje { background: var(--bg); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding-top: 1.5rem;
    transition: transform 0.3s var(--ease);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.blog-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--ink-mid);
    margin-bottom: 1rem;
    flex: 1;
}

.blog-meta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    padding-top: 1rem;
    margin-top: auto;
}

/* ── FOOTER / KONTAKT ── */
#kontakt {
    background: var(--ink);
    color: var(--white);
    max-width: 100%;
    width: 100%;
    padding: 6rem 3rem 3rem;
    margin: 0;
    overflow-x: hidden;
}

.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
}

.footer-logo-img {
    height: 76px;
    width: 76px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    text-align: right;
}

.footer-contacts {
    display: flex;
    gap: 5rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
}

.footer-person {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-person strong {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* STRICTLY NO BOLD ON STUDIO.SKORWIDER.PL LINK */
.footer-credit,
.credit-link,
.footer-bottom a.credit-link,
.footer-credit a {
    font-weight: 300 !important;
    font-style: normal !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.footer-credit a:hover { color: var(--white) !important; }

.footer-privacy-btn {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    transition: color 0.3s;
}

.footer-privacy-btn:hover { color: var(--white) !important; }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE (TABLET & MOBILE)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links-desktop { display: none; }
    .nav-menu-btn { display: flex; }

    #nav { padding: 1.2rem 2rem; }
    #nav.scrolled { padding: 1rem 2rem; }

    section { padding: 5rem 2rem; }
    #kontakt { padding: 5rem 2rem 2.5rem; }

    .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .about-photo { position: static; text-align: center; }
    .about-photo img { width: 100%; max-width: 520px; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; margin: 0 auto; }

    .credentials-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    .credentials-card { padding: 3rem 2.2rem !important; }

    .partners-bios-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .partners-hero-photo img { max-height: 55vh; }

    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    #klienci .section-label { padding: 0 2rem; }
    .pre-footer-band { padding: 2rem 2rem 1rem; }
}

@media (max-width: 768px) {
    #nav { padding: 1rem 1.5rem; }
    #nav.scrolled { padding: 0.8rem 1.5rem; }
    .nav-logo-img { height: 50px; width: 50px; }
    .nav-right { gap: 1rem; }

    #hero { height: 90vh; min-height: 480px; }
    .hero-content { padding: 0 1.5rem; }
    .hero-slides { min-height: 140px; }
    .hero-slide { font-size: clamp(1.6rem, 6.5vw, 2.6rem); line-height: 1.2; max-width: 100%; }

    section { padding: 4rem 1.5rem; }
    .section-heading { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 2.5rem; }
    .display-serif { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 2rem; }

    .about-photo img { width: 100%; max-width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; margin: 0 auto; }

    .credentials-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .credentials-card { padding: 2.2rem 1.5rem !important; }
    .credentials-pdf-btn { padding: 1rem 1.2rem !important; }
    .pdf-btn-title { font-size: 0.78rem !important; }
    .pdf-btn-left { gap: 0.65rem !important; }

    .partners-container { gap: 2.5rem; }
    .partners-bios-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .partners-hero-photo img { max-height: 45vh; }

    .blog-grid { grid-template-columns: 1fr; gap: 2rem; }

    #klienci .section-label { padding: 0 1.5rem; }
    .marquee-track { gap: 3rem; }
    .client-logo { height: 38px; max-width: 105px; }

    .pre-footer-band { padding: 1.5rem 1.5rem 0.5rem; }

    #kontakt { padding: 4rem 1.5rem 2rem; }
    .footer-top { flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
    .footer-tagline { text-align: left; font-size: 1rem; }
    .footer-contacts { flex-direction: column; gap: 2rem; margin-bottom: 2.5rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }

    /* Overlay mobile adjustments */
    .nav-overlay-inner { padding: 1.5rem 1.5rem 2rem; }
    .nav-overlay-footer { grid-template-columns: 1fr; gap: 1.5rem; }
    .overlay-link-item { gap: 1rem; }
    .link-num { min-width: 1.8rem; font-size: 1.2rem; }
    .link-title { font-size: 1.8rem; }
    .overlay-logo-img { height: 50px; width: 50px; }
}

@media (max-width: 480px) {
    section { padding: 3.5rem 1.2rem; }
    .hero-slide { font-size: clamp(1.4rem, 7.5vw, 2.2rem); }
    .display-serif { font-size: 1.5rem; }
    .partner-name { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════
   ARTICLE PAGE STYLES & DEDICATED BACK TO TOP BUTTON
   ═══════════════════════════════════════ */
#articlePage {
    min-height: 100vh;
    background: var(--bg);
    padding-top: 5rem;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    cursor: pointer;
}

.blog-card:hover .blog-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mid);
    padding: 1.5rem 3rem;
    transition: color 0.3s;
}

.back-btn:hover { color: var(--ink); }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
    align-items: start;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(17,17,16,0.1);
}

.article-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article-date {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-light);
    letter-spacing: 0.06em;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-mid);
}

.article-body p { margin-bottom: 1.5rem; }
.article-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body ul li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body blockquote {
    border-left: 3px solid var(--ink);
    padding: 1rem 0 1rem 2rem;
    margin: 2.5rem 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.6;
}

.article-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(17,17,16,0.1);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.2rem 0;
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.3s var(--ease);
    cursor: pointer;
}

.sidebar-link:hover { padding-left: 0.5rem; }

.sidebar-cat {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.sidebar-title {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    transition: color 0.3s;
}

.sidebar-link:hover .sidebar-title { color: var(--ink-mid); }
.sidebar-date { font-size: 0.72rem; color: var(--ink-light); }

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem 5rem;
    }
    .article-sidebar {
        position: static;
        border-top: 2px solid var(--ink);
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .back-btn { padding: 1.2rem 1.5rem; }
    .article-layout { padding: 0 1.5rem 4rem; }
}

/* ── Article author box ── */
.article-author-box {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(17, 17, 16, 0.04);
    border-left: 3px solid var(--ink);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-radius: 2px;
}

.author-avatar { flex-shrink: 0; }

.author-avatar img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(17, 17, 16, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.author-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}

.author-bio-short {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-mid);
}

.author-bio-short a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── DEDICATED BACK TO TOP BUTTON inside article body ── */
.article-top-btn-wrapper {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid var(--ink);
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.back-to-top-btn:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .article-author-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
}

/* ── PRIVACY POLICY MODAL POPUP (STRICTLY CENTERED OVERLAY) ── */
#privacyModal,
.privacy-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 1.5rem !important;
}

#privacyModal.active,
.privacy-modal.active {
    display: flex !important;
}

.privacy-modal-bg {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1 !important;
}

.privacy-modal-card {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    color: #111110 !important;
    width: 100% !important;
    max-width: 780px !important;
    max-height: 85vh !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.privacy-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.5rem 2rem !important;
    border-bottom: 1px solid rgba(17, 17, 16, 0.12) !important;
    background: #f5f4f1 !important;
}

.privacy-title {
    font-family: var(--serif) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #111110 !important;
    letter-spacing: -0.01em !important;
}

.privacy-close-btn {
    background: none !important;
    border: none !important;
    font-size: 1.4rem !important;
    color: #555550 !important;
    cursor: pointer !important;
    padding: 0.4rem 0.8rem !important;
    transition: color 0.3s !important;
}

.privacy-close-btn:hover {
    color: #111110 !important;
}

.privacy-modal-body {
    padding: 2rem 2.2rem !important;
    overflow-y: auto !important;
    font-size: 0.92rem !important;
    line-height: 1.75 !important;
    color: #333330 !important;
}

.privacy-modal-body h3 {
    font-family: var(--serif) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #111110 !important;
    margin: 1.8rem 0 0.6rem !important;
}

.privacy-modal-body h3:first-child {
    margin-top: 0 !important;
}

.privacy-modal-body p {
    margin-bottom: 1rem !important;
}

.privacy-modal-body ul {
    list-style: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.2rem !important;
}

.privacy-modal-body ul li {
    margin-bottom: 0.4rem !important;
}
