/* 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-dlaczego/block.css */

.ffs-why {
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark);
    padding-bottom: 0;
}

.ffs-why-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;

    overflow: hidden;
}

.ffs-why-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 1s ease;
}

.ffs-why-bg video.is-ready {
    opacity: 1;
}

.ffs-why-content {
    position: relative;
    z-index: 1;
}

.ffs-why-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

.ffs-why-lead {
    color: #fff;
}

.ffs-why-desc {
    margin-bottom: 24px;
}

.ffs-why-desc--last {
    margin-bottom: 32px;
}

.ffs-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 24px;
}

.ffs-benefit {
    position: relative;
    padding: 40px 32px;

    background: rgba(10, 12, 16, 0.72);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ffs-benefit-icon {
    margin-bottom: 24px;
    color: #fff;
}

.ffs-benefit h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.ffs-benefit p {
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
}

.ffs-stat-highlight {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

html.js .ffs-stat-highlight {
    opacity: 0;
    transform: translateY(20px);
}

html.js .reveal-element.is-visible .ffs-stat-highlight {
    opacity: 1;
    transform: translateY(0);
}

/*
  * The asterisk points to the shared footnote below the grid. It does not scale with
  * the number; at 3.5rem it would be the size of a digit.
  */
.ffs-stat-ref {
    font-size: 1.1rem;
    font-weight: 500;
    vertical-align: super;
    margin-left: 4px;
    color: var(--color-yellow, #dca638);
}

.ffs-benefits-note {
    margin: 36px 0 0;
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    text-wrap: pretty;
}

/*
  * 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-benefits-note-link,
.ffs-benefits-note-link:visited,
.ffs-benefits-note-link:hover,
.ffs-benefits-note-link:focus,
.ffs-benefits-note-link:active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: text-decoration-color 0.3s ease;
    white-space: nowrap;
}

.ffs-benefits-note-link:hover,
.ffs-benefits-note-link:focus-visible {
    text-decoration-color: var(--color-yellow, #dca638);
}

.ffs-benefits-note-mark {
    color: var(--color-yellow, #dca638);
    margin-right: 8px;
}

.ffs-benefit-pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
}

.ffs-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 100px;
    padding-top: 64px;
    padding-bottom: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ffs-stat h3 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-top: 0;
    margin-bottom: 8px;
    display: inline-block;
    color: #fff;
}

.ffs-counter-suffix {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 5rem);
    color: #fff;
}

.ffs-stat p {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.ffs-stat .ffs-stat-desc {
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 300;
    max-width: 500px;
}

@media (max-width: 992px) {
    .ffs-why-intro,
    .ffs-benefits-grid,
    .ffs-stats-row {
        grid-template-columns: 1fr;
    }
}

/* The footnote link was a 15 px tall tap target; padding keeps the type size. */
.ffs-benefits-note-link { display: inline-block; padding: 8px 0; margin: -8px 0; }

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

.ffs-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-dark);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ffs-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
}

.ffs-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 1s ease;
}

.ffs-hero-bg video.is-ready {
    opacity: 0.75;
}

.ffs-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom, rgba(17,19,23,0.3) 0%, rgba(17,19,23,0.85) 100%);
}

.ffs-hero-inner {
    position: relative;
    z-index: 1;
}

.ffs-hero-content {
    max-width: 1100px;
}

.ffs-hero-lead {
    margin-bottom: 48px;
}

.ffs-typewriter-wrap {
    position: relative;
    display: inline-block;
    min-width: 280px;
}

/* Holds the wrapper height while staying invisible. */
.ffs-typewriter-miara {
    visibility: hidden;
    pointer-events: none;
}

.ffs-typewriter-wrap .ffs-typewriter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.ffs-typewriter {
    word-break: keep-all;
    white-space: pre-wrap;
}

/*
  * The caret is a pseudo-element, not the right edge of the span: the text is now
  * absolutely positioned across the full wrapper width, so the edge landed at the
  * right side instead of right after the last letter.
  */
.ffs-typewriter::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 5px;
    vertical-align: -0.08em;
    background: currentColor;
    animation: ffs-caret-blink 0.75s step-end infinite;
}

@keyframes ffs-caret-blink {
    50% { opacity: 0; }
}

/*
  * Hidden twin of the typed line. The script fills it with the whole phrase to read
  * where the browser wraps it; it must not paint anything, the caret included.
  */
.ffs-typewriter-probe {
    visibility: hidden;
    pointer-events: none;
}

.ffs-typewriter-probe::after {
    content: none;
}

.ffs-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ffs-hero-actions .ffs-btn-icon {
    margin-right: 8px;
}

@media (max-width: 400px) {
    .ffs-hero-actions { flex-direction: column; width: 100%; }
    .ffs-hero-actions .ffs-btn { width: 100%; }
    .ffs-typewriter-wrap { min-width: 100%; display: block; margin-top: 8px; }
}

.ffs-showreel-btn,
.ffs-showreel-btn:hover,
.ffs-showreel-btn:focus,
.ffs-showreel-btn:active {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 0;
	border: 0;

	background: transparent;
	box-shadow: none;
	cursor: pointer;
	color: #fff;
	text-align: left;
}

.ffs-showreel-btn__disc {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	flex-shrink: 0;
}

.ffs-showreel-btn__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: ffs-showreel-spin 14s linear infinite;
}

.ffs-showreel-btn__ring text {
	fill: #fff;
	font-family: 'Syne', sans-serif;
	font-size: 9.4px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

@keyframes ffs-showreel-spin {
	to { transform: rotate(360deg); }
}

.ffs-showreel-btn__core {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #e28413;
	color: #fff;
	padding-left: 3px;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.ffs-showreel-btn__core::after {
	content: '';
	position: absolute;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2px solid #e28413;
	animation: ffs-showreel-pulse 3s ease-out infinite;
	pointer-events: none;
}

@keyframes ffs-showreel-pulse {
	0%       { transform: scale(1);   opacity: 0.7; }
	70%, 100% { transform: scale(1.9); opacity: 0; }
}

.ffs-showreel-btn__label strong {
	display: block;
	font-family: 'Syne', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ffs-showreel-btn__label small {
	display: block;
	margin-top: 3px;
	font-size: 0.78rem;
	font-weight: 400;
	opacity: 0.65;
}

.ffs-showreel-btn:hover .ffs-showreel-btn__core {
	transform: scale(1.12);
	background: #f0951f;
}

.ffs-showreel-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 6px;
	border-radius: 60px;
}

@media (prefers-reduced-motion: reduce) {
	.ffs-showreel-btn__ring { animation: none; }
	.ffs-showreel-btn__core::after { animation: none; }
}

@media (max-width: 400px) {
	.ffs-showreel-btn__disc { width: 88px; height: 88px; }
	.ffs-showreel-btn__core,
	.ffs-showreel-btn__core::after { width: 48px; height: 48px; }
}

.ffs-modal--showreel .ffs-modal-content:fullscreen {
	width: 100%;
	max-width: none;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.ffs-modal--showreel .ffs-modal-content:fullscreen .ffs-video-container {
	width: 100%;
	height: 100%;
}

.ffs-modal--showreel .ffs-modal-content:fullscreen video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 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-kulisy/block.css */

.ffs-backstage {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

/*
  * Two classes on purpose: the mobile rule below sets padding on .ffs-backstage and
  * would otherwise win by order, leaving a white band under the stills grid.
  */
.ffs-backstage.ffs-backstage--wall-only {
    padding-bottom: 0;
}

.ffs-backstage-heading {
    margin-bottom: 16px;
    color: #000000;
}

.ffs-backstage-lead {
    color: rgba(17,19,23,0.8);
}

/*
  * Stills from the productions: their own colour block, so the strip does not blend
  * into the white backstage section above it. One cinema strip, three frames to a row.
  */
.ffs-fame-block {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 96px;
    background-color: var(--color-moss);
}

.ffs-fame-head {
    padding-top: 96px;
    padding-bottom: 48px;
    color: #ffffff;
}

.ffs-fame-head .text-lead {
    color: rgba(255, 255, 255, 0.75);
}

.ffs-fame {
    width: 100%;
    margin-left: 0;
}

.ffs-fame-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ffs-fame-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.ffs-fame-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
    filter: saturate(0.75) brightness(0.9);
}

.ffs-fame-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s;
    background: linear-gradient(to top, rgba(11, 12, 15, 0.92) 0%, rgba(11, 12, 15, 0.25) 45%, transparent 100%);
}

.ffs-fame-overlay h4 {
    color: #ffffff;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: translateY(14px);
    transition: transform 0.4s;
    margin: 0;
}

.ffs-fame-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.05) brightness(1.02);
}

.ffs-fame-item:hover .ffs-fame-overlay {
    opacity: 1;
}

.ffs-fame-item:hover .ffs-fame-overlay h4 {
    transform: translateY(0);
}

.ffs-bts {
    margin-top: 100px;
}

.ffs-bts-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.ffs-bts-track {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 24px;
    /*
      * `proximity` instead of `mandatory`: with a hard snap the browser re-aligned a tile
      * every time the carousel moved during vertical page scrolling and the view jerked.
      */
    scroll-snap-type: x proximity;

    /* Horizontal carousel scrolling must not chain to the whole page. */
    overscroll-behavior-x: contain;

    padding-left: 20px;
    scroll-padding-left: 20px;
    padding-right: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.ffs-bts-track:active {
    cursor: grabbing;
}

.ffs-bts-track::-webkit-scrollbar {
    display: none;
}

.ffs-bts-slide {
    flex: 0 0 min(80vw, 850px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.ffs-bts-media {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: #f4f5f7;
    border: 1px solid rgba(0,0,0,0.05);
}

.ffs-bts-media img,
.ffs-bts-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.4s;
    opacity: 0.9;
    pointer-events: none;
}

.ffs-bts-slide:hover .ffs-bts-media img,
.ffs-bts-slide:hover .ffs-bts-media video {
    transform: scale(1.03);
    opacity: 1;
}

.ffs-bts-slide:hover .ffs-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
}

.ffs-bts-info {
    padding-top: 24px;
}

.ffs-bts-info h4 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 8px;
}

.ffs-bts-info p {
    font-size: 1rem;
    color: rgba(17,19,23,0.8);
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}

.ffs-bts-controls {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.ffs-bts-nav {
    background: #111111;
    border: none;
    color: #ffffff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ffs-bts-nav svg,
.ffs-bts-nav i {
    color: #ffffff !important;
    stroke: #ffffff !important;
    transition: stroke 0.3s, color 0.3s;
}

.ffs-bts-nav:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .ffs-fame-grid { grid-template-columns: repeat(2, 1fr); }
    .ffs-bts-slide { flex: 0 0 90vw; }
    /*
     * The arrows stay on phones: a tile 90 vw wide gives no hint that the row
     * scrolls sideways. They sit below the track, left-aligned with the copy,
     * which is also the edge the track indent is measured from.
     */
    .ffs-bts-controls { display: flex; gap: 12px; margin-top: 8px; }
    .ffs-bts-nav { width: 48px; height: 48px; box-shadow: none; }
    .ffs-bts-nav svg, .ffs-bts-nav i { width: 20px; height: 20px; }
}

@media (max-width: 768px) {
	.ffs-backstage { padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 900px) {
    .ffs-fame-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ffs-fame-block { margin-top: 72px; }
    .ffs-fame-head { padding-top: 72px; padding-bottom: 32px; }
}

@media (max-width: 600px) {
    .ffs-fame-grid { grid-template-columns: 1fr; }
    .ffs-fame-overlay { padding: 20px; }
    .ffs-fame-overlay h4 { font-size: 1rem; }
}

/*
  * Tablets and phones have no hover, so the name would never show. Keyed on the input,
  * not on the width: a 768 px tablet is as touch-only as a phone.
  */
@media (hover: none) {
    .ffs-fame-overlay { opacity: 1; }
    .ffs-fame-overlay h4 { transform: none; }
}

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

.ffs-logo-marquee {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-color: var(--color-blue);
    padding: 64px 0;
}

/* The rows enter in a cascade, the colour block itself stays put and opaque. */
.ffs-logo-marquee .reveal-element {
    transition-delay: calc(var(--krok, 0) * 80ms);
}

.ffs-marquee-heading {
    margin-bottom: 40px;
}

.ffs-marquee-heading h4 {
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.ffs-marquee-row {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.ffs-marquee-row--top {
    margin-bottom: 32px;
}

.ffs-marquee-row--reverse .ffs-marquee-track {
    animation-direction: reverse;
}

.ffs-marquee-track {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: ffs-marquee-scroll var(--ffs-marquee-duration, 60s) linear infinite;
}

@keyframes ffs-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ffs-logo-marquee.is-offscreen .ffs-marquee-track {
    animation-play-state: paused;
}

.ffs-marquee-group {
    display: flex;
    align-items: center;
    gap: 88px;
    padding-right: 88px;
}

.ffs-marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
}

.ffs-marquee-logo {
    max-height: 100%;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.ffs-marquee-item:hover .ffs-marquee-logo {
    opacity: 1;
}

@media (max-width: 768px) {
    .ffs-marquee-group { gap: 56px; padding-right: 56px; }
    .ffs-marquee-item { height: 80px; }
    .ffs-marquee-logo { max-width: 80px; }
}

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

.ffs-mosaic__head {
	max-width: 720px;
	margin-bottom: clamp(32px, 4vw, 60px);
}

.ffs-mosaic__lead {
	margin-top: 16px;
}

.ffs-mosaic__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(12, clamp(42px, 4.9vw, 74px));
	gap: clamp(8px, 0.9vw, 14px);
}

.ffs-mosaic__grid--rowny {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-template-rows: none;
	grid-auto-rows: clamp(200px, 24vw, 320px);
}

.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(1) { grid-area:  1 /  1 /  9 /  4; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(2) { grid-area:  1 /  4 /  5 /  9; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(3) { grid-area:  1 /  9 /  6 / 13; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(4) { grid-area:  5 /  4 /  9 /  9; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(5) { grid-area:  6 /  9 / 10 / 13; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(6) { grid-area:  9 /  1 / 13 /  4; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(7) { grid-area:  9 /  4 / 13 /  9; }
.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(8) { grid-area: 10 /  9 / 13 / 13; }

.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(n + 9) { display: none; }

.ffs-mosaic__tile {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--promien, clamp(16px, 1.6vw, 26px));
	background: rgba(255, 255, 255, 0.05);
}

.ffs-mosaic__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.ffs-mosaic__img.is-shown {
	opacity: 1;
}

.ffs-mosaic__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 40px 18px 16px;
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: clamp(0.8rem, 1vw, 1rem);
	letter-spacing: -0.01em;
	color: #fff;
	background: linear-gradient(to top, rgba(8, 9, 12, 0.8) 0%, rgba(8, 9, 12, 0) 100%);
	pointer-events: none;
}

html.js .ffs-mosaic__grid:not(.is-open):not(.is-done) .ffs-mosaic__tile {
	clip-path: inset(46% 44% round 999px);
	opacity: 0;
	transform: translateY(26px);
}

html.js .ffs-mosaic__grid:not(.is-open):not(.is-done) .ffs-mosaic__tile .ffs-mosaic__img {
	transform: scale(1.2);
	filter: brightness(0.62);
}

@keyframes ffs-mosaic-awaria {
	to {
		clip-path: inset(0% 0% round var(--promien, clamp(16px, 1.6vw, 26px)));
		opacity: 1;
		transform: translateY(0);
	}
}

.ffs-mosaic__grid.is-entering .ffs-mosaic__tile {
	clip-path: inset(46% 44% round 999px);
	opacity: 0;
	transform: translateY(26px);
}

.ffs-mosaic__grid.is-entering .ffs-mosaic__tile .ffs-mosaic__img {
	transform: scale(1.2);
	filter: brightness(0.62);
}

.ffs-mosaic__grid.is-open .ffs-mosaic__tile,
.ffs-mosaic__grid.is-done .ffs-mosaic__tile {
	clip-path: inset(0% 0% round var(--promien, clamp(16px, 1.6vw, 26px)));
	opacity: 1;
	transform: translateY(0);
	transition:
		clip-path 1.5s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.8s ease;
	transition-delay: var(--delay, 0ms);
}

/* The frame emerges from the dimming longer than the box itself: the image ripens after the tile opens. */
.ffs-mosaic__grid.is-open .ffs-mosaic__tile .ffs-mosaic__img,
.ffs-mosaic__grid.is-done .ffs-mosaic__tile .ffs-mosaic__img {
	transform: scale(1.01);
	filter: brightness(1);
	transition:
		transform 2.1s cubic-bezier(0.22, 1, 0.36, 1),
		filter 1.7s ease-out;
	transition-delay: var(--delay, 0ms);
}

/*
  * The clip-path is removed once the entrance finishes. The tile's `overflow: hidden`
  * with `border-radius` already frames it, and two overlapping masks over a scaled
  * image made the rounded corners shimmer: the browser rasterised them every frame.
  */
.ffs-mosaic__grid.is-done .ffs-mosaic__tile {
	clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
	.ffs-mosaic__grid.is-entering .ffs-mosaic__tile,
	.ffs-mosaic__grid.is-open .ffs-mosaic__tile {
		clip-path: none;
		opacity: 1;
		transition: opacity 0.4s ease;
	}
	.ffs-mosaic__grid .ffs-mosaic__img {
		transform: none !important;
		transition: opacity 0.5s ease;
	}
}

@media (max-width: 860px) {
	.ffs-mosaic__grid--mozaika {
		grid-template-columns: repeat(6, 1fr);
		grid-template-rows: repeat(14, clamp(36px, 7.5vw, 62px));
	}

	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(1) { grid-area:  1 / 1 /  5 / 4 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(2) { grid-area:  1 / 4 /  5 / 7 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(3) { grid-area:  5 / 1 /  9 / 7 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(4) { grid-area:  9 / 1 / 12 / 4 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(5) { grid-area:  9 / 4 / 12 / 7 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(6) { grid-area: 12 / 1 / 15 / 3 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(7) { grid-area: 12 / 3 / 15 / 5 !important; }
	.ffs-mosaic__grid--mozaika .ffs-mosaic__tile:nth-child(8) { grid-area: 12 / 5 / 15 / 7 !important; }

	.ffs-mosaic__caption {
		padding: 28px 12px 10px;
	}
}

.ffs-mosaic__tile--empty .ffs-mosaic__caption {
	z-index: 3;
	background: none;
}

.ffs-mosaic__img {
	will-change: transform, opacity, scale;
}

/*
  * Swapping a photo is a crossfade, not a slide. The new frame enters slightly zoomed
  * and settles while the old one fades out; both images overlap, so the tile is never
  * empty. The motion lives on `transform` because `scale` is taken by the constant
  * breathing of the frame.
  */
.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--wchodzi.ffs-mosaic__img--wchodzi {
	opacity: 0;
	transform: scale(1.05);
}

.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--jedzie.ffs-mosaic__img--jedzie {
	transition:
		opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
		transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
	backface-visibility: hidden;
}

.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--na-miejscu.ffs-mosaic__img--na-miejscu {
	opacity: 1;
	transform: scale(1.01);
}

.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--wyjezdza.ffs-mosaic__img--wyjezdza {
	opacity: 0;
	transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
	.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--wchodzi.ffs-mosaic__img--wchodzi,
	.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--wyjezdza.ffs-mosaic__img--wyjezdza,
	.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--na-miejscu.ffs-mosaic__img--na-miejscu {
		transform: none;
	}
	.ffs-mosaic__grid .ffs-mosaic__tile .ffs-mosaic__img--jedzie.ffs-mosaic__img--jedzie {
		transition: opacity 0.5s ease;
		transform: none;
	}
}

/*
  * The frame breathes the whole time it is in the box. The `scale` property is used,
  * not `transform`: tiles already have a transform on entrance (scale 1.14 -> 1) and
  * on photo swaps (translate3d), and those must not overwrite each other.
  */
/*
  * The lower value is 1.02, not 1: at exactly 1 the image edge coincides with the
  * tile mask edge and the corners flicker at subpixel level. A few percent of
  * overshoot keeps the image always extending beyond the box.
  */
@keyframes ffs-mosaic-oddech {
	from { scale: 1.02; }
	to   { scale: 1.24; }
}

.ffs-mosaic__img {
	animation: ffs-mosaic-oddech 34s linear infinite alternate;
}

/*
  * Asymmetry: neighbouring tiles get a different duration, start phase, direction and
  * origin. The grid therefore does not pulse in one rhythm; the motion only becomes
  * noticeable on a longer look.
  */
.ffs-mosaic__tile:nth-child(4n+1) .ffs-mosaic__img {
	animation-duration: 30s;
	animation-delay: -4s;
	transform-origin: 32% 22%;
}

.ffs-mosaic__tile:nth-child(4n+2) .ffs-mosaic__img {
	animation-duration: 36s;
	animation-delay: -11s;
	animation-direction: alternate-reverse;
	transform-origin: 68% 38%;
}

.ffs-mosaic__tile:nth-child(4n+3) .ffs-mosaic__img {
	animation-duration: 33s;
	animation-delay: -7s;
	transform-origin: 50% 15%;
}

.ffs-mosaic__tile:nth-child(4n) .ffs-mosaic__img {
	animation-duration: 40s;
	animation-delay: -16s;
	animation-direction: alternate-reverse;
	transform-origin: 45% 60%;
}

/* Nothing to watch off screen: take the work off the GPU. */
.ffs-mosaic.is-offscreen .ffs-mosaic__img {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.ffs-mosaic__img {
		animation: none;
		scale: 1;
	}
}

/* Button below the grid: centred, with breathing room from the tiles. */
.ffs-mosaic__akcja {
	display: flex;
	justify-content: center;
	margin-top: clamp(36px, 4vw, 56px);
}

/*
  * Grid for landscape-only material: frames from the film set. No tile is portrait
  * and the ratios match what the footage really is: 2.32 panorama, 1.90 frame and
  * classic 16:9.
  *
  * Important: tiles in one row must resolve to the same height (span / ratio),
  * otherwise the grid stretches the shorter one and the declared ratio no longer
  * holds. Rows: 12 / 7+5 / 6+6 / 4+4+4.
  */
.ffs-mosaic__grid--poziomy {
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: none;
	grid-auto-rows: auto;
}

.ffs-mosaic__grid--poziomy .ffs-mosaic__tile {
	grid-column: span 4;
	aspect-ratio: 16 / 9;
}

.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(1) {
	grid-column: span 12;
	aspect-ratio: 2.32;
}

.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(2) {
	grid-column: span 7;
	aspect-ratio: 2.32;
}

.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(3) {
	grid-column: span 5;
	aspect-ratio: 1.66;
}

.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(4),
.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(5) {
	grid-column: span 6;
	aspect-ratio: 1.9;
}

@media (max-width: 900px) {
	.ffs-mosaic__grid--poziomy {
		grid-template-columns: repeat(2, 1fr);
	}

	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile,
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(1),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(2),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(3),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(4),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(5) {
		grid-column: span 1;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 540px) {
	.ffs-mosaic__grid--poziomy {
		grid-template-columns: 1fr;
	}

	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile,
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(1),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(2),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(3),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(4),
	.ffs-mosaic__grid--poziomy .ffs-mosaic__tile:nth-child(5) {
		grid-column: span 1;
		aspect-ratio: 16 / 9;
	}
}

/*
  * Wall: a dense 12-column layout. Tile positions are generated by PHP (grid-area in
  * the style attribute) because the same definition yields the field ratios and the
  * adjacency map used for colour grouping. Only the grid itself lives here. The row
  * height is 1/3 of the column width, so a tile 2 columns by 4 rows comes out 3:2,
  * by 6 square, by 9 portrait 2:3.
  */
/*
  * The row height must be exactly one third of the column width, because the field
  * ratios follow from it (2 columns by 9 rows = portrait 2:3 and so on). It is derived
  * from the viewport width, not a fixed clamp: on a full-width wall the column grows
  * with the screen and a rigid value would break the framing. `--boki` is the section
  * margins plus scrollbar allowance. Subtracting 0.65 of the gap corrects for a tall
  * tile collecting more row gaps than a wide one collects column gaps; without it a
  * portrait came out 0.57 instead of 0.667 and frames were cropped.
  */
.ffs-mosaic__grid--sciana {
	--gap: clamp(5px, 0.6vw, 9px);
	--boki: calc(2 * clamp(14px, 1.6vw, 32px) + 16px);

	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(18, calc((100vw - var(--boki) - 11 * var(--gap)) / 36 - 0.65 * var(--gap)));
	gap: var(--gap);
}

/*
  * The radius comes from a variable because the same value must reach both
  * border-radius and the clip-path mask of the entrance animation. When they
  * differed, removing the mask at the end snapped the corners from 20 px to 10 px in
  * a single frame.
  */
.ffs-mosaic__grid--sciana {
	--promien: clamp(6px, 0.7vw, 12px);
}

.ffs-mosaic__grid--sciana .ffs-mosaic__caption {
	padding: 22px 10px 8px;
	font-size: 0.72rem;
}

/*
  * On a narrow screen the PHP definition no longer fits: 12 columns would give 25 px
  * tiles. Switch to two CSS columns, i.e. real masonry: every tile keeps its own
  * ratio (--prop from PHP), so nothing is forced to a shared height and nothing is
  * cropped.
  */
@media (max-width: 860px) {
	.ffs-mosaic__grid--sciana {
		display: block;
		column-count: 2;
		column-gap: clamp(6px, 1.6vw, 12px);
	}

	.ffs-mosaic__grid--sciana .ffs-mosaic__tile {
		grid-area: auto !important;
		display: block;
		width: 100%;
		margin: 0 0 clamp(6px, 1.6vw, 12px);
		aspect-ratio: var(--prop, 1);
		break-inside: avoid;
	}
}

@media (max-width: 480px) {
	.ffs-mosaic__grid--sciana {
		column-count: 1;
	}
}

/*
  * The wall runs edge to edge. Inside the wrapper a column was about 99 px and the
  * tiles came out tiny; freed from it they grow with the screen and the section gets
  * correspondingly taller. Detach from the default wrapper rather than set 100vw,
  * which also counts the scrollbar and pushes the page sideways.
  */
.ffs-mosaic__plyta {
	max-width: none;
	padding-left: clamp(14px, 1.6vw, 32px);
	padding-right: clamp(14px, 1.6vw, 32px);
}

/*
 * Phones and small tablets: two columns, eight tiles of mixed shapes (portrait
 * 2:3 and square), placed so that both columns add up to the same ten row
 * units. The row unit is half a column, so a span of 2 is a square and a span
 * of 3 a portrait. The masonry columns used before ended at different heights
 * and the one-column wall was over 5000 px tall. The desktop entrance and the
 * crossfades stay as they are; the grid is short enough to enter the viewport.
 */
@media (max-width: 768px) {
	.ffs-mosaic__grid--sciana {
		--luz: 8px;
		--boki-mobile: 14px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
		grid-auto-rows: calc((100vw - 2 * var(--boki-mobile) - var(--luz)) / 4);
		grid-auto-flow: row;
		gap: var(--luz);
		column-count: auto;
	}
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile {
		display: block;
		width: 100%;
		margin: 0;
		aspect-ratio: auto;
		break-inside: auto;
	}
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(n + 9) { display: none; }
	/* left column: 3 + 2 + 3 + 2 units, right column: 2 + 3 + 2 + 3 units */
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(1) { grid-area: 1 / 1 / 4 / 2 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(2) { grid-area: 1 / 2 / 3 / 3 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(3) { grid-area: 4 / 1 / 6 / 2 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(4) { grid-area: 3 / 2 / 6 / 3 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(5) { grid-area: 6 / 1 / 9 / 2 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(6) { grid-area: 6 / 2 / 8 / 3 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(7) { grid-area: 9 / 1 / 11 / 2 !important; }
	.ffs-mosaic__grid--sciana .ffs-mosaic__tile:nth-child(8) { grid-area: 8 / 2 / 11 / 3 !important; }
}

/*
 * Phones: the entrance keeps its motion (rise, scale, fade) but only through
 * transform and opacity. clip-path and filter transitions are repainted on the
 * CPU on iOS, and animating them on eight tiles at once stuttered badly.
 */
@media (max-width: 768px) {
	html.js .ffs-mosaic__grid:not(.is-open):not(.is-done) .ffs-mosaic__tile,
	.ffs-mosaic__grid.is-entering .ffs-mosaic__tile {
		clip-path: none;
		opacity: 0;
		transform: translate3d(0, 18px, 0) scale(0.94);
	}
	html.js .ffs-mosaic__grid:not(.is-open):not(.is-done) .ffs-mosaic__tile .ffs-mosaic__img,
	.ffs-mosaic__grid.is-entering .ffs-mosaic__tile .ffs-mosaic__img {
		transform: none;
		filter: none;
	}
	.ffs-mosaic__grid.is-open .ffs-mosaic__tile,
	.ffs-mosaic__grid.is-done .ffs-mosaic__tile {
		clip-path: none;
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
		transition:
			transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.6s ease;
		transition-delay: calc(var(--delay, 0ms) / 2);
		will-change: transform, opacity;
	}
	.ffs-mosaic__grid.is-open .ffs-mosaic__tile .ffs-mosaic__img,
	.ffs-mosaic__grid.is-done .ffs-mosaic__tile .ffs-mosaic__img {
		transform: none;
		filter: none;
		transition: none;
	}
	.ffs-mosaic__grid.is-done .ffs-mosaic__tile { will-change: auto; }
}


/* lazyblock-sekcja-portfolio-select/block.css */

.ffs-pf2 {

	transition: background-color 0.3s ease;
	padding-bottom: 0;
}

.ffs-pf2-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 64px;
	flex-wrap: wrap;
	gap: 24px;
}

.ffs-pf2-title {
	font-size: clamp(3rem, 5vw, 5rem);
}

.ffs-pf2-filters {
	display: flex;
	gap: 32px;
	margin-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
	padding-bottom: 16px;
}

.ffs-pf2-tab {
	background: transparent !important;
	border: none !important;
	font-family: 'Syne', sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 8px 0 !important;
	position: relative;
	transition: color 0.3s;
	color: rgba(255,255,255,0.5);
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

.ffs-pf2-tab:hover,
.ffs-pf2-tab:focus,
.ffs-pf2-tab:active,
.ffs-pf2-tab:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	color: #ffffff;
}

.ffs-pf2-tab.is-active {
	color: #ffffff !important;
	background: transparent !important;
}

.ffs-pf2-tab.is-active::after {
	content: '';
	position: absolute;
	bottom: -17px;
	left: 0;
	width: 100%;
	height: 2px;
	background: #ffffff;
}

.ffs-pf2-grid--featured {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 64px;
}

@media (min-width: 993px) {
	.ffs-pf2-grid--featured .ffs-pf2-item:nth-child(even) {
		margin-top: 100px;
	}
}

.ffs-pf2-grid--wall {
	display: none;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	width: 100%;
	max-width: 100%;
}

.ffs-pf2-grid--wall .ffs-pf2-item {
	aspect-ratio: 16/9;
	border-radius: 0;

	content-visibility: auto;
	contain-intrinsic-size: auto 300px;
}

.ffs-pf2-item {
	position: relative;
	aspect-ratio: 3/4;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;

}

.ffs-pf2-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
	opacity: 0;
	transition: opacity 0.5s ease;
	z-index: 1;
}

.ffs-pf2-item:hover::after {
	opacity: 1;
}

.ffs-pf2-item img,
.ffs-pf2-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	opacity: 0.9;
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ffs-pf2-item:hover img,
.ffs-pf2-item:hover video {
	transform: scale(1.05);
}

/*
  * The original tile zoom, restored. Ad material has dark encoding lines at the edges
  * and some files carry burned-in cinematic bars; measured: Audi has brightness 9 at
  * the bottom edge next to 147 just inside, Breitling a 62 px bar at the top. Five
  * percent of overshoot on every side removes both.
  */
.ffs-pf2-item img,
.ffs-pf2-item video {
	position: absolute;
	top: -5%;
	left: -5%;
	width: 110%;
	height: 110%;
	max-width: none;
}

.ffs-pf2-meta {
	position: absolute;
	bottom: 32px;
	left: 32px;
	color: #fff;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ffs-pf2-item:hover .ffs-pf2-meta {
	opacity: 1;
	transform: translateY(0);
}

.ffs-pf2-meta h3 {
	font-size: 1.5rem;
	margin-bottom: 4px;
}

.ffs-pf2-meta p {
	font-size: 0.875rem;
	text-transform: uppercase;
	opacity: 0.8;
	margin: 0;
}

.ffs-pf2-player {
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.5);

	aspect-ratio: 16 / 9;
}

.ffs-pf2-player video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.ffs-pf2-actions {
	display: flex;
	gap: 24px;
	justify-content: center;
	align-items: center;
	padding: 80px 0;
	flex-wrap: wrap;
}

@media (max-width: 992px) {
	.ffs-pf2-grid--featured { grid-template-columns: 1fr; }
	.ffs-pf2-grid--wall { grid-template-columns: 1fr; }
	.ffs-pf2-meta { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
	/*
	 * The caption had no right edge: a 24 px title on a 351 px tile ran up to
	 * the tile border and wrapped mid-word on phones. Both sides now keep the
	 * same inset and the title steps down one size.
	 */
	.ffs-pf2-meta { left: 20px; right: 20px; bottom: 20px; }
	.ffs-pf2-meta h3 { font-size: 1.25rem; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
	.ffs-pf2-meta p { font-size: 0.75rem; }
	.ffs-play-overlay { transform: translate(-50%, -50%) scale(0.85); }
	.ffs-pf2-actions { padding: 40px 0 8px; gap: 16px; }
	.ffs-pf2-actions .ffs-btn { padding: 14px 22px; line-height: 1.3; text-align: center; }
}

/*
 * Vertical rhythm of the grid section, measured on the live site.
 * Desktop: the last row sat 144 px above the buttons and the buttons 80 px
 * above the section edge. Phones: 104 px above, 8 px below, and the heading
 * ran into the advisory box hanging from the section above. The actions bar is
 * now the single source of the spacing on both sides of the buttons.
 */
.ffs-pf2-grid { margin-bottom: 0; }
.ffs-pf2-actions { padding: 72px 0; }

@media (max-width: 600px) {
	.ffs-pf2-header { margin-bottom: 40px; }
	.ffs-pf2-grid--featured,
	.ffs-pf2-grid--wall { gap: 24px; }
	.ffs-pf2-actions { padding: 48px 0; gap: 16px; }
}

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

.ffs-process {

    background: linear-gradient(to bottom, #111317 0%, #781c2f 50%, #EF3054 100%);
    position: relative;
    color: #ffffff;
}

.ffs-process-heading {
    margin-bottom: 16px;
}

.ffs-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    margin-top: 64px;
    z-index: 1;
}

.ffs-process-line {
    position: absolute;

    top: 39px;

    left: 40px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    z-index: 0;

    width: 0;

    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
}

.ffs-process-line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid rgba(255,255,255,0.4);
}

.ffs-process-line.is-visible {
    width: calc(100% - 40px);
}

.ffs-process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ffs-step-icon {

    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.ffs-process-step:hover .ffs-step-icon {
    background: #fff;
    color: #EF3054;
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ffs-step-body h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.ffs-step-body p {
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
}

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

    .ffs-process-line {
        width: 2px !important;

        height: 0;

        left: 39px;
        top: 40px;
        right: auto;
        bottom: auto;
        transition: height 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
    }

    .ffs-process-line.is-visible {
        width: 2px !important;
        height: calc(100% - 60px);
    }

    .ffs-process-line::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid rgba(255,255,255,0.4);
        border-bottom: none;
    }

    .ffs-process-step {
        flex-direction: row;
        gap: 24px;
        align-items: flex-start;
    }

    .ffs-step-icon {
        margin-bottom: 0;
    }

    .ffs-step-body {

        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .ffs-step-icon {
        width: 60px;
        height: 60px;
    }

    .ffs-process-line {

        left: 29px;
        top: 30px;
    }

    .ffs-step-body {
        padding-top: 4px;
    }
}

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

.ffs-services {
    background-color: #ffffff;
    padding-bottom: 0;
}

.ffs-services .heading-lg {
    color: #000000;
}

/*
  * The intro sentence is 924 px on one line and the section container gives 1282 px.
  * The default 750 px lead limit broke it so that a lone "4" ended the first line.
  * The limit is raised only here.
  */
.ffs-services .text-lead {
    color: rgba(17,19,23,0.8);
    max-width: 960px;
}

.ffs-services-grid {
    display: grid;

    grid-template-columns: repeat(var(--ffs-services-columns, 3), 1fr);
    gap: 24px;
    margin-top: 64px;
}

.ffs-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px;
    border-radius: 16px;
    transition: all var(--transition-fast);
    transform: translateY(0);
    height: 100%;
}

.ffs-service-card i {
    transition: color var(--transition-fast);
}

.ffs-service-icon {
    margin-bottom: 24px;
}

.ffs-service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.ffs-service-card p {
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 32px;
    flex-grow: 1;
    transition: color var(--transition-fast);
}

.ffs-service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    margin-top: auto;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 40px;
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: all var(--transition-fast);
}

/*
  * 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-service-cta,
.ffs-service-cta:visited,
.ffs-service-cta:hover,
.ffs-service-cta:focus,
.ffs-service-cta:active {
    color: inherit;
}

.ffs-service-cta svg {
    margin-left: 8px;
    width: 16px;
    transition: transform var(--transition-fast);
}

.ffs-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ffs-service-card:hover .ffs-service-cta svg {
    transform: translate(3px, -3px);
}

.ffs-service-card:nth-child(4n+1) { background-color: #1E3A5F; }
.ffs-service-card:nth-child(4n+1):hover { background-color: #264875; }
.ffs-service-card:nth-child(4n+1) h3,
.ffs-service-card:nth-child(4n+1) p,
.ffs-service-card:nth-child(4n+1) i { color: #ffffff; }
.ffs-service-card:nth-child(4n+1) .ffs-service-cta { color: #ffffff; border-color: rgba(255,255,255,0.4); }
.ffs-service-card:nth-child(4n+1):hover .ffs-service-cta { background: #ffffff; color: #1E3A5F; border-color: #ffffff; }

.ffs-service-card:nth-child(4n+2) { background-color: #EF3054; }
.ffs-service-card:nth-child(4n+2):hover { background-color: #F24A69; }
.ffs-service-card:nth-child(4n+2) h3,
.ffs-service-card:nth-child(4n+2) p,
.ffs-service-card:nth-child(4n+2) i { color: #ffffff; }
.ffs-service-card:nth-child(4n+2) .ffs-service-cta { color: #ffffff; border-color: rgba(255,255,255,0.4); }
.ffs-service-card:nth-child(4n+2):hover .ffs-service-cta { background: #ffffff; color: #EF3054; border-color: #ffffff; }

.ffs-service-card:nth-child(4n+3) { background-color: #E28413; }
.ffs-service-card:nth-child(4n+3):hover { background-color: #E8952E; }
.ffs-service-card:nth-child(4n+3) h3,
.ffs-service-card:nth-child(4n+3) p,
.ffs-service-card:nth-child(4n+3) i { color: #ffffff; }
.ffs-service-card:nth-child(4n+3) .ffs-service-cta { color: #ffffff; border-color: rgba(255,255,255,0.4); }
.ffs-service-card:nth-child(4n+3):hover .ffs-service-cta { background: #ffffff; color: #E28413; border-color: #ffffff; }

.ffs-service-card:nth-child(4n+4) { background-color: #9D3B83; }
.ffs-service-card:nth-child(4n+4):hover { background-color: #AE4793; }
.ffs-service-card:nth-child(4n+4) h3,
.ffs-service-card:nth-child(4n+4) p,
.ffs-service-card:nth-child(4n+4) i { color: #ffffff; }
.ffs-service-card:nth-child(4n+4) .ffs-service-cta { color: #ffffff; border-color: rgba(255,255,255,0.4); }
.ffs-service-card:nth-child(4n+4):hover .ffs-service-cta { background: #ffffff; color: #9D3B83; border-color: #ffffff; }

.ffs-advisory-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 48px;
    background: #EBEBD3;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 20;
    margin-top: 80px;

    margin-bottom: -100px;
}

/*
 * The heading used to run the full width of the box while the paragraph was
 * capped at 600 px, so the two ragged edges never lined up and the middle of
 * the box read as a hole. One measure for the whole column fixes both: the
 * heading and the paragraph break on the same line length.
 */
.ffs-advisory-text {
    flex: 1 1 auto;
    max-width: 660px;
    min-width: 0;
}

/*
 * The call to action and the icon share the right side. Before, both sat under
 * the copy and left a 327 px hole in the middle of a 1283 px banner.
 */
.ffs-advisory-side {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.ffs-advisory-text h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #000000;
    line-height: 1.2;
    text-wrap: balance;
}

.ffs-advisory-text p {
    font-size: 1.125rem;
    color: #000000;
    margin-bottom: 0;
    text-wrap: balance;
}

.ffs-advisory-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
}

.ffs-advisory-btn:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    background-color: #222222 !important;
}

.ffs-camera-icon {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    color: var(--color-dark);
    position: relative;
    background-color: #FFCD34;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffs-camera-icon svg {
    width: 64px;
    height: 64px;
}

.ffs-camera-reel--front { transform-origin: 8px 8px; animation: ffs-spin-reel 4s linear infinite; }
.ffs-camera-reel--back  { transform-origin: 18px 8px; animation: ffs-spin-reel 4s linear infinite; }

@keyframes ffs-spin-reel {
    100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .ffs-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ffs-services-grid { grid-template-columns: 1fr; }
    /*
     * 48 px of padding on a 338 px card left the copy 242 px wide, which broke
     * the heading over six lines. Trimming the padding and the heading size
     * gets it back to three.
     */
    .ffs-advisory-box {
        flex-direction: column;
        text-align: center;
        gap: 28px;
        padding: 36px 24px;
        margin-bottom: -80px;
    }
    .ffs-advisory-text { max-width: none; }
    .ffs-advisory-text h3 { font-size: 1.5rem; }
    .ffs-advisory-text p { font-size: 1rem; text-wrap: pretty; }
    .ffs-advisory-side { flex-direction: column; gap: 24px; }
    .ffs-advisory-side .ffs-btn { padding: 16px 28px; }
    .ffs-camera-icon { width: 96px; height: 96px; }
    .ffs-camera-icon svg { width: 44px; height: 44px; }
}

@media (max-width: 768px) {
	/* The box hung 80 px into the next section whose top padding is 72 px: it overlapped the heading by 8 px. */
	.ffs-advisory-box { margin-bottom: -48px; }
}

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

.ffs-testimonials {
    background-color: #3D1733;
    padding-top: 140px;
    padding-bottom: 0;
}

.ffs-testimonials-heading {
    margin-bottom: 16px;
}

.ffs-testimonials-lead {
    margin-bottom: 64px;
}

.ffs-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}

.ffs-slides {
    display: grid;
    width: 100%;
    min-height: 600px;

    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ffs-slide {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: flex-start;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 150px;
    position: relative;
}

.ffs-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.ffs-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ffs-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.ffs-slide-mask {
    position: absolute;
    inset: 0;

    background: linear-gradient(to right, rgba(61, 23, 51, 0.95) 0%, rgba(61, 23, 51, 0.85) 100%);
    z-index: 2;
}

.ffs-slide-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.ffs-slide-body {
    width: 100%;
    color: #fff;
}

.ffs-slide-quote-box {
    margin-bottom: 40px;
}

.ffs-slide-quote {
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    color: #fff;
    padding-left: 32px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);

    /*
      * Justification aligns the quote's right edge with the rule on the left; without it
      * the text block looked randomly ragged. Hyphenation guards against the rivers of
      * white space justification can create in a narrow column; `pretty` stays for the
      * last line.
      */
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-wrap: pretty;
}

/* In a narrow column justification does more harm than good. */
@media (max-width: 600px) {
    .ffs-slide-quote {
        text-align: left;
        hyphens: manual;
    }
}

.ffs-slide-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ffs-slide-avatar {
    width: clamp(72px, 6vw, 92px);
    height: clamp(72px, 6vw, 92px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

/* Desktop: slides without a logo simply have no brand column. */
.ffs-slide-brand--empty { display: none; }

@media (max-width: 992px) {
    .ffs-slide-brand--empty { display: block; }
}

.ffs-slide-brand {
    margin-left: auto;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/*
 * Logos are trimmed to the mark itself, so height alone no longer decides the
 * optical size - a wordmark 3.6 times wider than it is tall would tower over a
 * stacked mark. Capping width as well keeps every client at a similar weight.
 */
.ffs-slide-brand img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: right center;
    opacity: 0.95;
}

.ffs-slide-author h4 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 4px;
    color: #fff;
}

.ffs-slide-author span {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ffs-slider-footer {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.ffs-slider-actions {
    pointer-events: auto;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.ffs-slider-nav {
    display: flex;
    gap: 16px;
}

.ffs-slider-nav button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ffs-slider-nav button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.ffs-slider-cta[hidden] {
    display: none;
}

.ffs-gallery-modal-content {
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.ffs-gallery-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 16px;
    padding: 24px;
}

.ffs-gallery-stage img {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.ffs-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.4s;
}

.ffs-gallery-nav:hover {
    background: rgba(255,255,255,0.3);
}

.ffs-gallery-prev { left: 24px; }
.ffs-gallery-next { right: 24px; }

@media (max-width: 992px) {
    .ffs-slide {
        padding-top: 40px;
        padding-bottom: 160px;
        align-items: flex-start;
    }

    .ffs-slide-mask {
        background: linear-gradient(to top, rgba(61, 23, 51, 0.95) 0%, rgba(61, 23, 51, 0.6) 60%, transparent 100%);
        -webkit-mask-image: none;
    }

    .ffs-slider-footer {
        bottom: 40px;
        justify-content: flex-start;
    }

    .ffs-slider-actions {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }

    /*
     * The avatar and the name stay on one row: without `flex: 1 1 0` the role
     * line is wider than the space left over, so the whole meta block dropped
     * to its own line and left the avatar stranded above it.
     */
    .ffs-slide-author {
        flex-wrap: wrap;
        gap: 16px;
        align-items: center;
    }
    .ffs-slide-avatar {
        width: 64px;
        height: 64px;
    }
    .ffs-slide-author-meta {
        flex: 1 1 0;
        min-width: 0;
    }
    /*
     * Indent with padding, never margin: `margin-left` on top of
     * `flex-basis: 100%` pushed the logo 76 px past the container, straight
     * under the slider arrows that sit absolutely at the bottom of the slide.
     * Aligning it to the left edge also lines it up with the avatar and quote.
     */
    .ffs-slide-brand {
        margin-left: 0;
        padding: 18px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        flex-basis: 100%;
        flex-shrink: 1;
        min-width: 0;
    }
    .ffs-slide-brand img {
        height: 44px;
        max-width: 150px;
        object-position: left center;
    }

    /*
     * One footer row per slide: hairline, logo on the left, slider arrows on
     * the right. The arrows live in the absolutely positioned slider footer
     * (40 px above the slider edge, 56 px tall), so the slide's bottom padding
     * is set to 46 px to put the 44 px logo band exactly on their centre line.
     * The row keeps 150 px free on the right for the arrows.
     */
    .ffs-slide { padding-bottom: 46px; }
    /* Short quotes gave a slider shorter than its 600 px minimum, and the arrows anchored to its edge drifted below the logo row. */
    .ffs-slider, .ffs-slides { min-height: 0; }
    /* 40 px from the hairline (1 px) to the arrows, matching the 40 px below them; the logo is 6 px shorter than the arrows. */
    .ffs-slide-brand { min-height: 90px; padding-top: 45px; padding-right: 150px; box-sizing: border-box; }
    .ffs-slider-footer { justify-content: flex-end; }
    .ffs-slider-actions {
        width: auto;
        justify-content: flex-end;
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (max-width: 768px) {
    /* 140 px of top padding on a phone put a screen of empty purple between the buttons above and the heading. */
    .ffs-testimonials { padding-top: 72px; }
    .ffs-gallery-nav { width: 40px; height: 40px; }
    .ffs-gallery-prev { left: 10px; }
    .ffs-gallery-next { right: 10px; }
    .ffs-gallery-stage { padding: 10px; }
}

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

/*
  * The personal section steps down from bright cobalt to a muted navy: after the warm
  * gradient of the gains section the bright blue stood out from the site palette.
  */
.ffs-about--personal {
    background: linear-gradient(180deg, #1b3350 0%, #142639 100%);
}

.ffs-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ffs-about-heading,
.ffs-team-heading {
    letter-spacing: -0.03em;
    line-height: 1.04;
    text-wrap: balance;
}
.ffs-about-heading { margin-bottom: 28px; }
.ffs-team-heading { margin-bottom: 20px; }

.ffs-about-lead {
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 32px;
    text-wrap: balance;
}

.ffs-about-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 22px;
    max-width: 58ch;
    text-wrap: pretty;
}

.ffs-about-desc--last {
    margin-bottom: 0;
}

.ffs-about-image {
    border-radius: 24px;
    overflow: hidden;
}

.ffs-about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ffs-reveal-delayed {
    transition-delay: 0.1s;
}

/* ---- Team section: a frame from the set as the section background ---- */

.ffs-about--team {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #0f1a28;
    padding-block: clamp(96px, 11vw, 168px);
}

.ffs-team-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    isolation: isolate;
}

.ffs-team-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    filter: grayscale(1) contrast(1.06) brightness(0.86);
}

/*
  * Duotone in the colours used higher on the page (the navy of the logo section and
  * the plum of the testimonials), so the frame joins the palette instead of being a
  * random photo in the background.
  */
.ffs-team-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #16293f 0%, #3d1733 100%);
    mix-blend-mode: color;
}

/*
  * Dimming weighted horizontally: the text column sits on the left, so the veil is
  * densest there while the frame stays readable on the right. Without it white text
  * on the bright parts of the photo dropped to a 2.7:1 contrast.
  */
.ffs-about--team::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(9, 12, 18, 0.92) 0%,
            rgba(9, 12, 18, 0.8) 58%,
            rgba(9, 12, 18, 0.45) 100%
        ),
        linear-gradient(
            180deg,
            rgba(9, 12, 18, 0.25) 0%,
            rgba(9, 12, 18, 0) 40%,
            rgba(9, 12, 18, 0.55) 100%
        );
}

.ffs-team-inner {
    position: relative;
    z-index: 2;
}

.ffs-team-copy {
    max-width: 60ch;
}

.ffs-about--team .ffs-team-heading {
    margin-bottom: 24px;
}

.ffs-about--team .ffs-about-lead,
.ffs-about--team .ffs-about-desc {
    max-width: 56ch;
}

/* On a photo the supporting text needs more light than on a flat background. */
.ffs-about--team .ffs-about-desc {
    color: rgba(255, 255, 255, 0.95);
}

.ffs-about--team .ffs-team-feature-desc {
    color: rgba(255, 255, 255, 0.92);
}

.ffs-team-features {
    list-style: none;
    margin: clamp(56px, 6vw, 88px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.82);
}

.ffs-team-features li {
    position: relative;
    margin: 0;
    padding: 28px clamp(24px, 2.6vw, 40px) 4px 0;
    line-height: 1.65;
    max-width: none;
}

.ffs-team-features li + li {
    padding-left: clamp(24px, 2.6vw, 40px);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.ffs-team-features li::before {
    content: none;
}

.ffs-team-num {
    display: block;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--color-yellow, #dca638);
}

.ffs-team-features strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    text-wrap: balance;
}

.ffs-team-feature-desc {
    display: block;
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.7);
    text-wrap: pretty;
}

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

    .ffs-team-features {
        grid-template-columns: 1fr;
    }

    .ffs-team-features li {
        padding: 26px 0 0;
    }

    .ffs-team-features li + li {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 768px) {
	#zespol, .ffs-team { padding-top: 72px; padding-bottom: 72px; }
}

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

.ffs-gains {

    background: linear-gradient(to bottom, #ECA031 0%, #E28413 100%);
}

.ffs-gains .heading-lg {

    color: #000000;
}

.ffs-gains-lead {
    color: rgba(0,0,0,0.8);
}

.ffs-gains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.ffs-gain-card {
    position: relative;
    overflow: hidden;
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
}

.ffs-gain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.ffs-gain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ffs-gain-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.ffs-gain-card:hover .ffs-gain-bg img {
    transform: scale(1.05);
}

.ffs-gain-mask {
    position: absolute;
    inset: 0;

    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 100%);
}

.ffs-gain-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.ffs-gain-content h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ffs-gain-content p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    color: rgba(255,255,255,0.85);
}

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

