html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   1. RESET, ZMIENNE I BAZA
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #000000;
    --card-bg: #121212;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'Viaoda Libre', serif;
    --font-script: 'Pinyon Script', cursive;
    --border-color: #222222;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 1px;
}


.section-title-serif {
    font-family: var(--font-serif);
    font-size: 84px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 70px;
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav-links a:hover, 
.nav-links a.active {
    opacity: 1;
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn-nav {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 12px 38px !important;
    border-radius: 10px !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-nav:hover {
    transform: scale(1.02);
    background-color: #f0f0f0 !important;
    opacity: 1 !important;
}

/* ==========================================
   3. HERO SECTION 
   ========================================== */

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: customFade 30s infinite; 
}



.slide {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 15s infinite;
}


.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 5s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 10s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 15s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 20s; }
.hero-slideshow .slide:nth-child(6) { animation-delay: 25s; }


@keyframes customFade {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1; 
    }
    16.66% {
        opacity: 1; 
    }
    21.66% {
        opacity: 0; 
    }
    100% {
        opacity: 0;
    }
}

.hero-gradient {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 2; 
    background-image: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,1) 100%);
}










.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center; 
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 3; 
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    padding-top: 10vh;
}

.hero-title {
    font-size: 80px;
    margin: 0;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
}


.hero-bottom-row {
    display: flex;
    justify-content: flex-start; 
    align-items: flex-end;
    gap: 190px;                 
    width: 100%;
    margin-top: 20px;
}

.hero-description {
    font-size: 17px;
    line-height: 1.6;
    color: #d5d5d5;
    max-width: 400px;
    position: relative;
    top: -12px; 
}
.serif-italic {
    font-family: 'Pinyon Script', cursive;
    font-size: 100px;
    line-height: 0.8;
    color: #ffffff;
    margin: 0;
    text-align: right;
}
/* ==========================================
   4. SEKCJA ZAUFANIE 
   ========================================== */
.stats-section {
    padding: 140px 0 80px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.stats-left {
    flex: 1.1;
}

.stats-grid {
    display: flex;
    gap: 60px;
    margin-top: 20px;
}

.stat-item h3 {
    font-size: 64px;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-item p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #c5c5c5;
    line-height: 1.5;
    font-weight: 300;
}


.photo-layout-wrapper {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.photo-layout-wrapper img {
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease; 
    cursor: pointer; 
}

.photo-layout-wrapper img:hover {
    transform: scale(1.04); 
    filter: brightness(1.1); 
}

.img-large img {
    width: 200px;
    height: 270px;
}

.img-small-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.img-small-stack img {
    width: 200px;
    height: 127.5px; 
}

/* ==========================================
   5. GALERIA Z TEKSTEM
   ========================================== */
.gallery-text-section {
    padding: 80px 0 140px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.gt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}


.gt-photos-quad {
    display: flex;
    gap: 15px;
}

.gt-info {
    flex: 1.2; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gt-info .subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
    display: block;
    font-weight: 400;
}

.gt-title {
    font-family: var(--font-serif);
    font-size: 32px; 
    line-height: 1.4;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 600px; 
    letter-spacing: 1px;
}

/* ==========================================
   6. SEKCJA OFERTA 
   ========================================== */
.offer-section {
    padding: 120px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.offer-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.offer-main-title {
    font-family: var(--font-serif); 
    font-size: 56px;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 800px;
}

.offer-main-title .script-title {
    font-family: var(--font-script) !important; 
    text-transform: none;
    font-size: 84px;
    font-style: normal;
    margin-left: 10px;
}

.offer-subtitle {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
    text-align: right;
    margin-bottom: 10px;
}


.tabs-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 16px 40px;
    font-family: var(--font-serif); 
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.offer-card {
    display: flex;
    background-color: #ffffff;
    color: #000000;
    border-radius: 24px;
    overflow: hidden;
    min-height: 580px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-content {
    flex: 1.1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-offer-title {
    font-family: var(--font-serif); 
    font-size: 36px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.offer-details {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

.detail-block {
    flex: 1;
}

.detail-block h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    color: #000000;
}

.detail-block ul {
    list-style: none;
}

.detail-block ul li {
    font-family: var(--font-sans); 
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
    color: #333333;
    line-height: 1.5;
}

.detail-block ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: auto;
}

.btn-offer-contact {
    font-family: var(--font-serif) !important; 
    font-size: 16px; 
    text-transform: uppercase; 
    color: #000000;
    border: 1px solid #000000;
    padding: 12px 40px; 
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.btn-offer-contact:hover {
    background-color: #000000;
    color: #ffffff;
    opacity: 1;
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-tag span {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #666666;
}

.price-value {
    font-family: var(--font-serif) !important; 
    font-size: 36px;
    font-weight: 400;
    color: #000000;
    line-height: 1;
}

.card-image {
    flex: 1.1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(to right, #ffffff, transparent);
}

@media (max-width: 992px) {
    .offer-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .offer-subtitle {
        text-align: left;
    }
    .tabs-container {
        flex-wrap: wrap;
    }
    .offer-card {
        flex-direction: column-reverse;
    }
    .card-image {
        height: 350px;
    }
    .card-image::before {
        width: 100%;
        height: 35%;
        background: linear-gradient(to bottom, #ffffff, transparent);
    }
    .offer-details {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================
   7. SEKCJA OPINIE 
   ========================================== */
.testimonials-section {
    padding: 120px 0;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.testimonials-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
}

.testimonials-main-title {
    font-family: var(--font-serif);
    font-size: 56px;
    text-transform: uppercase;
    line-height: 1.1;
}

.testimonials-main-title .script-title {
    font-family: var(--font-script) !important;
    text-transform: none;
    font-size: 84px;
    font-style: normal;
    margin-left: 5px;
}

.testimonials-subtitle {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
    text-align: right;
    margin-bottom: 10px;
}


.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.testimonials-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: max-content; 
}

.testimonial-card {
    flex: 0 0 500px; 
    min-height: 320px;
    padding: 50px;
    border-radius: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    background-color: #161616;
    color: #ffffff;
    opacity: 0.25; 
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid #222222;
}

.testimonial-card.active-card {
    background-color: #ffffff;
    color: #000000;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: transparent;
    z-index: 10;
}

.stars {
    color: #ffb400;
    margin-bottom: 15px;
    font-size: 22px;
    letter-spacing: 2px;
}

.date {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #888888;
    margin-bottom: 20px;
}

.active-card .date {
    color: #666666;
}

.testimonial-card .text {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-card .author {
    font-family: var(--font-serif);
    font-size: 26px;
    margin-top: auto;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.control-btn {
    background: transparent;
    border: none !important;
    color: #ffffff;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}




@media (max-width: 992px) {
    .testimonials-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 20px;
    }
    .testimonials-subtitle { text-align: left; }
    .testimonial-card {
        flex: 0 0 85vw; 
        padding: 30px;
    }
    .carousel-viewport {
        mask-image: none; 
        -webkit-mask-image: none;
    }
}

/* ==========================================
   8. SEKCJA KONTAKT 
   ========================================== */
.contact-section {
    padding: 120px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.contact-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.contact-main-title {
    font-family: var(--font-serif); 
    font-size: 56px;
    text-transform: uppercase;
    line-height: 1.1;
}

.contact-main-title .script-title {
    font-family: var(--font-script) !important; 
    text-transform: none;
    font-size: 84px;
    font-style: normal;
    margin-left: 5px;
}

.contact-subtitle {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
    text-align: right;
    margin-bottom: 10px;
}


.contact-container {
    display: flex;
    gap: 120px;
}

.contact-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.contact-form-col {
    flex: 1.4;
}

.info-block h3 {
    font-family: var(--font-serif); 
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 400;
}

.info-block p {
    font-family: var(--font-sans); 
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
}

.info-block h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.info-block a {
    font-family: var(--font-sans);
    font-size: 16px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #ffffff;
}

.contact-row {
    display: flex;
    gap: 60px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background-color: #333333;
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.elegant-form {
    display: flex;
    flex-direction: column;
}

.form-title {
    font-family: var(--font-serif); 
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 40px;
    font-weight: 400;
}

.form-row-inputs {
    display: flex;
    gap: 40px;
}

.form-row-inputs .form-group {
    flex: 1;
}

.form-group {
    position: relative;
    margin-bottom: 45px;
}

.elegant-form input, 
.elegant-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #ffffff;
    font-family: var(--font-sans); 
    font-size: 16px;
    outline: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; 
    height: 1px;
    background-color: #555555;
    transition: all 0.4s ease;
}

.elegant-form input:focus ~ .input-line,
.elegant-form textarea:focus ~ .input-line {
    width: 100%;
    background-color: #ffffff;
}


.rodo-text {
    font-family: var(--font-sans); 
    font-size: 11px;
    color: #888888;
    line-height: 1.6;
    margin-bottom: 40px;
}


.btn-submit {
    font-family: var(--font-serif); 
    font-size: 20px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 20px 0;
    width: 100%;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn-submit:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .contact-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .contact-subtitle {
        text-align: left;
    }
    .contact-container {
        flex-direction: column;
        gap: 60px;
    }
    .form-row-inputs {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================
   9. STOPKA (FOOTER STYLE)
   ========================================== */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 100px 0 40px 0;
    border-top: 1px solid #000000;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-col {
    flex: 1;
}

.footer-col.newsletter-col {
    flex: 1.5; 
}

.footer-col h3 {
    font-family: var(--font-serif); 
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-col p {
    font-family: var(--font-sans); 
    font-size: 14px;
    color: #cccccc;
    line-height: 1.7;
}

.footer-col .company-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}


.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-sans); 
    font-size: 14px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}


.newsletter-text {
    margin-bottom: 25px !important;
}

.newsletter-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 6px 8px 6px 24px;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #000000;
    padding: 10px 0;
}

.newsletter-form input::placeholder {
    color: #777777;
}

.newsletter-form button {
    background-color: #000000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}


.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 0 60px;
    border-top: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-logo img {
    max-height: 50px;
    width: auto;
    opacity: 0.9;
}

.footer-bottom-credits {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #888888;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.dev-credit a {
    color: #bbbbbb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dev-credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}


@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        gap: 50px;
        padding: 0 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 40px 30px 0 30px;
    }
    .footer-bottom-credits {
        align-items: center;
    }
}

/* ==========================================
   10. PORTFOLIO
   ========================================== */
.portfolio-page-section {
    padding: 180px 0 140px 0;
    background-color: #0b0b0b;
    min-height: 100vh;
}

.portfolio-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
}


.portfolio-header-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
    position: relative;
}

.portfolio-main-title {
    font-family: var(--font-serif);
    font-size: 64px;
    text-transform: uppercase;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1px;
}

.portfolio-main-title .script-title {
    font-family: var(--font-script) !important;
    text-transform: none;
    font-size: 96px;
    font-style: normal;
    margin-left: 10px;
}


.portfolio-filter-box {
    width: 220px;
    margin-bottom: 10px;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}


.portfolio-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-meta {
    padding: 24px;
    background-color: #ffffff;
    color: #000000;
}

.card-meta h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-date {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #999999;
}


.filter-dropdown {
    width: 100%;
    position: relative;
    font-family: var(--font-sans);
    z-index: 99;
}

.dropdown-trigger {
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
}

.filter-dropdown.open .dropdown-trigger {
    border-radius: 12px 12px 0 0;
}

.arrow-icon {
    transition: transform 0.2s ease;
}

.filter-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.filter-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    padding: 14px 20px;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.active {
    font-weight: 700;
    background-color: #fafafa;
}

.portfolio-card.hidden {
    display: none;
}

@media (max-width: 1200px) {
    .portfolio-wrapper { padding: 0 40px; }
    .portfolio-main-title { font-size: 48px; }
    .portfolio-main-title .script-title { font-size: 76px; }
}

@media (max-width: 992px) {
    .portfolio-header-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-filter-box {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   10. RESPONSIVE DESIGN (RWD / MEDIA QUERIES)
   ========================================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 72px; }
    .hero-title .serif-italic { font-size: 92px; margin-right: 5%; }
    .section-title-serif { font-size: 64px; }
    .gt-title { font-size: 32px; }
}

@media (max-width: 992px) {
    .stats-container, .gt-container, .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    .gt-container {
        flex-direction: column-reverse; 
    }
    .offer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .offer-header p {
        text-align: left;
    }
    .offer-card {
        flex-direction: column;
    }
    .card-image {
        height: 300px;
        mask-image: linear-gradient(to top, transparent, black 15%);
        -webkit-mask-image: linear-gradient(to top, transparent, black 15%);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-container {
        flex-direction: column;
    }
    .active-card {
        transform: scale(1);
    }
    .faded-left, .faded-right {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px;
    }
    .nav-links { 
        display: none; 
    }
    .hero-content-wrapper { 
        padding: 0 20px; 
        margin-top: 180px;
    }
    .hero-title { 
        font-size: 42px; 
    }
    .hero-title .serif-italic { 
        font-size: 54px; 
        margin-right: 0; 
        align-self: flex-start; 
    }
    .hero-description p { 
        font-size: 14px; 
    }
    .stats-section, .gallery-text-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .stats-grid {
        flex-direction: column;
        gap: 35px;
    }
    .gt-photos-quad {
        flex-direction: column;
        align-items: center;
    }
}








/* ==========================================
   MENU NA TELEFON
   ========================================== */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-toggle .bar {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .bar:nth-child(1) {
    top: 10px;
}

.menu-toggle .bar:nth-child(2) {
    top: 18px;
}

.menu-toggle .bar:nth-child(3) {
    top: 26px;
}


.menu-toggle.active .bar:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
}

@media (max-width: 968px) {
    .nav-container {
        padding: 0 20px;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-right {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 22px;
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
    }
}

@media (max-width: 968px) {
    .nav-links.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        right: 0 !important;
    }

    .nav-links li {
        display: block !important;
        margin: 15px 0;
    }

    .nav-links a {
        display: block !important;
        font-size: 24px !important;
        color: #ffffff !important; 
        text-decoration: none !important;
        text-align: center;
    }
}

/* ==========================================
   HEADER NA TELEFONIE
   ========================================== */
@media (max-width: 968px) {
    html, body {
        overflow-x: hidden;
    }

    .hero-bottom-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .serif-italic {
        font-size: 3.2rem !important; 
        position: static !important; 
        display: block !important;
        margin-top: 5px !important;
        max-width: 100% !important;
        overflow: hidden;
    }
}

/* ==========================================
   ZDJĘCIA ZAUFANIE TELEFON
   ========================================== */
@media (max-width: 968px) {
    .photo-layout-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important; 
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .img-large {
        flex: 1 1 53% !important;
        max-width: 53% !important;
        display: flex !important;
    }

    .img-large img {
        width: 100% !important;
        height: 100% !important; 
        object-fit: cover !important;
        border-radius: inherit;
    }

    .img-small-stack {
        flex: 1 1 44% !important;
        max-width: 44% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .img-small-stack img {
        width: 100% !important;
        height: calc(50% - 4px) !important; 
        object-fit: cover !important;
    }
}


/* ==========================================
   POPRAWKA DLA IKONY W PRZYCISKU POWROTU
   ========================================== */

img.back-arrow-img {
    width: 14px !important;
    max-width: 14px !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

#backToPortfolioBtn.back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}


.back-arrow-img {
    width: 14px !important;     
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#backToPortfolioBtn.back-btn span {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   TELEFON
   ========================================== */
@media (max-width: 968px) {


    .hero-bottom-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        order: 2 !important;
    }

    .serif-italic {
        order: 1 !important;
    }
    .hero-description {
        order: 2 !important;
    }




    .navbar { 
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important; 
        transition: background-color 0.3s ease !important; 
    }







    .testimonials-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-top: 40px !important;
    }

    .carousel-viewport {
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    #testimonialSlider,
    .testimonials-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .testimonial-card {
        flex: 0 0 85% !important; 
        max-width: 85% !important;
        width: 85% !important;
        box-sizing: border-box !important;
        
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .carousel-controls {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 25px !important; 
        margin-bottom: 20px !important;
        width: 100% !important;
        position: relative !important;
        z-index: 10 !important;
    }

.carousel-controls button {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        width: 55px !important;
        height: 55px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        padding: 0 !important;
        line-height: 0 !important; 
    }

    .carousel-controls button,
    .testimonials-section .carousel-controls button {
        border: none !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    .carousel-controls button:hover {
        border-color: rgba(255, 255, 255, 0.8) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .testimonials-top-header {
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }



.back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: transparent;
    border: 1px solid currentColor;
    padding: 10px 20px;
    cursor: pointer;
}










    .contact-section {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        overflow: hidden !important;
    }

    .contact-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-info-col, 
    .contact-form-col,
    .elegant-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }





    .offer-section {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }


    .tabs-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .tabs-container .tab-btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important;
    }


    .offer-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    .card-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }


    .offer-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .detail-block {
        width: 100% !important;
    }


    .card-footer {
        display: flex !important;
        flex-direction: column-reverse !important; 
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        margin-top: 20px !important;
        box-sizing: border-box !important;
    }

    .price-tag {
        text-align: center !important;
        width: 100% !important;
    }

    .btn-offer-contact {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }


    .card-image {
        display: none !important; 
    }
}


.nav-links .mobile-only {
    display: none !important;
}


@media (max-width: 968px) {
    .nav-links .mobile-only {
        display: block !important;
    }
}

