/* Root Variables - Colors & Fonts */
:root {
    --primary-color: #3d639e; /* Updated Blue */
    --secondary-color: #c5a059; /* Gold/Yellow */
    --accent-color: #e5e5e5;
    --text-dark: #3d639e; /* Text is now blue */
    --text-light: #ffffff;
    --text-muted: #5a7fb3; /* Muted text also adjusted to blue tint */
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #b38e4a;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Header & Navigation */
.main-header {
    background: var(--text-light);
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-desktop > ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-desktop a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    position: relative;
    padding: 5px 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.nav-desktop .nav-cta::after {
    display: none;
}

.nav-desktop .nav-cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 4px;
    margin-left: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-desktop .nav-cta:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--text-light);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    /* Wymuszenie układu pionowego i reset flexa */
    display: flex !important;
    flex-direction: column !important;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    white-space: nowrap; /* Zapobiega łamaniu tekstu w pionie */
}

.dropdown a::after {
    display: none !important;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--secondary-color) !important;
    padding-left: 25px !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    padding-left: 20px;
    border-left: 1px solid var(--accent-color);
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-radius: 4px;
    opacity: 0.6;
}

.lang-btn img {
    width: 20px;
    height: auto;
    display: block;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--secondary-color);
}

.lang-btn:hover {
    opacity: 1;
}

/* Mobile Language Switcher */
.lang-switcher-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.lang-switcher-mobile .lang-btn {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    border: 1px solid var(--text-light);
    padding: 5px 15px;
}

.lang-switcher-mobile .lang-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Page Hero */
.page-hero {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Contact Cards & Forms */
.contact-grid {
    align-items: start;
}

.contact-card {
    background: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    margin-bottom: 0;
    line-height: 1;
    font-size: 1.8rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-sub {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 43, 73, 0.1);
}

.w-100 {
    width: 100%;
}

.nav-cta.active {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Privacy Section */
.privacy-content-wrapper {
    background: var(--text-light);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.privacy-body p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
}

.privacy-body strong {
    color: var(--primary-color);
}

/* Preschool Specific Styles */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.group-card {
    background: var(--text-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--secondary-color);
    transition: var(--transition);
}

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

.group-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.pre-features-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pre-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.pre-feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Pricing Styles */
.pricing-container {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-main {
    padding: 40px;
    margin-bottom: 30px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--accent-color);
}

.price-label {
    font-weight: 600;
}

.price-value {
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.pricing-additional {
    gap: 20px;
    margin-bottom: 40px;
}

.add-price-card {
    background: var(--text-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.price-bubble {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 10px;
    font-weight: 700;
}

.discounts-box {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.discounts-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.discounts-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.discount-item strong {
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: block;
}

/* Extra Classes Grid */
.extra-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.extra-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: var(--transition);
    flex: 0 1 calc(25% - 20px);
    min-width: 250px;
}

.extra-item:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.extra-item i {
    color: var(--secondary-color);
    width: 32px; /* Fixed width for alignment */
    height: 32px; /* Height to ensure vertical centering */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .grid-4 { grid-template-columns: 1fr; }
    .discounts-grid { flex-direction: column; gap: 15px; }
}

/* Staff Section Styles */
.director-card {
    display: flex;
    gap: 40px;
    padding: 40px;
    margin-bottom: 60px;
    align-items: center;
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.director-img {
    flex: 0 0 320px; /* Fixed base width */
    max-width: 100%;
    position: relative;
    padding-right: 15px; /* Space for the shadow to live inside the box */
    padding-bottom: 15px; /* Space for the shadow to live inside the box */
}

.director-info {
    flex: 1;
    min-width: 0; /* Prevents text from pushing the layout */
}

.director-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 15px 15px 0px var(--secondary-color);
    display: block;
}

.staff-role {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.director-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.staff-bio p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.staff-qualifications {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--accent-color);
}

.staff-qualifications h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.staff-qualifications ul {
    list-style: disc;
    margin-left: 20px;
    font-size: 0.95rem;
}

.staff-grid {
    gap: 40px;
}

.staff-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Flip Card Core Logic */
@media (min-width: 993px) {
    .flip-card {
        background: transparent !important;
        box-shadow: none !important;
        perspective: 1000px;
        height: 520px; /* Middle ground height */
    }

    .staff-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        transform-style: preserve-3d;
    }

    .flip-card:hover .staff-card-inner {
        transform: rotateY(180deg);
    }

    .staff-card-front, .staff-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 8px;
        overflow: hidden;
        background: var(--text-light);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .staff-card-front {
        display: flex;
        flex-direction: column;
        padding-top: 25px;
    }

    .staff-card-back {
        transform: rotateY(180deg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        background: var(--bg-light);
        border-top: 5px solid var(--secondary-color);
    }

    .staff-card-front .staff-img-small {
        flex: 0 0 280px; /* Adjusted container size */
        width: 240px; /* Increased photo size */
        margin: 0 auto;
        border-radius: 12px;
    }

    .staff-card-back .staff-info {
        padding: 0;
    }
}

/* Mobile degradation - "Keep as is" */
@media (max-width: 992px) {
    .staff-card-inner {
        display: flex;
        flex-direction: column;
        background: var(--text-light);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        padding-top: 25px;
    }
    .staff-img-small {
        width: 190px; /* Reduced for better mobile fit */
        margin: 0 auto;
        border-radius: 12px;
    }
    .staff-card-back h3 {
        display: none; /* Hide duplicate name on mobile */
    }
    .staff-card-back .staff-info {
        padding-top: 0; /* Tighten layout */
    }
}

.staff-img-small {
    aspect-ratio: 1 / 1; /* Changed to square for better portrait look */
    width: 100%;
    overflow: hidden;
}

.staff-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.staff-card:hover .staff-img-small img {
    transform: scale(1.05);
}

.staff-info {
    padding: 30px;
}

.staff-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.staff-bio-small {
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.director-sub {
    align-items: center;
}

.mb-60 {
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .director-card { flex-direction: column; text-align: center; }
    .director-img { flex: 0 0 auto; width: 100%; max-width: 350px; }
    .staff-qualifications ul { list-style: none; margin-left: 0; }
}

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

/* Values Flow Layout */
.values-flow {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.value-card-new {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--text-light);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.value-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.value-card-new.reverse {
    flex-direction: row-reverse;
}

.value-card-icon {
    flex: 0 0 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.value-card-new:hover .value-card-icon {
    background: var(--primary-color);
    color: var(--text-light);
    transform: rotate(10deg);
}

.value-card-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.value-list-modern {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.value-list-modern li {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .value-card-new, .value-card-new.reverse {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }
    .value-card-icon {
        flex: 0 0 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.bento-item {
    background: var(--text-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

/* Definicja rozmiarów Bento */
.cambridge-item.feature { grid-column: span 4; background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%); color: var(--text-light); border-left: none; border-bottom: 5px solid var(--secondary-color); }
.cambridge-item.feature h3 { color: var(--secondary-color); font-size: 1.8rem; }
.cambridge-item.feature p { color: #ecf0f1; font-size: 1.1rem; }
.cambridge-item.feature .value-icon { color: var(--secondary-color); font-size: 3.5rem; }

.lang-item { grid-column: span 2; grid-row: span 1; background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%); }
.thinking-item.feature { grid-column: span 2; grid-row: span 2; border-left: 5px solid var(--secondary-color); }
.lit-item { grid-column: span 1; grid-row: span 1; }
.music-item { grid-column: span 1; grid-row: span 1; }
.teachers-item { grid-column: span 2; grid-row: span 1; }

.value-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.bento-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.bento-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.value-list {
    margin-top: 15px;
    list-style: none;
    padding-top: 10px;
    border-top: 1px solid var(--accent-color);
}

.value-list li {
    font-size: 0.85rem;
    padding: 5px 0;
    display: flex;
    gap: 10px;
}

.value-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
}

/* Responsywność Bento */
@media (max-width: 1200px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-item, .thinking-item.feature, .teachers-item { grid-column: span 2; }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-item { grid-column: span 1 !important; grid-row: auto !important; }
}

/* Modern Grid Gallery Styles */
.modern-grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.modern-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}

.modern-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 99, 158, 0.4); /* Primary color with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--text-light);
}

.gallery-hover-overlay i {
    font-size: 3rem;
    color: var(--text-light);
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-gallery-item:hover img {
    transform: scale(1.1);
}

.modern-gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.modern-gallery-item:hover .gallery-hover-overlay i {
    transform: scale(1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

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

@media (max-width: 576px) {
    .modern-grid-gallery { grid-template-columns: 1fr; }
}

/* Scrapbook Gallery Layout */
.scrapbook-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 30px;
    padding: 20px 0;
}

.scrapbook-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scrapbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.scrapbook-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.scrapbook-tag.tag-gold { background: var(--secondary-color); color: var(--text-dark); }
.scrapbook-tag.tag-blue { background: #3498db; }

.scrapbook-item:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.scrapbook-item:hover img {
    transform: scale(1.1);
}

.scrapbook-item:hover .scrapbook-tag {
    transform: translateY(0);
    opacity: 1;
}

/* Item Variations */
.scrapbook-item.item-lg { grid-column: span 2; grid-row: span 2; }
.scrapbook-item.item-tall { grid-row: span 2; }
.scrapbook-item.item-wide { grid-column: span 2; }

@media (max-width: 992px) {
    .scrapbook-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
    .scrapbook-item.item-lg { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .scrapbook-gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 20px; }
    .scrapbook-item.item-lg, .scrapbook-item.item-wide { grid-column: span 1; }
}

/* Gallery Mosaic Styles */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 73, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.gallery-overlay span {
    color: var(--text-light);
    font-weight: 700;
    font-family: var(--font-heading);
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Gallery Sizes */
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.tall { grid-row: span 2; }

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

@media (max-width: 576px) {
    .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gallery-item.large, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hero Split Layout */
.hero-split {
    display: flex;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
    background: #fff;
    overflow: hidden;
}

.hero-split-left {
    flex: 1.1;
    display: flex;
    align-items: center;
    padding: 60px 10%;
    background: #fff;
}

.hero-split-right {
    flex: 0.9;
    position: relative;
    padding: 60px 60px 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 25px 25px 0px var(--secondary-color);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.hero-placeholder-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-inner {
    text-align: center;
    color: var(--secondary-color);
    opacity: 0.6;
}

.placeholder-inner i {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.placeholder-inner span {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-split-content {
    max-width: 650px;
}

.hero-tagline {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    position: relative;
    padding-left: 50px;
}

.hero-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.hero-split-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none; /* Sentence case for more elegance */
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif;
}

.hero-split-content p {
    font-size: 1.2rem;
    color: #444; /* Darker for better readability */
    margin-bottom: 45px;
    line-height: 1.8;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 4px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.hero-badges {
    display: flex;
    gap: 40px;
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid var(--accent-color);
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-badge i {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.hero-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero-split:hover .hero-image-wrapper img {
    transform: scale(1.1);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.15), transparent 30%);
    pointer-events: none;
}

@media (max-width: 1400px) {
    .hero-split-content h1 { font-size: 3rem; }
    .hero-split-left { padding: 40px 5%; }
}

@media (max-width: 1024px) {
    .hero-split { 
        flex-direction: column; 
        min-height: auto; 
        padding-top: 40px;
    }
    .hero-split-left { 
        text-align: center; 
        padding: 40px 20px; 
    }
    .hero-split-right { 
        height: auto; 
        order: 1; 
        padding: 20px 20px 80px;
    }
    .hero-split-content { 
        margin: 0 auto; 
    }
    .hero-tagline { 
        padding-left: 0; 
        margin-bottom: 20px;
    }
    .hero-tagline::before { 
        display: none; 
    }
    .hero-split-content h1 { 
        font-size: 2.8rem; 
        margin-bottom: 20px;
    }
    .hero-split-content p { 
        font-size: 1.1rem; 
        margin-bottom: 35px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns { 
        justify-content: center; 
        margin-bottom: 50px;
    }
    .hero-badges { 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 25px; 
        margin-top: 0;
        padding-top: 30px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .hero-badge { 
        align-items: center;
        flex: 1 1 120px;
    }
    .hero-placeholder-frame {
        box-shadow: 15px 15px 0px var(--secondary-color);
    }
}

@media (max-width: 576px) {
    .hero-split-content h1 { 
        font-size: 2.2rem; 
    }
    .hero-split-right { 
        padding: 10px 20px 60px; 
    }
    .hero-badges { 
        gap: 15px; 
    }
    .hero-badge span {
        font-size: 0.65rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .hero-btns .btn {
        width: 100%;
    }
}

/* Hero Section (Deprecated/Legacy - keeping for subpages if needed, though they use page-hero) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    overflow: hidden;
    padding-top: 90px; /* Miejsce na menu nawigacyjne */
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 18s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 43, 73, 0.8) 0%, rgba(26, 43, 73, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    margin-top: 20px; /* Dodatkowy margines od menu */
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--secondary-color);
    display: block;
    font-size: 2.8rem;
    margin-top: 10px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.hero-btns {
    display: flex;
    gap: 25px;
}

.hero .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
}

.hero .btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-5px);
}

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

@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero h1 span { font-size: 2.2rem; }
    .hero-content { padding: 40px; margin: 0 20px; }
}

@media (max-width: 768px) {
    .hero { text-align: center; }
    .hero-content { padding: 30px 20px; }
    .hero h1 { font-size: 2.2rem; }
    .hero h1 span { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; gap: 15px; }
    .hero p { font-size: 1.1rem; }
}

/* Sections General */
.section-tag {
    display: inline-block;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

/* About Section */
.feature-list {
    margin-top: 25px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.feature-list i {
    color: var(--secondary-color);
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: var(--bg-light);
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    gap: 15px;
    box-shadow: 20px 20px 0px var(--secondary-color);
}

.image-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.image-placeholder span {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: stretch; /* This ensures both columns have the same height */
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.about-image {
    position: relative;
    padding: 20px 20px 20px 0;
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 20px 20px 0px var(--secondary-color);
}

@media (max-width: 992px) {
    .about-content-grid { grid-template-columns: 1fr; }
    .about-image { padding: 0 20px 20px 0; height: 400px; }
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 5px;
}

.about-feature h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.15rem;
    text-align: left;
}

.about-feature p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: left;
}

.about-highlight {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px 30px;
    border-radius: 4px;
    border-left: 5px solid var(--secondary-color);
    font-style: italic;
}

.about-highlight cite {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    font-style: normal;
    color: var(--secondary-color);
    text-align: right;
}

/* Offer Section */
.section-header {
    margin-bottom: 50px;
}

.offer-card {
    background: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.offer-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.offer-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Offer Section Additional */
.director-message-box {
    margin-top: 80px;
    background: var(--text-light);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-left: 6px solid var(--secondary-color);
}

.director-photo {
    flex: 0 0 280px;
    background: var(--primary-color);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
}

.photo-placeholder i {
    font-size: 5rem;
    opacity: 0.4;
}

.director-quote-content {
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.1;
}

.director-quote-content p {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.director-quote-content cite {
    font-style: normal;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.director-quote-content cite span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .director-message-box { flex-direction: column; }
    .director-photo { flex: 0 0 250px; }
    .director-quote-content { padding: 40px 30px; }
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid var(--accent-color);
    padding-top: 15px;
}

.author-name {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-block {
    margin-bottom: 30px;
}

.contact-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-block i {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: scale(1.1);
}

.social-links-small {
    margin-top: 12px;
}

.social-links-small a {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

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

/* Mobile Nav Overlay */
.nav-mobile {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--primary-color);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    flex-direction: column; /* Added to fix overlap */
    justify-content: center;
    align-items: center;
}

.nav-mobile.active {
    left: 0;
}

.nav-mobile ul {
    text-align: center;
}

.nav-mobile li {
    margin: 15px 0; /* Reduced margin */
}

.nav-mobile a {
    color: var(--text-light);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .logo-text {
        font-size: 1.1rem; /* Smaller logo text on mobile */
    }
    .logo img {
        height: 50px; /* Smaller logo image on mobile */
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h1 span {
        font-size: 1.8rem;
    }
    .page-hero {
        padding: 100px 0 50px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .main-header {
        height: 80px; /* Consistent height on mobile */
    }
    .nav-mobile {
        top: 80px;
        height: calc(100vh - 80px);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem; /* Even smaller for very small screens */
    }
    .logo img {
        height: 40px;
    }
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.hamburger, .hamburger::before, .hamburger::after {
    transition: var(--transition);
}
