:root {
    --white: #fffdf8;
    --ink: #172038;
    --violet: #6138b5;
    --blue: #247bc5;
    --gold: #f5b84b;
    --coral: #f36c63;
    --turquoise: #43c9c1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Trebuchet MS", Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
video {
    display: block;
    width: 100%;
}

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

button {
    font: inherit;
}

.small-label {
    margin: 0 0 22px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.21em;
    text-transform: uppercase;
}

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    color: white;
    transition: 0.3s ease;
}

.site-header.scrolled {
    color: var(--ink);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 8px 30px rgba(23, 32, 56, 0.08);
    backdrop-filter: blur(18px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.12em;
}

.logo strong {
    font-size: 1.15rem;
}

.logo span {
    padding-left: 12px;
    border-left: 1px solid currentColor;
    font-size: 0.68rem;
    font-weight: 800;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.site-header nav a {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header nav a:hover {
    color: var(--gold);
}

.lang-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 1.6rem;
}

/* Strona Mierzwa 3D */

.page-3d {
    background: #f7f1e8;
}

.hero-3d {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    color: white;
    overflow: hidden;
}

.hero-3d video,
.hero-3d-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
}

.hero-3d video {
    object-fit: cover;
}

.hero-3d-overlay {
    background:
        linear-gradient(100deg, rgba(31, 19, 63, 0.87), rgba(43, 55, 100, 0.24) 67%),
        linear-gradient(0deg, rgba(21, 18, 43, 0.72), transparent 55%);
}

.hero-3d-content {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    padding: 160px 7vw 11vh;
}

.hero-3d .small-label {
    color: #fbd27c;
}

.hero-3d h1 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(4rem, 9vw, 9.3rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.055em;
}

.hero-3d h1 span,
.hero-3d h1 em {
    display: block;
}

.hero-3d h1 em {
    color: #f5c86b;
    font-weight: 400;
}

.hero-3d-content > p:not(.small-label) {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
}

.main-button {
    display: inline-flex;
    margin-top: 25px;
    padding: 17px 27px;
    border-radius: 100px;
    color: #2d2450;
    background: #f5c86b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 15px 40px rgba(245, 200, 107, 0.24);
}

.statement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    padding: 140px 7vw;
    background:
        radial-gradient(circle at 15% 30%, rgba(115, 84, 191, 0.15), transparent 30%),
        #f7f1e8;
}

.statement h2,
.section-heading h2,
.contact-3d h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 5.7vw, 6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.statement > p:last-child {
    align-self: end;
    max-width: 580px;
    color: #657087;
    font-size: 1.08rem;
}

.portfolio {
    padding: 130px 5vw;
    background: #34235f;
    color: white;
}

.portfolio .small-label {
    color: #f5c86b;
}

.section-heading {
    max-width: 950px;
    margin-bottom: 65px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 15px;
}

.work {
    position: relative;
    margin: 0;
    border-radius: 4px 35px 4px 35px;
    overflow: hidden;
}

.work-large {
    grid-column: span 2;
}

.work-tall {
    grid-row: span 2;
}

.work img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.work:hover img {
    transform: scale(1.06);
}

.work figcaption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 70px 28px 25px;
    background: linear-gradient(transparent, rgba(20, 12, 43, 0.9));
}

.work small {
    color: #f5c86b;
    font-size: 0.64rem;
    letter-spacing: 0.15em;
}

.work strong {
    margin-top: 5px;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.services-3d {
    padding: 130px 7vw;
    background:
        radial-gradient(circle at 95% 10%, rgba(66, 190, 194, 0.2), transparent 30%),
        #edf6f3;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-grid article {
    min-height: 330px;
    padding: 38px;
    border-radius: 7px 55px 7px 55px;
    color: white;
    background: linear-gradient(145deg, #4e3b91, #236f9d);
    box-shadow: 0 20px 50px rgba(34, 58, 95, 0.17);
}

.service-grid article:nth-child(2) {
    background: linear-gradient(145deg, #256f8e, #35a9a5);
}

.service-grid article:nth-child(3) {
    background: linear-gradient(145deg, #a7466d, #d46a55);
}

.service-grid article > span {
    color: #fbd27c;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
}

.service-grid h3 {
    margin: 80px 0 14px;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.service-grid p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-3d {
    padding: 150px 7vw;
    color: white;
    background:
        radial-gradient(circle at 85% 20%, #6747a7, transparent 36%),
        #241947;
}

.contact-3d .small-label {
    color: #f5c86b;
}

.contact-3d h2 {
    max-width: 1000px;
}

.contact-3d > a {
    display: flex;
    justify-content: space-between;
    max-width: 760px;
    margin-top: 60px;
    padding-bottom: 17px;
    border-bottom: 2px solid #f5c86b;
    font-size: clamp(1.3rem, 3vw, 2.5rem);
}

/* Strona dziecięca */

.page-kids {
    background: #fff9ed;
}

.kids-header.scrolled {
    background: rgba(255, 249, 237, 0.94);
}

.kids-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    padding: 120px 6vw 70px;
    color: #243269;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.9), transparent 14%),
        linear-gradient(135deg, #ffcf69, #ff8b96 48%, #8c6fe8);
    overflow: hidden;
}

.kids-hero-copy {
    position: relative;
    z-index: 4;
}

.kids-hero .small-label {
    color: #683880;
}

.kids-hero h1 {
    margin: 0 0 28px;
    font-family: Georgia, serif;
    font-size: clamp(3.8rem, 7vw, 7.8rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.kids-hero h1 span,
.kids-hero h1 em {
    display: block;
}

.kids-hero h1 em {
    color: white;
    font-weight: inherit;
    text-shadow: 0 7px 0 rgba(90, 49, 136, 0.18);
}

.kids-hero-copy > p:not(.small-label) {
    max-width: 570px;
    font-size: 1.1rem;
}

.kids-button {
    display: inline-flex;
    margin-top: 25px;
    padding: 17px 26px;
    border-radius: 100px;
    color: white;
    background: #5842ac;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(77, 52, 149, 0.28);
}

.kids-hero-art {
    position: relative;
    z-index: 2;
    min-height: 600px;
}

.hero-world {
    position: absolute;
    inset: 8% 0 auto;
    height: 76%;
    border: 9px solid rgba(255, 255, 255, 0.75);
    border-radius: 48% 52% 45% 55% / 52% 43% 57% 48%;
    object-fit: cover;
    box-shadow: 0 30px 70px rgba(62, 40, 105, 0.32);
    transform: rotate(2deg);
}

.hero-princess {
    position: absolute;
    z-index: 3;
    right: -5%;
    bottom: -11%;
    width: 46%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 17px rgba(41, 35, 73, 0.28));
}

.sun {
    position: absolute;
    z-index: 1;
    top: -30px;
    right: -20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #ffe78d;
    box-shadow: 0 0 0 30px rgba(255, 239, 157, 0.22);
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.bubble-one {
    top: 15%;
    left: 48%;
    width: 45px;
    height: 45px;
}

.bubble-two {
    bottom: 10%;
    left: 4%;
    width: 110px;
    height: 110px;
}

.bubble-three {
    top: 10%;
    right: 3%;
    width: 75px;
    height: 75px;
}

.stories,
.youtube-section {
    padding: 120px 6vw;
}

.kids-section-title {
    max-width: 920px;
    margin: 0 auto 60px;
    text-align: center;
}

.kids-section-title .small-label {
    color: #f05877;
}

.kids-section-title h2,
.kids-contact h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2.7rem, 5.3vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1300px;
    margin: auto;
}

.story-card {
    padding: 18px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(56, 56, 108, 0.14);
}

.story-card img {
    height: 370px;
    border-radius: 25px;
    object-fit: cover;
}

.story-card div {
    padding: 24px 17px 14px;
}

.story-card small {
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.story-card h3 {
    margin: 6px 0 0;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.story-card.pink {
    background: #ffc8d4;
}

.story-card.blue {
    background: #a8e4f2;
}

.story-card.yellow {
    background: #ffe391;
}

.story-card.purple {
    background: #d8c5ff;
}

.youtube-section {
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 229, 122, .4), transparent 20%),
        #edf7ff;
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.channel-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 470px;
    border-radius: 35px;
    color: white;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(49, 57, 111, 0.2);
    transition: transform 0.25s ease;
}

.channel-card:hover {
    transform: translateY(-8px) rotate(-0.5deg);
}

.channel-card img {
    height: 100%;
    object-fit: cover;
}

.channel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.channel-pl {
    background: linear-gradient(145deg, #e75075, #ad397e);
}

.channel-en {
    background: linear-gradient(145deg, #317dc5, #6652c2);
}

.flag {
    align-self: flex-start;
    margin-bottom: 30px;
    padding: 8px 12px;
    border-radius: 50px;
    color: #273362;
    background: white;
    font-weight: 900;
}

.channel-content small {
    color: #ffe990;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.channel-content h3 {
    margin: 7px 0 15px;
    font-family: Georgia, serif;
    font-size: 2.5rem;
    line-height: 1;
}

.channel-content p {
    color: rgba(255, 255, 255, 0.8);
}

.channel-content strong {
    margin-top: 20px;
}

.kids-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 390px;
}

.kids-gallery img {
    height: 100%;
    object-fit: cover;
}

.kids-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: end;
    padding: 120px 7vw;
    color: #29356b;
    background: #ffdc73;
}

.kids-contact .small-label {
    color: #be4c67;
}

.kids-contact a {
    padding: 18px 25px;
    border-radius: 100px;
    color: white;
    background: #5b43ae;
    font-weight: 800;
}

/* Strona przejściowa */

.landing {
    min-height: 100vh;
    background: #f8f3ea;
}

.landing-main {
    width: min(1400px, 90%);
    margin: auto;
    padding: 80px 0;
}

.landing-main h1 {
    margin: 0 0 45px;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 7vw, 7rem);
}

.landing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.landing-card {
    position: relative;
    min-height: 570px;
    border-radius: 10px 60px 10px 60px;
    color: white;
    overflow: hidden;
}

.landing-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.landing-card:hover img {
    transform: scale(1.06);
}

.landing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(28, 21, 58, 0.9));
}

.landing-card span {
    position: absolute;
    z-index: 2;
    inset: auto 35px 35px;
    display: flex;
    flex-direction: column;
}

.landing-card small {
    color: #ffe184;
    letter-spacing: 0.13em;
}

.landing-card strong {
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4.8rem);
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 6vw;
    color: white;
    background: #17132b;
}

footer p {
    margin: 0;
}

.kids-footer {
    color: #29356b;
    background: #fff9ed;
}

@media (max-width: 950px) {
    .menu-toggle {
        position: relative;
        z-index: 102;
        display: block;
    }

    .site-header nav {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        background: rgba(36, 25, 71, 0.98);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s ease;
    }

    .menu-open .site-header nav {
        opacity: 1;
        pointer-events: auto;
    }

    .site-header nav a {
        font-size: 1.15rem;
    }

    .statement,
    .kids-hero,
    .kids-contact {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-grid article {
        min-height: 270px;
    }

    .service-grid h3 {
        margin-top: 55px;
    }

    .kids-hero-copy {
        padding-top: 50px;
    }

    .kids-hero-art {
        min-height: 520px;
    }

    .channel-card {
        grid-template-columns: 1fr;
    }

    .channel-card img {
        height: 280px;
    }

    .landing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .site-header {
        min-height: 68px;
        padding: 0 20px;
    }

    .hero-3d-content,
    .statement,
    .portfolio,
    .services-3d,
    .contact-3d,
    .stories,
    .youtube-section,
    .kids-contact {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-3d h1 {
        font-size: 3.8rem;
    }

    .statement {
        gap: 30px;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .portfolio-grid,
    .story-grid,
    .channel-grid {
        display: block;
    }

    .work,
    .story-card,
    .channel-card {
        min-height: 340px;
        margin-bottom: 18px;
    }

    .work-large,
    .work-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .story-card img {
        height: 280px;
    }

    .kids-hero {
        padding: 120px 22px 50px;
    }

    .kids-hero h1 {
        font-size: 3.7rem;
    }

    .kids-hero-art {
        min-height: 430px;
    }

    .hero-princess {
        width: 52%;
    }

    .channel-content {
        padding: 30px;
    }

    .kids-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .landing-main {
        padding-top: 45px;
    }

    .landing-card {
        min-height: 440px;
    }

    footer {
        padding: 40px 22px;
    }
}

/* =========================================================
   UNIWERSALNA STOPKA MIERZWA
   Ten sam HTML, osobna kolorystyka dla każdej podstrony
   ========================================================= */

.footer-mount {
    width: 100%;
}

.universal-footer {
    padding: 85px 6vw 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(220px, 0.8fr) minmax(200px, 0.7fr);
    gap: clamp(45px, 7vw, 110px);
    padding-bottom: 70px;
}

.footer-identity {
    max-width: 470px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 27px;
    letter-spacing: 0.13em;
}

.footer-logo strong {
    font-size: 1.35rem;
}

.footer-logo span {
    padding-left: 12px;
    border-left: 1px solid currentColor;
    font-size: 0.68rem;
    font-weight: 800;
}

.footer-identity > p {
    max-width: 440px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.3;
}

.footer-heading {
    margin: 0 0 22px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-navigation,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-navigation a,
.footer-contact a,
.footer-location {
    margin: 0 0 13px;
    font-size: 0.92rem;
}

.footer-navigation a,
.footer-email {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-navigation a:hover,
.footer-email:hover {
    transform: translateX(4px);
}

.footer-email {
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    font-weight: 800;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 35px;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid currentColor;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    font-weight: 800;
}

/* Stopka na Mierzwa 3D */

.page-3d .universal-footer {
    color: rgba(255, 255, 255, 0.75);
    background:
        radial-gradient(circle at 15% 15%, rgba(107, 76, 177, 0.35), transparent 35%),
        #17132b;
}

.page-3d .footer-logo,
.page-3d .footer-identity > p {
    color: white;
}

.page-3d .footer-heading,
.page-3d .footer-email,
.page-3d .footer-navigation a:hover,
.page-3d .footer-bottom a:hover {
    color: #f5c86b;
}

.page-3d .footer-bottom {
    border-color: rgba(255, 255, 255, 0.16);
}

/* Stopka na stronie dziecięcej */

.page-kids .universal-footer {
    position: relative;
    color: #344078;
    background:
        radial-gradient(circle at 7% 25%, rgba(255, 202, 105, 0.55), transparent 25%),
        radial-gradient(circle at 88% 20%, rgba(188, 163, 255, 0.5), transparent 28%),
        #fff3d9;
    overflow: hidden;
}

.page-kids .universal-footer::before,
.page-kids .universal-footer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-kids .universal-footer::before {
    top: 36px;
    right: 5%;
    width: 70px;
    height: 70px;
    background: rgba(255, 126, 148, 0.3);
}

.page-kids .universal-footer::after {
    bottom: 65px;
    left: 3%;
    width: 38px;
    height: 38px;
    background: rgba(67, 201, 193, 0.4);
}

.page-kids .footer-main,
.page-kids .footer-bottom {
    position: relative;
    z-index: 1;
}

.page-kids .footer-logo,
.page-kids .footer-identity > p {
    color: #543d9d;
}

.page-kids .footer-heading {
    color: #d84f70;
}

.page-kids .footer-email {
    color: #543d9d;
}

.page-kids .footer-navigation a:hover,
.page-kids .footer-bottom a:hover {
    color: #d84f70;
}

.page-kids .footer-bottom {
    border-color: rgba(52, 64, 120, 0.2);
}

.footer-fallback {
    padding-top: 30px;
}

@media (max-width: 850px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .universal-footer {
        padding: 70px 22px 28px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 55px;
    }

    .footer-identity {
        grid-column: auto;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* MIERZWA_SCROLL_EFFECTS_START */

/* =========================================================
   ANIMACJE PRZEWIJANIA I PARALLAX
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body.motion-ready .scroll-reveal {
    opacity: 0;
    transform:
        translate3d(
            var(--reveal-x, 0),
            var(--reveal-y, 52px),
            0
        )
        scale(var(--reveal-scale, 0.985));
    filter: blur(5px);
    transition:
        opacity 0.85s cubic-bezier(.2, .7, .2, 1),
        transform 0.95s cubic-bezier(.2, .7, .2, 1),
        filter 0.8s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

body.motion-ready .scroll-reveal.reveal-left {
    --reveal-x: -55px;
    --reveal-y: 0;
}

body.motion-ready .scroll-reveal.reveal-right {
    --reveal-x: 55px;
    --reveal-y: 0;
}

body.motion-ready .scroll-reveal.reveal-scale {
    --reveal-y: 25px;
    --reveal-scale: 0.93;
}

body.motion-ready .scroll-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

/* Karty pojawiają się kolejno, a nie wszystkie jednocześnie. */

.work.scroll-reveal,
.story-card.scroll-reveal,
.channel-card.scroll-reveal,
.service-grid article.scroll-reveal,
.landing-card.scroll-reveal {
    transition-delay: var(--reveal-delay, 0ms);
}

/* Obrazy delikatnie powiększają się podczas pojawiania. */

body.motion-ready .scroll-reveal img {
    transform: scale(1.065);
    transition:
        transform 1.35s cubic-bezier(.2, .7, .2, 1),
        filter 0.8s ease;
}

body.motion-ready .scroll-reveal.is-visible img {
    transform: scale(1);
}

/* Zachowanie powiększenia po najechaniu kursorem. */

@media (hover: hover) {
    body.motion-ready .work.is-visible:hover img,
    body.motion-ready .story-card.is-visible:hover img,
    body.motion-ready .landing-card.is-visible:hover img {
        transform: scale(1.055);
    }
}

/* Elementy paralaksy wykorzystują zmienną ustawianą przez JavaScript. */

.parallax-layer {
    --parallax-y: 0px;
    will-change: transform;
}

.hero-3d video.parallax-layer {
    height: 116%;
    top: -8%;
    transform:
        translate3d(0, var(--parallax-y), 0)
        scale(1.06);
}

.hero-world.parallax-layer {
    transform:
        translate3d(0, var(--parallax-y), 0)
        rotate(2deg);
}

.hero-princess.parallax-layer {
    transform:
        translate3d(0, var(--parallax-y), 0);
}

.sun.parallax-layer,
.bubble.parallax-layer {
    transform:
        translate3d(0, var(--parallax-y), 0);
}

/* Głębia tła w sekcjach. */

.statement,
.services-3d,
.youtube-section,
.universal-footer {
    background-position:
        center calc(50% + var(--background-parallax, 0px));
    will-change: background-position;
}

/* Subtelny połysk przesuwający się po przyciskach. */

.main-button,
.kids-button,
.kids-contact > a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.main-button::after,
.kids-button::after,
.kids-contact > a::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80%;
    left: -55%;
    width: 40%;
    height: 260%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(25deg);
    transition: left 0.7s ease;
}

.main-button:hover::after,
.kids-button:hover::after,
.kids-contact > a:hover::after {
    left: 125%;
}

/* Delikatne unoszenie dziecięcych dekoracji. */

@keyframes mierzwaFloat {
    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -13px;
    }
}

.page-kids .bubble-one {
    animation: mierzwaFloat 5s ease-in-out infinite;
}

.page-kids .bubble-two {
    animation: mierzwaFloat 7s ease-in-out 0.8s infinite;
}

.page-kids .bubble-three {
    animation: mierzwaFloat 6s ease-in-out 1.4s infinite;
}

/* Podkreślenie odnośników w stopce. */

.footer-navigation a {
    position: relative;
}

.footer-navigation a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.footer-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Na mniejszych ekranach paralaksa jest spokojniejsza. */

@media (max-width: 700px) {
    body.motion-ready .scroll-reveal {
        --reveal-y: 30px;
        filter: blur(2px);
        transition-duration: 0.7s;
    }

    body.motion-ready .scroll-reveal.reveal-left,
    body.motion-ready .scroll-reveal.reveal-right {
        --reveal-x: 0;
        --reveal-y: 30px;
    }

    .hero-3d video.parallax-layer {
        height: 108%;
        top: -4%;
    }
}

/* Dostępność: wyłączenie ruchu, jeśli użytkownik ustawił
   ograniczenie animacji w systemie lub przeglądarce. */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    body.motion-ready .scroll-reveal,
    body.motion-ready .scroll-reveal.is-visible {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .parallax-layer,
    .hero-3d video.parallax-layer,
    .hero-world.parallax-layer,
    .hero-princess.parallax-layer,
    .sun.parallax-layer,
    .bubble.parallax-layer {
        transform: none;
    }
}

/* MIERZWA_SCROLL_EFFECTS_END */

/* MIERZWA_LIGHTBOX_START */

/* =========================================================
   PEŁNOEKRANOWA GALERIA
   ========================================================= */

.lightbox-enabled {
    cursor: zoom-in;
}

.mierzwa-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 22px;
    color: white;
    background:
        radial-gradient(circle at center, rgba(73, 57, 116, 0.27), transparent 55%),
        rgba(8, 8, 17, 0.96);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.mierzwa-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.lightbox-close,
.lightbox-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.lightbox-close {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    color: #261d46;
    background: #f5c86b;
    border-color: #f5c86b;
    transform: scale(1.07);
}

.lightbox-stage {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.lightbox-image {
    width: auto;
    max-width: calc(100vw - 150px);
    height: auto;
    max-height: calc(100vh - 180px);
    border-radius: 4px 30px 4px 30px;
    object-fit: contain;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.58);
    opacity: 0;
    transform: scale(0.94);
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(.2, .7, .2, 1);
    user-select: none;
}

.mierzwa-lightbox.is-open .lightbox-image.image-loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-image.image-changing {
    opacity: 0;
    transform: scale(0.97);
}

.lightbox-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 54px;
    height: 54px;
    font-size: 1.55rem;
    transform: translateY(-50%);
}

.lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.07);
}

.lightbox-previous {
    left: 7px;
}

.lightbox-next {
    right: 7px;
}

.lightbox-caption {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 85px 0;
    text-align: center;
}

.lightbox-caption small {
    color: #f5c86b;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.lightbox-caption strong {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    font-weight: 400;
}

.page-kids .mierzwa-lightbox {
    background:
        radial-gradient(circle at 20% 20%, rgba(224, 91, 134, 0.23), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(84, 102, 205, 0.25), transparent 38%),
        rgba(28, 25, 66, 0.96);
}

.page-kids .lightbox-close:hover,
.page-kids .lightbox-arrow:hover {
    color: white;
    background: #e65379;
    border-color: #e65379;
}

.page-kids .lightbox-caption small {
    color: #ffe17d;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .mierzwa-lightbox {
        padding: 12px;
    }

    .lightbox-image {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 190px);
        border-radius: 3px 20px 3px 20px;
    }

    .lightbox-arrow {
        top: auto;
        bottom: 7px;
        width: 48px;
        height: 48px;
        background: rgba(20, 17, 44, 0.72);
        transform: none;
    }

    .lightbox-arrow:hover {
        transform: scale(1.05);
    }

    .lightbox-previous {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-caption {
        min-height: 85px;
        padding: 10px 55px 0;
    }

    .lightbox-caption strong {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mierzwa-lightbox,
    .lightbox-image {
        transition: none;
    }
}

/* MIERZWA_LIGHTBOX_END */

/* MIERZWA_TILT_START */

/* =========================================================
   PRZESTRZENNY EFEKT KART 3D
   ========================================================= */

.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform;
}

.tilt-card.tilt-active {
    z-index: 10;
    transition:
        transform 0.08s linear,
        box-shadow 0.25s ease;
    box-shadow:
        0 35px 75px rgba(25, 20, 58, 0.28),
        0 12px 25px rgba(25, 20, 58, 0.16);
}

.tilt-card.tilt-reset {
    transition:
        transform 0.65s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.65s ease;
}

.tilt-card > img,
.tilt-card > video,
.tilt-card > figcaption,
.tilt-card > div:not(.tilt-glare),
.tilt-card > span {
    transform-style: preserve-3d;
}

.tilt-card.tilt-active > figcaption,
.tilt-card.tilt-active > div:not(.tilt-glare) {
    transform: translateZ(25px);
}

.tilt-card.tilt-active > img {
    filter: saturate(1.08) contrast(1.025);
}

.tilt-glare {
    position: absolute;
    z-index: 20;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--tilt-glare-opacity, 0);
    background:
        radial-gradient(
            circle at var(--tilt-glare-x, 50%) var(--tilt-glare-y, 50%),
            rgba(255, 255, 255, 0.42) 0,
            rgba(255, 255, 255, 0.13) 20%,
            transparent 55%
        );
    mix-blend-mode: soft-light;
    transition: opacity 0.3s ease;
}

.page-kids .tilt-glare {
    background:
        radial-gradient(
            circle at var(--tilt-glare-x, 50%) var(--tilt-glare-y, 50%),
            rgba(255, 245, 175, 0.6) 0,
            rgba(255, 183, 215, 0.16) 26%,
            transparent 58%
        );
    mix-blend-mode: screen;
}

.tilt-card.tilt-active .tilt-glare {
    opacity: var(--tilt-glare-opacity, 0.5);
}

/*
 * Usunięcie wcześniejszego powiększenia całej karty.
 * Ruch kontroluje teraz wspólny system 3D.
 */

.channel-card.tilt-card:hover {
    transform: none;
}

/* Efekt działa tylko na urządzeniach z dokładnym kursorem. */

@media (hover: none), (pointer: coarse), (max-width: 760px) {
    .tilt-card,
    .tilt-card.tilt-active,
    .tilt-card.tilt-reset {
        transform: none !important;
        box-shadow: inherit;
    }

    .tilt-glare {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tilt-card,
    .tilt-card.tilt-active,
    .tilt-card.tilt-reset {
        transform: none !important;
    }

    .tilt-glare {
        display: none;
    }
}

/* MIERZWA_TILT_END */

/* MIERZWA_TILT_STRONGER_START */

.portfolio-grid,
.story-grid,
.channel-grid,
.service-grid,
.landing-cards {
    perspective: 1400px;
    perspective-origin: center;
}

.tilt-card.tilt-active {
    box-shadow:
        0 48px 95px rgba(25, 20, 58, 0.4),
        0 18px 32px rgba(25, 20, 58, 0.24);
}

.page-kids .tilt-card.tilt-active {
    box-shadow:
        0 45px 90px rgba(64, 43, 128, 0.32),
        0 18px 32px rgba(211, 75, 119, 0.2);
}

/* MIERZWA_TILT_STRONGER_END */

/* MIERZWA_PAGE_TRANSITION_START */

/* =========================================================
   PŁYNNE PRZEJŚCIA MIĘDZY PODSTRONAMI
   ========================================================= */

.page-transition {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background:
        radial-gradient(circle at 25% 30%, #694ca7, transparent 38%),
        linear-gradient(145deg, #211840, #342363);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.78s cubic-bezier(.76, 0, .24, 1);
    overflow: hidden;
}

.page-transition::before {
    content: "";
    position: absolute;
    width: 55vw;
    height: 55vw;
    min-width: 500px;
    min-height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    transform: scale(0.7);
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.page-transition::after {
    content: "";
    position: absolute;
    width: 30vw;
    height: 30vw;
    min-width: 300px;
    min-height: 300px;
    border: 1px solid rgba(245, 200, 107, 0.25);
    border-radius: 50%;
    transform: scale(0.6);
    transition: transform 1.25s cubic-bezier(.2, .7, .2, 1);
}

.page-transition-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.35s ease,
        transform 0.55s cubic-bezier(.2, .7, .2, 1);
}

.page-transition-logo strong {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    letter-spacing: 0.18em;
}

.page-transition-logo span {
    padding-left: 13px;
    border-left: 1px solid currentColor;
    color: #f5c86b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

/* Po załadowaniu strony warstwa odjeżdża do góry. */

.page-transition.transition-ready {
    transform: translate3d(0, -102%, 0);
}

.page-transition.transition-ready::before {
    transform: scale(1.2);
}

.page-transition.transition-ready::after {
    transform: scale(1.35);
}

.page-transition.transition-ready .page-transition-logo {
    opacity: 0;
    transform: translateY(-25px);
}

/* Przed zmianą strony warstwa wjeżdża od dołu. */

.page-transition.transition-entering {
    pointer-events: all;
    transform: translate3d(0, 0, 0);
    transition-duration: 0.68s;
}

.page-transition.transition-entering .page-transition-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.27s;
}

.page-transition.transition-entering::before {
    transform: scale(0.8);
}

.page-transition.transition-entering::after {
    transform: scale(0.72);
}

/* Inna kolorystyka przejścia ze strony dziecięcej. */

.page-kids .page-transition {
    color: #4b377e;
    background:
        radial-gradient(circle at 20% 25%, #ffe37c, transparent 32%),
        radial-gradient(circle at 80% 70%, #bd9cff, transparent 34%),
        linear-gradient(145deg, #ff9caf, #ffcf77);
}

.page-kids .page-transition::before {
    border-color: rgba(255, 255, 255, 0.38);
}

.page-kids .page-transition::after {
    border-color: rgba(86, 61, 158, 0.22);
}

.page-kids .page-transition-logo span {
    color: #b63f69;
}

/* Strona główna łączy oba kierunki kolorystyczne. */

.landing .page-transition {
    background:
        radial-gradient(circle at 15% 20%, #f2bf63, transparent 28%),
        radial-gradient(circle at 85% 70%, #6747a7, transparent 37%),
        linear-gradient(145deg, #28204f, #a95072);
}

body.page-is-leaving {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .page-transition {
        display: none;
    }
}

/* MIERZWA_PAGE_TRANSITION_END */

/* MIERZWA_SCROLL_PROGRESS_START */

/* =========================================================
   PASEK POSTĘPU PRZEWIJANIA
   ========================================================= */

.scroll-progress {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    pointer-events: none;
}

.scroll-progress-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
}

.scroll-progress-bar {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(
        90deg,
        #f5b84b,
        #e36670,
        #7351ba,
        #43c9c1
    );
    box-shadow:
        0 0 12px rgba(245, 184, 75, 0.55),
        0 0 25px rgba(115, 81, 186, 0.35);
    will-change: transform;
}

.scroll-progress-point {
    position: absolute;
    top: 50%;
    left: 0;
    width: 11px;
    height: 11px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #f5c86b;
    box-shadow:
        0 0 0 4px rgba(245, 200, 107, 0.14),
        0 0 18px rgba(245, 200, 107, 0.7);
    transform: translate(-50%, -50%);
    will-change: left;
}

.scroll-progress-label {
    position: absolute;
    top: 13px;
    right: 12px;
    min-width: 46px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 100px;
    color: white;
    background: rgba(25, 20, 49, 0.72);
    backdrop-filter: blur(10px);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    opacity: 0;
    transform: translateY(-5px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.scroll-progress.is-scrolling .scroll-progress-label {
    opacity: 1;
    transform: translateY(0);
}

/* Kolor Mierzwa 3D */

.page-3d .scroll-progress-bar {
    background: linear-gradient(
        90deg,
        #f5c86b,
        #db765e,
        #694ca7,
        #39aaa8
    );
}

/* Kolor strony dziecięcej */

.page-kids .scroll-progress-bar {
    background: linear-gradient(
        90deg,
        #ffd75e,
        #ff718e,
        #a866df,
        #48c9d4
    );
    box-shadow:
        0 0 14px rgba(255, 113, 142, 0.55),
        0 0 26px rgba(168, 102, 223, 0.35);
}

.page-kids .scroll-progress-point {
    background: #ff718e;
    box-shadow:
        0 0 0 4px rgba(255, 113, 142, 0.17),
        0 0 18px rgba(255, 113, 142, 0.72);
}

.page-kids .scroll-progress-label {
    color: #493578;
    background: rgba(255, 245, 218, 0.9);
    border-color: rgba(73, 53, 120, 0.12);
}

/* Na bardzo małym ekranie pozostaje tylko pasek. */

@media (max-width: 500px) {
    .scroll-progress {
        height: 4px;
    }

    .scroll-progress-point,
    .scroll-progress-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress-label {
        transition: none;
    }
}

/* MIERZWA_SCROLL_PROGRESS_END */

/* MIERZWA_CUSTOM_CURSOR_START */

/* =========================================================
   SPECJALNY KURSOR MIERZWA 3D
   ========================================================= */

.mierzwa-cursor {
    position: fixed;
    z-index: 15000;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 200, 107, 0.75);
    border-radius: 50%;
    color: #2b204c;
    background: rgba(245, 200, 107, 0.13);
    box-shadow:
        0 0 22px rgba(245, 200, 107, 0.25),
        inset 0 0 16px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.65);
    transition:
        width 0.28s ease,
        height 0.28s ease,
        opacity 0.2s ease,
        border-color 0.25s ease,
        background 0.25s ease;
    will-change: transform, left, top;
}

.mierzwa-cursor.is-visible {
    opacity: 1;
}

.mierzwa-cursor.is-active {
    width: 88px;
    height: 88px;
    border-color: rgba(245, 200, 107, 0.95);
    color: #21183e;
    background: rgba(245, 200, 107, 0.78);
    box-shadow:
        0 0 35px rgba(245, 200, 107, 0.42),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
}

.mierzwa-cursor.is-link {
    width: 62px;
    height: 62px;
    background: rgba(102, 72, 167, 0.22);
    border-color: rgba(255, 255, 255, 0.72);
}

.mierzwa-cursor-label {
    max-width: 70px;
    color: inherit;
    font-size: 0;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-align: center;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        font-size 0.2s ease;
}

.mierzwa-cursor.is-active .mierzwa-cursor-label,
.mierzwa-cursor.is-link .mierzwa-cursor-label {
    font-size: 0.58rem;
    opacity: 1;
}

/* =========================================================
   KOLOROWE CZĄSTECZKI NA STRONIE DZIECIĘCEJ
   ========================================================= */

.kids-cursor-particle {
    position: fixed;
    z-index: 14999;
    width: var(--particle-size, 9px);
    height: var(--particle-size, 9px);
    border-radius: var(--particle-radius, 50%);
    background: var(--particle-colour, #ff7190);
    box-shadow: 0 0 12px var(--particle-colour, #ff7190);
    pointer-events: none;
    transform:
        translate3d(-50%, -50%, 0)
        rotate(var(--particle-rotation, 0deg))
        scale(1);
    animation: kidsParticleDisappear 0.75s ease-out forwards;
}

.kids-cursor-particle.is-star {
    border-radius: 2px;
    transform:
        translate3d(-50%, -50%, 0)
        rotate(45deg)
        scale(1);
}

.kids-cursor-particle.is-star::after {
    content: "";
    position: absolute;
    inset: 25% -30%;
    border-radius: 2px;
    background: inherit;
}

@keyframes kidsParticleDisappear {
    0% {
        opacity: 0.95;
        margin-top: 0;
        scale: 1;
    }

    100% {
        opacity: 0;
        margin-top: var(--particle-fall, 30px);
        scale: 0.15;
    }
}

/* Kursor nie przeszkadza w galerii ani podczas zmiany strony. */

.lightbox-open .mierzwa-cursor,
.page-is-leaving .mierzwa-cursor {
    opacity: 0;
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
    .mierzwa-cursor,
    .kids-cursor-particle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mierzwa-cursor,
    .kids-cursor-particle {
        display: none;
    }
}

/* MIERZWA_CUSTOM_CURSOR_END */

/* MIERZWA_APPS_PAGE_START */

/* =========================================================
   MIERZWA APPS
   ========================================================= */

.page-apps {
    color: #f5f6ff;
    background: #080b16;
}

.apps-header.scrolled {
    color: #f5f6ff;
    background: rgba(8, 11, 22, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apps-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding: 125px 6vw 70px;
    background:
        radial-gradient(circle at 75% 30%, rgba(77, 97, 208, 0.25), transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(0, 204, 188, 0.13), transparent 30%),
        linear-gradient(145deg, #080b16, #11162d);
    overflow: hidden;
}

.apps-grid-background {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to right, transparent, black 55%);
}

.apps-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.apps-orb-one {
    top: 12%;
    right: 4%;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(106, 123, 239, 0.25);
    box-shadow: inset 0 0 100px rgba(85, 102, 222, 0.12);
}

.apps-orb-two {
    right: 37%;
    bottom: 5%;
    width: 120px;
    height: 120px;
    background: rgba(24, 205, 190, 0.1);
    box-shadow: 0 0 60px rgba(24, 205, 190, 0.2);
}

.apps-hero-copy {
    position: relative;
    z-index: 3;
}

.apps-hero .small-label {
    color: #43d8c8;
}

.apps-hero h1 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(4rem, 7.5vw, 8rem);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.apps-hero h1 span,
.apps-hero h1 em {
    display: block;
}

.apps-hero h1 em {
    color: #7f90ff;
    font-weight: inherit;
}

.apps-hero-copy > p:not(.small-label) {
    max-width: 660px;
    color: #aeb5ce;
    font-size: 1.08rem;
}

.apps-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.apps-platforms span,
.development-badge,
.app-status {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid rgba(126, 145, 255, 0.3);
    border-radius: 100px;
    color: #bbc4ff;
    background: rgba(126, 145, 255, 0.08);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.apps-main-button {
    display: inline-flex;
    margin-top: 34px;
    padding: 17px 27px;
    border-radius: 100px;
    color: #07101b;
    background: linear-gradient(90deg, #45d8ca, #8d99ff);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 18px 45px rgba(76, 200, 204, 0.18);
}

.apps-hero-device {
    position: relative;
    z-index: 2;
    min-height: 690px;
    perspective: 1400px;
}

.device-glow {
    position: absolute;
    top: 17%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: #5667d0;
    opacity: 0.27;
    filter: blur(90px);
}

.phone {
    position: absolute;
    width: 325px;
    height: 650px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 48px;
    background: linear-gradient(145deg, #333a57, #080b13);
    box-shadow:
        0 45px 100px rgba(0, 0, 0, 0.48),
        inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.phone-main {
    z-index: 3;
    top: 0;
    left: 36%;
    transform: rotateY(-11deg) rotateZ(3deg);
}

.phone-back {
    z-index: 1;
    top: 35px;
    left: 15%;
    opacity: 0.55;
    transform: rotateY(14deg) rotateZ(-8deg) scale(0.92);
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
}

.phone-speaker {
    position: absolute;
    z-index: 4;
    top: 20px;
    left: 50%;
    width: 80px;
    height: 20px;
    border-radius: 100px;
    background: #060811;
    transform: translateX(-50%);
}

.perun-screen {
    padding: 53px 25px 23px;
    color: white;
    background:
        radial-gradient(circle at 50% 28%, rgba(117, 88, 199, 0.65), transparent 34%),
        linear-gradient(180deg, #1d1830, #090b14);
}

.perun-topline {
    display: flex;
    justify-content: space-between;
    color: #a5a9bf;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.perun-cover {
    width: 215px;
    height: 215px;
    display: grid;
    place-items: center;
    margin: 52px auto 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 30% 25%, #98a1ff, transparent 38%),
        linear-gradient(145deg, #784fb3, #19295f);
    box-shadow: 0 25px 55px rgba(23, 15, 55, 0.55);
}

.perun-cover-symbol {
    font-family: Georgia, serif;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.85);
}

.perun-track {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.perun-track strong {
    font-size: 1.2rem;
}

.perun-track span {
    color: #969db5;
    font-size: 0.75rem;
}

.perun-progress {
    height: 3px;
    margin: 32px 0;
    border-radius: 5px;
    background: #41465a;
}

.perun-progress span {
    display: block;
    width: 58%;
    height: 100%;
    border-radius: inherit;
    background: #8c9cff;
}

.perun-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    font-size: 2rem;
}

.perun-controls strong {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #101421;
    background: #8e9eff;
    font-size: 1.3rem;
}

.perun-navigation {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    justify-content: space-around;
    padding: 16px 10px;
    border-radius: 25px;
    color: #949ab1;
    background: rgba(255, 255, 255, 0.055);
}

.secondary-screen {
    background:
        radial-gradient(circle at 50% 30%, #304c7e, transparent 36%),
        linear-gradient(180deg, #12172a, #080a12);
}

.secondary-circle {
    display: block;
    width: 190px;
    height: 190px;
    margin: 110px auto 40px;
    border-radius: 50%;
    background: rgba(121, 145, 255, 0.16);
}

.secondary-line {
    display: block;
    width: 70%;
    height: 12px;
    margin: 15px auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.secondary-line.short {
    width: 45%;
}

.perun-feature,
.future-apps,
.apps-principles {
    padding: 130px 7vw;
}

.perun-feature {
    background:
        radial-gradient(circle at 92% 20%, rgba(72, 205, 194, 0.12), transparent 30%),
        #0d1120;
}

.perun-feature-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 70px;
}

.perun-feature h2,
.apps-section-heading h2,
.apps-contact h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.perun-feature .small-label,
.apps-section-heading .small-label,
.apps-contact .small-label {
    color: #45d6c7;
}

.perun-feature-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 8vw;
}

.perun-description {
    color: #aab2c9;
    font-size: 1.06rem;
}

.perun-description p + p {
    margin-top: 24px;
}

.perun-coming-link {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    padding-bottom: 15px;
    border-bottom: 1px solid #7384ec;
    color: white;
}

.perun-feature-list {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.perun-feature-list div {
    display: grid;
    grid-template-columns: 55px 1fr;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.perun-feature-list span {
    color: #45d6c7;
    font-size: 0.68rem;
}

.perun-feature-list strong {
    font-size: 1.1rem;
    font-weight: 500;
}

.future-apps {
    color: #19213a;
    background:
        radial-gradient(circle at 5% 5%, rgba(120, 106, 222, 0.15), transparent 30%),
        #eef1f8;
}

.apps-section-heading {
    max-width: 950px;
    margin-bottom: 65px;
}

.apps-section-heading > p:last-child {
    max-width: 680px;
    margin-top: 28px;
    color: #626c83;
}

.app-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.app-project-card {
    min-height: 570px;
    border-radius: 8px 42px 8px 42px;
    background: white;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(38, 50, 85, 0.12);
}

.app-project-visual {
    height: 285px;
    display: grid;
    place-items: center;
}

.video-app-card .app-project-visual {
    background: linear-gradient(145deg, #26376f, #7159ae);
}

.converter-app-card .app-project-visual {
    background: linear-gradient(145deg, #087b84, #4cc5b5);
}

.interactive-app-card .app-project-visual {
    background: linear-gradient(145deg, #f6b74a, #eb6f80);
}

.video-window {
    position: relative;
    width: 78%;
    height: 65%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 18px;
    background: rgba(10, 13, 30, 0.35);
}

.video-play {
    font-size: 2.5rem;
    color: white;
}

.video-timeline {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(90deg, #91a1ff 55%, rgba(255,255,255,.2) 55%);
}

.converter-symbol {
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
}

.converter-symbol span {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 14px;
    font-weight: 900;
}

.converter-symbol strong {
    font-size: 2rem;
}

.interactive-scene {
    display: grid;
    place-items: center;
    color: white;
}

.interactive-star {
    font-size: 4rem;
    color: #ffe879;
}

.interactive-play {
    margin: -20px 0 15px;
    font-size: 1.5rem;
}

.interactive-game {
    letter-spacing: 0.5em;
}

.app-project-copy {
    padding: 32px;
}

.app-project-copy h3 {
    margin: 22px 0 15px;
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1.05;
}

.app-project-copy p {
    color: #697186;
}

.apps-principles {
    background: #11162a;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.12);
    border-left: 1px solid rgba(255,255,255,.12);
}

.principles-grid article {
    min-height: 245px;
    padding: 30px;
    border-right: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.principles-grid span {
    color: #43d8c8;
    font-size: 0.68rem;
}

.principles-grid h3 {
    margin-top: 110px;
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
}

.apps-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: end;
    padding: 140px 7vw;
    background:
        radial-gradient(circle at 75% 20%, rgba(91, 106, 219, 0.32), transparent 35%),
        #080b16;
}

.apps-contact a {
    padding: 17px 25px;
    border-radius: 100px;
    color: #07101b;
    background: linear-gradient(90deg, #45d8ca, #8d99ff);
    font-weight: 900;
}

.page-apps .universal-footer {
    color: #aeb5ce;
    background:
        radial-gradient(circle at 85% 20%, rgba(77, 97, 208, 0.2), transparent 30%),
        #060913;
}

.page-apps .footer-logo,
.page-apps .footer-identity > p {
    color: white;
}

.page-apps .footer-heading,
.page-apps .footer-email,
.page-apps .footer-navigation a:hover {
    color: #45d8ca;
}

.page-apps .footer-bottom {
    border-color: rgba(255,255,255,.12);
}

.page-apps .scroll-progress-bar {
    background: linear-gradient(90deg, #45d8ca, #8d99ff, #a861d1);
}

@media (max-width: 1000px) {
    .apps-hero {
        grid-template-columns: 1fr;
    }

    .apps-hero-device {
        margin-top: 60px;
    }

    .phone-main {
        left: 48%;
        transform: translateX(-50%) rotateZ(3deg);
    }

    .phone-back {
        left: calc(48% - 180px);
    }

    .app-project-grid {
        grid-template-columns: 1fr;
    }

    .app-project-card {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        min-height: 330px;
    }

    .app-project-visual {
        height: 100%;
    }

    .principles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .apps-hero {
        padding: 120px 22px 60px;
    }

    .apps-hero h1 {
        font-size: 3.8rem;
    }

    .apps-hero-device {
        min-height: 570px;
    }

    .phone {
        width: 270px;
        height: 540px;
    }

    .phone-main {
        left: 50%;
    }

    .phone-back {
        display: none;
    }

    .perun-cover {
        width: 175px;
        height: 175px;
        margin-top: 35px;
    }

    .perun-navigation {
        display: none;
    }

    .perun-feature,
    .future-apps,
    .apps-principles,
    .apps-contact {
        padding: 90px 22px;
    }

    .perun-feature-heading,
    .apps-contact {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .perun-feature-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .app-project-card {
        display: block;
    }

    .app-project-visual {
        height: 270px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* MIERZWA_APPS_PAGE_END */

.landing-card-apps {
    background:
        radial-gradient(circle at 70% 25%, #6777dc, transparent 33%),
        linear-gradient(145deg, #0a0d19, #202950);
}

.landing-app-visual {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.landing-app-visual > strong {
    position: relative;
    z-index: 1;
    font-family: Georgia, serif;
    font-size: 13rem;
    color: rgba(255,255,255,.82);
}

.landing-app-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(111,133,255,.35);
    border-radius: 50%;
    box-shadow:
        inset 0 0 100px rgba(86,103,208,.18),
        0 0 100px rgba(86,103,208,.2);
}

/* MIERZWA_PERUN_PAGE_START */

.main-landing-header {
    position: relative;
    z-index: 20;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    color: #24203d;
}

.main-landing-header nav {
    display: flex;
    gap: 27px;
}

.main-landing-header nav a {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-landing-header nav a:hover {
    color: #704cae;
}

.page-perun {
    background: #070a13;
}

.perun-page-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    padding: 125px 7vw 70px;
    background:
        radial-gradient(circle at 72% 34%, rgba(87, 104, 222, 0.31), transparent 32%),
        radial-gradient(circle at 10% 85%, rgba(45, 209, 192, 0.13), transparent 28%),
        #070a13;
    overflow: hidden;
}

.perun-page-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to right, transparent, black 70%);
}

.perun-page-glow {
    position: absolute;
    top: 20%;
    right: 12%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(98, 111, 226, 0.32);
    filter: blur(110px);
}

.perun-page-copy {
    position: relative;
    z-index: 3;
}

.perun-app-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.perun-app-mark > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: white;
    background: linear-gradient(145deg, #7655b3, #314ba3);
    font-family: Georgia, serif;
    font-size: 2.6rem;
    box-shadow: 0 15px 35px rgba(74, 67, 175, 0.3);
}

.perun-app-mark div {
    display: flex;
    flex-direction: column;
}

.perun-app-mark strong {
    letter-spacing: 0.17em;
}

.perun-app-mark small {
    color: #8690b3;
    letter-spacing: 0.2em;
}

.perun-page-copy .small-label {
    color: #48d2c4;
}

.perun-page-copy h1 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(4rem, 7.3vw, 8rem);
    font-weight: 400;
    line-height: 0.87;
    letter-spacing: -0.055em;
}

.perun-page-copy h1 span,
.perun-page-copy h1 em {
    display: block;
}

.perun-page-copy h1 em {
    color: #8292ff;
    font-weight: inherit;
}

.perun-page-copy > p:not(.small-label) {
    max-width: 650px;
    color: #aab2cb;
    font-size: 1.08rem;
}

.perun-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.perun-development {
    color: #7edbd0;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.perun-hero-phone {
    position: relative;
    min-height: 690px;
    perspective: 1400px;
}

.perun-real-phone {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotateY(-8deg) rotateZ(3deg);
}

.perun-phone-shadow {
    position: absolute;
    right: 15%;
    bottom: 6%;
    left: 15%;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    filter: blur(25px);
}

.perun-introduction {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8vw;
    padding: 140px 7vw;
    background:
        radial-gradient(circle at 10% 30%, rgba(94, 82, 193, 0.15), transparent 28%),
        #101528;
}

.perun-introduction .small-label,
.perun-modules .small-label,
.perun-platforms .small-label {
    color: #48d2c4;
}

.perun-introduction h2,
.perun-modules h2,
.perun-platforms h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 5.5vw, 5.8rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.perun-introduction-copy {
    align-self: end;
    color: #aab2cb;
    font-size: 1.05rem;
}

.perun-introduction-copy p + p {
    margin-top: 25px;
}

.perun-modules {
    padding: 130px 7vw;
    color: #182039;
    background: #eef1f8;
}

.perun-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(26, 33, 59, 0.15);
    border-left: 1px solid rgba(26, 33, 59, 0.15);
}

.perun-module-grid article {
    min-height: 310px;
    padding: 34px;
    border-right: 1px solid rgba(26, 33, 59, 0.15);
    border-bottom: 1px solid rgba(26, 33, 59, 0.15);
}

.perun-module-grid article > span {
    color: #6752bd;
    font-size: 0.68rem;
}

.perun-module-grid strong {
    display: block;
    margin: 90px 0 12px;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    font-weight: 400;
}

.perun-module-grid p {
    color: #687086;
}

.perun-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    padding: 130px 7vw;
    background:
        radial-gradient(circle at 85% 30%, rgba(75, 95, 203, 0.22), transparent 30%),
        #0c1020;
}

.platform-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-self: end;
}

.platform-status-grid article {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px 35px 5px 35px;
    color: #7f89a6;
    background: rgba(255,255,255,.035);
}

.platform-status-grid article.platform-active {
    color: white;
    border-color: rgba(72, 210, 196, 0.4);
    background: linear-gradient(145deg, rgba(72,210,196,.13), rgba(103,82,189,.15));
}

.platform-status-grid span {
    color: #48d2c4;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

@media (max-width: 900px) {
    .main-landing-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .main-landing-header nav {
        flex-wrap: wrap;
    }

    .perun-page-hero,
    .perun-introduction,
    .perun-platforms {
        grid-template-columns: 1fr;
    }

    .perun-hero-phone {
        margin-top: 60px;
    }

    .perun-module-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .main-landing-header nav {
        gap: 14px;
    }

    .main-landing-header nav a {
        font-size: 0.62rem;
    }

    .perun-page-hero {
        padding: 120px 22px 60px;
    }

    .perun-page-copy h1 {
        font-size: 3.8rem;
    }

    .perun-hero-phone {
        min-height: 570px;
    }

    .perun-introduction,
    .perun-modules,
    .perun-platforms {
        padding: 90px 22px;
    }

    .perun-module-grid,
    .platform-status-grid {
        grid-template-columns: 1fr;
    }
}

/* MIERZWA_PERUN_PAGE_END */

/* MIERZWA_3D_ANIMATION_PAGE_START */

/* Filmy w kartach portfolio zachowują się jak obrazy. */

.work > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-video::after {
    content: "MOTION";
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 18px;
    padding: 7px 11px;
    border-radius: 100px;
    color: #21183e;
    background: #f5c86b;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

/* Zwiastun na stronie dziecięcej. */

.kids-trailer {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 7vw;
    align-items: center;
    padding: 120px 6vw;
    color: #3c3976;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 205, 105, 0.55), transparent 28%),
        linear-gradient(145deg, #fff0cb, #eadcff);
}

.kids-trailer .small-label {
    color: #d64d73;
}

.kids-trailer h2 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.kids-trailer-copy > p:last-child {
    color: #67648c;
}

.kids-trailer-video {
    padding: 13px;
    border-radius: 8px 45px 8px 45px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 30px 80px rgba(85, 61, 137, 0.2);
}

.kids-trailer-video video {
    aspect-ratio: 16 / 9;
    border-radius: 5px 35px 5px 35px;
    background: #1a1533;
    object-fit: cover;
}

/* Podstrona Animacje 3D. */

.page-3d-animation {
    background: #151126;
}

.animation-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    color: white;
    overflow: hidden;
}

.animation-hero > video,
.animation-hero-overlay {
    position: absolute;
    inset: 0;
    height: 112%;
}

.animation-hero > video {
    top: -6%;
    object-fit: cover;
}

.animation-hero-overlay {
    background:
        linear-gradient(95deg, rgba(20, 13, 45, .9), rgba(20, 13, 45, .18) 72%),
        linear-gradient(0deg, rgba(20, 13, 45, .8), transparent 52%);
}

.animation-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 160px 7vw 11vh;
}

.animation-hero .small-label {
    color: #f5c86b;
}

.animation-hero h1 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(4rem, 8.5vw, 9rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.055em;
}

.animation-hero h1 span,
.animation-hero h1 em {
    display: block;
}

.animation-hero h1 em {
    color: #f5c86b;
    font-weight: inherit;
}

.animation-hero-copy > p:not(.small-label) {
    max-width: 660px;
    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
}

.animated-logos-section {
    padding: 130px 7vw;
    color: #eeeaf8;
    background:
        radial-gradient(circle at 90% 10%, rgba(98, 73, 175, .23), transparent 28%),
        #171329;
}

.animated-logos-section .small-label {
    color: #f5c86b;
}

.animation-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.animation-logo-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px 38px 5px 38px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
}

.animation-media {
    height: 330px;
    background: #08070e;
}

.animation-media video,
.animation-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.animation-card-copy {
    padding: 28px;
}

.animation-card-copy > span {
    color: #f5c86b;
    font-size: .66rem;
}

.animation-card-copy h3 {
    margin: 17px 0 10px;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    font-weight: 400;
    text-transform: capitalize;
}

.animation-card-copy p {
    color: #a69ebd;
}

.motion-section,
.logo-scifi-section {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 7vw;
    align-items: center;
    padding: 130px 7vw;
}

.motion-section {
    color: #22213b;
    background: #ece9e1;
}

.motion-section .small-label {
    color: #6852aa;
}

.motion-copy h2,
.logo-scifi-copy h2 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}

.motion-copy > p:last-child {
    color: #66667b;
}

.motion-video,
.logo-scifi-video {
    padding: 12px;
    border-radius: 5px 40px 5px 40px;
    background: rgba(255,255,255,.45);
    box-shadow: 0 30px 80px rgba(33, 27, 59, .18);
}

.motion-video video,
.logo-scifi-video video {
    aspect-ratio: 16 / 9;
    border-radius: 3px 31px 3px 31px;
    background: #08070e;
    object-fit: contain;
}

.logo-scifi-section {
    grid-template-columns: 1.3fr .7fr;
    color: white;
    background:
        radial-gradient(circle at 15% 50%, rgba(88, 67, 173, .25), transparent 35%),
        #0d0b18;
}

.logo-scifi-section .small-label {
    color: #f5c86b;
}

@media (max-width: 900px) {
    .kids-trailer,
    .motion-section,
    .logo-scifi-section {
        grid-template-columns: 1fr;
    }

    .animation-logo-grid {
        grid-template-columns: 1fr;
    }

    .logo-scifi-copy {
        grid-row: 1;
    }
}

@media (max-width: 600px) {
    .kids-trailer,
    .animated-logos-section,
    .motion-section,
    .logo-scifi-section {
        padding: 90px 22px;
    }

    .animation-hero-copy {
        padding: 140px 22px 80px;
    }

    .animation-hero h1 {
        font-size: 3.7rem;
    }

    .animation-media {
        height: 270px;
    }
}

/* MIERZWA_3D_ANIMATION_PAGE_END */

/* MIERZWA_REAL_ANIMATIONS_START */

.work > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-video::after {
    content: "MOTION";
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    padding: 7px 11px;
    border-radius: 100px;
    color: #21183e;
    background: #f5c86b;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.kids-film-trailer {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 7vw;
    align-items: center;
    padding: 120px 6vw;
    color: #3e3973;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,205,105,.55), transparent 28%),
        linear-gradient(145deg, #fff0ca, #eadcff);
}

.kids-film-trailer .small-label {
    color: #d64d73;
}

.kids-film-trailer h2 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.kids-film-copy > p:last-child {
    color: #69638d;
}

.kids-film-player {
    padding: 12px;
    border-radius: 8px 45px 8px 45px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 30px 80px rgba(85,61,137,.2);
}

.kids-film-player video {
    aspect-ratio: 16 / 9;
    border-radius: 5px 35px 5px 35px;
    background: #17132e;
    object-fit: cover;
}

.page-animation {
    background: #121020;
}

.animation-page-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    color: white;
    overflow: hidden;
}

.animation-page-hero > video,
.animation-page-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 108%;
}

.animation-page-hero > video {
    top: -4%;
    object-fit: cover;
}

.animation-page-overlay {
    background:
        linear-gradient(95deg, rgba(17,12,40,.9), rgba(17,12,40,.18) 70%),
        linear-gradient(0deg, rgba(17,12,40,.82), transparent 54%);
}

.animation-page-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    padding: 160px 7vw 11vh;
}

.animation-page-hero .small-label,
.animation-heading .small-label,
.tower-motion-section .small-label {
    color: #f5c86b;
}

.animation-page-hero h1 {
    margin: 0 0 30px;
    font-family: Georgia, serif;
    font-size: clamp(4rem, 9vw, 9rem);
    font-weight: 400;
    line-height: .86;
    letter-spacing: -.055em;
}

.animation-page-hero h1 span,
.animation-page-hero h1 em {
    display: block;
}

.animation-page-hero h1 em {
    color: #f5c86b;
    font-weight: inherit;
}

.animation-page-hero-copy > p:not(.small-label) {
    max-width: 650px;
    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
}

.animation-background-project {
    position: relative;
    min-height: 100vh;
    color: white;
    background: #05050a;
    overflow: hidden;
}

.animation-background-video {
    position: absolute;
    inset: 0;
}

.animation-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animation-background-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,6,16,.86), transparent 65%),
        linear-gradient(0deg, rgba(7,6,16,.75), transparent 55%);
}

.animation-background-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 17vh 7vw;
}

.animation-background-copy .small-label {
    color: #f5c86b;
}

.animation-background-copy h2,
.animation-heading h2,
.tower-motion-copy h2 {
    margin: 0 0 28px;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 5.4vw, 5.8rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}

.animation-background-copy > p:last-child {
    color: rgba(255,255,255,.7);
}

.animation-experiments,
.animated-logo-section {
    padding: 130px 7vw;
}

.animation-experiments {
    color: #211f38;
    background: #ece9e1;
}

.animated-logo-section {
    color: white;
    background:
        radial-gradient(circle at 90% 10%, rgba(100,77,185,.25), transparent 30%),
        #171329;
}

.animation-heading {
    max-width: 950px;
    margin-bottom: 65px;
}

.experiment-grid,
.animated-logo-grid {
    display: grid;
    gap: 22px;
}

.experiment-grid {
    grid-template-columns: 1fr 1fr;
}

.animated-logo-grid {
    grid-template-columns: repeat(3, 1fr);
}

.experiment-grid article,
.animated-logo-grid article {
    border-radius: 5px 38px 5px 38px;
    overflow: hidden;
}

.experiment-grid article {
    background: white;
    box-shadow: 0 25px 60px rgba(34,28,63,.15);
}

.animated-logo-grid article {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
}

.experiment-grid video,
.animated-logo-grid video {
    width: 100%;
    height: 340px;
    background: #05050a;
    object-fit: contain;
}

.experiment-grid article > div,
.animated-logo-grid article > div {
    padding: 25px;
}

.experiment-grid span,
.animated-logo-grid span {
    color: #8a64bd;
    font-size: .66rem;
}

.animated-logo-grid span {
    color: #f5c86b;
}

.experiment-grid h3,
.animated-logo-grid h3 {
    margin: 10px 0 0;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.tower-motion-section {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 7vw;
    align-items: center;
    padding: 130px 7vw;
    color: white;
    background:
        radial-gradient(circle at 85% 20%, rgba(77,61,159,.25), transparent 30%),
        #0d0b18;
}

.tower-motion-copy > p:last-child {
    color: #a9a1bb;
}

.tower-motion-player {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px 40px 5px 40px;
    background: rgba(255,255,255,.04);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.tower-motion-player video {
    aspect-ratio: 16 / 9;
    border-radius: 3px 31px 3px 31px;
    background: #05050a;
    object-fit: contain;
}

@media (max-width: 900px) {
    .kids-film-trailer,
    .tower-motion-section {
        grid-template-columns: 1fr;
    }

    .animated-logo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .kids-film-trailer,
    .animation-experiments,
    .animated-logo-section,
    .tower-motion-section {
        padding: 90px 22px;
    }

    .animation-page-hero-copy {
        padding: 140px 22px 80px;
    }

    .animation-page-hero h1 {
        font-size: 3.8rem;
    }

    .experiment-grid {
        grid-template-columns: 1fr;
    }

    .experiment-grid video,
    .animated-logo-grid video {
        height: 270px;
    }
}

/* MIERZWA_REAL_ANIMATIONS_END */

/* MIERZWA_UNIVERSAL_HEADER_START */

/* =========================================================
   UNIWERSALNE MENU MIERZWA
   Jeden komponent HTML dla wszystkich podstron
   ========================================================= */

.header-mount {
    position: relative;
    z-index: 5000;
}

.universal-header {
    position: fixed;
    z-index: 5000;
    top: 5px;
    right: 0;
    left: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    color: white;
    transition:
        min-height 0.3s ease,
        color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.universal-header.scrolled {
    min-height: 68px;
    color: #1c2138;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 12px 40px rgba(20, 24, 48, 0.1);
    backdrop-filter: blur(20px) saturate(1.3);
}

.universal-logo {
    position: relative;
    z-index: 5002;
    flex-shrink: 0;
}

.universal-logo strong {
    letter-spacing: 0.14em;
}

.current-section-name {
    min-width: 45px;
    color: #f5c86b;
    transition: color 0.3s ease;
}

.universal-header.scrolled .current-section-name {
    color: #694ca7;
}

.universal-navigation {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
}

.universal-navigation > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 27px 0 23px;
    color: inherit;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.73;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.universal-navigation > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: #f5c86b;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.universal-navigation > a:hover,
.universal-navigation > a.is-active {
    opacity: 1;
}

.universal-navigation > a:hover::after,
.universal-navigation > a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.universal-header.scrolled .universal-navigation > a::after {
    background: #694ca7;
}

.menu-development-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #47dbc9;
    box-shadow: 0 0 10px rgba(71, 219, 201, 0.8);
    animation: menuDevelopmentPulse 2s ease-in-out infinite;
}

@keyframes menuDevelopmentPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.universal-lang-toggle {
    flex-shrink: 0;
}

.universal-menu-toggle {
    display: none;
    position: relative;
    z-index: 5002;
    width: 48px;
    height: 48px;
    padding: 13px;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.universal-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 7px 0;
    border-radius: 3px;
    background: currentColor;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-open .universal-menu-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.menu-open .universal-menu-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

/* Mierzwa 3D */

.page-3d .universal-header:not(.scrolled) {
    color: white;
}

.page-3d .universal-navigation > a::after {
    background: #f5c86b;
}

/* Animacje dla dzieci */

.page-kids .universal-header:not(.scrolled) {
    color: #44326f;
}

.page-kids .universal-header:not(.scrolled) .current-section-name {
    color: white;
}

.page-kids .universal-navigation > a::after {
    background: #e95277;
}

.page-kids .universal-header.scrolled .current-section-name {
    color: #e95277;
}

/* Aplikacje i Perun */

.page-apps .universal-header:not(.scrolled),
.page-perun .universal-header:not(.scrolled) {
    color: white;
}

.page-apps .current-section-name,
.page-perun .current-section-name {
    color: #48d8c8;
}

.page-apps .universal-navigation > a::after,
.page-perun .universal-navigation > a::after {
    background: #48d8c8;
}

.page-apps .universal-header.scrolled,
.page-perun .universal-header.scrolled {
    color: white;
    background: rgba(7, 10, 20, 0.91);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.page-apps .universal-header.scrolled .current-section-name,
.page-perun .universal-header.scrolled .current-section-name {
    color: #48d8c8;
}

/* Strona główna */

.landing .universal-header:not(.scrolled) {
    color: #24203d;
    background: rgba(248, 243, 234, 0.78);
    backdrop-filter: blur(14px);
}

.landing .universal-header .current-section-name {
    color: #704cae;
}

.landing-main {
    padding-top: 135px;
}

/* Menu mobilne */

@media (max-width: 1050px) {
    .universal-menu-toggle {
        display: block;
    }

    .universal-navigation {
        position: fixed;
        z-index: 5001;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 95px 25px 50px;
        color: white;
        background:
            radial-gradient(circle at 20% 20%, rgba(111, 77, 174, 0.45), transparent 35%),
            rgba(17, 14, 35, 0.985);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-25px);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.35s cubic-bezier(.2, .7, .2, 1);
    }

    .menu-open .universal-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .universal-navigation > a {
        min-width: min(360px, 85vw);
        justify-content: center;
        padding: 13px 20px;
        font-family: Georgia, serif;
        font-size: clamp(1.35rem, 5vw, 2rem);
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
    }

    .universal-navigation > a::after {
        right: 30%;
        bottom: 7px;
        left: 30%;
    }

    .universal-lang-toggle {
        margin-top: 20px;
        color: white;
    }

    .universal-header.scrolled .universal-menu-toggle {
        color: inherit;
    }

    .menu-open .universal-header,
    .menu-open .universal-header.scrolled {
        color: white;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
}

@media (max-width: 600px) {
    .universal-header {
        min-height: 66px;
        padding: 0 20px;
    }

    .universal-header.scrolled {
        min-height: 62px;
    }

    .universal-logo strong {
        font-size: 0.95rem;
    }

    .current-section-name {
        font-size: 0.58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-development-dot {
        animation: none;
    }
}

/* MIERZWA_UNIVERSAL_HEADER_END */

/* MIERZWA_3D_ANIMATION_CSS_START */

/* =========================================================
   ANIMACJA 3D — SHOWREEL
   ========================================================= */

.animation-showreel {
    position: relative;
    padding: 135px 6vw;
    color: white;
    background:
        radial-gradient(circle at 10% 15%, rgba(213, 97, 102, 0.28), transparent 27%),
        radial-gradient(circle at 90% 80%, rgba(61, 183, 179, 0.2), transparent 30%),
        linear-gradient(145deg, #241844, #472760 55%, #223e56);
    overflow: hidden;
}

.animation-showreel::before {
    content: "";
    position: absolute;
    top: 70px;
    right: -130px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(245, 200, 107, 0.16);
    border-radius: 50%;
}

.animation-showreel-heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8vw;
    align-items: end;
    max-width: 1450px;
    margin: 0 auto 70px;
}

.animation-showreel .small-label {
    color: #f5c86b;
}

.animation-showreel h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 6vw, 6.4rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.animation-showreel-description {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
}

.animation-showreel-description p + p {
    margin-top: 22px;
}

.animation-showreel-frame {
    position: relative;
    z-index: 2;
    max-width: 1450px;
    margin: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px 48px 5px 48px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 45px 100px rgba(10, 5, 28, 0.5),
        0 15px 35px rgba(10, 5, 28, 0.26);
    backdrop-filter: blur(15px);
}

.animation-showreel-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px 38px 3px 38px;
    background: #090711;
    object-fit: cover;
}

.animation-film-label {
    position: absolute;
    z-index: 3;
    right: 35px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 12px 16px;
    border-radius: 4px;
    color: white;
    background: rgba(15, 10, 31, 0.72);
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.animation-film-label span {
    color: #f5c86b;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.animation-film-label strong {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.animation-capabilities {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 55px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.animation-capabilities article {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.17);
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.animation-capabilities span {
    color: #f5c86b;
    font-size: 0.63rem;
}

.animation-capabilities strong {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
}

@media (max-width: 850px) {
    .animation-showreel-heading {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .animation-capabilities {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .animation-showreel {
        padding: 95px 22px;
    }

    .animation-showreel-frame {
        padding: 6px;
        border-radius: 3px 25px 3px 25px;
    }

    .animation-showreel-frame video {
        border-radius: 2px 19px 2px 19px;
    }

    .animation-film-label {
        display: none;
    }

    .animation-capabilities {
        grid-template-columns: 1fr;
    }
}

/* MIERZWA_3D_ANIMATION_CSS_END */

/* MIERZWA_GRID_LOGO_CSS_START */

/* =========================================================
   GRID — AUTOMATYCZNY FILM NA CAŁĄ SZEROKOŚĆ
   ========================================================= */

.grid-fullwidth-showcase {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin-top: 90px;
    margin-left: calc(50% - 50vw);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: white;
    background: #070711;
}

.grid-background-video {
    position: absolute;
    inset: -7% 0;
    width: 100%;
    height: 114%;
    object-fit: cover;
    pointer-events: none;
}

.grid-video-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 6, 19, 0.9),
            rgba(8, 6, 19, 0.2) 68%
        ),
        linear-gradient(
            0deg,
            rgba(8, 6, 19, 0.9),
            transparent 55%
        );
}

.grid-video-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 10vh 7vw;
}

.grid-video-content .small-label {
    color: #f5c86b;
}

.grid-video-content h3 {
    max-width: 800px;
    margin: 0 0 25px;
    font-family: Georgia, serif;
    font-size: clamp(3.5rem, 7.5vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.grid-video-content > p:not(.small-label) {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
}

.grid-autoplay-label {
    display: inline-flex;
    margin-top: 25px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(8, 6, 19, 0.35);
    backdrop-filter: blur(10px);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

/* =========================================================
   OSOBNA SEKCJA ANIMOWANEGO LOGO MIERZWA
   ========================================================= */

.animated-logo-showcase {
    position: relative;
    max-width: 1450px;
    margin: 0 auto;
    padding: 135px 0 75px;
}

.animated-logo-showcase::before {
    content: "LOGO";
    position: absolute;
    z-index: 0;
    top: 45px;
    right: -20px;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(7rem, 16vw, 15rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    pointer-events: none;
}

.animated-logo-heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    margin-bottom: 55px;
}

.animated-logo-number {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 200, 107, 0.4);
    border-radius: 50%;
    color: #f5c86b;
    font-size: 0.7rem;
    font-weight: 900;
}

.animated-logo-heading .small-label {
    margin-bottom: 13px;
    color: #f5c86b;
}

.animated-logo-heading h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 5.5vw, 5.7rem);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: -0.045em;
}

.animated-logo-heading h3 span,
.animated-logo-heading h3 strong {
    display: block;
}

.animated-logo-heading h3 strong {
    color: #f5c86b;
    font-weight: inherit;
    letter-spacing: 0.035em;
}

.animated-logo-badge {
    width: 105px;
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 200, 107, 0.4);
    border-radius: 5px 30px 5px 30px;
    color: #f5c86b;
    background: rgba(245, 200, 107, 0.07);
    transform: rotate(4deg);
}

.animated-logo-badge span {
    font-family: Georgia, serif;
    font-size: 2.2rem;
}

.animated-logo-badge strong {
    font-size: 0.63rem;
    letter-spacing: 0.15em;
}

.animated-logo-player {
    position: relative;
    z-index: 2;
    padding: 11px;
    border: 1px solid rgba(245, 200, 107, 0.25);
    border-radius: 5px 48px 5px 48px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 100px rgba(8, 4, 24, 0.45);
}

.animated-logo-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 3px 38px 3px 38px;
    background: #05050a;
    object-fit: cover;
}

.animated-logo-corner-label {
    position: absolute;
    z-index: 3;
    right: 35px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 12px 16px;
    border: 1px solid rgba(245, 200, 107, 0.25);
    border-radius: 4px;
    background: rgba(8, 6, 18, 0.78);
    backdrop-filter: blur(13px);
    pointer-events: none;
}

.animated-logo-corner-label span {
    color: #f5c86b;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.animated-logo-corner-label strong {
    color: white;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
}

.animated-logo-description {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    max-width: 1050px;
    margin: 45px auto 0;
    color: rgba(255, 255, 255, 0.68);
}

.animated-logo-description p {
    margin: 0;
}

/* Umiejscowienie listy po sekcji logo. */

.animation-capabilities {
    margin-top: 65px;
}

@media (max-width: 800px) {
    .grid-fullwidth-showcase {
        min-height: 76vh;
    }

    .animated-logo-heading {
        grid-template-columns: auto 1fr;
    }

    .animated-logo-badge {
        display: none;
    }

    .animated-logo-description {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .grid-fullwidth-showcase {
        min-height: 70vh;
        margin-top: 60px;
    }

    .grid-video-content {
        padding: 85px 22px 55px;
    }

    .grid-video-content h3 {
        font-size: 3.7rem;
    }

    .animated-logo-showcase {
        padding: 95px 0 55px;
    }

    .animated-logo-heading {
        gap: 17px;
    }

    .animated-logo-number {
        width: 43px;
        height: 43px;
    }

    .animated-logo-player {
        padding: 6px;
        border-radius: 3px 25px 3px 25px;
    }

    .animated-logo-player video {
        border-radius: 2px 19px 2px 19px;
    }

    .animated-logo-corner-label {
        display: none;
    }
}

/* MIERZWA_GRID_LOGO_CSS_END */

/* THREE_ANIMATED_LOGOS_CSS_START */
.logo-projects {
    width: min(1500px, calc(100% - 48px));
    margin: clamp(90px, 12vw, 170px) auto;
}

.logo-projects__header {
    max-width: 900px;
    margin-bottom: clamp(30px, 5vw, 65px);
}

.logo-projects__header h2 {
    margin: 10px 0 18px;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: .88;
    letter-spacing: -.065em;
}

.logo-projects__header p {
    max-width: 680px;
    color: #999;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.logo-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 30px);
}

.logo-project {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 25px;
    background: #080808;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

.logo-project__title {
    padding: 20px 22px 18px;
}

.logo-project__title span {
    color: #858585;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.logo-project__title h3 {
    margin: 7px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.logo-project video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #000;
}

@media (max-width: 900px) {
    .logo-projects {
        width: min(720px, calc(100% - 28px));
    }

    .logo-projects__grid {
        grid-template-columns: 1fr;
    }
}
/* THREE_ANIMATED_LOGOS_CSS_END */

/* ANIMATION_QUICK_NAV_CSS_START */
.animation-quick-nav {
    position: sticky;
    top: 78px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1500px, calc(100% - 48px));
    margin: 35px auto;
    padding: 12px 15px 12px 20px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(7,7,7,.8);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.animation-quick-nav > span {
    color: #888;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.animation-quick-nav__links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.animation-quick-nav__links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ddd;
    font-size: .82rem;
    text-decoration: none;
    transition: .25s ease;
}

.animation-quick-nav__links a:hover {
    color: #050505;
    background: #fff;
    transform: translateY(-2px);
}

.logo-project video {
    transition: transform .55s ease, filter .35s ease;
}

.logo-project:hover video {
    transform: scale(1.025);
    filter: brightness(1.08) contrast(1.04);
}

@media (max-width: 720px) {
    .animation-quick-nav {
        top: 68px;
        width: calc(100% - 20px);
        padding: 9px;
        border-radius: 20px;
    }

    .animation-quick-nav > span {
        display: none;
    }

    .animation-quick-nav__links {
        width: 100%;
        justify-content: space-between;
    }

    .animation-quick-nav__links a {
        padding: 9px 8px;
        font-size: .71rem;
    }
}
/* ANIMATION_QUICK_NAV_CSS_END */

/* MIERZWA_CONTACT_FORM_CSS_START */
.contact-page {
    min-height: 100vh;
    padding: clamp(125px, 16vw, 210px) 24px 100px;
    background:
        radial-gradient(circle at 78% 25%, rgba(255,255,255,.07), transparent 27%),
        #070707;
}

.contact-hero,
.contact-layout {
    width: min(1320px, 100%);
    margin-inline: auto;
}

.contact-hero {
    margin-bottom: clamp(55px, 8vw, 105px);
}

.contact-hero h1 {
    max-width: 1100px;
    margin: 12px 0 25px;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: .82;
    letter-spacing: -.075em;
}

.contact-hero > p {
    max-width: 720px;
    color: #a8a8a8;
    font-size: clamp(1.05rem, 2vw, 1.42rem);
    line-height: 1.55;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(480px, 1.35fr);
    gap: clamp(40px, 8vw, 120px);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 125px;
}

.contact-info__label,
.contact-location span {
    display: block;
    margin-bottom: 14px;
    color: #777;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.contact-info h2 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.045em;
}

.contact-info p {
    max-width: 480px;
    color: #999;
    line-height: 1.7;
}

.contact-location {
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.contact-location strong {
    font-size: 1.05rem;
}

.contact-form-card {
    padding: clamp(24px, 4vw, 55px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 30px;
    background: rgba(255,255,255,.035);
    box-shadow: 0 35px 100px rgba(0,0,0,.32);
    backdrop-filter: blur(18px);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: grid;
    gap: 10px;
}

.contact-form label > span {
    color: #aaa;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    outline: 0;
    background: rgba(0,0,0,.32);
    color: #fff;
    font: inherit;
    transition: border-color .25s ease, background .25s ease;
}

.contact-form input {
    min-height: 57px;
    padding: 0 17px;
}

.contact-form textarea {
    min-height: 210px;
    padding: 17px;
    resize: vertical;
    line-height: 1.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.055);
}

.contact-form__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 5px;
}

.contact-form__bottom p {
    max-width: 390px;
    margin: 0;
    color: #777;
    font-size: .78rem;
    line-height: 1.5;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 55px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #050505;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255,255,255,.15);
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-message {
    display: grid;
    gap: 5px;
    margin-bottom: 28px;
    padding: 17px 19px;
    border-radius: 15px;
}

.form-message--success {
    border: 1px solid rgba(98,255,166,.32);
    background: rgba(50,190,115,.11);
}

.form-message--error {
    border: 1px solid rgba(255,100,100,.34);
    background: rgba(210,50,50,.12);
}

.form-message span {
    color: #aaa;
    font-size: .9rem;
}

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }
}

@media (max-width: 600px) {
    .contact-page {
        padding-inline: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        border-radius: 22px;
    }

    .contact-form__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form button {
        width: 100%;
    }
}
/* MIERZWA_CONTACT_FORM_CSS_END */

/* KIDS_MEMORY_GAME_CSS_START */
.kids-game {
    position: relative;
    display: grid;
    grid-template-columns: minmax(270px, .75fr) minmax(500px, 1.25fr);
    gap: clamp(45px, 8vw, 120px);
    align-items: center;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(80px, 10vw, 145px) 0;
}

.kids-game::before {
    position: absolute;
    z-index: -1;
    top: 10%;
    left: -12%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,193,73,.19);
    filter: blur(4px);
    content: "";
}

.kids-game__eyebrow {
    color: #e35c80;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .19em;
}

.kids-game__intro h2 {
    max-width: 620px;
    margin: 15px 0 22px;
    color: #443675;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 6.4rem);
    line-height: .88;
    letter-spacing: -.055em;
}

.kids-game__intro > p {
    max-width: 540px;
    color: #655f78;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.65;
}

.kids-game__stats {
    display: flex;
    gap: 12px;
    margin: 32px 0 24px;
}

.kids-game__stats > div {
    display: grid;
    min-width: 104px;
    padding: 13px 18px;
    border: 1px solid rgba(74,56,120,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 12px 35px rgba(112,83,149,.08);
}

.kids-game__stats span {
    color: #8d829f;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kids-game__stats strong {
    margin-top: 3px;
    color: #443675;
    font-size: 1.45rem;
}

.kids-game__stats b {
    font: inherit;
}

.kids-game__reset,
.memory-win button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 50px;
    padding: 0 21px;
    border: 0;
    border-radius: 999px;
    background: #5442ac;
    color: #fff;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 13px 30px rgba(84,66,172,.23);
    transition: transform .25s ease, box-shadow .25s ease;
}

.kids-game__reset:hover,
.memory-win button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(84,66,172,.32);
}

.memory-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: clamp(10px, 1.3vw, 18px);
    perspective: 1200px;
}

.memory-card {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 22px;
    outline: 0;
    background: transparent;
    cursor: pointer;
    aspect-ratio: .78;
    perspective: 900px;
}

.memory-card:focus-visible {
    box-shadow: 0 0 0 5px rgba(84,66,172,.3);
}

.memory-card__inner {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    transition: transform .58s cubic-bezier(.2,.75,.25,1);
}

.memory-card.is-flipped .memory-card__inner,
.memory-card.is-matched .memory-card__inner {
    transform: rotateY(180deg);
}

.memory-card__front,
.memory-card__back {
    position: absolute;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 5px solid rgba(255,255,255,.8);
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(90,65,125,.16);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.memory-card__back {
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,.35), transparent 17%),
        linear-gradient(145deg, #ff879f, #a976df);
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 5vw, 4.4rem);
    text-shadow: 0 4px 15px rgba(83,49,116,.2);
}

.memory-card:nth-child(2n) .memory-card__back {
    background: linear-gradient(145deg, #ffc75f, #ff7fa6);
}

.memory-card:nth-child(3n) .memory-card__back {
    background: linear-gradient(145deg, #6cd9ce, #7c8ee7);
}

.memory-card__front {
    background: #fff;
    transform: rotateY(180deg);
}

.memory-card__front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-card.is-matched {
    animation: memory-match .65s ease;
    cursor: default;
}

.memory-card.is-matched .memory-card__front {
    border-color: #70d8a7;
    box-shadow: 0 13px 35px rgba(63,187,129,.25);
}

.memory-win {
    position: absolute;
    z-index: 8;
    inset: 8%;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 25px;
    border: 4px solid rgba(255,255,255,.82);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,202,87,.97), rgba(255,120,165,.97));
    box-shadow: 0 30px 80px rgba(80,51,110,.3);
    color: #fff;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(.75) rotate(-3deg);
    transition: opacity .4s ease, transform .55s cubic-bezier(.2,1.3,.3,1);
}

.memory-win.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0);
}

.memory-win__stars {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: .2em;
    animation: memory-stars 1.2s ease-in-out infinite alternate;
}

.memory-win strong {
    max-width: 420px;
    margin-bottom: 22px;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: 1;
}

.memory-win button {
    background: #fff;
    color: #55429a;
}

.memory-confetti {
    position: fixed;
    z-index: 9999;
    top: -20px;
    width: 12px;
    height: 20px;
    border-radius: 3px;
    pointer-events: none;
    animation: memory-confetti-fall var(--fall-time) linear forwards;
}

@keyframes memory-match {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08) rotate(2deg); }
}

@keyframes memory-stars {
    to { transform: translateY(-5px) scale(1.05); }
}

@keyframes memory-confetti-fall {
    to {
        transform:
            translate3d(var(--fall-x), 110vh, 0)
            rotate(var(--fall-rotate));
        opacity: .3;
    }
}

@media (max-width: 900px) {
    .kids-game {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 28px));
    }
}

@media (max-width: 520px) {
    .memory-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
    }

    .memory-card {
        border-radius: 13px;
    }

    .memory-card__front,
    .memory-card__back {
        border-width: 3px;
        border-radius: 13px;
    }

    .kids-game__intro h2 {
        font-size: clamp(3.1rem, 16vw, 5rem);
    }

    .memory-win {
        inset: 3%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .memory-card__inner,
    .memory-win {
        transition-duration: .01ms;
    }

    .memory-confetti {
        display: none;
    }
}
/* KIDS_MEMORY_GAME_CSS_END */
