.realizacje-hero-banner {
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realizacje-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.realizacje-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-direction: row;
}

.realizacje-hero-title {
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    text-align: center;
}

.realizacje-title-decorator {
    width: 100px;
    height: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

.realizacje-separator-bar {
    width: 100%;
    height: 2px;
    background-color: #E6E0DA;
    margin: 0;
}

.realizacje-section {
    background-color: #ffffff;
    padding: 60px 0;
    width: 100%;
}

.realizacje-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.realizacje-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.realizacja-item {
    width: 100%;
    opacity: 1;
    transition: all 0.5s ease;
}

.realizacja-item.realizacja-hidden {
    display: none;
}

.realizacja-item.realizacja-showing {
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.realizacja-frame {
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    overflow: visible;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.realizacja-frame:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.realizacja-header {
    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.realizacja-title {
    background-color: #E6E0DA;
    color: #816B63;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 15px 40px;
    border-radius: 50px;
    max-width: 700px;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.realizacja-content {
    display: flex;
    gap: 0;
    padding: 45px 30px 130px 30px;
    align-items: stretch;
}

.realizacja-images {
    flex: 0 0 500px;
    position: relative;
    display: flex;
    align-items: center;
    align-items: flex-start;
    justify-content: flex-start;
}

.image-przed-wrapper {
    position: relative;
    z-index: 2;
}

.image-przed {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-przed:hover {
    transform: scale(1.02);
}

.image-po-wrapper {
    position: absolute;
    z-index: 2;
    top: 100px;
    left: 150px;
}

.image-po {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-po:hover {
    transform: scale(1.02);
}

.label-przed {
    position: absolute;
    top: 10px;
    left: 50px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 15px;
    text-shadow: none;
    z-index: 3;
}

.label-po {
    position: absolute;
    bottom: 20px;
    right: 0;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 15px;
    text-shadow: none;
    z-index: 2;
}

.realizacja-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.realizacja-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    flex: 1;
}

.realizacja-excerpt p {
    margin: 0 0 15px 0;
}

.realizacja-excerpt p:last-child {
    margin-bottom: 0;
}

.realizacja-button-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.realizacja-button {
    display: inline-block;
    background: #E6E0DA;
    color: #816B63;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.realizacja-button:hover {
    background: #d6cfc7;
    color: #6d5a52;
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.realizacja-button:active {
    transform: translateY(0);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.realizacja-button:focus {
    outline: 3px solid #816B63;
    outline-offset: 3px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(129, 107, 99, 0.3);
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.load-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E6E0DA;
    color: #816B63;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.load-more-button:hover {
    background: #d6cfc7;
    color: #6d5a52;
    transform: translateY(-3px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.load-more-button:active {
    transform: translateY(-1px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.25);
}

.load-more-button:focus {
    outline: 3px solid #816B63;
    outline-offset: 3px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(129, 107, 99, 0.3);
}

.load-more-arrow {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.load-more-button:hover .load-more-arrow {
    transform: translateY(2px);
}

.no-realizacje {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.realizacje-contact {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #E6E0DA;
}

.realizacja-single-hero {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realizacja-single-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.realizacja-single-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.realizacja-single-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.realizacja-single-decorator {
    width: 100px;
    height: 3px;
    background-color: #fff;
    display: block;
}

.realizacja-single-title {
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.realizacja-before-after-main {
    padding: 60px 0;
    background: #fff;
}

.before-after-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.twentytwenty-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.twentytwenty-container img {
    width: 100%;
    height: auto;
    display: block;
}

.twentytwenty-container-small {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.twentytwenty-container-small img {
    width: 100%;
    height: auto;
    display: block;
}

.twentytwenty-container-full {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.twentytwenty-container-full img {
    width: 100%;
    height: auto;
    display: block;
}

.before-after-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 100;
}

.label-before,
.label-after {
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.twentytwenty-handle {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    cursor: ew-resize;
}

.twentytwenty-handle:before,
.twentytwenty-handle:after {
    background: #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.twentytwenty-left-arrow,
.twentytwenty-right-arrow {
    border: 10px inset transparent;
}

.twentytwenty-left-arrow {
    border-right: 10px solid #fff;
}

.twentytwenty-right-arrow {
    border-left: 10px solid #fff;
}

.beer-ready .beer-reveal {
    opacity: 1;
    border-right: 3px solid white;
}

.beer-handle {
    background-color: white !important;
}

.realizacja-flexible-content {
    background: #fff;
}

.layout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.layout-image-text {
    background: #fff;
    border-top: 1px solid #E6E0DA;
}

.layout-image-text .layout-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.layout-image-text.image-right .layout-container {
    flex-direction: row-reverse;
}

.layout-image-text .image-column {
    flex: 0 0 45%;
}

.layout-image-text .text-column {
    flex: 1;
}

.layout-image-wrapper {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.layout-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.layout-image:hover {
    transform: scale(1.02);
}

.layout-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.layout-text-content p {
    margin-bottom: 20px;
}

.layout-text-content h2,
.layout-text-content h3,
.layout-text-content h4 {
    color: #816B63;
    font-weight: 600;
    margin: 30px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.layout-two-images-text {
    background: #f9f9f9;
    border-top: 1px solid #E6E0DA;
}

.layout-two-images-text .layout-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.layout-two-images-text.images-right .layout-container {
    flex-direction: row-reverse;
}

.layout-two-images-text .images-column {
    flex: 0 0 45%;
}

.layout-two-images-text .text-column {
    flex: 1;
}

.layout-text-only {
    background: #fff;
    border-top: 1px solid #E6E0DA;
}

.text-full-width {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.text-full-width p {
    margin-bottom: 20px;
}

.layout-image-only {
    background: #fff;
    border-top: 1px solid #E6E0DA;
    padding: 40px 0;
}

.single-image-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.single-image {
    width: 100%;
    height: auto;
    display: block;
}

.layout-two-images {
    background: #fff;
    border-top: 1px solid #E6E0DA;
    padding: 40px 0;
}

.realizacja-navigation {
    background: #E6E0DA;
    padding: 40px 0;
    margin-top: 20px;
    border-top: 1px solid #816B63;
    border-bottom: 1px solid #816B63;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #fff;
    color: #816B63;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background: #816B63;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-link:focus {
    outline: 3px solid #816B63;
    outline-offset: 2px;
}

.nav-arrow {
    font-size: 18px;
}

.nav-archive {
    background: #816B63;
    color: #fff;
}

.nav-archive:hover {
    background: #6d5a52;
}

@media (max-width: 1024px) {
    .realizacje-hero-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .realizacje-title-decorator {
        width: 80px;
    }

    .realizacija-title {
        font-size: 22px;
        max-width: 600px;
        padding: 12px 35px;
    }

    .realizacja-images {
        flex: 0 0 450px;
    }

    .realizacja-content {
        gap: 30px;
        padding: 40px 25px 25px 25px;
    }

    .realizacja-single-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .realizacja-single-decorator {
        width: 80px;
    }

    .layout-image-text .layout-container,
    .layout-two-images-text .layout-container {
        gap: 30px;
    }

    .layout-image-text .image-column,
    .layout-two-images-text .images-column {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    .image-po {
        left: -75px !important;
        top: 75px !important;
    }

    body .label-po {
        bottom: 20px;
        right: 0;
    }

    .realizacje-hero-banner {
        height: 350px;
    }

    .realizacje-hero-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .realizacje-title-container {
        gap: 20px;
    }

    .realizacje-title-decorator {
        width: 60px;
        height: 3px;
    }

    .realizacje-container {
        padding: 0 15px;
    }

    .realizacje-grid {
        gap: 50px;
    }

    .realizacja-title {
        font-size: 20px;
        letter-spacing: 1.5px;
        padding: 12px 30px;
        max-width: 500px;
    }

    .realizacja-header {
        top: -25px;
        padding: 0 15px;
    }

    .realizacja-content {
        flex-direction: column;
        gap: 100px;
        padding: 35px 20px 20px 20px;
    }

    .realizacja-images {
        flex: none;
        align-self: center;
        left: -75px !important;
    }

    .realizacja-description {
        flex: none;
        width: 100%;
        min-height: auto;
        text-align: center;
    }

    .realizacja-button-wrapper {
        justify-content: center;
        margin-top: 20px;
    }

    .image-przed,
    .image-po {
        width: 225px;
        height: 150px;
    }

    .image-po-wrapper {
        margin-left: 0px;
    }

    .load-more-button {
        width: 70px;
        height: 70px;
    }

    .load-more-arrow {
        width: 28px;
        height: 28px;
    }

    .mobile-menu-logo {
        margin-top: 30px;
    }

    .mobile-menu-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-logo img {
        height: 75px;
    }

    .realizacja-single-hero {
        height: 350px;
    }

    .realizacja-single-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .realizacja-single-title-wrapper {
        gap: 20px;
    }

    .realizacja-single-decorator {
        width: 60px;
        height: 2px;
    }

    .layout-image-text .layout-container,
    .layout-image-text.image-right .layout-container,
    .layout-two-images-text .layout-container,
    .layout-two-images-text.images-right .layout-container {
        flex-direction: column;
        gap: 30px;
    }

    .layout-image-text .image-column,
    .layout-image-text .text-column,
    .layout-two-images-text .images-column,
    .layout-two-images-text .text-column {
        flex: none;
        width: 100%;
    }

    .before-after-labels {
        padding: 0 15px;
    }

    .label-before,
    .label-after {
        font-size: 16px;
    }

    .nav-wrapper {
        gap: 15px;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body .realizacja-images {
        left: -45px !important;
    }

    .realizacje-hero-banner {
        height: 200px;
    }

    .realizacje-hero-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .realizacje-title-container {
        gap: 15px;
    }

    .realizacje-title-decorator {
        width: 40px;
        height: 2px;
    }

    .realizacja-title {
        font-size: 18px;
        letter-spacing: 1px;
        padding: 10px 25px;
        max-width: 90%;
    }

    .realizacja-header {
        top: -23px;
        padding: 0 10px;
    }

    .realizacja-content {
        padding: 30px 15px 15px 15px;
    }

    .image-przed,
    .image-po {
        width: 180px;
        height: 120px;
    }

    .image-po-wrapper {
        left: 90px;
        top: 50px;
    }

    .image-label {
        font-size: 11px;
        padding: 4px 8px;
    }

    .realizacja-excerpt {
        font-size: 15px;
    }

    .realizacja-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .load-more-button {
        width: 60px;
        height: 60px;
    }

    .load-more-arrow {
        width: 24px;
        height: 24px;
    }

    .realizacja-single-hero {
        height: 200px;
    }

    .realizacja-single-hero-content {
        padding: 0 20px;
    }

    .realizacja-single-title {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .realizacja-single-title-wrapper {
        gap: 15px;
    }

    .realizacja-single-decorator {
        width: 40px;
    }

    .realizacja-before-after-main {
        padding: 40px 0;
    }

    .layout-container {
        padding: 30px 15px;
    }

    .before-after-labels {
        top: 15px;
        padding: 0 10px;
    }

    .label-before,
    .label-after {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .layout-text-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .text-full-width {
        font-size: 15px;
        line-height: 1.7;
    }

    .realizacja-navigation {
        padding: 30px 10;
        margin-top: 40px;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .twentytwenty-handle {
        width: 40px;
        height: 40px;
    }

    .twentytwenty-left-arrow,
    .twentytwenty-right-arrow {
        border-width: 8px;
    }

    .twentytwenty-left-arrow {
        border-right-width: 8px;
    }

    .twentytwenty-right-arrow {
        border-left-width: 8px;
    }
}

@media (hover: hover) {
    .layout-image-wrapper:hover .layout-image {
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .realizacje-hero-title {
        text-shadow: none;
    }

    .realizacje-title-decorator {
        box-shadow: none;
    }

    .realizacja-item,
    .realizacja-frame,
    .image-przed,
    .image-po,
    .realizacja-button,
    .load-more-button,
    .load-more-arrow,
    .layout-image,
    .nav-link {
        transition: none;
    }

    .realizacja-item.realizacja-showing {
        animation: none;
    }

    .realizacja-frame:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .image-przed:hover,
    .image-po:hover,
    .layout-image:hover {
        transform: none;
    }

    .realizacja-button:hover,
    .load-more-button:hover,
    .nav-link:hover {
        transform: none;
    }

    .load-more-button:hover .load-more-arrow {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .realizacje-hero-title {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    }

    .realizacja-frame {
        border: 3px solid #000;
    }

    .realizacja-title {
        border: 2px solid #816B63;
    }

    .realizacja-button {
        border: 2px solid #816B63;
    }

    .load-more-button {
        border: 2px solid #816B63;
    }

    .image-label {
        background: rgba(0, 0, 0, 0.95);
        border: 1px solid #fff;
    }

    .realizacja-single-title {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    }

    .label-before,
    .label-after {
        background: rgba(0, 0, 0, 0.8);
        padding: 5px 10px;
        border-radius: 3px;
    }

    .twentytwenty-handle {
        border: 4px solid #000;
    }

    .nav-link {
        border: 2px solid #816B63;
    }
}

@media print {
    .realizacja-single-hero,
    .realizacja-navigation {
        display: none;
    }

    .twentytwenty-handle,
    .twentytwenty-overlay {
        display: none;
    }

    .twentytwenty-container img:last-child {
        display: none;
    }

    .before-after-labels {
        position: static;
        margin: 10px 0;
    }
}