/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    scroll-behavior: smooth;
    overflow-x: visible;
    width: 100%;
    min-height: 100dvh;
    font-family: 'Oswald', Arial, sans-serif;
    background: #0b0b0b;
    color: #e9e9e9;
}

/* Prevent image/content overflow on small viewports */
img { max-width: 100%; height: auto; display: block; }

/* ===== VIDEO HERO ===== */
#hero-wrap {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}
#background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
#hero-gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sesjaButton {
    display:inline-block; 
    background:#fff;
    color:#0b0b0b;
    padding:1rem 2rem; 
    border-radius:0.5rem; 
    text-decoration:none;
    font-weight:600; 
    font-size:1.1rem; 
    letter-spacing:0.05em; 
    text-transform:uppercase;
    transition:background 0.3s;
}

.sesjaButton:hover { background:#838383; }

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: translateZ(0);
    will-change: opacity;
}
.gallery-slide.active {
    opacity: 1;
}
.stained-glass-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 30%;
    background-blend-mode: multiply;
}
.video-gradient {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 35%;
    background: linear-gradient(to bottom, transparent, #0b0b0b);
    z-index: 2;
    pointer-events: none;
}
#home {
    position: relative;
    z-index: 3;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: clip-path 0.18s cubic-bezier(.95,0,.8,1);
    clip-path: inset(0 0 0 0);
    background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, transparent 60%);
    transform: translateZ(0);
}
#home.garage-door-animate { clip-path: inset(0 0 100% 0); }
.logo-text {
    font-family: 'Oswald', 'Impact', 'Arial Black', Arial, sans-serif;
    font-size: 8vw;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 24px #000, 0 0 2px #fff, 0 0 8px #000;
    line-height: 1;
}
.logo-sub {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.6rem);
    color: #cfcfcf;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.6rem;
    font-weight: 300;
}

/* ===== SCROLL ARROW ===== */
.scroll-indicator {
    position: fixed;
    left: 50%; bottom: 3vw;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex; align-items: center;
    pointer-events: none;
    width: 48px; height: 48px;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.scroll-indicator--hidden { opacity: 0; }
.back-to-top {
    padding: 1rem;
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 65px;
    height: 65px;
    border: none;
    border-radius: 15%;
    background: rgba(255, 255, 255, 0.795);
    color: #000000;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, transform 0.25s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top:hover {
    background: rgba(255,255,255,0.3);
}
.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
}
.arrow-bounce {
    width: 48px; height: 48px;
    animation: arrow-bounce 1.2s infinite cubic-bezier(.5,0,.5,1);
}
@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(14px); }
}

/* ===== LANG LINKS ===== */
.simple-links {
    position: absolute;
    top: 2vw; right: 2vw;
    z-index: 2000;
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    border-radius: 0.5em;
    padding: 0.4em 0.8em;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}
.simple-links a {
    color: #fff; text-decoration: none; font-weight: 600;
    padding: 0 0.3em;
    transition: color 0.2s;
}
.simple-links a:hover { color: #e05c00; }

/* ===== CONTENT SECTION ===== */
#content-wrapper {
    position: relative; z-index: 10;
    width: 100%;
    background: #0b0b0b;
}

/* ===== BLOCKS ===== */
.block {
    width: 100%;
    padding: 5rem 0;
    background-image:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.01), transparent 8%),
    radial-gradient(circle at 90% 90%, rgba(255,255,255,0.01), transparent 8%);
}
.block--nav  {
    position: sticky; top: 0; z-index: 1000;
    padding: 0; background: #0b0b0b;}
.block--dark { background: #0f0f0f; }
.block--muted { background: #151515; }
.block--hero { background: #0b0b0b; padding: 4rem 0; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2vw;
}

/* ===== NAV ===== */
.nav-row {
    display: flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.4rem;
    gap: 0.5rem;
    background: #0b0b0b;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.main-nav {
    display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.main-nav a {
    color: #e9e9e9; text-decoration: none;
    padding: 0.65em 1em; border-radius: 0.35em;
    font-weight: 600; font-size: clamp(1rem, 1.1vw, 1.15rem);
    letter-spacing: 0.05em; text-transform: uppercase;
    transition: color 0.18s, background 0.18s;
}
.main-nav a:hover { background: #e9e9e9; color: #0b0b0b; }
.lang-select {
    position: absolute; top: 50%; right: 1rem;
    transform: translateY(-50%);
    display: flex; gap: 2px;
}
.lang-select .lang {
    color: #e9e9e9; text-decoration: none;
    padding: 0.45em 0.75em; border-radius: 0.25em;
    font-weight: 600; font-size: 1.5rem; text-transform: uppercase;
    transition: background 0.18s, color 0.18s;
}
.lang-select .lang:hover { background: #e9e9e9; color: #0b0b0b; }

/* ===== HERO HEADER ===== */
.main-header { text-align: center; }
.studio-logo-img {
    max-width: 340px; width: 60%;
    margin-bottom: 1.4rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.block:not(.block--nav):not(.block--hero) .block-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.8rem, 4.4vw, 4.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
    margin: 0 0 1.2rem 0;
    text-align: center;
}

.block--hero .block-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f3f3;
    margin: 0 0 1rem 0;
    text-align: center;
}
.block:not(.block--nav):not(.block--hero) .subtitle {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: clamp(1.3rem, 1.9vw, 2rem);
    letter-spacing: 0.12em;
    font-weight: 300;
    color: #b0b0b0;
    margin-bottom: 1.6rem;
    text-align: center;
    text-transform: uppercase;
}

.block--hero .subtitle {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
    letter-spacing: 0.12em;
    font-weight: 300;
    color: #b0b0b0;
    margin-bottom: 1.4rem;
    text-align: center;
    text-transform: uppercase;
}
.divider {
    height: 1px; width: 64px;
    margin: 0.8rem auto 1.6rem auto;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.45), rgba(255,255,255,0.06));
    border-radius: 2px;
}

/* ===== CARD ===== */
.card {
    max-width: 980px; margin: 0 auto;
    text-align: center;
    padding: 2.5rem 3rem;
    border-radius: 0.6rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.card p { color: #ccc; line-height: 1.7; font-size: clamp(1.2rem, 1.4vw, 1.45rem); font-weight: 300; }
.card p strong { color: #f0f0f0; font-weight: 600; }
.card .text-left { text-align: left; }

/* ===== OFERTA CARDS ===== */
.service-card--oferta { text-align: left; }
.service-card--oferta h3 { margin-bottom: 1rem; }

.oferta-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: .25rem;
  margin-bottom: .75rem;
}
.label-teal   { background: rgba(29,158,117,.15); color: #5DCAA5; border: 1px solid rgba(29,158,117,.25); }
.label-purple { background: rgba(127,119,221,.15); color: #AFA9EC; border: 1px solid rgba(127,119,221,.25); }
.label-coral  { background: rgba(216,90,48,.15);  color: #F0997B; border: 1px solid rgba(216,90,48,.25); }
.label-amber  { background: rgba(186,117,23,.15); color: #FAC775; border: 1px solid rgba(186,117,23,.25); }

.oferta-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.oferta-list li {
  font-size: 1.2rem; color: #999; font-weight: 300;
  padding-left: 14px; position: relative; line-height: 1.5;
}
.oferta-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.oferta-list li strong { color: #ccc; font-weight: 400; }
.oferta-note {
  margin: .85rem 0 0; font-size: .85rem; color: #555; font-weight: 300;
  border-top: 1px solid rgba(255,255,255,.06); padding-top: .75rem;
}


/* ===== PHOTO GRID ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}
.photo-grid .photo-item {
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.photo-grid .photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.photo-grid img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(30%) brightness(0.9);
    transition: filter 0.25s;
}
.photo-grid .photo-item:hover img { filter: none; }

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.6rem;
}
.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.6rem;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}
.service-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}
.service-card .icon { font-size: 1.7rem; margin-bottom: 0.7rem; display: block; filter: grayscale(100%); }
.service-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f3f3f3;
    margin-bottom: 0.6rem;
}
.service-card p { font-size: 1rem; color: #999; font-weight: 300; }

/* ===== EQUIPMENT LIST ===== */
.equip-list {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    justify-content: center;
    margin-top: 1.4rem;
}
.equip-list li {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 0.35rem;
    padding: 0.55em 1.2em;
    font-size: 1rem;
    color: #bbb;
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* ===== CONTACT ===== */
.contact-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { color: #ddd; border-color: #fff; }

/* ===== FOOTER ===== */
.main-footer {
    color: #666; text-align: center;
    font-size: 0.78rem; letter-spacing: 0.08em;
    margin-top: 2.5rem;
}
.main-footer a { color: #999; text-decoration: none; transition: color 0.2s; }
.main-footer a:hover { color: #e9e9e9; }

/* ===== RESPONSIVE ===== */



@media (max-width: 1161px) {
    .container { padding: 0 5vw; }
    .nav-row { flex-direction: column; gap: 0.6rem; align-items: stretch; padding: 0.6rem 1rem; }
    .main-nav { gap: 6px; justify-content: center; }
    .main-nav a { font-size: clamp(1.2rem, 1.6vw, 1.05rem); padding: 0.6em 0.9em; }
    /* compact lang selector anchored to top-right of the nav block */
    .lang-select {
        position: absolute;
        top: 7.5rem;
        right: 0.8rem;
        transform: none;
        display: flex;
        gap: 6px;
        padding: 0.12rem;
        background: rgba(0,0,0,0.18);
        border-radius: 0.35rem;
        z-index: 1100;
    }
    .lang-select .lang {
        padding: 0.2em 0.45em;
        font-size: 1.5rem;
        background: transparent;
        border-radius: 0.25rem;
    }

    .lang-select {
        margin-top: 0.4rem;
    }
    .block { padding: 3.2rem 0; }
    .block--hero { padding: 3rem 0; }
    .card { padding: 2rem 2rem; }
}

@media (max-width: 685px) {
    .container { padding: 0 5vw; }
    .nav-row { flex-direction: column; gap: 0.6rem; align-items: stretch; padding: 0.6rem 1rem; }
    .main-nav { gap: 6px; justify-content: center; }
    .main-nav a { font-size: clamp(1.2rem, 1.6vw, 1.05rem); padding: 0.6em 0.9em; }
    /* compact lang selector anchored to top-right of the nav block */
    .lang-select {
        position: absolute;
        top: 7.5rem;
        right: 0.8rem;
        transform: none;
        display: flex;
        gap: 6px;
        padding: 0.12rem;
        background: rgba(0,0,0,0.18);
        border-radius: 0.35rem;
        z-index: 1100;
    }
    .lang-select .lang {
        padding: 0.2em 0.45em;
        font-size: 1.5rem;
        background: transparent;
        border-radius: 0.25rem;
    }

    .lang-select {
        margin-top: 0.4rem;
    }
    .block { padding: 3.2rem 0 0.5rem; }
    .block--hero { padding: 3rem 0; }
    .card { padding: 2rem 2rem; }
}
@media (max-width: 540px) {
    
    .container { padding: 0 4vw; }
    .nav-row { padding: 0.4rem 0.6rem; }
    .main-nav { flex-direction: column; gap: 0.35rem; align-items: center; }
    .main-nav a { display: block; width: 100%; max-width: 420px; padding: 0.9rem 1rem; text-align: center; border-radius: 0.4rem; font-size: clamp(1.2rem, 2.4vw, 1.3rem); line-height: 1.25; }
    .logo-text { font-size: clamp(2.6rem, 14vw, 5rem); }
    .logo-sub { font-size: 0.75rem; }
    .block--hero { padding: 2.4rem 0; }
    .block-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
    .subtitle { font-size: clamp(1rem, 2.4vw, 1.2rem); letter-spacing: 0.12em; }
    .card { padding: 1rem 1rem; }
    .card p { font-size: clamp(1rem, 1.8vw, 1.1rem); line-height:1.6; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .photo-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .service-card h3 { font-size: 1.15rem; }
    .service-card p { font-size: 1rem; }
    .equip-list li { font-size: 0.95rem; padding: 0.5em 0.9em; }
    .back-to-top { right: 1rem; bottom: 1rem; width:44px; height:44px; font-size:1.1rem;}
    /* slightly smaller lang pills on narrow screens */
    .lang-select { float: right; position: absolute; top: 0; right: 0.6rem; padding: 0.08rem; }
    .lang-select .lang {padding: 0.15em 0.38em; font-size: 1.5rem; }
}
@media (max-width: 540px) {
    .card p { font-size: 0.98rem; }
    .nav-row { position: relative; }
    .nav-toggle { display: flex; position: absolute; left: 0.6rem; top: 0; transform: translateY(-90%); }
    .main-nav a { font-size: 1.2rem; padding: 0.75rem 0.85rem; }
    .sesjaButton { padding: 0.8rem 1.4rem; font-size: 1rem; }
    /* collapsed menu by default on small screens — animated via max-height/opacity/transform */
    .main-nav {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        align-items: stretch;
        padding: 0 1rem;
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height 360ms cubic-bezier(.2,.8,.2,1), opacity 280ms ease, transform 280ms ease, padding 240ms ease;
        background: #0b0b0b;
    }
    .main-nav.open {
        max-height: 1000px; /* large enough to show all links */
        opacity: 1;
        transform: translateY(0);
        padding: 1.3rem 2.4rem;
    }
    .main-nav a { display: block; width: 100%; padding: 0.9rem 1rem; text-align: left; border-radius: 0.4rem; }

    /* when the menu opens, bring the language selector into the flow and place it below the menu */

    
    /* position lang-select inside the opened menu (top-right) when it's moved into the menu via JS */
    .main-nav { position: relative; }
    .main-nav .lang-select {
        position: absolute;
        top: 90%;
        right: 12px;
        transform: none;
        opacity: 1;
        display: flex;
        gap: 6px;
        padding: 0;
        background: transparent;
    }


    .main-nav .lang-select .lang { padding: 0.15em 0.4em; font-size: 1.5rem; }
}

/* ===== PARTNERS / LOGOS GRID ===== */
.partners-container {
    margin-top: 1.4rem;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
    align-items: center;
    justify-items: center;
    margin-top: 1rem;
}
.partner-item { width: 100%; display: flex; align-items: center; justify-content: center; }
.logo-box {
    display: flex; align-items: center; justify-content: center;
    padding: 1rem 1.1rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.96);
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    max-width: 360px;
    width: 100%;
    height: 180px;
}
.logo-box img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    display: block;
}
/* Larger logo sizes on wide screens */
@media (min-width: 900px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .logo-box { height: 200px; max-width: 420px; }
    .logo-box img { max-height: 160px; }
}
@media (min-width: 1300px) {
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Ensure good spacing inside the card */
.card#zaufali .partners-container { padding-top: 0.6rem; }

/* ===== SMALL-SCREEN TUNING ===== */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
    .logo-box {
        height: 120px;
        max-width: 280px;
        padding: 0.7rem 0.8rem;
    }
    .logo-box img { max-height: 88px; }
}

@media (max-width: 685px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.9rem;
    }
    .logo-box {
        height: 100px;
        max-width: 220px;
        padding: 0.6rem 0.6rem;
    }
    .logo-box img { max-height: 72px; }
}

@media (max-width: 540px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .logo-box {
        height: 84px;
        max-width: 180px;
        padding: 0.45rem 0.5rem;
    }
    .logo-box img { max-height: 64px; }
}

@media (max-width: 360px) {
    .partners-grid { grid-template-columns: 1fr; }
    .logo-box { height: 72px; max-width: 260px; }
    .logo-box img { max-height: 56px; }
}