/* -------------------------------------------------------------------------- */
/* 1. SETUP                                  */
/* -------------------------------------------------------------------------- */

:root {
    /* PALETA KOLORÓW (JASNY MOTYW) */
    --color-bg: #fdfdfd;
    --color-surface: #f9f9f9;
    --color-text-primary: #2c2c2c;
    --color-text-secondary: #7a7a7a;
    --color-accent: #a87d5a;
    --color-accent-hover: #8a6446;
    
    /* TYPOGRAFIA */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* UKŁAD */
    --container-width: 1200px;
    --header-height: 130px; 
    --section-spacing: 4rem;
    --content-padding: 1rem;
    
    /* ANIMACJE I PRZEJŚCIA */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    
    /* WARSTWY (Z-INDEX) */
    --z-background: -2;
    --z-video: -1;
    --z-content: 1;
    --z-header: 100;
    --z-modal: 1000;
    --z-menu: 1100;
    --z-toggle: 1102;
}

/* -------------------------------------------------------------------------- */
/* 2. RESET & GLOBALS                          */
/* -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
}

/* GLOBALNE STYLE TYPOGRAFII */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-accent); }
p  { margin-bottom: 1.5rem; color: var(--color-text-secondary); }
p:last-child { margin-bottom: 0; }
a  { color: var(--color-text-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover, a:focus { color: var(--color-accent); }

/* -------------------------------------------------------------------------- */
/* 3. LAYOUT                                  */
/* -------------------------------------------------------------------------- */

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

.page { display: none; min-height: 100vh; }
.page.active { display: block; }
.page-content { padding-top: calc(var(--header-height) + 50px); min-height: 60vh; }
.section-title { 
    text-align: center;
    margin-bottom: 3rem; 
    scroll-margin-top: calc(var(--header-height) + 60px); /* Przywrócony odstęp dla nawigacji */
}

/* Wyjątek dla galerii - przewijaj niżej */
#gallery {
    scroll-margin-top: calc(var(--header-height) + -40px);
}
.text-container { max-width: 900px; margin: 0 auto; text-align: center; font-size: 1.1rem; line-height: 1.8; }
section { padding: var(--section-spacing) var(--content-padding); }

/* -------------------------------------------------------------------------- */
/* 4. HEADER & NAVIGATION                       */
/* -------------------------------------------------------------------------- */

/* NOWY, POPRAWIONY KOD */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-header);
    transition: background-color var(--transition-fast);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

nav {
    display: flex;
    justify-content: center; /* ZMIANA: centrujemy całą zawartość */
    align-items: center;
    gap: 2rem; /* Odstęp między logo, menu i językami */
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.brand {
    flex-shrink: 0; /* Zapobiega kurczeniu się logo */
}

.brand img {
    height: 70px;
    width: auto;
    transition: height var(--transition-fast);
    vertical-align: middle;
}

.brand:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    text-align: center;
    white-space: nowrap;
}

.nav-right-placeholder {
    flex-shrink: 0; /* Zapobiega kurczeniu się elementu */
    display: flex;
    align-items: center;
}

.nav-item-dropdown { 
    position: relative; 
    /* Dodajemy padding, aby powiększyć obszar hovera i zapobiec znikaniu menu */
    padding-bottom: 10px; 
    margin-bottom: -10px; /* Kompensujemy dodany padding, aby nie zepsuć układu */
}
.dropdown-toggle::after { content: '\25BC'; font-size: 0.7em; margin-left: 0.5em; display: inline-block; transition: transform var(--transition-fast); }

.nav-item-dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }


.nav-item-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; margin-top: 5px; }
/* ========================================================================== */
/* POPRAWIONA STYLIZACJA MENU ROZWIJANEGO (DROPDOWN) B2B                  */
/* ========================================================================== */

/* Kontener główny menu rozwijanego */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    
    /* Automatyczne dopasowanie szerokości do zawartości */
    width: max-content; /* Kluczowa zmiana: szerokość dopasowuje się do najdłuższego linku */
    
    /* Białe, prześwitujące tło bez zamglenia */
    background-color: rgba(253, 253, 253, 0.85); /* Ujednolicone tło z nagłówkiem */
    backdrop-filter: blur(8px); /* Ujednolicony efekt rozmycia */
    -webkit-backdrop-filter: blur(8px);

    /* Obramowanie w kolorze akcentu */
    border: 1px solid var(--color-accent);
    
    /* Kwadratowe rogi */
    border-radius: 0; 
    
    /* Cień dla wrażenia głębi */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 10px;

    /* Animacja */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
}

/* Stan :hover na elemencie nadrzędnym */
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0; /* Kluczowa zmiana: menu pojawia się bez przerwy */
}

/* Linki wewnątrz menu rozwijanego */
.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--color-text-primary);
    background-color: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Efekt po najechaniu na link w menu */
.dropdown-menu a:hover {
    color: var(--color-accent);
    
}


.lang-switcher { display: flex; background-color: #f0f0f0; border-radius: 100px; padding: 4px; }
.lang-btn {
    border: none;
    background-color: transparent;
    color: var(--color-text-secondary);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    border-radius: 100px;
    font-weight: 700;
    transition: all var(--transition-fast);
}
.lang-btn.active { background-color: var(--color-accent); color: white; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-toggle);
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.nav-toggle.opened .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.opened .bar:nth-child(2) { opacity: 0; }
.nav-toggle.opened .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* -------------------------------------------------------------------------- */
/* 5. SECTIONS                                */
/* -------------------------------------------------------------------------- */

.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; z-index: var(--z-content); }
.hero-content { padding: 0 5%; animation: fadeInUp 1s ease-out; }

.hero-content h1 {
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 15px rgba(138, 100, 70, 0.2);
}

.video-background { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: var(--z-video); overflow: hidden; transition: opacity 0.7s ease; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
#static-background { 
    position: fixed; 
    inset: 0; 
    z-index: var(--z-background); 
    background-image: url('assets/background-static.webp');
    background-size: 100%; 
    background-position: center; 
    background-repeat: no-repeat;
    opacity: 0.05; 
}

.hero-static-background #static-background {
    opacity: 0.05;
}

body.scrolled-past-hero .video-background { opacity: 0; }

/* --- PROJEKTY --- */
.project-card { 
    max-width: 1200px; 
    margin: 0 auto; 
}
.project-header { 
    text-align: center; 
    margin-bottom: 2.5rem; 
}
.project-media {
    border-radius: 4px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1.2; 
}
.project-media img, .project-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-content-wrapper { display: flex; align-items: stretch; gap: 2.5rem; margin-bottom: 2.5rem; }
.project-details { 
    flex: 1;
    margin-bottom: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.project-header h3 {
    scroll-margin-top: calc(var(--header-height) + 60px); /* Ujednolicony odstęp dla nawigacji */
}
.key-aspects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.aspect-card { 
    background-color: white; 
    border: 1px solid #f0f0f0; 
    border-radius: 4px; 
    padding: 1.5rem; 
    text-align: center; 
    transition: all var(--transition-fast); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.aspect-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--color-accent); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.07); 
}
.aspect-title { color: var(--color-text-primary); }
.project-actions { text-align: center; padding-bottom: 2rem; margin-top: 2rem; }
.project-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
/* --- NOWE STYLE DLA GALERII Z ZAKŁADKAMI --- */
.gallery-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tab-button {
    background-color: transparent;
    border: 2px solid transparent;
    border-bottom: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;    
    margin-bottom: -1px; /* Aby zakryć dolną krawędź kontenera */
}
.tab-button:hover {
    color: var(--color-accent);
}
.tab-button.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}
.gallery-grid {
    display: none;
    gap: 2rem;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 var(--content-padding);
}
.gallery-grid.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery-item { 
    position: relative; 
    aspect-ratio: 929 / 2086; /* Ustawienie proporcji 9:16 */
    overflow: hidden; cursor: pointer; transition: all var(--transition-medium); transform: translateZ(0); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); border-radius: 4px;
    background-color: transparent; /* Tło kafelka jest przezroczyste, aby pokazać tło strony */
    flex: 0 0 calc(25% - 1.5rem); /* Ustawia bazową szerokość na 4 kolumny, uwzględniając gap */
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.1) 100%);
    transition: opacity var(--transition-fast);
}
.gallery-item img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform var(--transition-medium); }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-info {
    /* Poprawka dla lepszego pozycjonowania na różnych przeglądarkach */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(calc(100% - 3.5rem - 1.5rem));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(calc(100% - 3.5rem - 1.5rem));
    transition: transform var(--transition-fast);
    /* Główne tło gradientowe dla czytelności */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

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

.gallery-title, .gallery-subtitle {
    /* Lepszy, bardziej subtelny cień dla tekstu */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.gallery-title { font-size: 1.3rem; margin-bottom: 0.5rem; color: white; }
.gallery-subtitle { font-size: 0.9rem; line-height: 1.4; color: rgba(255,255,255,0.9); }
.gallery-view-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); color: white; font-size: 3rem; opacity: 0; transition: all var(--transition-fast); z-index: 3; }
.gallery-item:hover .gallery-view-icon { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }

/* --- DOSTOSOWANIE GALERII "ARANŻACJE SKLEPOWE" --- */
#gallery-grid-placements .gallery-item {
    aspect-ratio: 1512 / 2016; /* Proporcje 3:4 */
    flex: 0 0 calc(33.333% - 1.5rem); /* 3 kolumny na desktopie */
}

/* Ukrycie opisów dla galerii "Aranżacje sklepowe" */
#gallery-grid-placements .gallery-info {
    display: none;
}



/* --- WSPARCIE I KONTAKT --- */
.support-section { background-color: var(--color-surface); }
.support-section .container { max-width: 900px; margin: 0 auto; text-align: center; position: relative; border: 1px solid #eee; padding: 3rem; border-radius: 8px; }
#contact { text-align: center; }
.contact-subtitle { max-width: 600px; margin: -2rem auto 2.5rem; }
.contact-options { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.email-box { position: relative; padding: 2rem; border: 1px solid #eee; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; border-radius: 8px; }

/* --- WSPÓŁPRACA (REWARDS) --- */
.rewards-title-above { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 3.5rem; position: relative; color: var(--color-text-primary); }
.rewards-title-above::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background-color: var(--color-accent); }
.support-rewards-grid { max-width: 1000px; margin: 0 auto 3rem; border: none; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.reward-card { background-color: white; border: 1px solid #f0f0f0; box-shadow: 0 5px 25px rgba(0,0,0,0.07); border-radius: 4px; padding: 2.5rem 1.5rem; text-align: center; transition: all var(--transition-fast); }
.reward-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); z-index: 2; }
.reward-card i { font-size: 2.8rem; color: var(--color-accent); margin-bottom: 1.5rem; min-height: 45px; }
.reward-card .reward-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-text-primary); margin-bottom: 0.75rem; }
.reward-card .reward-text { font-size: 0.9rem; line-height: 1.6; color: var(--color-text-secondary); margin-bottom: 0; }
.cta-block { margin-top: 3rem; }
.cta-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-text-primary); margin-bottom: 0.5rem; }
.cta-text { color: var(--color-text-secondary); max-width: 500px; margin: 0 auto; }
.cta-buttons-wrapper { text-align: center; margin-top: 2rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

/* --- SEKCJA Personalizacja --- */
.section-highlighted { background-color: var(--color-surface); }
.private-label-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; max-width: var(--container-width); margin: 0 auto; }
.private-label-content .section-title { text-align: left; margin-bottom: 1.5rem; }
.pl-rewards { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.pl-reward-item { display: flex; align-items: flex-start; gap: 1.5rem; }
.pl-reward-item i { font-size: 1.8rem; color: var(--color-accent); margin-top: 5px; width: 30px; text-align: center; }
.pl-reward-item h5 { margin-bottom: 0.2rem; font-size: 1.1rem; color: var(--color-text-primary); }
.pl-reward-item p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.private-label-content .section-cta { 
    text-align: left; 
    margin-top: 2.5rem;
}
.gallery-placeholder { border: 2px dashed #ddd; border-radius: 8px; padding: 2rem; text-align: center; color: #aaa; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; background-color: #fff; }
.gallery-placeholder i { font-size: 3rem; margin-bottom: 1rem; }
.gallery-placeholder h4 { color: #888; }
.download-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }

/* -------------------------------------------------------------------------- */
/* 6. COMPONENTS                               */
/* -------------------------------------------------------------------------- */

/* --- PRZYCISKI --- */
.btn-minimalist, .btn-solid, .email-box a, .email-box button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; position: relative; padding: 0.8rem 1.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; transition: all var(--transition-fast); cursor: pointer; border: 1px solid var(--color-accent); background-color: transparent; color: var(--color-accent); overflow: hidden; z-index: 1; text-decoration: none; 
}
.btn-minimalist::before, .btn-solid::before, .email-box a::before, .email-box button::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--color-accent); transform: translateX(-101%); transition: transform var(--transition-fast); z-index: -1; 
}
.btn-minimalist:hover, .btn-solid:hover, .email-box a:hover, .email-box button:hover { 
    color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-3px); 
}
.btn-minimalist:hover::before, .btn-solid:hover::before, .email-box a:hover::before, .email-box button:hover::before { 
    transform: translateX(0); 
}


/* --- LIGHTBOX (PODGLĄD OBRAZÓW) --- */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(253, 253, 253, 0.526); z-index: var(--z-modal); align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; backdrop-filter: blur(10px); }
.lightbox.active { display: flex; opacity: 1; visibility: visible; }
.lightbox-image { max-width: 90%; max-height: 85vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.lightbox-close, .lightbox-nav { background: none; border: none; cursor: pointer; z-index: 5; transition: color 0.3s ease; color: var(--color-text-primary); font-size: 3rem; padding: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--color-accent); }
.lightbox-close { position: absolute; top: 20px; right: 20px; }
.lightbox-prev { position: absolute; left: 20px; }
.lightbox-next { position: absolute; right: 20px; }

/* --- SEPARATORY SEKCJI --- */
.divider-wrapper svg, .project-divider svg { display: none; } 
.divider-wrapper, .project-divider { position: relative; padding: 3rem 0; display: flex; align-items: center; justify-content: center; }
.divider-wrapper::before, .project-divider::before { content: ''; display: block; width: 0; height: 1px; background-color: var(--color-accent); opacity: 0.5; animation: draw-line 1.5s 0.5s ease-out forwards; }
.divider-wrapper::after, .project-divider::after { content: '◆'; font-size: 10px; color: var(--color-accent); position: absolute; opacity: 0; animation: fade-in-diamond 1s 1.5s ease-out forwards; }

/* --- STOPKA --- */
footer { text-align: center; padding: 2.5rem; font-size: 0.9rem; color: var(--color-text-secondary); background-color: var(--color-surface); border-top: 1px solid #eee; }

/* -------------------------------------------------------------------------- */
/* 7. ANIMATIONS                               */
/* -------------------------------------------------------------------------- */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw-line { from { width: 0; } to { width: 150px; } }
@keyframes fade-in-diamond { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* -------------------------------------------------------------------------- */
/* 8. MEDIA QUERIES (RESPONSIVE)                */
/* -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    

    .nav-menu { display: none !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; background: rgba(253, 253, 253, 0.97); z-index: var(--z-menu); flex-direction: column; justify-content: center; align-items: center; padding: 2rem; gap: 2rem; margin-left: 0; }
    
    .nav-menu.active { display: flex !important; }
    
    .nav-links { flex-direction: column; gap: 1.8rem; align-items: center; }

    .project-content-wrapper { flex-direction: column; }
    .project-details { height: auto !important; }

    .support-rewards-grid { grid-template-columns: 1fr; }
    .private-label-wrapper { grid-template-columns: 1fr; }

    .gallery-grid {
        /* Usunięto grid-template-columns, bo używamy flexbox */
        gap: 1.5rem;
    }
}

/* ZASTĄP STARY BLOK @media (max-width: 768px) PONIŻSZYM */

/* Domyślne ukrycie obrazka mobilnego na WSZYSTKICH ekranach */
.hero-mobile-image {
    display: none;
}

@media (max-width: 768px) {
    :root { 
        --section-spacing: 2rem; 
        --content-padding: 1rem; 
        --header-height: 80px; 
    }

    h1 { font-size: 1.8rem; line-height: 1.3; } 
    h2 { font-size: 1.6rem; } 
    h3 { font-size: 1.4rem; }

    .project-card { padding: 1.5rem; }
    .key-aspects-grid { grid-template-columns: 1fr; }
    .project-actions { margin-top: 2rem; }
    .support-section .container, .email-box { padding: 2rem 1.5rem; }

    .gallery-grid {
        /* Usunięto grid-template-columns, bo używamy flexbox */
        gap: 1rem;
    }

    #static-background, .video-background {
        display: none;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 90vh;
        padding: calc(var(--header-height) + 50px) 1rem 20px 1rem;
        text-align: center;
    }

    .hero-content {
        display: contents;
    }

    #hero-title {
        order: 1;
    }

    .hero-mobile-image {
        display: block;
        order: 2;
        width: auto;
        max-height: 40vh;
        max-width: 100%;
        margin-top: 1rem;
    }

    .hero-section .btn-minimalist {
        order: 3;
        /* === ZMIANA TUTAJ === */
        margin-top: 2rem; /* Zmienione z 'auto' na '3rem', aby wyrównać odstęp */
        margin-bottom: 2rem;
        align-self: center;
        width: calc(100% - 2rem);
        max-width: 400px;
    }

    /* --- POPRAWKI DLA GALERII NA MOBILE --- */
    .gallery-item {
        flex-basis: calc(50% - 0.5rem); /* 2 kolumny na mobile */
    }
    .gallery-info {
        padding: 1rem;
        /* Zmniejszenie wysokości widocznego paska na mobile */
        transform: translateY(calc(100% - 3rem - 1rem));
    }
    .gallery-title {
        font-size: 1rem; /* Zmniejszenie czcionki tytułu */
    }
    .gallery-subtitle {
        font-size: 0.8rem; /* Zmniejszenie czcionki podtytułu */
    }
}

#car-fragrance-viewer {
    width: 100%;
    overflow: hidden;
}
#car-fragrance-viewer .product-viewer__image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}

#dekoracje .project-media img {
    width: 100%;
    height: auto;
    object-fit: initial;
}

#partnership-email-box {
    border: none;
    padding: 0;
}

/* --- OSTATECZNE I POPRAWNE STYLE DLA SEKCJI B2B --- */

/* Ogólne style dla kontenera Dystrybucji */
#dystrybucja .container {
    text-align: center;
}

/* Styl dla nagłówka "Co zyskujesz..." */
.rewards-title-above {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--color-text-primary);
    text-align: center; /* Dodane, aby wyśrodkować tekst */
}
.rewards-title-above::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Siatka kart - węższa i wycentrowana */
#dystrybucja .support-rewards-grid {
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    text-align: left;
}

/* Styl pojedynczej karty - proste rogi, białe tło */
#dystrybucja .reward-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border-radius: 0; /* Proste rogi */
    padding: 2.5rem 1.5rem;
    text-align: center;
}
#dystrybucja .reward-card:not(:last-child)::after {
    display: none;
}

/* NOWY BLOK Call to Action pod kartami */
.cta-block {
    margin-top: 3rem;
    text-align: center; /* Dodane, aby wyśrodkować zawartość */
}
.cta-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}
.cta-text {
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Przycisk CTA */
.cta-buttons-wrapper {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Style dla sekcji Personalizacja (bez zmian) --- */
.section-highlighted {
    background-color: var(--color-surface);
    padding: var(--section-spacing) var(--content-padding);
}
.private-label-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}
.private-label-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
/* Centrowanie tekstów wprowadzających w sekcjach B2B */
.support-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.pl-rewards {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.pl-reward-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.pl-reward-item i {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}
.pl-reward-item h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}
.pl-reward-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.private-label-content .section-cta {
    text-align: left; 
    margin-top: 2.5rem;
}
.gallery-placeholder {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #fff;
}
.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.gallery-placeholder h4 {
    color: #888;
}
@media (min-width: 992px) {
    .private-label-wrapper {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* Style dla strony z katalogami */
.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}


/* Dodaj te style na końcu pliku style.css */
.tab-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content .tab-button {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    width: 100%;
}

.dropdown-content .tab-button:hover {
    background-color: #f1f1f1;
}

.tab-dropdown:hover .dropdown-content {
    display: block;
}

/* Dodaj te style na końcu pliku style.css */
.sub-tabs-container {
    display: none; /* Domyślnie ukryty */
    justify-content: center;
    gap: 1rem;
    margin-top: -2rem; /* Zmniejsza odstęp od górnego paska */
    padding-bottom: 0rem; /* Zmniejszony odstęp pod podkategoriami */
}

.sub-tabs-container .tab-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    border-radius: 0; /* Proste rogi */
}

.sub-tabs-container .tab-button.active {
    background-color: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

@media (max-width: 992px) {
    .nav-item-dropdown .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-top: 5px; /* Dodaje trochę przestrzeni nad podmenu */
        padding-left: 1rem;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Tutaj dodajemy styl dla tła linków w podmenu */
    .dropdown-menu a {
        padding: 0.6rem 1rem;
        margin-bottom: 5px; /* Odstęp między przyciskami */
        border-radius: 4px; /* Zaokrąglone rogi */
        background-color: rgba(168, 125, 90, 0.1); /* Delikatne brązowe tło */
    }
}

/* --- NOWE STYLE DLA STRONY KONTAKTOWEJ --- */
.contact-page-wrapper {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.contact-form-column {
    flex: 1.5;
    min-width: 300px;
}

.contact-details-column {
    flex: 1;
    padding: 2rem;
    background-color: var(--color-surface);
    border-radius: 4px;
    border: 1px solid #eee;
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.contact-details-column h3 {
    margin-bottom: 1.5rem;
}

.contact-details-column p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-details-column i {
    margin-right: 1rem;
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

#contact-form .form-group {
    margin-bottom: 1.5rem;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(168, 125, 90, 0.2);
}

#contact-form button {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 992px) {
    .contact-page-wrapper {
        flex-direction: column;
        gap: 2.5rem;
    }
    .contact-details-column {
        position: static;
        width: 100%;
    }
}

/* ---- NOWE MEDIA QUERIES DLA RESPONSYWNOŚCI MENU ---- */

/* Dla ekranów poniżej 1200px */
/* Dla ekranów poniżej 1200px */
@media (max-width: 1200px) {
    nav {
        gap: 1.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links li a {
        font-size: 0.7rem;
    }
    .brand img {
        height: 65px;
    }
}

/* Dla ekranów poniżej 1024px (przed widokiem mobilnym) */
@media (max-width: 1024px) and (min-width: 993px) {
    nav {
        padding: 1rem;
        gap: 1rem;
    }
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links li a {
        letter-spacing: 0.5px;
        font-size: 0.65rem;
    }
}

/* --- BANER COOKIES --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 44, 44, 0.95);
    color: #fdfdfd;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-wrap: wrap;
    gap: 1rem;
    transform: translateY(100%);
    animation: slide-up 0.5s ease-out forwards;
}

.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.9rem;
    color: #f1f1f1;
    flex-grow: 1;
}

.cookie-consent-link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 700;
}

.cookie-consent-link:hover {
    color: white;
}

.cookie-consent-button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color var(--transition-fast);
}

.cookie-consent-button:hover {
    background-color: var(--color-accent-hover);
}

@keyframes slide-up {
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-button {
        width: 100%;
    }
}

/* Dodatkowe style dla sekcji "O nas" */
.about-description p {
    color: var(--color-text-primary); /* Ustawia kolor tekstu na podstawowy (czarny) */
    text-align: left; /* Wyrównuje tekst do lewej dla lepszej czytelności */
    margin-bottom: 1rem; /* Zmniejsza odstęp między paragrafami */
}