/*--------------------------------------------------------------
# Main style & custom components
--------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    margin: 0;
    background: #fff;
    color: #231f20;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62857;
}

.container-big,
.container-mid {
    width: 100%;
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

.container-big {
    max-width: 1656px;
}

.container-mid {
    max-width: 1380px;
}


a {
    color: #231f20;
    background-color: transparent;
    transition: .2s ease-in-out;
}

a:active,
a:hover {
    color: #231f20;
    outline: 0;
    text-decoration: none;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

strong {
    font-weight: 400;
}

.btn-main {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: .75rem;
    letter-spacing: .4rem;
    text-transform: uppercase;
    color: #231f20;
    text-decoration: none;
    padding: .9rem 0;
    position: relative;
}

.btn-main::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #231f20;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1),
        letter-spacing .4s ease;
}

.btn-main:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.btn-main:hover {
    color: #231f20;
    letter-spacing: .52rem;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.mastheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
    background: transparent;
    padding: 1rem 0;
}

.mastheader .row {
    align-items: center;
}

.mastheader .mh-main {
    padding: 1.2rem 0;
}

.mastheader .logo img {
    max-height: 64px;
    width: auto;
    height: auto;
    display: block;
}

.mastheader .navbar>div ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mastheader .navbar>div ul li a {
    font-family: 'Playfair Display', serif;
    font-size: .75rem;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: .5rem;
    transition: opacity .2s ease-in-out;
}

.mastheader .navbar>div ul li a:hover {
    opacity: .6;
}

/*--------------------------------------------------------------
 # Welcome
--------------------------------------------------------------*/


.welcome-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.welcome-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    background: linear-gradient(to bottom, rgb(255 255 255 / 25%), rgba(255, 255, 255, 0));
    z-index: 3;
}

.welcome-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12rem;
    background: linear-gradient(to top, rgb(0 0 0 / 90%), rgb(255 255 255 / 0%));
    z-index: 3;
}


.welcome-inner {
    position: absolute;
    top: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 4;
    padding: 0 2rem;
    bottom: 7rem;
}

.welcome-title {
    font-size: 5.2rem;
    font-weight: 400;
    color: #fff;
}

.welcome-title span {
    display: block;
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 300;
}

.welcome-subtitle {
    font-size: .75rem;
    margin-bottom: 1rem;
    letter-spacing: .5rem;
    color: #ddd
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 3rem;
    transform: translateX(-50%);
    width: 32px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 4;
    animation: scrollGlow 3s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    animation: scrollMove 1.6s ease-in-out infinite;
}

@keyframes scrollMove {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    30% {
        opacity: 1;
        transform: translateY(12px);
    }

    60% {
        opacity: 1;
        transform: translateY(20px);
    }

    100% {
        opacity: 0;
        transform: translateY(28px);
    }
}

@keyframes scrollGlow {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

/*--------------------------------------------------------------
 # ABOUT
--------------------------------------------------------------*/


.about-heading {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-bg-typography {
    font-family: 'Playfair Display', serif;
    position: absolute;
    bottom: -10rem;
    left: 0;
    width: 200%;
    transform: translateY(-50%);
    font-size: 10rem;
    font-weight: 600;
    letter-spacing: .3rem;
    opacity: .03;
    color: #000;
    white-space: nowrap;
    z-index: 1;
    animation: aboutScroll 40s linear infinite;
}

@keyframes aboutScroll {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    100% {
        transform: translateY(-50%) translateX(-50%);
    }
}

.about-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease;
}

.about-inner.reveal {
    opacity: 1;
    transform: translateY(0);
}

.about-sub {
    font-size: 1rem;
    letter-spacing: .3rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1rem;
}

.about-main {
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    max-width: 45%;
    margin: 0 auto 3rem auto;
}

.about-ornament {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}

.about-ornament .line {
    width: 1px;
    height: 50px;
    background: #000;
    opacity: .6;
}

/*--------------------------------------------------------------
 # WIDGETS
--------------------------------------------------------------*/
.widgets-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10rem 0 10rem 0;
}

.widgets-top {
    text-align: center;
    margin-bottom: 6rem;
    margin-left: auto;
    margin-right: auto;
}

.widgets-pretitle {
    font-size: 1rem;
    letter-spacing: .3rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1rem;
}

.widgets-title {
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    max-width: 45%;
    margin: 0 auto 3rem auto;
}

.widgets-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 60%;
    font-weight: 300;
    margin: 0 auto;
}

.widgets-heroimg img {
    width: 100%;
    height: auto;
    margin: 4rem 0 6rem 0;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    padding: 0 4rem;
}

.widget-item {
    text-align: center
}

.widget-icon img {
    width: 46px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.widget-item h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.widget-item p {
    font-size: 1rem;
    font-weight: 300;
    color: #858585;
    line-height: 1.6;
}

/*--------------------------------------------------------------
 # ABOUT SPACE
--------------------------------------------------------------*/

.about-space {
    padding: 0 0;
    background: #f9f9f9;
}

.about-space .row {
    align-items: stretch;
    min-height: 70vh;
}

.about-space .row>div:first-child {
    padding: 10rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-space h3 {
    font-size: .9rem;
    letter-spacing: .35rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-space h2 {
    font-size: 2.6rem;
    line-height: 1.25;
    max-width: 90%;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.about-space p {
    font-size: 1rem;
    color: #555;
    max-width: 85%;
}

.about-space .row>div:nth-child(2) {
    background-size: cover;
    background-position: center;
    min-height: 60vh;
}

/*--------------------------------------------------------------
 # PORTFOLIO
--------------------------------------------------------------*/

.portfolio {
    padding: 10rem 0;
    background: #fff;
}

.portfolio-header {
    display: flex;
    gap: 40%;
    align-items: flex-end;
    margin-bottom: 6rem;
}

.portfolio-header h3 {
    font-size: .9rem;
    letter-spacing: .35rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1rem;
}

.portfolio-header h2 {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.portfolio-swiper {
    padding-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, 0));
}

.portfolio-item-content {
    position: absolute;
    display: block;
    left: 3rem;
    bottom: 3rem;
    z-index: 2;
    color: #fff;
    max-width: 75%;
    transform: translateY(0);
    transition: transform .45s ease;
}

.portfolio-item-content h4 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 500;
}

.portfolio-item-content p {
    position: absolute;
    left: 0;
    top: calc(100% + 1rem);

    width: 20vw;
    max-width: 520px;

    margin: 0;
    font-size: .85rem;
    line-height: 1.55;

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;
}



/* HOVER */
.portfolio-item:hover::after {
    opacity: .85;
}

.portfolio-item:hover .portfolio-item-content {
    transform: translateY(-8rem);
}

.portfolio-item:hover .portfolio-item-content p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/*--------------------------------------------------------------
 # PORTFOLIO – SWIPER ARROWS (INSIDE + WHITE CIRCLE)
--------------------------------------------------------------*/

.portfolio .portfolio-swiper {
    position: relative;
}

.portfolio .swiper-button-prev,
.portfolio .swiper-button-next {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    color: #231f20 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all .25s ease;
}

.portfolio .swiper-button-prev {
    left: 1.5rem;
}

.portfolio .swiper-button-next {
    right: 1.5rem;
}

.portfolio .swiper-button-prev::after,
.portfolio .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
    color: #231f20 !important;
}

/* hover */
.portfolio .swiper-button-prev:hover,
.portfolio .swiper-button-next:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}


/*--------------------------------------------------------------
 # PARALLAX CTA
--------------------------------------------------------------*/

.parallax {
    position: relative;
    padding: 14rem 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.parallax-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

.parallax-inner h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 400;
}

.parallax-inner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 3rem;
}

.parallax-inner .btn-main a {
    color: #fff;
}

.parallax-inner .btn-main::after {
    background: #fff
}

/*--------------------------------------------------------------
 # FOOTER
--------------------------------------------------------------*/

#footer-wrapper {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: 1rem;
    font-weight: 300;
}

/* === TOP FOOTER (widgets) === */

.footer-widget {
    padding: 10rem 0 5rem 0;
}

.fw-inner .row__first {
    align-items: flex-start;
}

/* logo */
.site-footer .widget_media_image img {
    max-width: 160px;
    height: auto;
}

/* widget spacing */
.site-footer .widget {
    margin-bottom: 0rem;
}

/* text */
.site-footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
}

/* links */
.site-footer a {
    color: #231f20;
    text-decoration: none;
    transition: opacity .2s ease;
}

.site-footer a:hover {
    opacity: .6;
}

/* section title */
.site-footer h2.wp-block-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#block-13 p,
#block-3 p,
#block-8 p {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #231f20;
}

#block-13 p,
#block-8 p {
    margin-top: 2rem
}

.footer-widget .row>*:nth-child(2) {
    border-right: 1px solid #eaeaea;
}

.footer-widget .row>*:nth-child(3) {
    padding-left: 6rem;
}

/* list */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    position: relative;
    padding-left: 1.2rem;
    margin: 0 0 1rem;
    color: #555;
}

.site-footer ul li::before {
    content: "\f111";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    font-size: .35rem;
    color: #999;
    position: absolute;
    left: 0;
    top: .55rem;
}

/* socials */
.site-footer #block-12 p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .15rem;
    text-transform: uppercase;
    color: #555;
}

/* === BOTTOM FOOTER === */

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding: 3rem 0;
    font-size: .75rem;
}

.fb-inner {
    align-items: center;
}

.footer-credits,
.footer-author {
    color: #666;
}

/* author */
.footer-author a {
    font-weight: 500;
}

/* scroll top */
.scroll-top {
    text-align: right;
}

.scroll-top a {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .7rem;
    letter-spacing: .3rem;
    text-transform: uppercase;
}

.scroll-top i {
    font-size: .9rem;
    transition: transform .25s ease;
}

.scroll-top a:hover i {
    transform: translateY(-4px);
}

/*--------------------------------------------------------------
 # SINGLE POST
--------------------------------------------------------------*/

.post-hero {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.post-hero--no-image {
    min-height: 32vh;
    background-color: #f9f9f9;
}

.post-hero--no-image .post-hero__title {
    color: #231f20;
}

.post-hero--no-image .post-hero__subtitle,
.post-hero--no-image .post-cat,
.post-hero--no-image .post-date {
    color: #666;
}

.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, .12) 40%,
            rgba(0, 0, 0, .72) 100%);
}

.post-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 5rem;
    text-align: center;
}

.post-hero--no-image .post-hero__content {
    padding-bottom: 3.5rem;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.post-cat {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .28rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    transition: color .2s ease;
}

.post-cat:hover {
    color: #fff;
}

.post-date {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    letter-spacing: .18rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.post-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.18;
    margin: 0 auto .8rem;
    max-width: 840px;
}

.post-hero__subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, .75);
    margin: 0;
    max-width: 640px;
}

/* --- post body --- */

.post-body {
    padding: 7rem 0 9rem;
}

.post-body__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.post-article .entry-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #2e2a2b;
}

.post-article .entry-content>p {
    margin-bottom: 1.6rem;
}

.post-article .entry-content h2 {
    font-size: 1.9rem;
    margin: 3rem 0 1rem;
}

.post-article .entry-content h3 {
    font-size: 1.4rem;
    margin: 2.4rem 0 .8rem;
}

.post-article .entry-content a {
    text-decoration: underline;
    text-decoration-color: rgba(35, 31, 32, .28);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease;
}

.post-article .entry-content a:hover {
    text-decoration-color: rgba(35, 31, 32, .75);
}

.post-article .entry-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2.5rem 0;
}

.post-article .entry-content blockquote {
    border-left: 2px solid #231f20;
    margin: 2.5rem 0;
    padding: .5rem 0 .5rem 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

/* --- prev/next navigation --- */

.post-nav {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding: 0;
}

.post-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    /* pionowa kreska między prev a next */
    background-image: linear-gradient(rgba(0, 0, 0, .07), rgba(0, 0, 0, .07));
    background-size: 1px 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    width: 50%;
    text-decoration: none;
    padding: 3.5rem 3rem;
    transition: background .3s ease;
}

.post-nav__item--prev {
    background: #f9f9f9;
}

.post-nav__item--next {
    align-items: flex-end;
    text-align: right;
    background: #fff;
}

.post-nav__label {
    font-family: 'Inter', sans-serif;
    font-size: .62rem;
    letter-spacing: .3rem;
    text-transform: uppercase;
    color: #aaa;
    transition: color .25s ease;
}

.post-nav__title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #231f20;
    line-height: 1.3;
    transition: color .25s ease, opacity .25s ease;
}

.post-nav__item:hover {
    background: #231f20;
}

.post-nav__item:hover .post-nav__label {
    color: rgba(255, 255, 255, .5);
}

.post-nav__item:hover .post-nav__title {
    color: #fff;
    opacity: 1;
}

/*--------------------------------------------------------------
 # PAGE TEMPLATE
--------------------------------------------------------------*/

.page-hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.page-hero--no-image {
    min-height: 0;
    background-color: #f9f9f9;
    align-items: center;
}

.page-hero--no-image .page-hero__content {
    padding: 14rem 0 5rem;
    text-align: center;
}

.page-hero--no-image .page-hero__titles {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.page-hero--no-image .page-hero__title {
    color: #231f20;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 400;
    font-family: 'Playfair Display', serif;
}

.page-hero--no-image .page-hero__subtitle {
    color: #999;
    font-size: .75rem;
    margin-bottom: 1rem;
    letter-spacing: .5rem;
    font-weight: 400;
    text-transform: uppercase;
    font-style: normal;
    font-family: 'Playfair Display', serif;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, .12) 35%,
            rgba(0, 0, 0, .65) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 5rem;
    text-align: center;
}

.page-hero__titles {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* subtitle (h3) nad h1 */
.page-hero__subtitle {
    order: -1;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .35rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin: 0 0 1rem;
}

.page-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
    margin: 0;
}

/* --- page body --- */

.page-body {
    padding: 7rem 0 9rem;
}

.page-body__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/*--------------------------------------------------------------
 # ENTRY CONTENT — page & single
--------------------------------------------------------------*/

.entry-content {
    font-size: 1rem;
    line-height: 1.82;
    color: #2e2a2b;
}

/* --- headings --- */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Playfair Display', serif;
    color: #231f20;
    line-height: 1.2;
    margin-top: 0;
}

.entry-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.entry-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-top: 3rem;
}

.entry-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: .75rem;
    padding-top: 2.2rem;
}

.entry-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .6rem;
    padding-top: 1.6rem;
}

.entry-content h5,
.entry-content h6 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .08rem;
    text-transform: uppercase;
    margin-bottom: .5rem;
    padding-top: 1.4rem;
}

/* pierwsze dziecko bez góry */
.entry-content>*:first-child {
    padding-top: 0;
    margin-top: 0;
}

/* --- paragrafy --- */

.entry-content p {
    margin-bottom: 1.2rem;
    font-size: .95rem;
    line-height: 1.75;
    color: #777;
}

/* --- linki w treści --- */

.entry-content a {
    color: #231f20;
    text-decoration: underline;
    text-decoration-color: rgba(35, 31, 32, .28);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease;
}

.entry-content a:hover {
    text-decoration-color: rgba(35, 31, 32, .75);
}

/* --- listy --- */

.entry-content ul,
.entry-content ol {
    padding-left: 0;
    margin: 0 0 1.8rem;
    list-style: none;
}

.entry-content ul li,
.entry-content ol li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .6rem;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* czarna kropka dla ul */
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #231f20;
}

/* numeracja ol */
.entry-content ol {
    counter-reset: ol-counter;
}

.entry-content ol li::before {
    counter-increment: ol-counter;
    content: counter(ol-counter) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #aaa;
    line-height: 1.82;
}

/* --- cytat --- */

.entry-content blockquote {
    border-left: 2px solid #231f20;
    margin: 2.5rem 0;
    padding: .5rem 0 .5rem 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

/* --- separator --- */

.entry-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, .1);
    margin: 3rem 0;
}

/* --- obrazki --- */

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2.5rem auto;
}

/* Gutenberg: block-image */
.entry-content .wp-block-image {
    margin: 2.5rem 0;
}

.entry-content .wp-block-image img {
    margin: 0;
    width: 100%;
    height: auto;
}

.entry-content .wp-block-image figcaption {
    font-size: .8rem;
    font-style: italic;
    color: #888;
    text-align: center;
    margin-top: .6rem;
}

/* Gutenberg: gallery */

.entry-content .wp-block-gallery .wp-block-image {
    margin: 0;
    overflow: hidden;
}

.entry-content .wp-block-gallery .wp-block-image img {
    transition: transform .4s ease;
}

.entry-content .wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.04);
}

/* --- tabela --- */

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: .95rem;
}

.entry-content table th {
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2rem;
    text-transform: uppercase;
    color: #231f20;
    text-align: left;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid #231f20;
}

.entry-content table td {
    padding: .9rem 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    color: #444;
    vertical-align: top;
}

.entry-content table tbody tr:hover td {
    background: #f9f9f9;
}

/*--------------------------------------------------------------
 # FORMULARZE (CF7 + natywne)
--------------------------------------------------------------*/

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content input[type="search"],
.entry-content input[type="password"],
.entry-content select,
.entry-content textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 0;
    color: #231f20;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.entry-content input:not([type="checkbox"]):not([type="radio"]):focus,
.entry-content select:focus,
.entry-content textarea:focus,
.wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #231f20;
    box-shadow: 0 0 0 3px rgba(35, 31, 32, .06);
}

.entry-content textarea,
.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* placeholder */
.entry-content ::placeholder,
.wpcf7-form ::placeholder {
    color: #aaa;
    font-style: normal;
}

/* --- checkbox & radio — wspólny mixin --- */

/* reset Bootstrap .form-control który nadpisuje checkboxy */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, .25) !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    line-height: normal !important;
    cursor: pointer;
    position: relative;
    margin: 0;
    vertical-align: middle;
    flex-shrink: 0;
    transition: border-color .2s ease, background .2s ease;
    box-sizing: border-box !important;
}

.wpcf7-form input[type="radio"] {
    border-radius: 50%;
}

.wpcf7-form input[type="checkbox"]:checked,
.wpcf7-form input[type="radio"]:checked {
    background: #231f20 !important;
    border-color: #231f20 !important;
}

.wpcf7-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    display: block;
}

.wpcf7-form input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff !important;
    display: block;
}

.wpcf7-form input[type="checkbox"]:focus,
.wpcf7-form input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 31, 32, .08);
}

/* lista opcji (checkbox group / radio group) */

.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.6rem;
    margin-bottom: .8rem;
    border: none;
    padding: 0;
}

.wpcf7-form .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    cursor: pointer;
}

/* reset — nadpisuje ogólny .wpcf7-form label */
.wpcf7-form .wpcf7-list-item label {
    display: inline;
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

/* hover na całym item */
.wpcf7-form .wpcf7-list-item:hover input[type="checkbox"],
.wpcf7-form .wpcf7-list-item:hover input[type="radio"] {
    border-color: #231f20;
}

/* acceptance — checkbox z tekstem w jednej linii */

.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 1.4rem 0;
    line-height: 1.55;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    align-items: flex-start;
    gap: .65rem;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
    margin-top: .22rem;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
    font-size: .85rem;
    color: #666;
    line-height: 1.55;
}

/* --- submit CF7 --- */

.wpcf7-form input[type="submit"],
.wpcf7-submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    border: none;
    border-bottom: none;
    font-family: 'Playfair Display', serif;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .4rem;
    text-transform: uppercase;
    color: #231f20;
    padding: .9rem 0;
    cursor: pointer;
    position: relative;
    margin-top: .5rem;

    /* wipe-in via background gradient — działa na input bez pseudo-elementów */
    background:
        linear-gradient(#231f20, #231f20) no-repeat left bottom / 0% 1px,
        linear-gradient(rgba(35, 31, 32, .18), rgba(35, 31, 32, .18)) no-repeat left bottom / 100% 1px;
    transition: background-size .5s cubic-bezier(.4, 0, .2, 1),
        letter-spacing .4s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    letter-spacing: .52rem;
    background:
        linear-gradient(#231f20, #231f20) no-repeat left bottom / 100% 1px,
        linear-gradient(rgba(35, 31, 32, .18), rgba(35, 31, 32, .18)) no-repeat left bottom / 100% 1px;
}

/* walidacja CF7 */
.wpcf7 .wpcf7-not-valid-tip {
    font-size: .78rem;
    color: #c0392b;
    display: block;
    margin-top: -.6rem;
    margin-bottom: .8rem;
}

.wpcf7 form .wpcf7-response-output {
    font-size: .85rem;
    font-weight: 300;
    padding: 1rem;
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, .12);
}

.wpcf7 .wpcf7-mail-sent-ok {
    border-color: #27ae60 !important;
    color: #27ae60;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted {
    border-color: #c0392b !important;
    color: #c0392b;
}

/* label nad polem */
.wpcf7 .wpcf7-form label,
.wpcf7 .entry-content label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .85em;
    font-weight: 500;
    color: #888;
}

/*--------------------------------------------------------------
 # PORTFOLIO LIST — single-line
--------------------------------------------------------------*/

.page-body--compact {
    padding: 4rem 0 5rem;
}

/* --- wiersz --- */

.single-line {
    background: #fff;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.single-line--revers {
    background: #f4f4f4;
}

.single-line__row {
    --bs-gutter-x: 0;
}

/* --- blok tekstowy --- */

.single-line__text-box {
    padding: 2rem 4rem 2rem 0;
}

.single-line__text-box--right {
    padding: 2rem 0 2rem 4rem;
}

/* meta */

.sl-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .7rem;
    margin-bottom: 1.4rem;
}

.sl-meta__icon {
    font-size: .72rem;
    color: #bbb;
}

.sl-meta__date {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: .18rem;
    text-transform: uppercase;
    color: #bbb;
}

.sl-meta__sep {
    color: #ddd;
    font-size: .7rem;
}

.sl-meta__cat {
    font-family: 'Inter', sans-serif;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .2rem;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    transition: color .2s ease;
}

.sl-meta__cat:hover {
    color: #231f20;
}

/* tytuł */

.single-line__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 600;
    line-height: 1.22;
    margin: 0 0 1.2rem;
}

.single-line__title a {
    color: #231f20;
    text-decoration: none;
    transition: opacity .25s ease;
}

.single-line__title a:hover {
    opacity: .6;
}

/* excerpt */

.single-line__excerpt {
    font-size: .95rem;
    line-height: 1.75;
    color: #777;
    margin-bottom: 2.2rem;
}

/* btn */

.single-line__btn {
    /* dziedziczy .btn-main */
}

/* --- blok zdjęcia --- */

.single-line__img-wrap {
    display: block;
    overflow: hidden;
    text-decoration: none;
    outline: none;
}

.single-line__img {
    position: relative;
    height: 540px;
    background-size: cover;
    background-position: center;
    transition: transform .7s cubic-bezier(.25, 0, .1, 1);
}

.single-line__img--empty {
    background: #eee;
}

/* overlay */

.single-line__img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 32, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .45s ease;
}

.sl-overlay__label {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    font-family: 'Playfair Display', serif;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .38rem;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease .08s,
        transform .35s ease .08s;
}

/* hover na zdjęciu */

.single-line__img-wrap:hover .single-line__img {
    transform: scale(1.04);
}

.single-line__img-wrap:hover .single-line__img-overlay {
    background: rgba(35, 31, 32, .42);
}

.single-line__img-wrap:hover .sl-overlay__label {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------
 # SINGLE — PORTFOLIO PROJECT CARD
--------------------------------------------------------------*/

/* ── section label (pretitle) ── */

.proj-section-label {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .35rem;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 3rem;
}

/* ── specs bar ── */

.proj-specs {
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    padding: 0;
}

.proj-specs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
}

.proj-specs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    padding: 2.4rem 2rem;
    border-right: 1px solid rgba(0, 0, 0, .07);
}

.proj-specs__item:last-child {
    border-right: none;
}

.proj-specs__label {
    font-family: 'Inter', sans-serif;
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .28rem;
    text-transform: uppercase;
    color: #bbb;
}

.proj-specs__value {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #231f20;
    line-height: 1.2;
}

/* ── body (opis + aside) ── */

.proj-body {
    padding: 7rem 0 6rem;
}

.proj-body__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
}

.proj-body__content {
    padding-right: 5rem;
}

/* ── aside — materiały ── */

.proj-body__aside {
    position: sticky;
    top: 120px;
    border-left: 1px solid rgba(0, 0, 0, .08);
    padding-left: 5rem;
}

.proj-aside__title {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .35rem;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 2rem;
}

.proj-aside__list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
}

.proj-aside__row {
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    padding: 1rem 0;
}

.proj-aside__row:nth-child(1),
.proj-aside__row:nth-child(2) {
    border-top: 1px solid rgba(0, 0, 0, .07);
}

.proj-aside__row dt {
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12rem;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: .3rem;
}

.proj-aside__row dd {
    margin: 0;
    font-size: .9rem;
    color: #444;
    line-height: 1.5;
}

/* ── masonry gallery ── */

.proj-gallery {
    padding: 0 0 8rem;
}

.proj-gallery__masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.proj-gallery__item {
    display: block;
    overflow: hidden;
    position: relative;
}

.proj-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25, 0, .1, 1);
}

.proj-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 32, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .35s ease;
}

.proj-gallery__overlay i {
    font-size: 1.4rem;
    color: #fff;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.proj-gallery__item:hover img {
    transform: scale(1.04);
}

.proj-gallery__item:hover .proj-gallery__overlay {
    background: rgba(35, 31, 32, .32);
}

.proj-gallery__item:hover .proj-gallery__overlay i {
    opacity: 1;
    transform: scale(1);
}

/* ── lightbox ── */

.plb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .94);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.plb--open {
    display: flex;
}

body.plb-lock {
    overflow: hidden;
}

.plb__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.plb__slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 6rem;
}

.plb__slide img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.plb__close,
.plb__prev,
.plb__next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: color .2s ease;
    z-index: 2;
    padding: 0;
    line-height: 1;
}

.plb__close:hover,
.plb__prev:hover,
.plb__next:hover {
    color: #fff;
}

.plb__close {
    top: 1.8rem;
    right: 2rem;
    font-size: 1.6rem;
}

.plb__prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
}

.plb__next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
}

.plb__counter {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    letter-spacing: .25rem;
    color: rgba(255, 255, 255, .4);
}

/* ── plans / documentation ── */

.proj-plans {
    padding: 0 0 8rem;
    border-top: 1px solid rgba(0, 0, 0, .07);
    padding-top: 6rem;
}

.proj-plans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.proj-plans__item {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.proj-plans__item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f5f4f2;
    transition: transform .5s cubic-bezier(.25, 0, .1, 1);
}

.proj-plans__item:hover img {
    transform: scale(1.03);
}

.proj-plans__overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 32, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
}

.proj-plans__overlay i {
    font-size: 1.4rem;
    color: #fff;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.proj-plans__item:hover .proj-plans__overlay {
    background: rgba(35, 31, 32, .28);
}

.proj-plans__item:hover .proj-plans__overlay i {
    opacity: 1;
    transform: scale(1);
}

/* ── pdf files ── */

.proj-files {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.proj-files__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(0, 0, 0, .09);
    text-decoration: none;
    color: #231f20;
    font-size: .88rem;
    font-family: 'Inter', sans-serif;
    transition: background .2s ease, border-color .2s ease;
}

.proj-files__item:hover {
    background: #f9f9f9;
    border-color: rgba(0, 0, 0, .16);
    color: #231f20;
}

.proj-files__item>i:first-child {
    font-size: 1.1rem;
    color: #aaa;
    flex-shrink: 0;
}

.proj-files__item span {
    flex: 1;
}

.proj-files__dl {
    font-size: .85rem;
    color: #ccc;
    transition: color .2s ease, transform .2s ease;
}

.proj-files__item:hover .proj-files__dl {
    color: #231f20;
    transform: translateY(2px);
}

/*--------------------------------------------------------------
 # PORTFOLIO CARD – przypinka z danymi ACF
--------------------------------------------------------------*/

.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* przypinka – prawy górny róg */
.portfolio-pin {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
}

.portfolio-pin__area {
    display: inline-block;
    background: #fff;
    color: #231f20;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    padding: .55rem .85rem .5rem;
    border-radius: 2px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
    letter-spacing: .02em;
}

.portfolio-pin__typ {
    display: inline-block;
    background: rgba(35, 31, 32, .72);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .65rem;
    border-radius: 2px;
    backdrop-filter: blur(6px);
}

/* kondygnacje – lewy górny róg */
.portfolio-floors {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    padding: .35rem .7rem;
    border-radius: 2px;
}

.portfolio-floors i {
    font-size: .85rem;
    opacity: .85;
}

/* subtitle nad tytułem */
.portfolio-item-content__sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: .4rem;
}

/*--------------------------------------------------------------
 # GALERIA WIZUALIZACJI – blade szare tło
--------------------------------------------------------------*/

.proj-gallery--bg {
    background: #f9f9f9;
    padding-top: 6rem;
    padding-bottom: 8rem;
    margin-top: 0;
}

.proj-gallery--bg .proj-gallery__header {
    margin-bottom: 2.5rem;
}

/*--------------------------------------------------------------
 # VIDEO
--------------------------------------------------------------*/

.proj-video {
    padding: 6rem 0 8rem;
    background: #fff;
}

.proj-video .proj-section-label {
    margin-bottom: 2rem;
}

.proj-video__wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 2px;
    overflow: hidden;
}

.proj-video__wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*--------------------------------------------------------------
 # HISTORIA — #history_col
--------------------------------------------------------------*/

/*--------------------------------------------------------------
 # OFERTA — #offer_col
--------------------------------------------------------------*/

/* Poszerz wrapper gdy są kafelki oferty */
.page-body__inner:has(#offer_col) {
    max-width: 1380px;
}

/* Spłaszcz Gutenbergowe rzędy → flat 3-kolumnowy grid */
#offer_col .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem 5rem;
    padding: 3rem 0 2rem;
    counter-reset: offer-item;
}

#offer_col .wp-block-columns {
    display: contents;
}

/* Kafelek */
#offer_col .wp-block-column {
    display: block;
    border-top: 1px solid #d8d4d1;
    padding-top: 2.2rem;
    counter-increment: offer-item;
}

/* Numer porządkowy 01–06 */
#offer_col .wp-block-column::before {
    content: "0" counter(offer-item);
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #231f20;
    opacity: .15;
    display: block;
    line-height: 1;
    margin-bottom: 1.6rem;
}

/* Nagłówek */
#offer_col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #231f20;
    line-height: 1.3;
    margin: 0 0 1rem;
    padding: 0;
}

/* Tekst */
#offer_col p {
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    line-height: 1.78;
    color: #777;
    margin: 0;
}

/* page-id-61 — mapa czarno-biała */
.page-id-61 .entry-content iframe {
    filter: grayscale(100%);
    transition: filter .4s ease;
}

.page-id-61 .entry-content iframe:hover {
    filter: grayscale(0%);
}

/* Poszerz wrapper strony gdy zawiera sekcję z kolumnami */
.page-body__inner:has(#history_col) {
    max-width: 1380px;
}

.page-id-57 .entry-content,
.page-id-55 .entry-content {
    text-align: center;
}

/* Siatka kolumn */
#history_col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 4rem;
    padding: 4rem 0 3rem;
}

/* Każda kolumna — wycentrowana z ikoną FA6 Pro nad nagłówkiem */
#history_col>div,
#history_col>.wp-block-column {
    text-align: center;
}

#history_col>div::before,
#history_col>.wp-block-column::before {
    font-family: "Font Awesome 7 Sharp";
    font-weight: 100;
    font-style: normal;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    font-size: 1.6rem;
    color: #231f20;
    opacity: .4;
    display: block;
    text-align: center;
    margin-bottom: 1.4rem;
    line-height: 1;
}

/* Doświadczenie */
#history_col>div:nth-child(1)::before,
#history_col>.wp-block-column:nth-child(1)::before {
    content: "\e3a8";
}

/* fa-compass-drafting */

/* Funkcjonalność */
#history_col>div:nth-child(2)::before,
#history_col>.wp-block-column:nth-child(2)::before {
    content: "\f5bf";
}

/* fa-ruler-combined */

/* Odpowiedzialność */
#history_col>div:nth-child(3)::before,
#history_col>.wp-block-column:nth-child(3)::before {
    content: "\f3ed";
}

/* fa-shield-halved */

/* Indywidualne podejście */
#history_col>div:nth-child(4)::before,
#history_col>.wp-block-column:nth-child(4)::before {
    content: "\f0eb";
}

/* fa-lightbulb */

/* Nagłówki kolumn — h3 / h4 / h5 z edytora */
#history_col h3,
#history_col h4,
#history_col h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #231f20;
    line-height: 1.25;
    margin: 0 0 1.1rem;
    padding: 0;
}

/* Tekst akapitu */
#history_col p {
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    line-height: 1.8;
    color: #777;
    margin: 0;
}

/* Fallback: nagłówek przez <strong> jako pierwszy element akapitu */
#history_col p:has(> strong:only-child) {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: : 400;
    color: #231f20;
    line-height: 1.25;
    margin: 0 0 1.1rem;
}

#history_col p:has(> strong:only-child) strong {
    font-weight: : 400;
    color: #231f20;
}

/*--------------------------------------------------------------
 # REALIZACJA (kat. 6) – galeria Gutenberga jako proj-gallery
--------------------------------------------------------------*/

.post-body--realization {
    padding: 6rem 0 8rem;
    background: #f5f4f2;
}

/* reset wrapperów Gutenberga — przebijamy is-layout-flex */
.entry-content--realization .wp-block-gallery,
.entry-content--realization .wp-block-gallery.is-layout-flex,
.entry-content--realization .wp-block-gallery.wp-block-gallery-is-layout-flex {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: .6rem !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
}

.entry-content--realization .wp-block-gallery .wp-block-image {
    display: block !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    flex-grow: unset !important;
    flex-shrink: unset !important;
    margin: 0 !important;
    cursor: pointer;
}

.entry-content--realization .wp-block-gallery .wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2;
    object-fit: cover !important;
    max-width: unset !important;
    transition: transform .5s cubic-bezier(.25, 0, .1, 1);
}

.entry-content--realization .wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.04);
}

/* overlay z ikoną expand — identyczny jak proj-gallery */
.entry-content--realization .wp-block-gallery .wp-block-image::after {
    content: "\f422";
    /* fa-expand unicode light */
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    color: #fff;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 31, 32, 0);
    opacity: 0;
    transition: background .3s ease, opacity .3s ease;
}

.entry-content--realization .wp-block-gallery .wp-block-image:hover::after {
    background: rgba(35, 31, 32, .28);
    opacity: 1;
}

/* ukrywamy captions i figcaptions Gutenberga */
.entry-content--realization .wp-block-gallery figcaption {
    display: none;
}

/*--------------------------------------------------------------
 # MOBILE NAV
--------------------------------------------------------------*/

/* --- Hamburger button --- */
.mob-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.mob-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #231f20;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
}

.mob-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mob-burger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.mob-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Sliding panel --- */
.mob-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform .42s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 6px 0 40px rgba(35, 31, 32, .10);
}

.mob-nav.is-open {
    transform: translateX(0);
}

.mob-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.8rem 2rem 2.5rem;
    overflow-y: auto;
}

/* Close button */
.mob-nav__close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #231f20;
    opacity: .45;
    cursor: pointer;
    padding: .4rem;
    transition: opacity .2s ease;
    line-height: 1;
}

.mob-nav__close:hover { opacity: 1; }

/* Logo */
.mob-nav__logo {
    margin: 2rem 0 3rem;
}

.mob-nav__logo img {
    max-height: 56px;
    width: auto;
    display: block;
}

/* Nav links */
.mob-nav__menu {
    flex: 1;
    width: 100%;
    text-align: center;
}

.mob-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob-menu li {
    border-bottom: 1px solid #f0eeec;
}

.mob-menu li:first-child {
    border-top: 1px solid #f0eeec;
}

.mob-menu li a {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: .72rem;
    letter-spacing: .42rem;
    text-transform: uppercase;
    color: #231f20;
    text-decoration: none;
    padding: 1.15rem 0;
    transition: opacity .2s ease;
}

.mob-menu li a:hover,
.mob-menu li.current-menu-item > a { opacity: .45; }

/* Contact icons */
.mob-nav__contact {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.mob-nav__contact-link {
    font-size: 1.25rem;
    color: #231f20;
    opacity: .4;
    transition: opacity .2s ease;
}

.mob-nav__contact-link:hover {
    color: #231f20;
    opacity: 1;
}

/* --- Overlay --- */
.mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 31, 32, .45);
    z-index: 490;
    opacity: 0;
    pointer-events: none;
    transition: opacity .42s ease;
}

.mob-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}