/* generatepress-child/style.css */
/*
Theme Name:      GeneratePress Child Boilerplate
Theme URI:       https://generatepress.com
Description:     Universal child theme boilerplate for custom WordPress projects.
Author:          Development Team
Template:        generatepress
Version:         1.0.0
Text Domain:     generatepress-child
*/

:root {
    --transition-smooth: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    --color-dark: #111317;
    --color-green: #1b4d36;
    --color-red: #6b2130;
    --color-yellow: #dca638;
    --color-blue: #1e3a5f;
    --color-moss: #34423a;
    --color-purple: #4a2340;
    --color-accent-blue: #115cfa;
    --color-team-blue: #082b75;
    --color-white: #ffffff;
    --color-footer: #d1d5db;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-dark);
    color: #fff;
    line-height: 1.5;

    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
}

a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

.wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-spacing {
    padding: 140px 0;
}

.heading-xl { font-size: clamp(2.5rem, 4vw, 4.5rem); letter-spacing: -0.03em; margin-bottom: 24px; line-height: 1.15; }
.heading-lg { font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: -0.02em; margin-bottom: 24px; }

.text-lead { font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 750px; font-weight: 300; line-height: 1.6; }
.text-base { font-size: 1rem; font-weight: 300; line-height: 1.6; }

.ffs-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
    border-radius: 40px; border: 1px solid transparent;
    transition: all var(--transition-fast);
}

/*
 * GeneratePress ships `a:hover, a:focus, a:active { color: var(--contrast) }`
 * and `a:focus { color: var(--contrast); background-color: var(--base-2);
 * border-color: var(--contrast-3) }`. Both are (0,1,1) and outrank a bare
 * class, so a pressed or focused button dropped its own colour and picked up a
 * grey plate. Every variant therefore restates its resting look for :focus and
 * :active; pressing reads as a settle, and keyboard focus gets a real ring.
 */
.ffs-btn-solid,
.ffs-btn-solid:visited,
.ffs-btn-solid:focus,
.ffs-btn-solid:active { background-color: var(--color-white); color: var(--color-dark); border-color: transparent; }
.ffs-btn-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0.95; }

.ffs-btn-glass,
.ffs-btn-glass:visited,
.ffs-btn-glass:focus,
.ffs-btn-glass:active { background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; backdrop-filter: blur(10px); }
.ffs-btn-glass:hover,
.ffs-btn-glass:active { background-color: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(-3px); }

.ffs-btn-outline,
.ffs-btn-outline:visited,
.ffs-btn-outline:focus,
.ffs-btn-outline:active {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.ffs-btn-outline:hover,
.ffs-btn-outline:active {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* Press settles the lift instead of cancelling it; must follow the variants. */
.ffs-btn:active { transform: translateY(-1px); }

.ffs-btn:focus { outline: none; }
.ffs-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/*
  * Uniform section entrance: a lift and a fade only, no sideways motion, rotation
  * or spring. The curve eases out softly, so the movement is visible without drawing
  * attention. Element cascade: see --ffs-krok below.
  */
html.js .reveal-element {
    opacity: 0;

    transform: translateY(24px);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/*
  * Media inside a section also get a slight zoom. The frame settles instead of
  * appearing flat; it is the only motion added on top of the fade-up.
  */
.reveal-media img,
.reveal-media video {
    transform: scale(1.04);
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.reveal-media.is-visible img,
.reveal-media.is-visible video {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-media img,
    .reveal-media video {
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal-element { transition: none; transform: none; opacity: 1; }
}
html.js .reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
  * An element straddling two backgrounds (a card overlapping a light section into a
  * dark one) must not be translucent: halfway through the animation the colour
  * boundary would show through it as a visible line. Such elements enter with the
  * lift only, always opaque.
  */
html.js .reveal-element.ffs-reveal-solid {
    opacity: 1;
}

.ffs-tile-loading { opacity: 0; }
.ffs-tile-ready {
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ffs-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.ffs-modal.is-open { opacity: 1; pointer-events: all; }

.ffs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 19, 23, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ffs-modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    margin-top: 40px;
}
.ffs-modal.is-open .ffs-modal-content { transform: scale(1); }

.ffs-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}
.ffs-modal-close:hover { opacity: 0.7; }

.ffs-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.ffs-video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ffs-video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
}

.ffs-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.4s;
    z-index: 2;
    pointer-events: none;
}

body.blog #page,
body.archive #page,
body.search-results #page,
body.error404 #page,
body.single-post #page {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.blog .site-content,
body.archive .site-content,
body.search-results .site-content,
body.error404 .site-content,
body.single-post .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    display: block !important;
}

body.blog .inside-article,
body.archive .inside-article,
body.search-results .inside-article,
body.error404 .inside-article,
body.single-post .inside-article {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

body.blog, body.archive, body.search-results, body.error404, body.single-post {
    background-color: var(--color-dark) !important;
    color: #fff !important;
}

#view-archive, #view-single { padding-top: 120px; padding-bottom: 140px; }

.blog-categories-bar { display: flex; gap: 32px; margin-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 16px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.blog-categories-bar::-webkit-scrollbar { display: none; }
.blog-cat-link { font-family: 'Syne', sans-serif; font-size: 1.125rem; font-weight: 600; color: rgba(255,255,255,0.5); position: relative; transition: color 0.3s; white-space: nowrap; text-decoration: none !important; }
.blog-cat-link:hover { color: var(--color-accent-blue) !important; }
.blog-cat-link.is-active { color: #fff !important; }
.blog-cat-link.is-active::after { content: ''; position: absolute; bottom: -18px; left: 0; width: 100%; height: 3px; background: var(--color-accent-blue); }

.blog-layout { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start; }

.blog-featured { display: block; margin-bottom: 80px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 64px; text-decoration: none !important; }
.blog-featured:hover .featured-img { transform: scale(1.03); opacity: 1; }
.featured-media { border-radius: 24px; overflow: hidden; aspect-ratio: 21/9; margin-bottom: 32px; background: #000; }
.featured-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.blog-meta { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--color-accent-blue); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.blog-meta span.date { color: rgba(255,255,255,0.5); }
.blog-featured h2 { transition: color 0.3s ease; }
.blog-featured:hover h2 { color: var(--color-accent-blue); }
.featured-content p { font-size: 1.125rem; color: rgba(255,255,255,0.7); font-weight: 300; line-height: 1.6; max-width: 800px; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.blog-card { display: block; cursor: pointer; margin-bottom: 40px; text-decoration: none !important; }
.blog-card .card-media { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 24px; background: #000; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.blog-card h3 { font-size: 1.5rem; transition: color 0.3s ease; line-height: 1.2; margin-top: 12px; color: #fff;}
.blog-card:hover img { transform: scale(1.05); opacity: 1; }
.blog-card:hover h3 { color: var(--color-accent-blue) !important; }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 64px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 64px; }
.blog-pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: 'Syne', sans-serif; font-weight: 600; color: rgba(255,255,255,0.6); transition: all 0.3s; text-decoration: none; border: 1px solid transparent; }
.blog-pagination a.page-numbers:hover { background: rgba(255,255,255,0.05); color: var(--color-accent-blue); border-color: var(--color-accent-blue); }
.blog-pagination .page-numbers.current { background: var(--color-accent-blue); color: #fff; box-shadow: 0 4px 15px rgba(17, 92, 250, 0.3); }
.blog-pagination .page-numbers.next, .blog-pagination .page-numbers.prev { width: auto; padding: 0 24px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.2); text-transform: uppercase; font-size: 0.875rem; }
.blog-pagination .page-numbers.next:hover, .blog-pagination .page-numbers.prev:hover { border-color: var(--color-accent-blue); background: rgba(17, 92, 250, 0.1); color: var(--color-accent-blue);}

.blog-sidebar { position: sticky; top: 120px; }
.widget { margin-bottom: 64px; }
.widget-title { font-size: 1.25rem; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; color: #fff; }

.search-form { position: relative; display: block; }
.search-input {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 40px !important;
    padding: 16px 60px 16px 24px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}
.search-input:focus {
    outline: none !important;
    border-color: var(--color-accent-blue) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(17, 92, 250, 0.2) !important;
}
.search-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--color-accent-blue) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    padding: 10px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.search-btn:hover {
    background: #fff !important;
    color: var(--color-accent-blue) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.popular-post-list { display: flex; flex-direction: column; gap: 24px; }
.popular-item { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; text-decoration: none !important; }
.popular-thumb { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; background: #000;}
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s, transform 0.8s ease; }
.popular-item:hover .popular-thumb img { opacity: 1; transform: scale(1.1); }
.popular-info h4 { font-size: 1rem; line-height: 1.3; margin-bottom: 4px; transition: color 0.3s ease; color: #fff;}
.popular-item:hover .popular-info h4 { color: var(--color-accent-blue) !important; }
.popular-info span { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { padding: 8px 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: 40px; font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: all 0.3s ease; text-decoration: none !important; background: transparent;}
.tag-pill:hover { background: rgba(17, 92, 250, 0.1); color: var(--color-accent-blue); border-color: var(--color-accent-blue); }

/* Post hero: featured image behind a dark filter, copy on the photo,
 * capped height so the article starts above the fold. */
.single-hero { position: relative; display: flex; align-items: flex-end; min-height: 320px; padding: 140px 0 48px; }
.single-hero--photo { min-height: min(58vh, 560px); background-size: cover; background-position: center; }
.single-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,0.55) 0%, rgba(11,12,15,0.35) 45%, rgba(11,12,15,0.94) 100%); }
.single-hero:not(.single-hero--photo) .single-hero-shade { display: none; }
.single-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 940px; margin: 0 auto; padding: 0 5%; }
.single-title { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.12; max-width: 22ch; margin: 0; }
.single-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.single-breadcrumbs a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.3s; }
.single-breadcrumbs a:hover { color: #fff; }
.single-breadcrumbs-current { color: rgba(255,255,255,0.45); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single-meta { margin-bottom: 20px; font-size: 0.875rem; }

.single-content { max-width: 940px; margin: 0 auto; padding: 56px 5% 80px; }
.single-content p { font-size: 1.125rem; color: rgba(255,255,255,0.8); line-height: 1.8; font-weight: 300; margin-bottom: 32px; }
.single-content h2 { font-size: 2rem; margin: 64px 0 24px; font-family: 'Syne', sans-serif; color: #fff;}
.single-content h3 { font-size: 1.5rem; margin: 40px 0 16px; font-family: 'Syne', sans-serif; color: #fff;}
.single-content ul { list-style: none; padding: 0; margin-bottom: 32px; }
.single-content li { position: relative; padding-left: 24px; margin-bottom: 16px; font-size: 1.125rem; color: rgba(255,255,255,0.8); font-weight: 300; }
.single-content li::before { content: '-'; position: absolute; left: 0; color: var(--color-accent-blue); }
.single-content blockquote { border-left: 2px solid var(--color-accent-blue); padding-left: 32px; margin: 48px 0; font-size: 1.5rem; font-family: 'Syne', sans-serif; font-weight: 600; line-height: 1.4; color: #fff; background: rgba(17, 92, 250, 0.05); padding-top: 16px; padding-bottom: 16px; border-radius: 0 16px 16px 0;}
.single-content img { border-radius: 16px; margin: 40px 0; width: 100%; height: auto; }

@media (max-width: 1200px) { .blog-layout { grid-template-columns: 1fr 300px; gap: 40px; } }
@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 80px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 80px; }
    .blog-grid { grid-template-columns: 1fr; }
    .single-hero--photo { min-height: 46vh; }
}

.ffs-footer {
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(17,19,23,0.1);
    background-color: var(--color-footer);
    margin-top: 0;
    color: var(--color-dark);
    font-family: 'Inter', sans-serif;
}

.ffs-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
}

.ffs-footer-logo {
    font-size: 2rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    color: var(--color-dark);
}

/* Footer text sits on #d1d5db: 0.6 alpha measured 4.22:1, WCAG AA needs 4.5:1, 0.7 gives ~5.4:1. */
.ffs-footer-desc {
    color: rgba(17,19,23,0.7);
    max-width: 350px;
    font-weight: 500;
}

.ffs-footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    color: rgba(17,19,23,0.7);
}

.ffs-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ffs-footer-links li {
    margin-bottom: 16px;
    font-size: 1rem;
    padding: 0;
}

.ffs-footer-links a {
    font-weight: 400;
    color: var(--color-dark);
    transition: opacity 0.3s;
    text-decoration: none;
}

.ffs-footer-links a:hover {
    opacity: 0.7;
}

.ffs-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(17,19,23,0.1);
    color: rgba(17,19,23,0.7);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 24px;
}

.ffs-footer-legal {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ffs-footer-legal li {
    margin: 0;
}

.ffs-footer-legal a {
    color: rgba(17,19,23,0.7);
    text-decoration: none;
    transition: opacity 0.3s;
}

.ffs-footer-legal a:hover {
    opacity: 0.7;
}

@media (max-width: 992px) {
    .ffs-footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ffs-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .ffs-footer-legal {
        justify-content: center;
    }
}

body:is(.home, .ffs-fullbleed) #page,
body:is(.home, .ffs-fullbleed) #content,
body:is(.home, .ffs-fullbleed) .site-content,
body:is(.home, .ffs-fullbleed) .content-area,
body:is(.home, .ffs-fullbleed) #main,
body:is(.home, .ffs-fullbleed) .site-main,
body:is(.home, .ffs-fullbleed) .container,
body:is(.home, .ffs-fullbleed) article,
body:is(.home, .ffs-fullbleed) .inside-article,
body:is(.home, .ffs-fullbleed) .entry-content,
body:is(.home, .ffs-fullbleed) .page-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

body:is(.home, .ffs-fullbleed) .site-content > *:last-child,
body:is(.home, .ffs-fullbleed) .entry-content > *:last-child,
body:is(.home, .ffs-fullbleed) .inside-article > *:last-child {
    margin-bottom: 0 !important;
}

body:is(.home, .ffs-fullbleed) .ffs-footer {
    margin-top: 0 !important;
    border-top: none !important;
}

.inside-article:has(> [class*="wp-block-lazyblock-sekcja-"]),
.entry-content:has(> [class*="wp-block-lazyblock-sekcja-"]) {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

[class*="wp-block-lazyblock-sekcja-"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.entry-content > p.wp-block-paragraph:empty,
.wp-block-paragraph:empty {
    display: none !important;
}

.ffs-real-archive { padding: 160px 0 140px; min-height: 80vh; }
.ffs-real-head { max-width: 820px; margin: 0 0 56px; }
.ffs-real-eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 0.875rem; font-weight: 600; color: var(--color-accent-blue, #115cfa); margin-bottom: 16px;
}
.ffs-real-head .text-lead { color: rgba(255,255,255,0.7); }

.ffs-real-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.ffs-real-filter {
    font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7);
    background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: 40px;
    padding: 10px 24px; cursor: pointer; transition: all 0.3s ease;
}
.ffs-real-filter:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.ffs-real-filter.is-active { color: #111317; background: #fff; border-color: #fff; }

.ffs-real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ffs-real-card { display: flex; flex-direction: column; text-decoration: none !important; }
.ffs-real-card-media {
    position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: #15181e;
}
.ffs-real-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ffs-real-card:hover .ffs-real-card-media img { transform: scale(1.05); }
.ffs-real-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1d24, #111317); }
.ffs-real-card-arrow {
    position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(17,19,23,0.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; color: #fff;
    opacity: 0; transform: translateY(-6px); transition: all 0.4s ease;
}
.ffs-real-card:hover .ffs-real-card-arrow { opacity: 1; transform: translateY(0); }
.ffs-real-card-body { padding: 20px 4px 0; }
.ffs-real-card-cat {
    display: block; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem;
    font-weight: 600; color: var(--color-accent-blue, #115cfa); margin-bottom: 8px;
}
.ffs-real-card-title { font-family: 'Syne', sans-serif; font-size: 1.4rem; line-height: 1.2; color: #fff; margin: 0; }
.ffs-real-empty { color: rgba(255,255,255,0.6); font-size: 1.1rem; }

@media (min-width: 993px) and (max-width: 1200px) {
    .ffs-real-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .ffs-real-archive { padding: 120px 0 100px; }
    .ffs-real-grid { grid-template-columns: 1fr; }
}

.ffs-zoomable { cursor: zoom-in; }

.ffs-img-lightbox .ffs-modal-content {
    width: auto;
    max-width: 92vw;
    display: flex;
    justify-content: center;
}

.ffs-lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    opacity: 0;
    transition: opacity 0.2s ease;
    min-width: 40px;
    min-height: 40px;
}

.ffs-lightbox-img.is-loaded {
    opacity: 1;
}

.ffs-grain {
    position: relative;
    isolation: isolate;
}

.ffs-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.14;

    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 140px 140px;
}

.ffs-grain > *:not(.ffs-modal) {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ffs-grain::before { opacity: 0.08; }
}

.ffs-slot {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.ffs-slot::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,0.16) 0%, transparent 55%),
        linear-gradient(150deg, #1b2f52 0%, #0c1526 100%);
}

.ffs-slot:nth-child(4n + 2)::after {
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,0.14) 0%, transparent 55%),
        linear-gradient(150deg, #4a1526 0%, #1e0810 100%);
}

.ffs-slot:nth-child(4n + 3)::after {
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,0.15) 0%, transparent 55%),
        linear-gradient(150deg, #5c3407 0%, #241300 100%);
}

.ffs-slot:nth-child(4n + 4)::after {
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,0.14) 0%, transparent 55%),
        linear-gradient(150deg, #3d1636 0%, #180a15 100%);
}

.ffs-slot::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.09) 50%, transparent 100%);
    animation: ffs-slot-sheen 5.5s ease-in-out infinite;
}

@keyframes ffs-slot-sheen {
    0%       { transform: translateX(-120%); }
    55%, 100% { transform: translateX(320%); }
}

.ffs-slot > * {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .ffs-slot::before { animation: none; opacity: 0; }
}

.ffs-aurora {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.ffs-aurora::before {
    content: '';
    position: absolute;
    inset: -25%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 46% at 18% 28%, rgba(226, 132, 19, 0.20) 0%, transparent 68%),
        radial-gradient(34% 40% at 78% 22%, rgba(124, 28, 49, 0.24) 0%, transparent 70%),
        radial-gradient(46% 50% at 62% 78%, rgba(30, 58, 95, 0.28) 0%, transparent 72%),
        radial-gradient(30% 34% at 30% 88%, rgba(110, 42, 92, 0.18) 0%, transparent 70%);
    animation: ffs-aurora-drift 34s ease-in-out infinite alternate;
}

@keyframes ffs-aurora-drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to   { transform: translate3d(3%, 2%, 0) scale(1.12); }
}

.ffs-aurora::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    z-index: 1;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.14) 22%, rgba(255, 255, 255, 0.14) 78%, transparent);
}

.ffs-aurora > * {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .ffs-aurora::before { animation: none; }
}

.ffs-footer-logo img { width: 176px; height: auto; display: block; }
.ffs-footer-logo { padding: 4px 0; }

/*
  * Touch targets on phones. Footer links, contact details, FAQ questions and blog tabs
  * were 20-27 px tall, roughly half of what a thumb can hit reliably. They grow via
  * padding, so the typography stays intact, and the same amount is taken back from
  * the spacing between items.
  */
@media (max-width: 768px) {

	/*
	  * The vertical rhythm was carried over from desktop one to one: 140 px above and
	  * below every section. On a 375 px screen that left 280 px of empty space per
	  * section, about a quarter of the page length.
	  */
	.section-spacing {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.ffs-footer-links a,
	.blog-cat-link {
		display: inline-block;
		padding-block: 10px;
	}

	.ffs-footer-links li {
		margin-bottom: 0;
	}

	.ffs-contact__detail {
		padding-block: 9px;
	}

	/* Breadcrumbs are a flex row, so the padding will not break the line. */
	.single-breadcrumbs a {
		padding-block: 9px;
	}

	.single-breadcrumbs {
		align-items: center;
	}

	/* The whole question row is clickable, not just the text. */
	body .ffs-faq-item { padding-block: 12px; }
	body .ffs-faq-question { padding-block: 12px; }

	/* Small captions never drop below the legibility threshold. */
	body .ffs-vwall__tag,
	body .ffs-vwall__time,
	body .ffs-textimg--manifest .ffs-manifest-badge,
	body .ffs-premiera__badge,
	body .ffs-premiera__play-tekst,
	body .ffs-premiera__fakt dt,
	body .ffs-cast--tekstowa .ffs-cast__text small,
	body .ffs-cast__text small,
	body .single-breadcrumbs a,
	body .single-breadcrumbs-current {
		font-size: 0.75rem;
	}
}

/*
  * Stylesheet required by Lenis. Without it the library and the browser fight over
  * the scroll position: the page jumps back and forth between sections, worst where
  * images above the viewport are still loading.
  *
  * The culprit is scroll anchoring: when content above changes height, Chrome adjusts
  * scrollTop itself to keep the view in place. Lenis keeps its own target position
  * and immediately reverts that correction, and so on in a loop. With Lenis enabled
  * it is the sole owner of scrolling, so anchoring is switched off.
  */
html.lenis,
html.lenis body {
	height: auto;
}

html.lenis {
	overflow-anchor: none;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* The cursor must not fall inside the player frame while scrolling. */
.lenis.lenis-smooth iframe {
	pointer-events: none;
}

/*
 * Background videos never show native controls. On iOS a video whose autoplay
 * was refused (Low Power Mode) renders a large play glyph in the middle of the
 * section; with the poster in place the glyph is the only thing to hide.
 */
video[autoplay]::-webkit-media-controls,
video[autoplay]::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

/* Mobile rhythm: blog views and the article page used desktop paddings (120/140 px). */
@media (max-width: 768px) {
    #view-archive, #view-single { padding-top: 96px; padding-bottom: 72px; }
    .single-breadcrumbs, .single-breadcrumbs span, .single-breadcrumbs a { font-size: 0.8rem; }
}

@media (max-width: 768px) {
	.wp-block-lazyblock-sekcja-uslugi + .wp-block-lazyblock-sekcja-portfolio-select .ffs-pf2 { padding-top: 96px; }
}

/* lazyblock-sekcja-kontakt/block.css */

.ffs-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;

	width: 100%;

	min-height: 560px;
	background: #ffffff;
}

.ffs-contact__intro {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;

	padding-top: clamp(64px, 8vw, 120px);
	padding-bottom: clamp(64px, 8vw, 120px);
	padding-left: max(5vw, calc((100vw - 1440px) / 2 + 72px));
	padding-right: clamp(40px, 5vw, 88px);
	color: #fff;

}

.ffs-contact__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	display: block;
}

.ffs-contact__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
}

.ffs-contact__heading {
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: clamp(2rem, 3.4vw, 3.2rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	color: #fff;
}

.ffs-contact__lead {
	font-family: 'Inter', sans-serif;
	font-weight: 300;
	font-size: clamp(1.1rem, 1.4vw, 1.3rem);
	line-height: 1.6;
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.95);
}

.ffs-contact__desc {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0 0 40px;
	color: rgba(255, 255, 255, 0.8);
}

.ffs-contact__details {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ffs-contact__detail {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.05rem;
	opacity: 0.9;
	transition: opacity 0.3s ease;
	width: fit-content;
}

/*
	  * GeneratePress sets `a:hover, a:focus, a:active { color: var(--contrast) }` inline,
	  * i.e. #222222, so on a dark section the link vanished on hover. The states must be
	  * declared explicitly because `a:hover` (0,1,1) outranks a bare class (0,1,0).
	  */
.ffs-contact__detail:hover,
.ffs-contact__detail:focus,
.ffs-contact__detail:active {
	color: #fff;
	opacity: 1;
}

.ffs-contact__detail i,
.ffs-contact__detail svg {
	flex-shrink: 0;
}

.ffs-contact__form {
	display: flex;
	align-items: center;

	padding-top: clamp(64px, 8vw, 120px);
	padding-bottom: clamp(64px, 8vw, 120px);
	padding-left: clamp(40px, 5vw, 88px);
	padding-right: max(5vw, calc((100vw - 1440px) / 2 + 72px));
	background: #ffffff;

	color: #111317;
}

.ffs-contact__form label,
.ffs-contact__form .wpcf7-form p {
	color: #111317;
}

.ffs-contact__form-inner {
	width: 100%;
	max-width: 520px;
}

.ffs-contact__form-empty {
	color: #888;
	font-size: 0.95rem;
	line-height: 1.6;
}

.ffs-contact__form .ffs-field,
.ffs-contact__form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 30px;
}
.ffs-contact__form .ffs-field .wpcf7-form-control-wrap {
	margin-bottom: 0;
}

.ffs-contact__form input[type="text"],
.ffs-contact__form input[type="email"],
.ffs-contact__form input[type="tel"],
.ffs-contact__form textarea {
	width: 100%;
	padding: 16px 0;
	background: transparent;
	border: none;
	border-bottom: 1px solid #e0e0e0;
	border-radius: 0;
	color: #111;
	font-family: inherit;
	font-size: 1rem;
	box-shadow: none;
	transition: border-color 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ffs-contact__form textarea {

	height: 140px;
	min-height: 110px;
	resize: vertical;
}

.ffs-contact__form input::placeholder,
.ffs-contact__form textarea::placeholder {
	color: #888;
	opacity: 1;
}

.ffs-contact__form input[type="text"]:focus,
.ffs-contact__form input[type="email"]:focus,
.ffs-contact__form input[type="tel"]:focus,
.ffs-contact__form textarea:focus {
	outline: none;
	border-bottom-color: #111;
}

.ffs-contact__form input[type="submit"],
.ffs-contact__form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 20px 40px;
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: #0f0f0f;
	border: none;
	border-radius: 40px;
	cursor: pointer;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.ffs-contact__form input[type="submit"]:hover,
.ffs-contact__form .wpcf7-submit:hover {
	background: #333;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.ffs-contact__form .wpcf7-spinner {
	margin: 16px auto 0;
	display: block;
}

.ffs-contact__form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	color: #d32f2f;
	font-size: 0.85rem;
}

.ffs-contact__form .wpcf7-response-output {
	margin: 24px 0 0 !important;
	padding: 16px 20px;
	border: 1px solid #eee !important;
	border-radius: 10px;
	background: #f7f7f8;
	color: #111;
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.ffs-contact {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.ffs-contact__intro {
		min-height: 60vh;
		padding: 80px 24px;
	}
	.ffs-contact__form {
		padding: 64px 24px;
	}
}

/* Consent text: smaller than the form fields but still legible. */
.ffs-consent {
	margin: 4px 0 28px;
	font-size: 0.82rem;
	line-height: 1.55;
	opacity: 0.85;
}

.ffs-consent .wpcf7-list-item {
	margin: 0;
}

.ffs-consent .wpcf7-list-item-label {
	display: inline;
}

.ffs-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-right: 10px;
	vertical-align: -2px;
	accent-color: currentColor;
	flex: 0 0 auto;
}

@media (max-width: 768px) {
	/* 64 px below the submit button plus the footer's own top padding read as a hole. */
	.ffs-contact__form { padding-top: 56px; padding-bottom: 40px; }
}

/* lazyblock-sekcja-lista-numerowana/block.css */

.ffs-editorial-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;

}

.ffs-editorial-col {
    height: 100%;
}

.ffs-editorial-sticky {
    position: sticky;
    top: 120px;
}

.ffs-editorial-sticky .text-lead { margin-top: 24px; }

.ffs-editorial-list {
    display: flex;
    flex-direction: column;
}

.ffs-editorial-item {
    display: flex;
    gap: 48px;
    padding: 56px 0;
    transition: transform 0.4s ease;
}

.ffs-editorial-item:hover { transform: translateX(12px); }

.ffs-editorial-number {
    flex-shrink: 0;
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-yellow);
}

.ffs-editorial-content h3 { font-size: 1.75rem; margin-bottom: 16px; }
.ffs-editorial-content p { font-size: 1.125rem; line-height: 1.6; font-weight: 300; }

.ffs-editorial.theme-light { color: var(--color-dark); }
.ffs-editorial.theme-light .heading-lg { color: var(--color-dark); }
.ffs-editorial.theme-light .ffs-editorial-item { border-top: 1px solid rgba(17,19,23,0.1); }
.ffs-editorial.theme-light .ffs-editorial-content h3 { color: var(--color-dark); }
.ffs-editorial.theme-light .ffs-editorial-content p { color: rgba(17,19,23,0.7); }

.ffs-editorial.theme-dark { color: #fff; }
.ffs-editorial.theme-dark .heading-lg { color: #fff; }
.ffs-editorial.theme-dark .ffs-editorial-item { border-top: 1px solid rgba(255,255,255,0.1); }
.ffs-editorial.theme-dark .ffs-editorial-content h3 { color: #fff; }
.ffs-editorial.theme-dark .ffs-editorial-content p { color: rgba(255,255,255,0.75); }

@media (max-width: 992px) {
    /*
      * minmax(0, 1fr) instead of 1fr: the default min-width: auto stops the track from
      * shrinking below the longest word, so one long word pushed the whole page sideways.
      */
    .ffs-editorial-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .ffs-editorial-sticky { position: static; }
    .ffs-editorial-item { gap: 24px; padding: 40px 0; }
    .ffs-editorial-number { font-size: 2.25rem; }

    .ffs-editorial-content { min-width: 0; }

    .ffs-editorial-content h3,
    .ffs-editorial-content p,
    .ffs-editorial-sticky .heading-lg {
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* lazyblock-sekcja-sciana-wideo/block.css */
/* Full-bleed wall of production videos: tiles glued edge to edge,
 * separated only by a hairline gap. The first tile is the feature. */

.ffs-vwall {
	padding-bottom: 0;
}

.ffs-vwall__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: clamp(40px, 5vw, 72px);
}

.ffs-vwall__header .heading-lg {
	margin-bottom: 0;
}

.ffs-vwall__desc {
	max-width: 420px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 1rem;
	line-height: 1.6;
	text-align: right;
}

.ffs-vwall__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: clamp(200px, 22vw, 400px);
	grid-auto-flow: dense;
	gap: 2px;
	width: 100%;
}

.ffs-vwall__tile {
	position: relative;
	overflow: hidden;
	margin: 0;
	grid-column: span var(--span, 4);
	grid-row: span var(--rzad, 1);
	background: #0b0c0f;
	cursor: pointer;
}

.ffs-vwall__poster,
.ffs-vwall__preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ffs-vwall__poster {
	transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
	transform: scale(1.02);
}

.ffs-vwall__tile:hover .ffs-vwall__poster {
	transform: scale(1.07);
}

.ffs-vwall__preview {
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.ffs-vwall__tile.is-playing .ffs-vwall__preview {
	opacity: 1;
}

.ffs-vwall__tile.is-playing .ffs-vwall__poster {
	opacity: 0;
}

/* Legibility gradient under the caption. */
.ffs-vwall__tile::after {
	content: '';
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(180deg, rgba(5, 6, 8, 0) 0%, rgba(5, 6, 8, 0.78) 100%);
	pointer-events: none;
}

.ffs-vwall__info {
	position: absolute;
	left: clamp(20px, 2.5vw, 40px);
	right: clamp(20px, 2.5vw, 40px);
	bottom: clamp(18px, 2.2vw, 36px);
	z-index: 2;
	display: grid;
	gap: 6px;
	pointer-events: none;
}

.ffs-vwall__tag {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--color-accent-blue, #4d7cfe);
}

.ffs-vwall__title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.1rem, 1.6vw, 1.6rem);
	line-height: 1.15;
	color: #fff;
	margin: 0;
}

.ffs-vwall__tile.is-feature .ffs-vwall__title {
	font-size: clamp(1.5rem, 2.6vw, 2.6rem);
}

.ffs-vwall__time {
	position: absolute;
	right: 0;
	bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.55);
}

.ffs-vwall__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff;
	background: rgba(5, 6, 8, 0.35);
	backdrop-filter: blur(6px);
	transform: translate(-50%, -50%);
	transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
	pointer-events: none;
}

.ffs-vwall__play svg {
	width: 22px;
	height: 22px;
	margin-left: 3px;
}

.ffs-vwall__tile:hover .ffs-vwall__play {
	background: var(--color-accent-blue, #4d7cfe);
	border-color: var(--color-accent-blue, #4d7cfe);
	transform: translate(-50%, -50%) scale(1.08);
}

.ffs-vwall__tile.is-playing .ffs-vwall__play {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
}

/* Cascade on reveal: tiles rise one after another. */
html.js .ffs-vwall__grid.reveal-element .ffs-vwall__tile {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s ease, transform 0.8s ease;
	transition-delay: calc(var(--krok, 0) * 80ms);
}

html.js .ffs-vwall__grid.reveal-element.is-visible .ffs-vwall__tile {
	opacity: 1;
	transform: none;
}

@media (max-width: 900px) {
	.ffs-vwall__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ffs-vwall__desc {
		text-align: left;
	}

	.ffs-vwall__grid {
		grid-auto-rows: auto;
	}

	.ffs-vwall__grid .ffs-vwall__tile {
		grid-column: span 12;
		grid-row: span 1;
		aspect-ratio: 16 / 9;
	}
}

/* lazyblock-sekcja-tekst-obraz/block.css */

.ffs-textimg-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* The photo column follows the height of the copy - a small box
     * floating beside a wall of text reads as a mistake. */
    align-items: stretch;
}

.ffs-textimg--left .ffs-textimg-media { order: -1; }

.ffs-textimg-badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ffs-textimg.theme-dark .ffs-textimg-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.ffs-textimg.theme-light .ffs-textimg-badge {
    background: rgba(17, 19, 23, 0.08);
    border: 1px solid rgba(17, 19, 23, 0.2);
    color: var(--color-dark);
}

/* A full blank line between paragraphs (line-height 1.8 * 1.125rem). */
.ffs-textimg-body > * + * { margin-top: 2em; }

.ffs-textimg-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
    text-wrap: pretty;
}

.ffs-textimg-text .heading-lg { text-wrap: balance; }
.ffs-nowrap { white-space: nowrap; }

.ffs-textimg-cta { margin-top: 32px; }

.ffs-textimg-media {
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
}

.ffs-textimg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/*
 * In the split layout the photo column is meant to follow the height of the
 * copy, but an in-flow <img> still contributes its intrinsic height to the
 * grid row. A portrait photo therefore stretched the row to ~900 px and left
 * the copy floating in empty space. Taking the image out of flow makes the
 * copy the only thing that sets the row height.
 */
@media (min-width: 993px) {
    .ffs-textimg--split .ffs-textimg-media { position: relative; }
    .ffs-textimg--split .ffs-textimg-media img {
        position: absolute;
        inset: 0;
    }
}

.ffs-textimg.theme-light { color: var(--color-dark); }
.ffs-textimg.theme-light .heading-lg { color: var(--color-dark); }
.ffs-textimg.theme-light .ffs-textimg-body { color: rgba(17,19,23,0.8); }

.ffs-textimg.theme-dark { color: #fff; }
.ffs-textimg.theme-dark .heading-lg { color: #fff; }
.ffs-textimg.theme-dark .ffs-textimg-body { color: rgba(255,255,255,0.85); }

@media (max-width: 992px) {
    .ffs-textimg-layout { grid-template-columns: 1fr; gap: 40px; }
    .ffs-textimg--left .ffs-textimg-media { order: 0; }
    .ffs-textimg-media { aspect-ratio: 16/10; }
}

@media (min-width: 993px) {
	/* Without a modifier the image sits on the right, the same as in the split layout. */
	.ffs-textimg--offset .ffs-textimg-layout {
		grid-template-columns: 5fr 7fr;
		gap: 0;
		align-items: center;
	}

	.ffs-textimg--offset .ffs-textimg-media {
		grid-column: 2;
		grid-row: 1;
		aspect-ratio: 4 / 3;
	}

	.ffs-textimg--offset .ffs-textimg-text {
		grid-column: 1;
		grid-row: 1;

		margin-right: -12%;
		padding: clamp(32px, 4vw, 56px);
		border-radius: 20px;
		background: var(--ffs-tlo-sekcji, #111317);
		box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
		position: relative;
		z-index: 1;
	}

	/* The --left modifier moves the image to the left; the text overlaps from the right. */
	.ffs-textimg--offset.ffs-textimg--left .ffs-textimg-layout {
		grid-template-columns: 7fr 5fr;
	}
	.ffs-textimg--offset.ffs-textimg--left .ffs-textimg-media { grid-column: 1; }
	.ffs-textimg--offset.ffs-textimg--left .ffs-textimg-text {
		grid-column: 2;
		margin-right: 0;
		margin-left: -12%;
	}
}

.ffs-textimg--overlay {
	position: relative;
	padding-block: clamp(90px, 12vw, 200px);

}

.ffs-textimg--overlay .ffs-textimg-media {
	position: absolute;
	inset: 0;
	border-radius: 0;
	z-index: 0;
}

.ffs-textimg--overlay .ffs-textimg-media img {
	border-radius: 0;
}

.ffs-textimg--overlay .ffs-textimg-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.72) 45%, rgba(10, 11, 14, 0.35) 100%);
}

.ffs-textimg--overlay .ffs-textimg-layout {
	position: relative;
	z-index: 1;
	grid-template-columns: minmax(0, 620px);
	gap: 0;
}

.ffs-textimg--overlay.ffs-textimg--left .ffs-textimg-layout {
	justify-content: end;
	text-align: left;
}

.ffs-textimg--overlay.ffs-textimg--left .ffs-textimg-media::after {
	background: linear-gradient(260deg, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.72) 45%, rgba(10, 11, 14, 0.35) 100%);
}

.ffs-textimg--stack .ffs-textimg-layout {
	grid-template-columns: 1fr;
	gap: clamp(32px, 4vw, 56px);
}

.ffs-textimg--stack .ffs-textimg-media {
	order: -1;
	aspect-ratio: 21 / 9;
}

.ffs-textimg--stack .ffs-textimg-text {
	max-width: 760px;
}

.ffs-textimg--stack:not(.ffs-textimg--left) .ffs-textimg-text {
	margin-inline: auto;
	text-align: center;
}

.ffs-textimg--stack:not(.ffs-textimg--left) .ffs-textimg-cta {
	margin-inline: auto;
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 993px) {
		.ffs-textimg--offset .ffs-textimg-media img,
		.ffs-textimg--stack .ffs-textimg-media img,
		.ffs-textimg--overlay .ffs-textimg-media img {

			height: 118%;
			animation: ffs-textimg-drift linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}

		@keyframes ffs-textimg-drift {
			from { transform: translate3d(0, -8%, 0); }
			to   { transform: translate3d(0, 0%, 0); }
		}
	}
}

@media (max-width: 992px) {

	.ffs-textimg--offset .ffs-textimg-text {
		margin: 0;
		padding: 0;
		box-shadow: none;
		background: transparent;
	}

	.ffs-textimg--overlay {
		padding-block: clamp(64px, 10vw, 120px);
	}

	.ffs-textimg--overlay .ffs-textimg-layout {
		grid-template-columns: 1fr;
	}

	.ffs-textimg--stack .ffs-textimg-media {
		aspect-ratio: 16 / 10;
	}

	.ffs-textimg--stack:not(.ffs-textimg--left) .ffs-textimg-text {
		text-align: left;
	}
}

.ffs-textimg--placeholder .ffs-textimg-media {
	min-height: clamp(260px, 30vw, 420px);
	border-radius: 24px;
}

.ffs-textimg--placeholder.ffs-textimg--overlay .ffs-textimg-media {
	border-radius: 0;
	min-height: 0;
}

.ffs-textimg--placeholder.ffs-textimg--stack .ffs-textimg-media {
	aspect-ratio: 21 / 9;
}

.ffs-textimg--placeholder.ffs-textimg--overlay .ffs-textimg-media::after {
	background: linear-gradient(100deg, rgba(8, 9, 12, 0.55) 0%, rgba(8, 9, 12, 0.15) 60%, transparent 100%);
}

.ffs-textimg--placeholder.ffs-textimg--overlay.ffs-textimg--left .ffs-textimg-media::after {
	background: linear-gradient(260deg, rgba(8, 9, 12, 0.55) 0%, rgba(8, 9, 12, 0.15) 60%, transparent 100%);
}

/* Media tile with a video behind it: play affordance + hover zoom. */
.ffs-textimg-media--video {
	position: relative;
	cursor: pointer;
}

.ffs-textimg-media--video img {
	transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ffs-textimg-media--video:hover img {
	transform: scale(1.05);
}

.ffs-textimg-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff;
	background: rgba(5, 6, 8, 0.35);
	backdrop-filter: blur(6px);
	transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
	pointer-events: none;
	z-index: 2;
}

.ffs-textimg-play svg {
	width: 24px;
	height: 24px;
	margin-left: 3px;
}

.ffs-textimg-media--video:hover .ffs-textimg-play {
	background: var(--color-accent-blue, #115cfa);
	border-color: var(--color-accent-blue, #115cfa);
	transform: translate(-50%, -50%) scale(1.08);
}

/* Editorial: narrow, full-height vertical photo beside wide copy. */
@media (min-width: 993px) {
	.ffs-textimg--editorial .ffs-textimg-layout {
		grid-template-columns: 7fr 4fr;
		gap: clamp(64px, 8vw, 140px);
	}

	.ffs-textimg--editorial.ffs-textimg--left .ffs-textimg-layout {
		grid-template-columns: 4fr 7fr;
	}

	.ffs-textimg--editorial .ffs-textimg-media {
		min-height: 540px;
	}
}

/* ------------------------------------------------------------------
 * Manifest: text-only variant. No photo, no video - the section has to
 * stand on typography alone, so it borrows the spec-sheet language used
 * elsewhere on the site: mono metadata on a hairline, a heading column
 * separated by a vertical rule, and the opening sentence pulled out.
 * ------------------------------------------------------------------ */

.ffs-textimg--manifest .ffs-manifest-rule {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: clamp(48px, 6vw, 80px);
}

.ffs-textimg--manifest .ffs-manifest-badge {
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}

.ffs-textimg--manifest .ffs-manifest-line {
	flex: 1 1 auto;
	height: 1px;
}

.ffs-textimg--manifest.theme-dark .ffs-manifest-badge { color: rgba(255, 255, 255, 0.62); }
.ffs-textimg--manifest.theme-dark .ffs-manifest-line { background: rgba(255, 255, 255, 0.18); }
.ffs-textimg--manifest.theme-light .ffs-manifest-badge { color: rgba(17, 19, 23, 0.62); }
.ffs-textimg--manifest.theme-light .ffs-manifest-line { background: rgba(17, 19, 23, 0.16); }

.ffs-textimg--manifest .ffs-manifest-grid {
	display: grid;
	gap: clamp(36px, 5vw, 72px);
}

.ffs-textimg--manifest .ffs-manifest-heading {
	margin: 0;
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.ffs-textimg--manifest .ffs-manifest-lead {
	margin: 0 0 32px;
	padding-left: clamp(18px, 2vw, 26px);
	border-left: 2px solid var(--color-accent-blue, #115cfa);
	font-size: clamp(1.2rem, 1.7vw, 1.5rem);
	line-height: 1.5;
	font-weight: 500;
}

.ffs-textimg--manifest.theme-dark .ffs-manifest-lead { color: #fff; }
.ffs-textimg--manifest.theme-light .ffs-manifest-lead { color: var(--color-dark, #111317); }

.ffs-textimg--manifest .ffs-manifest-body p {
	margin: 0 0 22px;
	font-size: 1.02rem;
	line-height: 1.75;
}

.ffs-textimg--manifest .ffs-manifest-body p:last-child { margin-bottom: 0; }

.ffs-textimg--manifest.theme-dark .ffs-manifest-body p { color: rgba(255, 255, 255, 0.7); }
.ffs-textimg--manifest.theme-light .ffs-manifest-body p { color: rgba(17, 19, 23, 0.72); }

.ffs-textimg--manifest.theme-dark .ffs-manifest-body strong { color: #fff; }

.ffs-textimg--manifest .ffs-manifest-cta { margin-top: 40px; }

@media (min-width: 993px) {
	.ffs-textimg--manifest .ffs-manifest-grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}

	.ffs-textimg--manifest .ffs-manifest-copy {
		padding-left: clamp(40px, 5vw, 72px);
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}

	.ffs-textimg--manifest.theme-light .ffs-manifest-copy {
		border-left-color: rgba(17, 19, 23, 0.12);
	}
}

/* Two text columns only where the measure stays readable. */
@media (min-width: 1200px) {
	.ffs-textimg--manifest .ffs-manifest-body {
		column-count: 2;
		column-gap: clamp(32px, 3vw, 56px);
	}

	.ffs-textimg--manifest .ffs-manifest-body p {
		break-inside: avoid;
	}
}

/*
  * The frame shown whole. Material with burned-in captions loses text when cropped to
  * the tile, so the box gets a 16:9 ratio and the image fits inside without loss. The
  * height is no longer stretched to the text column, so the tile sits centred in it.
  */
/*
  * The tile keeps its normal size; only the way the frame fits inside changes. The
  * whole image goes in and whatever remains at the sides or above and below is
  * filled with black: with burned-in captions bars are better than cut-off text.
  */
.ffs-textimg-media--caly {
	background: #000;
}

.ffs-textimg-media--caly img {
	object-fit: contain;
}

/*
  * On phones the fixed 420 px box height forced a heavy crop: a 3:2 photo scaled to
  * that height and lost almost half its width. Below 700 px the box therefore takes
  * a ratio instead of a height; the frame stays as it was shot.
  */
/*
  * On phones the column is about 285 px wide. Any imposed ratio then cropped the
  * photo by tens of percent along the shorter side; a portrait squeezed into a
  * landscape frame lost its head. Except for the text-over-image variant, where the
  * frame needs its own height, the photo keeps its own ratio.
  */
@media (max-width: 700px) {
	.ffs-textimg-media {
		min-height: 0;
	}

	.ffs-textimg:not(.ffs-textimg--overlay) .ffs-textimg-media {
		aspect-ratio: auto;
	}

	.ffs-textimg:not(.ffs-textimg--overlay) .ffs-textimg-media img,
	.ffs-textimg:not(.ffs-textimg--overlay) .ffs-textimg-media video {
		height: auto;
	}
}

/* lazyblock-sekcja-usluga-hero/block.css */

.ffs-uhero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 0 80px;
    color: #fff;
    background-color: var(--color-dark);
}

.ffs-uhero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ffs-uhero-bg img,
.ffs-uhero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0.4;
}

.ffs-uhero-bg img {
    filter: contrast(1.1) saturate(0.9);
}

.ffs-uhero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(17,19,23,0.3) 0%, rgba(17,19,23,1) 100%);
}

.ffs-uhero-content {
    position: relative;
    z-index: 2;

    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(24px, 5vw, 48px);
}

.ffs-uhero-badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(17, 92, 250, 0.1);
    border: 1px solid rgba(17, 92, 250, 0.3);
    color: var(--color-accent-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ffs-uhero-content .heading-xl {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ffs-uhero-content .text-lead {
    margin: 24px auto 0;
    max-width: 680px;
    opacity: 0.85;
    text-wrap: pretty;
}

.ffs-uhero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .ffs-uhero-actions { flex-direction: column; }
    .ffs-uhero-actions .ffs-btn { width: 100%; }
}

.page-id-356 .ffs-uhero-badge,
.page-id-474 .ffs-uhero-badge,
.page-id-368 .ffs-uhero-badge,
.page-id-385 .ffs-uhero-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.page-id-393 .ffs-uhero-badge {
    background: rgba(220, 166, 56, 0.15);
    border-color: rgba(220, 166, 56, 0.4);
    color: var(--color-yellow);
}

/* lazyblock-sekcja-wideo-tlo/block.css */
/* Full-viewport section with a muted backstage loop running behind the copy.
 * The shade keeps the text readable over any footage. */

.ffs-vbg {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: min(86vh, 860px);
	padding: clamp(96px, 12vw, 160px) 0;
	overflow: hidden;
	background: #050608;
}

/*
 * Selectors carry the section element on purpose: the theme's
 * `.ffs-grain > *:not(.ffs-modal)` rule forces `position: relative` on all
 * children, which would drop the video into the flow and crush the copy.
 */
section.ffs-vbg > .ffs-vbg__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

section.ffs-vbg > .ffs-vbg__shade {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(5, 6, 8, 0.62) 0%, rgba(5, 6, 8, 0.32) 45%, rgba(5, 6, 8, 0.82) 100%),
		linear-gradient(90deg, rgba(5, 6, 8, 0.55) 0%, rgba(5, 6, 8, 0.1) 60%);
}

section.ffs-vbg--center > .ffs-vbg__shade {
	background: linear-gradient(180deg, rgba(5, 6, 8, 0.66) 0%, rgba(5, 6, 8, 0.38) 50%, rgba(5, 6, 8, 0.84) 100%);
}

.ffs-vbg .wrapper {
	position: relative;
	z-index: 1;
	width: 100%;
}

.ffs-vbg__content {
	max-width: 640px;
}

.ffs-vbg--center .ffs-vbg__content {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.ffs-vbg__badge {
	display: inline-block;
	margin-bottom: 24px;
	padding: 6px 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 30px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.ffs-vbg__text {
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 560px;
}

.ffs-vbg--center .ffs-vbg__text {
	margin: 0 auto;
}

.ffs-vbg__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

.ffs-vbg--center .ffs-vbg__actions {
	justify-content: center;
}

/* Facts strip: big Syne figures over a hairline, spec-sheet style. */
.ffs-vbg__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: clamp(24px, 4vw, 56px);
	margin-top: clamp(56px, 7vw, 96px);
	padding-top: clamp(28px, 3vw, 40px);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ffs-vbg__fact {
	display: grid;
	gap: 8px;
	padding-left: clamp(18px, 2.2vw, 32px);
	border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.ffs-vbg__fact:first-child {
	padding-left: 0;
	border-left: none;
}

html.js .ffs-vbg__facts.reveal-element .ffs-vbg__fact {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s ease, transform 0.8s ease;
	transition-delay: calc(var(--krok, 0) * 80ms);
}

html.js .ffs-vbg__facts.reveal-element.is-visible .ffs-vbg__fact {
	opacity: 1;
	transform: none;
}

/*
  * All values share one font size. They used to scale with the text length and "8K"
  * came out twice as large as its neighbours; the strip is meant to be an even spec
  * row and one field broke out of it. A shared min-height keeps the labels on one
  * line.
  */
.ffs-vbg__fact-value {
	display: flex;
	align-items: flex-end;
	min-height: clamp(1.6rem, 2.2vw, 2rem);
	font-size: clamp(1.15rem, 1.7vw, 1.6rem);
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
	letter-spacing: -0.02em;
	text-wrap: balance;
}



.ffs-vbg__fact-label {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
	.ffs-vbg__fact:nth-child(2n+1) {
		padding-left: 0;
		border-left: none;
	}

	.ffs-vbg {
		min-height: 0;
	}

	.ffs-vbg__facts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	/* Same vertical rhythm as every other section on phones. */
	.ffs-vbg { padding-top: 72px; padding-bottom: 72px; }
}

