:root {
    --primary-color: #FF8C00;
    /* Dark Orange */
    --secondary-color: #FFD700;
    /* Gold/Yellow */
    --accent-green: #8BC34A;
    /* Light Green */
    --accent-orange: #FF5722;
    /* Deep Orange */
    --text-color: #4E342E;
    /* Dark Brown (softer than black) */
    --text-light: #795548;
    /* Medium Brown */
    --bg-light: #FFF8E1;
    /* Light Cream */
    --white: #FFFFFF;
    --font-main: 'Baloo 2', 'Outfit', sans-serif;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --container-width: 1200px;
}

.special-notice {
    color: #D32F2F;
    border: 3px solid #D32F2F;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    background-color: #FFEBEE;
    margin: 20px 0;
    text-align: center;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-social-icon {
    display: flex;
    align-items: center;
    color: #1877F2;
    /* Facebook Blue */
    transition: transform 0.3s;
}

.nav-social-icon:hover {
    transform: scale(1.1);
    color: #0e5a9e;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 180px;
    text-align: center;
    background: linear-gradient(to bottom, #FFF3E0 0%, #FFE0B2 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/zdj1-duzy.jpeg');
    background-size: cover;
    background-position: center bottom;
    opacity: 1;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Light overlay to ensure text readability */
    z-index: 1;
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #fef7de;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: #E65100;
    /* Darker Orange for contrast */
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #FFFFFF, 5px 5px 10px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    letter-spacing: 1px;
}

.hero p.lead {
    font-size: 1.4rem;
    color: #3E2723;
    max-width: 900px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 4px solid #FFD54F;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
    background: #E65100;
    color: var(--white);
    transform: translateY(-2px);
}

.cta-button-small {
    margin-top: 18px;
    padding: 10px 22px;
    font-size: 0.95rem;
}

.contact-info-card .cta-button-small {
    align-self: center;
    margin-top: 26px;
    margin-bottom: 4px;
}

.contact-info-card .cta-button-small:hover {
    transform: none;
}

.section-cta {
    margin: 30px 0 10px;
    text-align: center;
}



/* Content Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-lead {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.12rem;
}

.section-closing {
    margin-top: 34px;
    margin-bottom: 0;
    color: var(--text-color);
    font-weight: 600;
}

.day-section,
.faq-section {
    background: linear-gradient(180deg, #fffdf6 0%, #fff7df 100%);
}

.day-section .section-title,
.faq-section .section-title {
    text-transform: uppercase;
}

.day-grid {
    counter-reset: day-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.day-card,
.faq-list details {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(78, 52, 46, 0.1);
}

.day-card {
    counter-increment: day-step;
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid rgba(255, 140, 0, 0.14);
    overflow: hidden;
}

.day-card::before {
    content: counter(day-step, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #123f3d;
    color: var(--white);
    font-weight: 700;
}

.day-card::after {
    content: "";
    position: absolute;
    top: -36px;
    right: -36px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.28);
}

.day-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.day-card p,
.faq-list p {
    color: var(--text-color);
}

.faq-list {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-list details {
    border: 1px solid rgba(18, 63, 61, 0.1);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-list details[open] {
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 18px 38px rgba(78, 52, 46, 0.14);
}

.faq-list summary {
    position: relative;
    cursor: pointer;
    padding: 20px 58px 20px 22px;
    color: #123f3d;
    font-weight: 700;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    font-size: 1.2rem;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    margin: 0;
    padding: 0 22px 22px;
    line-height: 1.65;
}

/* Offer Grid */
.staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .staff-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.staff-card {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    transition: transform 0.2s;
}

.staff-card:hover {
    transform: translateX(5px);
}

.staff-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
}

.staff-name::after {
    content: " –";
    color: var(--text-light);
    margin-left: 5px;
}

.staff-role {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.partners-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.partner-item {
    position: relative;
    background: var(--white);
    padding: 14px 18px 14px 34px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--text-color);
    font-weight: 500;
}

.partner-item::before {
    content: "-";
    position: absolute;
    left: 18px;
}

/* Mobile adjustment for very long names/roles */
@media (max-width: 480px) {
    .staff-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .staff-name::after {
        content: "";
        display: none;
    }
}

.partners-section {
    margin-top: 60px;
    text-align: center;
}

/* WWR Page */
.wwr-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.therapies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.therapy-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-green);
    font-weight: 500;
}

.wwr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.wwr-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.process-steps {
    counter-reset: step;
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.2rem;
}

.process-step h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    /* Darker background */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    /* Blur background */
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    width: 98vw;
    height: 98vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Smooth transition */
    opacity: 1;
    transform: scale(1);
}

.lightbox-content.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
    transition: all 0.3s;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
    /* Smaller icon inside circle */
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    /* Circle background */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2001;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Standards Page */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.standard-card {
    background-image: url('assets/island-card-bg-duzy.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #E3F2FD;
    /* Light blue background for ocean effect */
    color: #2C1810;
    padding: 70px 50px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    min-height: 320px;
    border: none;
    position: relative;
    font-family: var(--font-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.standard-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.standard-card::before {
    display: none;
}

.standard-card::after {
    display: none;
}

.standard-card strong {
    color: #000000 !important;
    display: block;
    margin-bottom: 12px;
    font-size: 1.0rem;
    /* Reduced from 1.3rem to fit better */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
    /* Removed shadow for cleaner look with black text */
    font-weight: 800;
}

.standard-card p {
    line-height: 1.4;
    text-shadow: none;
    font-weight: 600;
    font-size: 0.95rem;
    /* Slightly smaller paragraph text too */
}

.document-card {
    background-color: #fff;
    color: #333;
    padding: 40px 30px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    position: relative;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    text-decoration: none;
    cursor: pointer;
    font-family: 'Times New Roman', Times, serif;
}

.document-card:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-5px);
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: #eee #fff;
    /* Folded corner effect */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), -1px 1px 1px rgba(0, 0, 0, 0.2);
    display: block;
    width: 0;
}

.document-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.document-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #555;
}

.document-card .download-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-family: sans-serif;
}

.standard-card strong {
    color: #ffeb3b;
    /* Yellow highlight */
    display: block;
    margin-bottom: 10px;
}

.download-link-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.download-link-small:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Experience Section */
.experience-section {
    background: #FFF8E1;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
}

.experience-img-1 {
    grid-column: 1;
    grid-row: 1 / 2;
    border-radius: 20px;
    width: 100%;
    height: auto;
}

.contact-info-card {
    grid-column: 2;
    grid-row: 1;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info-card p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-info-card i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-phone-list {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-phone-list>div {
    display: grid;
    gap: 4px;
}

.contact-phone-list a {
    display: block;
    white-space: nowrap;
}

.experience-text {
    grid-column: 3;
    grid-row: 1 / 3;
    padding: 20px;
}

.experience-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.experience-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.team-text {
    font-weight: 600;
    color: var(--text-color);
}

.experience-img-2 {
    grid-column: 2;
    grid-row: 2;
    border-radius: 20px;
    width: 100%;
    height: auto;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .experience-img-1,
    .contact-info-card,
    .experience-text,
    .experience-img-2 {
        grid-column: 1;
        grid-row: auto;
    }

    .experience-img-2 {
        margin-top: 0;
    }
}

/* Offer Grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.offer-card {
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.offer-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* Gradient Icon Styles */
.icon-gradient-1 {
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-2 {
    background: linear-gradient(135deg, #fb923c 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-3 {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-gradient-4 {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.offer-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Masonry effect - specific items span multiple rows */
.photo-gallery .gallery-img:nth-child(1) {
    grid-row: span 2;
}

.photo-gallery .gallery-img:nth-child(4) {
    grid-row: span 2;
}

.photo-gallery .gallery-img:nth-child(7) {
    grid-row: span 2;
}

.photo-gallery .gallery-img:nth-child(10) {
    grid-row: span 2;
}

/* Reviews */
.reviews-section {
    position: relative;
    background-color: #fdfbf7;
    /* Warm fallback */
}

.reviews-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/tlo.png');
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.2;
    /* Barely visible */
    pointer-events: none;
}

.reviews-section .container {
    position: relative;
    z-index: 1;
}

/* Reviews Carousel */
.reviews-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    /* Space for arrows */
}

.reviews-carousel {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    /* Align with the bubble part */
    transform: translateY(-50%);
    background: #e0e0e0;
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}



.review-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    box-shadow: none;
    padding: 10px 15px;
    /* Horizontal padding for spacing between cards */
    flex: 0 0 50%;
    /* 2 cards per view on desktop */
    max-width: 50%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.review-bubble {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    width: 30px;
    height: 30px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.03);
}

/* Hide the shadow of the triangle where it overlaps the bubble */
.review-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    width: 50px;
    height: 20px;
    background: var(--white);
    z-index: 1;
}

.quote-icon {
    font-size: 3rem;
    color: #e0e0e0;
    line-height: 1;
    font-family: serif;
    position: absolute;
    top: 20px;
    left: 20px;
}

.stars {
    color: var(--secondary-color);
    margin-left: 40px;
    /* Space for the quote icon */
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    z-index: 2;
    position: relative;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-author-info h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fb-review-btn {
    display: inline-block;
    background-color: #00adef;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 15px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 173, 239, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fb-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 173, 239, 0.6);
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Documents List */
.documents-list {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.document-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.document-item:hover {
    transform: translateX(5px);
}

.document-name {
    font-weight: 500;
    color: var(--text-color);
}

.download-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

@media (max-width: 600px) {
    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Standards Text Content Styles */
.standards-text-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.standards-text-content h3 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
    font-size: 1.5rem;
}

.standards-text-content h4 {
    color: #2980b9;
    margin-top: 25px;
    font-size: 1.2rem;
}

.standards-text-content ol,
.standards-text-content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.standards-text-content li {
    margin-bottom: 8px;
}

.standards-text-content strong {
    color: #000;
    font-weight: 600;
}

.standards-text-content .author-section {
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2980b9;
}

.standards-text-content .definition {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-left: 3px solid #eee;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background-color: #e0f7fa;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.hours-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    width: 100%;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

/* Mobile Menu Button Reset */
button.mobile-menu-btn {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
}

/* UX Buttons */


#mobileCallBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    /* Green for call */
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

#mobileCallBtn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #mobileCallBtn {
        display: flex;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Solantis-inspired visual refresh */
:root {
    --primary-color: #c6a16d;
    --secondary-color: #123f3d;
    --accent-green: #6f8582;
    --accent-orange: #d7b37d;
    --text-color: #232323;
    --text-light: #5f625f;
    --bg-light: #fbfaf7;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(18, 63, 61, 0.1);
    --radius: 8px;
    --container-width: 1280px;
}

body {
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url('assets/tlo.png') center top / 620px auto repeat;
    color: var(--text-color);
    font-weight: 300;
    letter-spacing: 0.02em;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 14% 18%, rgba(18, 63, 61, 0.42) 0 3px, transparent 4px),
        radial-gradient(circle at 84% 20%, rgba(18, 63, 61, 0.26) 0 4px, transparent 5px),
        radial-gradient(circle at 28% 74%, rgba(18, 63, 61, 0.26) 0 3px, transparent 4px),
        radial-gradient(circle at 76% 70%, rgba(18, 63, 61, 0.34) 0 4px, transparent 5px);
    background-size: 420px 420px, 520px 520px, 460px 460px, 560px 560px;
    opacity: 0.35;
    z-index: 0;
}

.container {
    max-width: var(--container-width);
}

header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    border-bottom: 1px solid rgba(18, 63, 61, 0.08);
    backdrop-filter: blur(14px);
}

.navbar {
    height: 88px;
}

.logo {
    color: #111;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.logo img {
    filter: saturate(0.75) contrast(1.05);
}

.nav-links {
    align-items: center;
    gap: clamp(10px, 1.35vw, 24px);
}

.nav-links a {
    color: #111;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 28px 0 22px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary-color);
}

.nav-links a[href="#galeria"],
.nav-links a[href="index.html#galeria"] {
    margin-left: -8px;
}

.nav-social-icon {
    color: #111;
    padding-inline: 0;
    order: 10;
}

.nav-eu-logo {
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 10px 0;
    color: #123f3d;
    font-weight: 700;
}

.nav-eu-logo img {
    display: block;
    width: 58px;
    height: auto;
}

.mobile-menu-btn {
    color: var(--secondary-color);
}

.hero {
    min-height: calc(100vh - 88px);
    padding: clamp(90px, 11vw, 170px) 0 clamp(80px, 9vw, 140px);
    text-align: left;
    background: #fff;
}

.hero-bg {
    left: auto;
    right: 0;
    width: min(54vw, 980px);
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.12), rgba(18, 63, 61, 0.08)), url('assets/zdj1-duzy.jpeg');
    background-position: center;
    background-size: cover;
    clip-path: polygon(27% 0, 100% 0, 100% 100%, 34% 100%, 0 48%);
    opacity: 1;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 53% 0%, var(--secondary-color) 0 135px, transparent 136px),
        radial-gradient(circle at 7% 32%, var(--secondary-color) 0 58px, transparent 59px),
        radial-gradient(circle at 50% 62%, var(--secondary-color) 0 76px, transparent 77px),
        radial-gradient(circle at 24% 106%, var(--secondary-color) 0 88px, transparent 89px);
    opacity: 1;
    z-index: 0;
}

.hero::after {
    background: linear-gradient(90deg, #fff 0 48%, rgba(255, 255, 255, 0) 48%);
    z-index: 1;
}

.custom-shape-divider-bottom {
    display: none;
}

.hero .container {
    max-width: var(--container-width);
    z-index: 2;
}

.hero h1 {
    max-width: 620px;
    color: var(--primary-color);
    font-size: 6.2rem;
    line-height: 1.18;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: none;
    margin-bottom: 22px;
}

.hero p.lead {
    max-width: 560px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    color: #303331;
    font-size: 1.18rem;
    line-height: 1.55;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.section {
    position: relative;
    padding: clamp(70px, 8vw, 115px) 0;
    background: rgba(255, 255, 255, 0.74);
}

.section-title {
    color: var(--primary-color);
    font-size: 3.6rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 62px;
}

.section-title::after {
    width: 260px;
    height: 1px;
    margin-top: 26px;
    background: var(--secondary-color);
    border-radius: 0;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) rotate(-38deg);
    width: 20px;
    height: 13px;
    border-radius: 100% 0 100% 0;
    background: var(--secondary-color);
    box-shadow: 10px -5px 0 -4px var(--secondary-color);
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.experience-section {
    background: rgba(255, 255, 255, 0.86);
}

.eu-project-section {
    background: #ffffff;
    scroll-margin-top: 96px;
}

.eu-project-header {
    max-width: 920px;
    margin-bottom: 42px;
}

.eu-project-header .section-title {
    left: auto;
    transform: none;
    display: block;
    text-align: left;
    margin-bottom: 24px;
}

.eu-project-header .section-title::before,
.eu-project-header .section-title::after {
    display: none;
}

.eu-project-lead,
.eu-project-content p,
.eu-project-docs li {
    color: #343735;
    font-size: 1.05rem;
    line-height: 1.75;
}

.eu-project-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    gap: 34px;
    align-items: start;
}

.eu-project-content p + p {
    margin-top: 16px;
}

.eu-project-tags {
    font-weight: 700;
}

.eu-project-facts,
.eu-project-docs {
    padding: 24px;
    background: rgba(255, 248, 225, 0.72);
    border: 1px solid rgba(18, 63, 61, 0.09);
    border-radius: 8px;
}

.eu-project-docs {
    margin-top: 34px;
}

.eu-project-docs h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.eu-project-docs ul {
    display: grid;
    gap: 8px;
}

.eu-project-docs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.eu-project-docs a {
    color: var(--primary-color);
    font-weight: 700;
}

.eu-project-docs li span:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

.eu-signs-row {
    max-width: 980px;
    margin-top: 34px;
    padding: 20px 0;
    background: #fff;
}

.eu-signs-row img {
    width: 100%;
    height: auto;
    display: block;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.poster-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(18, 63, 61, 0.1);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-grid img:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(18, 63, 61, 0.16);
}

.experience-grid {
    grid-template-columns: minmax(240px, 0.85fr) minmax(230px, 0.75fr) minmax(360px, 1.55fr);
    gap: clamp(22px, 3vw, 48px);
    align-items: center;
}

.experience-img-1,
.experience-img-2 {
    border-radius: 6px 42px 6px 42px;
    box-shadow: var(--shadow);
    filter: saturate(0.82) contrast(1.02);
}

.contact-info-card {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 34px 6px 34px 6px;
    box-shadow: 0 22px 45px rgba(18, 63, 61, 0.18);
}

.contact-info-card p,
.contact-info-card i,
.contact-phone-list {
    color: var(--white);
}

.experience-text {
    padding: 10px 0;
}

.experience-title {
    color: var(--primary-color);
    font-size: 3.3rem;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: 0.06em;
}

.experience-text p,
.wwr-intro,
.standards-text-content,
.contact-card p {
    color: #343735;
    font-size: 1.08rem;
    line-height: 1.75;
}

.team-text {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.offer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 58px);
}

.home-page .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.offer-icon {
    width: auto;
    height: auto;
    margin-bottom: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--secondary-color);
    -webkit-text-fill-color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.45rem;
    line-height: 1;
    box-shadow: none;
    text-shadow: 0 12px 24px rgba(18, 63, 61, 0.12);
    overflow: visible;
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.offer-icon::before {
    display: block;
    transform: none;
}

.offer-icon::after {
    display: none;
}

.offer-card:hover .offer-icon {
    transform: translateY(-5px);
    color: var(--primary-color);
    text-shadow: 0 16px 28px rgba(198, 161, 109, 0.2);
}

.offer-card h3 {
    color: #101010;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.offer-card p {
    color: #3f4440;
    max-width: 260px;
    font-size: 1rem;
    line-height: 1.75;
}

.gallery-section,
.reviews-section {
    background:
        linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
        url('assets/tlo.png') center / 760px auto repeat;
}

.photo-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 0;
}

.gallery-img,
.wwr-img {
    border-radius: 8px;
    box-shadow: none;
    filter: saturate(0.86) contrast(1.02);
}

.photo-gallery .gallery-img {
    aspect-ratio: 1.48 / 1;
    height: auto;
}

.gallery-img:hover,
.wwr-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(18, 63, 61, 0.14);
}

.photo-gallery .gallery-img:nth-child(1),
.photo-gallery .gallery-img:nth-child(4),
.photo-gallery .gallery-img:nth-child(7),
.photo-gallery .gallery-img:nth-child(10) {
    grid-row: auto;
}

.reviews-section::before {
    opacity: 0;
}

.review-bubble,
.document-item,
.staff-card,
.therapy-item,
.contact-card,
.standards-text-content {
    border: 1px solid rgba(18, 63, 61, 0.09);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(18, 63, 61, 0.08);
}

.review-bubble {
    background: rgba(255, 255, 255, 0.9);
}

.stars,
.quote-icon,
.review-author-info h4,
.contact-card h3,
.footer-col h3,
.staff-name,
.process-step h4 {
    color: var(--primary-color);
}

.carousel-btn,
.process-step::before,
.download-btn,
.fb-review-btn {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
}

.download-btn:hover,
.fb-review-btn:hover,
.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.fb-review-btn,
.download-link-small {
    border: 1px solid var(--primary-color);
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.download-link-small {
    color: var(--primary-color);
    border-radius: 8px;
}

.wwr-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.wwr-img {
    height: 230px;
}

.standard-card {
    background:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('assets/island-card-bg-duzy.jpeg') center / cover;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(18, 63, 61, 0.1);
}

.standard-card strong {
    color: var(--secondary-color) !important;
}

.therapy-list {
    list-style: none;
    padding-left: 0 !important;
}

.therapy-list li {
    position: relative;
    padding-left: 18px;
}

.therapy-list li::before {
    content: "-";
    position: absolute;
    left: 0;
}

.document-card {
    border-radius: 8px;
    font-family: var(--font-main);
}

.contact-card {
    background: rgba(255, 255, 255, 0.88);
}

.contact-icon {
    background: var(--secondary-color);
    color: #f6ead9;
    border-radius: 28px;
}

.map-container {
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(18, 63, 61, 0.12);
}

footer {
    position: relative;
    margin-top: 0;
    padding: 90px 0 28px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('assets/zdj13-duzy.jpeg') center / cover;
    color: #2c302f;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.42);
}

footer .container {
    position: relative;
}

.footer-content {
    align-items: start;
    text-align: center;
}

.footer-col h3 {
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copyright {
    border-top: 1px solid rgba(18, 63, 61, 0.14);
    color: #4a4d4b;
}

#mobileCallBtn {
    background-color: var(--secondary-color);
}

@media (min-width: 901px) {

    .home-page .hero h1,
    .home-page .hero p.lead {
        margin-left: -18px;
    }
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-bg {
        width: 50vw;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 70px 0;
    }

    .hero-bg {
        position: relative;
        width: calc(100% - 40px);
        height: 360px;
        margin: 42px auto 0;
        clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
        border-radius: 8px;
    }

    .hero::after {
        background: rgba(255, 255, 255, 0.72);
    }

    .hero::before {
        opacity: 0.38;
    }

    .hero h1,
    .hero p.lead {
        max-width: none;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .experience-title {
        font-size: 2.6rem;
    }

    .offer-grid,
    .wwr-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eu-project-header,
    .eu-project-content,
    .poster-grid,
    .eu-signs-row {
        grid-template-columns: 1fr;
    }

    .eu-project-header .section-title {
        text-align: center;
    }

    .eu-project-logo {
        margin-inline: auto;
    }

    .eu-signs-row span {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 76px;
    }

    .logo {
        font-size: 0.92rem;
        letter-spacing: 0.08em;
    }

    .nav-links {
        top: 76px;
        gap: 0;
        padding: 16px 24px 24px;
        border-top: 1px solid rgba(18, 63, 61, 0.08);
    }

    .nav-links a {
        padding: 12px 0;
    }

    .section-title::after {
        width: 190px;
    }

    .section-title {
        font-size: 2.35rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-bg {
        height: 280px;
    }

    .offer-grid,
    .wwr-gallery,
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .home-page .offer-grid {
        grid-template-columns: 1fr;
    }

    .offer-icon {
        font-size: 2.8rem;
    }
}

/* Mobile polish */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        text-align: center;
    }

    .container {
        width: 100%;
        padding-inline: 22px;
    }

    header {
        position: sticky;
    }

    .navbar {
        justify-content: center;
        padding-inline: 0;
    }

    .logo {
        max-width: calc(100% - 56px);
        margin-right: auto;
        text-align: left;
        line-height: 1.15;
    }

    .logo img {
        height: 48px !important;
        margin-right: 8px !important;
    }

    .mobile-menu-btn {
        margin-left: auto;
        font-size: 1.65rem;
    }

    .nav-links {
        text-align: center;
        align-items: center;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero {
        display: flex;
        flex-direction: column;
        padding: 54px 0 64px;
        text-align: center;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero::before {
        background:
            radial-gradient(circle at 8% 18%, rgba(18, 63, 61, 0.16) 0 48px, transparent 49px),
            radial-gradient(circle at 92% 8%, rgba(18, 63, 61, 0.12) 0 58px, transparent 59px),
            radial-gradient(circle at 82% 80%, rgba(18, 63, 61, 0.12) 0 46px, transparent 47px);
    }

    .hero::after {
        display: none;
    }

    .hero h1 {
        max-width: 12ch;
        margin-inline: auto;
        text-align: center;
        line-height: 1.08;
        letter-spacing: 0.035em;
    }

    .hero p.lead {
        max-width: 34rem;
        margin-inline: auto;
        text-align: center;
        font-size: 1.04rem;
        line-height: 1.62;
        letter-spacing: 0.015em;
    }

    .hero-bg {
        order: 2;
        width: min(100%, 520px);
        margin-top: 34px;
        clip-path: none;
        border-radius: 8px 42px 8px 42px;
    }

    .hero .container {
        order: 1;
    }

    .section {
        padding: 64px 0;
        text-align: center;
    }

    .section-title {
        width: 100%;
        max-width: 100%;
        left: auto;
        transform: none;
        display: block;
        margin-inline: auto;
        text-align: center;
        line-height: 1.18;
        letter-spacing: 0.045em;
        overflow-wrap: anywhere;
    }

    .experience-grid {
        justify-items: center;
        gap: 28px;
    }

    .experience-img-1,
    .experience-img-2 {
        width: min(100%, 520px);
        max-height: 360px;
        object-fit: cover;
    }

    .contact-info-card {
        width: min(100%, 520px);
        padding: 28px 22px;
        border-radius: 28px 8px 28px 8px;
    }

    .contact-info-card p {
        justify-content: center;
        text-align: left;
        max-width: 290px;
        margin-inline: auto;
    }

    .contact-phone-list {
        justify-content: center;
        margin-inline: auto;
        max-width: 290px;
        text-align: left;
    }

    .experience-text {
        max-width: 620px;
        padding: 0;
        text-align: center;
    }

    .experience-title,
    .experience-text p,
    .team-text {
        text-align: center;
    }

    .experience-title {
        margin-inline: auto;
        line-height: 1.14;
    }

    .offer-grid {
        max-width: 560px;
        margin-inline: auto;
    }

    .offer-card {
        max-width: 360px;
        margin-inline: auto;
        text-align: center;
    }

    .offer-card p {
        margin-inline: auto;
    }

    .photo-gallery {
        max-width: 560px;
        margin-inline: auto;
    }

    .reviews-container {
        padding: 0 28px;
    }

    .review-bubble,
    .review-text,
    .review-author-info,
    .fb-review-btn {
        text-align: center;
    }

    .review-footer {
        justify-content: center;
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .standards-text-content,
    .standards-text-content h3,
    .standards-text-content h4,
    .standards-text-content li,
    .document-item,
    .staff-card {
        text-align: left;
    }

    .standards-text-content {
        padding: 26px 20px;
    }

    .documents-list,
    .staff-grid,
    .contact-grid {
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .container {
        padding-inline: 18px;
    }

    .hero {
        padding-top: 44px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero p.lead {
        font-size: 0.98rem;
    }

    .hero-bg {
        height: 245px;
    }

    .section {
        padding: 54px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 48px;
    }

    .section-title::after {
        width: 150px;
    }

    .experience-title {
        font-size: 2.18rem;
    }

    .experience-text p,
    .offer-card p,
    .review-text {
        font-size: 0.98rem;
        line-height: 1.66;
    }

    .offer-card h3 {
        font-size: 1.02rem;
    }

    .photo-gallery .gallery-img {
        aspect-ratio: 1.28 / 1;
    }

    .reviews-container {
        padding: 0 12px;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .fb-review-btn {
        width: 100%;
        max-width: 310px;
        padding-inline: 18px;
    }
}

/* Final visual refinements */
html {
    scroll-behavior: smooth;
}

header {
    border-bottom: 1px solid rgba(18, 63, 61, 0.06);
}

.navbar {
    height: 76px;
}

.logo {
    font-size: 1rem;
    letter-spacing: 0.1em;
    gap: 6px;
    margin-right: 24px;
}

.logo img {
    height: 48px !important;
    margin-right: 6px !important;
}

.nav-links {
    gap: clamp(10px, 1.35vw, 24px);
}

.nav-links a {
    font-size: 0.76rem;
    white-space: nowrap;
    padding: 26px 0 20px;
}

.nav-links a.active {
    border-bottom-color: rgba(198, 161, 109, 0.72);
}

.experience-grid {
    align-items: stretch;
}

.experience-img-1,
.experience-img-2,
.contact-info-card {
    min-height: 290px;
}

.experience-img-1,
.experience-img-2 {
    height: 100%;
    object-fit: cover;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-section {
    scroll-margin-top: 88px;
}

.gallery-extra {
    display: none;
}

.gallery-expanded .gallery-extra {
    display: block;
}

.gallery-toggle {
    display: block;
    margin: 34px auto 0;
    padding: 14px 28px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--primary-color);
    font-family: var(--font-main);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.gallery-toggle:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.review-bubble {
    min-height: 250px;
}

.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews-track {
    align-items: stretch;
}

.review-card {
    justify-content: space-between;
}

.icon-gradient-1,
.icon-gradient-2,
.icon-gradient-3,
.icon-gradient-4 {
    background: transparent;
}

@media (max-width: 1180px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.7rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 72px;
    }

    .gallery-section {
        scroll-margin-top: 82px;
    }

    .gallery-toggle {
        width: min(100%, 310px);
    }

    .review-bubble {
        min-height: auto;
    }

    .review-text {
        -webkit-line-clamp: 8;
    }
}

/* Homepage animation layer */
.home-page header {
    animation: navDropIn 0.7s ease-out both;
}

.home-page .hero h1 {
    opacity: 0;
    animation: heroTextIn 0.9s ease-out 0.12s both;
}

.home-page .hero p.lead {
    opacity: 0;
    animation: heroTextIn 0.9s ease-out 0.28s both;
}

.home-page .hero .cta-button {
    margin-top: 34px;
}

.home-page .hero .cta-button:hover {
    transform: none;
}

.home-page .hero-bg {
    animation:
        heroImageIn 1s ease-out 0.18s both,
        heroImageFloat 14s ease-in-out 1.2s infinite alternate;
    will-change: transform;
}

.home-page .hero::before {
    animation: heroDecorFloat 16s ease-in-out infinite alternate;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-page .offer-card.scroll-reveal {
    transform: translateY(22px) scale(0.98);
}

.home-page .offer-card.scroll-reveal.visible {
    transform: translateY(0) scale(1);
}

.home-page .photo-gallery .gallery-img.scroll-reveal {
    transform: translateY(22px) scale(0.985);
}

.home-page .photo-gallery .gallery-img.scroll-reveal.visible {
    transform: translateY(0) scale(1);
}

.home-page .photo-gallery .gallery-img.scroll-reveal.visible:hover {
    transform: translateY(-4px) scale(1.01);
}

.home-page .gallery-expanded .gallery-extra.scroll-reveal {
    animation: galleryExtraIn 0.55s ease-out both;
}

.home-page .gallery-toggle {
    position: relative;
    overflow: hidden;
}

.home-page .gallery-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.45) 48%, transparent 60% 100%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.home-page .gallery-toggle:hover::after {
    transform: translateX(120%);
}

@keyframes navDropIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(34px) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroImageFloat {
    from {
        transform: translateX(0) scale(1);
    }

    to {
        transform: translateX(-10px) scale(1.018);
    }
}

@keyframes heroDecorFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(12px, -10px, 0) scale(1.02);
    }
}

@keyframes galleryExtraIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .scroll-reveal,
    .home-page .hero h1,
    .home-page .hero p.lead {
        opacity: 1;
        transform: none;
    }
}

/* Tablet and narrow desktop fixes */
@media (max-width: 1220px) {
    body {
        padding-top: 76px;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .navbar {
        position: relative;
        height: 76px;
    }

    .logo {
        max-width: calc(100% - 58px);
        font-size: 0.98rem;
        letter-spacing: 0.08em;
        line-height: 1.1;
    }

    .logo img {
        height: 48px !important;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
        margin-left: 12px;
        color: var(--secondary-color);
        font-size: 1.65rem;
        line-height: 1;
    }

    .nav-links {
        display: flex;
        order: 2;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 18px 24px 24px;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(18, 63, 61, 0.08);
        box-shadow: 0 18px 34px rgba(18, 63, 61, 0.1);
    }

    .nav-links a {
        display: none;
        width: 100%;
        padding: 12px 0;
        text-align: center;
        font-size: 0.82rem;
    }

    .nav-links.active a {
        display: block;
    }

    .nav-links .nav-eu-logo {
        display: inline-flex;
        width: auto;
        padding: 0;
    }

    .nav-links.active .nav-eu-logo {
        width: 100%;
        padding: 12px 0;
    }

    .nav-eu-logo img {
        width: 48px;
    }

    .nav-links a.active {
        border-bottom: 0;
        color: var(--primary-color);
    }

    .nav-social-icon {
        justify-content: center;
    }

    .therapy-list,
    .therapy-list li {
        text-align: left;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
        gap: 28px;
        align-items: stretch;
    }

    .experience-img-1 {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-info-card {
        grid-column: 1;
        grid-row: 2;
    }

    .experience-text {
        grid-column: 1;
        grid-row: 3;
        max-width: 780px;
        margin-inline: auto;
        padding: 10px 0 0;
        text-align: center;
    }

    .experience-title,
    .experience-text p,
    .team-text {
        text-align: center;
    }

    .experience-text p {
        max-width: 760px;
        margin-inline: auto;
    }

    .experience-img-2 {
        grid-column: 1 / -1;
        grid-row: 3;
        width: min(100%, 680px);
        height: 360px;
        margin: 0 auto;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .experience-img-1,
    .contact-info-card,
    .experience-text,
    .experience-img-2 {
        grid-column: 1;
        grid-row: auto;
    }

    .experience-img-2 {
        width: min(100%, 520px);
        height: auto;
        max-height: 360px;
    }
}

/* ==========================================================================
   Accessibility Module (Ułatwienia Dostępności)
   ========================================================================== */

/* 1. Floating Toggle Button */
.accessibility-toggle-btn {
    position: fixed;
    left: 20px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1877F2, #1565C0);
    color: #ffffff !important;
    border-radius: 50%;
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.accessibility-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1565C0, #0D47A1);
}

.accessibility-toggle-btn:focus-visible {
    outline: 4px solid #FF8C00;
    outline-offset: 3px;
}

/* Hide toggle button inside lightbox to prevent overlapping */
.lightbox.active ~ .accessibility-toggle-btn {
    display: none;
}

/* 2. Slide-out Side Panel (Glassmorphism UX) */
.accessibility-panel {
    position: fixed;
    left: -340px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 100000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    font-family: var(--font-main);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

.accessibility-panel.open {
    left: 0;
}

/* 3. Panel Components */
.accessibility-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 15px;
    margin-bottom: 5px;
}

.accessibility-panel-header h3 {
    font-size: 1.35rem;
    color: #1A1A1A;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accessibility-panel-header h3 i {
    color: #1877F2;
}

.accessibility-panel-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #555;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.accessibility-panel-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: rotate(90deg);
}

.accessibility-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accessibility-section h4 {
    font-size: 1rem;
    color: #4A4A4A;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accessibility-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessibility-opt-btn {
    background: #fcfcfc;
    color: #2D3748;
    border: 1px solid #E2E8F0;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    font-family: inherit;
}

.accessibility-opt-btn:hover {
    background: #EDF2F7;
    border-color: #CBD5E0;
    transform: translateY(-1px);
}

.accessibility-opt-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.accessibility-opt-btn.active {
    background: #1877F2;
    color: #ffffff !important;
    border-color: #1877F2;
}

.accessibility-opt-btn.active::after {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.accessibility-reset-btn {
    margin-top: auto;
    background: #E53935;
    color: #ffffff !important;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.accessibility-reset-btn:hover {
    background: #C62828;
    box-shadow: 0 6px 14px rgba(198, 40, 40, 0.35);
    transform: translateY(-1px);
}

/* 4. Backdrop Overlay */
.accessibility-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.accessibility-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Accessibility Scale and Contrast Modes
   ========================================================================== */

/* A. Font Scaling Rules (HTML Rem adjustments) */
html.accessibility-font-medium {
    font-size: 120% !important;
}

html.accessibility-font-large {
    font-size: 140% !important;
}

html.accessibility-font-xlarge {
    font-size: 160% !important;
}

/* Ensure header, mobile call btn and panel behave properly under high scale */
html[class*="accessibility-font-"] header {
    height: auto !important;
    min-height: 80px;
}

html[class*="accessibility-font-"] .navbar {
    height: auto !important;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

html[class*="accessibility-font-"] .nav-links {
    flex-wrap: wrap;
}

body.accessibility-line-height {
    line-height: 1.9 !important;
}

body.accessibility-line-height p,
body.accessibility-line-height li,
body.accessibility-line-height a,
body.accessibility-line-height button {
    line-height: 1.9 !important;
}

body.accessibility-align-left,
body.accessibility-align-left * {
    text-align: left !important;
}

body.accessibility-readable-font,
body.accessibility-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
}

body.accessibility-grayscale {
    filter: grayscale(100%) !important;
}

body.accessibility-hide-images img,
body.accessibility-hide-images .hero-bg {
    visibility: hidden !important;
}

body.accessibility-stop-animations *,
body.accessibility-stop-animations *::before,
body.accessibility-stop-animations *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

body.accessibility-stop-animations .fade-in-up,
body.accessibility-stop-animations .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

body.accessibility-highlight-links a {
    outline: 3px solid #2648f2 !important;
    outline-offset: 3px !important;
    background: rgba(38, 72, 242, 0.14) !important;
    text-decoration: underline !important;
}

body.accessibility-reading-mask::before,
body.accessibility-reading-mask::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    height: calc(50vh - 90px);
    background: rgba(0, 0, 0, 0.58);
    pointer-events: none;
    z-index: 99997;
}

body.accessibility-reading-mask::before {
    top: 0;
}

body.accessibility-reading-mask::after {
    bottom: 0;
}

body.accessibility-focus-outline *:focus,
body.accessibility-focus-outline a,
body.accessibility-focus-outline button {
    outline: 4px solid #2648f2 !important;
    outline-offset: 4px !important;
}

body.accessibility-page-structure section,
body.accessibility-page-structure header,
body.accessibility-page-structure footer,
body.accessibility-page-structure nav,
body.accessibility-page-structure main,
body.accessibility-page-structure h1,
body.accessibility-page-structure h2,
body.accessibility-page-structure h3 {
    outline: 2px dashed #2648f2 !important;
    outline-offset: 4px !important;
}

/* B. WCAG AAA High Contrast Modes */

/* Tryb Czarno-Żółty (Contrast Black-Yellow) */
body.contrast-black-yellow {
    background-color: #000000 !important;
    background-image: none !important;
    color: #FFFF00 !important;
}

body.contrast-black-yellow * {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
}

body.contrast-black-yellow a,
body.contrast-black-yellow a * {
    color: #FFFF00 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

body.contrast-black-yellow a:hover,
body.contrast-black-yellow a:focus {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

body.contrast-black-yellow a:hover *,
body.contrast-black-yellow a:focus * {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

body.contrast-black-yellow button,
body.contrast-black-yellow input,
body.contrast-black-yellow select,
body.contrast-black-yellow textarea,
body.contrast-black-yellow .fb-review-btn,
body.contrast-black-yellow .gallery-toggle,
body.contrast-black-yellow .download-link-small {
    border: 2px solid #FFFF00 !important;
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border-radius: 4px !important;
}

body.contrast-black-yellow button:hover,
body.contrast-black-yellow button:focus,
body.contrast-black-yellow input:focus,
body.contrast-black-yellow select:focus,
body.contrast-black-yellow textarea:focus,
body.contrast-black-yellow .fb-review-btn:hover,
body.contrast-black-yellow .gallery-toggle:hover,
body.contrast-black-yellow .download-link-small:hover {
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

body.contrast-black-yellow .accessibility-opt-btn.active {
    outline: 4px solid #FFFF00 !important;
    outline-offset: -4px !important;
    background-color: #FFFF00 !important;
    color: #000000 !important;
}

body.contrast-black-yellow .accessibility-opt-btn.active::after {
    background-color: #000000 !important;
}

body.contrast-black-yellow .accessibility-toggle-btn {
    border: 4px solid #FFFF00 !important;
    background: #000000 !important;
    color: #FFFF00 !important;
}

body.contrast-black-yellow svg,
body.contrast-black-yellow svg * {
    fill: #FFFF00 !important;
    stroke: #FFFF00 !important;
}

body.contrast-black-yellow svg path {
    fill: #FFFF00 !important;
}

body.contrast-black-yellow *:focus {
    outline: 4px dashed #FFFF00 !important;
    outline-offset: 4px !important;
}


/* Tryb Czarno-Biały (Contrast Black-White) */
body.contrast-black-white {
    background-color: #000000 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

body.contrast-black-white * {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
}

body.contrast-black-white a,
body.contrast-black-white a * {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

body.contrast-black-white a:hover,
body.contrast-black-white a:focus {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.contrast-black-white a:hover *,
body.contrast-black-white a:focus * {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.contrast-black-white button,
body.contrast-black-white input,
body.contrast-black-white select,
body.contrast-black-white textarea,
body.contrast-black-white .fb-review-btn,
body.contrast-black-white .gallery-toggle,
body.contrast-black-white .download-link-small {
    border: 2px solid #FFFFFF !important;
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
}

body.contrast-black-white button:hover,
body.contrast-black-white button:focus,
body.contrast-black-white input:focus,
body.contrast-black-white select:focus,
body.contrast-black-white textarea:focus,
body.contrast-black-white .fb-review-btn:hover,
body.contrast-black-white .gallery-toggle:hover,
body.contrast-black-white .download-link-small:hover {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.contrast-black-white .accessibility-opt-btn.active {
    outline: 4px solid #FFFFFF !important;
    outline-offset: -4px !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.contrast-black-white .accessibility-opt-btn.active::after {
    background-color: #000000 !important;
}

body.contrast-black-white .accessibility-toggle-btn {
    border: 4px solid #FFFFFF !important;
    background: #000000 !important;
    color: #FFFFFF !important;
}

body.contrast-black-white svg,
body.contrast-black-white svg * {
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

body.contrast-black-white svg path {
    fill: #FFFFFF !important;
}

body.contrast-black-white *:focus {
    outline: 4px dashed #FFFFFF !important;
    outline-offset: 4px !important;
}

/* Grayscale and contrast booster for all source images in contrast modes */
body.contrast-black-yellow img,
body.contrast-black-white img {
    filter: grayscale(100%) contrast(160%) !important;
    border: 2px solid currentColor !important;
}

/* Specific Hero Section and Shape Divider overrides for High Contrast Modes */
body.contrast-black-yellow .hero,
body.contrast-black-yellow .hero .container,
body.contrast-black-yellow .hero h1,
body.contrast-black-yellow .hero p.lead {
    background-color: #000000 !important;
    background-image: none !important;
    color: #FFFF00 !important;
}

body.contrast-black-white .hero,
body.contrast-black-white .hero .container,
body.contrast-black-white .hero h1,
body.contrast-black-white .hero p.lead {
    background-color: #000000 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

/* Force full visibility of all animated elements (preventing opacity: 0 stuck states due to disabled animations) */
body[class*="contrast-black-"] .hero h1,
body[class*="contrast-black-"] .hero p.lead,
body[class*="contrast-black-"] .hero-bg,
body[class*="contrast-black-"] .fade-in-up,
body[class*="contrast-black-"] .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Ensure the main cover photo in the hero section remains visible with a high-contrast filter */
body.contrast-black-yellow .hero-bg {
    background-color: #000000 !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/zdj1-duzy.jpeg') !important;
    filter: grayscale(100%) contrast(160%) !important;
}

body.contrast-black-white .hero-bg {
    background-color: #000000 !important;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/zdj1-duzy.jpeg') !important;
    filter: grayscale(100%) contrast(160%) !important;
}

/* Explicitly hide the decoration shapes, overlay gradients, and dividers */
body[class*="contrast-black-"] .custom-shape-divider-bottom,
body[class*="contrast-black-"] .custom-shape-divider-bottom svg,
body[class*="contrast-black-"] .custom-shape-divider-bottom .shape-fill,
body[class*="contrast-black-"] .hero::before,
body[class*="contrast-black-"] .hero::after,
body[class*="contrast-black-"] .home-page .hero::before,
body[class*="contrast-black-"] .home-page .hero::after {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

/* Explicitly clear pseudo-element backgrounds and borders across the entire site under contrast modes */
body.contrast-black-yellow ::before,
body.contrast-black-yellow ::after {
    background-color: transparent !important;
    background-image: none !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
}

body.contrast-black-white ::before,
body.contrast-black-white ::after {
    background-color: transparent !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}
