* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0b3c49;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    height: 75px;     /* kontrola wielkości */
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: clamp(18px, 2vw, 22px);
}

nav a:hover {
    text-decoration: underline;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
    transition: 0.3s ease;
}

/* STAN AKTYWNY */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.no-scroll {
    overflow: hidden;
}

.hero {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(53, 45, 0, 0.15),
            rgba(53, 45, 0, 0.15)
        ),
        url("images/hero.webp");
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05); /* zapobiega białym krawędziom po blurze */
    z-index: -1;
}

.hero h1{
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero p{
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 50px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero .cta {
    font-size: 16px;
    padding: 16px 38px;
    opacity: 0;
    transform: translateY(20px);
}

.hero.animate h1,
.hero.animate p,
.hero.animate .cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.animate p {
    transition-delay: 0.15s;
}

.hero.animate .cta {
    transition-delay: 0.3s;
}

.cta {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #0b3c49;
    background: #4fd1c5;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(79, 209, 197, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(79, 209, 197, 0.5);
    background: #5fe3d6;
}

.cta:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(79, 209, 197, 0.1);
}

.cta:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}

.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: auto;
    scroll-margin-top: 100px;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 17px;
}

.team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member img {
    width: 260px;
    height: 325px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.team-member p {
    font-size: 16px;
    line-height: 1.7;
}

.dark {
    background: #f4f4f4;
    border-radius: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    width: 100%;
    max-width: 320px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        box-shadow 0.3s ease;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(2) {
    transition-delay: 0.1s;
}
.card:nth-child(3) {
    transition-delay: 0.2s;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* .card h3 {
    min-height: 2em; jakby nagłówki były nierówne
} */

.card.featured {
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.card-image {
    position: relative;
    /* margin-bottom: 20px; */ /* psuje wysokość tytułu karty */
    
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

.badge {
    position: absolute;
    top: 52px;
    left: 14px;
    background: #4fd1c5;
    color: #0b3c49;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.badge-sold {
    position: absolute;
    top: 52px;
    left: 14px;
    background: #0d2220;
    color: #ffffffcc;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.badge-time {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #d1a84f;
    color: #242105;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.badge-place {
    position: absolute;
    top: 52px;
    left: 14px;
    background: #d14f4f;
    color: #ffffffcc;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}


.card-cta {
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
    text-decoration: none;
    color: #0b3c49;
    position: relative;
    z-index: 2;
    transition: color 0.25s ease;
}

.card-cta::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #4fd1c5;
    transition: width 0.25s ease;
}

.card-cta:focus-visible {
    outline: 3px solid #4fd1c5;
    outline-offset: 4px;
}

.gallery-grid-advanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
    grid-auto-flow: dense;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.gallery-item {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 14px;
    opacity: 0;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:nth-child(3n) {
    transition-delay: 0.05s;
}
.gallery-item:nth-child(3n + 1) {
    transition-delay: 0.1s;
}
.gallery-item:nth-child(3n + 2) {
    transition-delay: 0.15s;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.65)
    );
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-caption h4 {
    font-size: 16px;
    margin: 0 0 6px;
}

.gallery-caption p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

/* .photo {
    background: #ccc;
    height: 200px;
    border-radius: 8px;
} */

form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea, button {
    padding: 10px;
    font-size: 16px;
}

button {
    background: #0b3c49;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #062a33;
}

.contact {
    text-align: center;
    background: #f4f4f4;
    border-radius: 18px;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 17px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    text-decoration: none;
    color: #0b3c49;
    width: 100%;
    max-width: 320px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.contact-card.visible:nth-child(3) {
    transition-delay: 0.2s;
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    opacity: 0.85;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    background: #0b3c49;
    color: white;
    line-height: 1;
    white-space: nowrap;     
}

.footer a {
    color: inherit;          /* dokładnie taki sam kolor jak tekst */
    text-decoration: none;
    font-weight: inherit;    /* taka sama grubość */
    position: relative;
    cursor: pointer;
}

.footer a:focus-visible {
    outline: none;
    text-decoration: underline;
}

/* Bajery graficzne PC */ 
@media (hover: hover) and (pointer: fine) {

    .team-member img:hover {
        transform: scale(1.06);
    }

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    }

    .card-cta:hover {
        color: #4fd1c5;
    }

    .card-cta:hover::after {
        width: 100%;
    }

    .card {
        cursor: pointer;    
    }

    .gallery-item img:hover {
        transform: scale(1.03);
        transition: transform 0.3s ease;
        box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    }
    
    .gallery-item:hover .gallery-caption {
    opacity: 1;
    }

    .contact-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    }

    .footer a:hover {
        text-decoration: underline;
    }
    
}

@media (hover: none) {
    
    .gallery-caption {
        opacity: 1;
        background: none;
    }

    .gallery-caption h4 {
        font-size: 15px;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }

    .gallery-caption p {
        display: none;
    }
}

/* 📱 RESPONSYWNOŚĆ */

@media (max-width: 1200px) {

    .dark {
        border-radius: 0;
    }

}

@media (max-width: 1000px) {
    .gallery-grid-advanced {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    nav {
        position: fixed;
        inset: 0;
        background: #0b3c49;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    nav a {
        font-size: 24px;
    }

    nav.open {
        transform: translateX(0);
    }

      nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav.open ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .lightbox-prev{
        font-size: 36px;
        left: 15px;
        padding: 20px;
    }

    .lightbox-next {
        font-size: 36px;
        right: 15px;
        padding: 20px;
    }

    /* opóźnienia – efekt kaskady */
    nav.open ul li:nth-child(1) { transition-delay: 0.1s; }
    nav.open ul li:nth-child(2) { transition-delay: 0.2s; }
    nav.open ul li:nth-child(3) { transition-delay: 0.3s; }
    nav.open ul li:nth-child(4) { transition-delay: 0.4s; }

    .burger {
        display: flex;
        z-index: 1000;
    }

     .team {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-member img {
        width: 300px;
        height: 375px; /* dalej 4:5 */
        border-radius: 16px;
    }

    .gallery-grid-advanced {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }

}

@media (max-width: 600px) {
    
    .cards {
        grid-template-columns: 1fr;
    }

    .card img {
    height: 220px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }
}

/* ============================= */
/* HEADER – POLITYKA PRYWATNOŚCI */
/* ============================= */

.simple-header {
    background: #0b3c49;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-wrapper img {
    height: 75px;   /* dokładnie jak na stronie głównej */
    width: auto;
    display: block;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.privacy {
    max-width: 800px;
    margin: 0 auto;
}

.privacy h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(28px, 4vw, 36px);
}

.privacy h3 {
    margin-top: 40px;
    font-size: 18px;
}

.privacy p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.privacy a {
    color: inherit;
    text-decoration: underline;
}

