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

/* Zmienne - TRYB CIEMNY (Domyślny) */
:root {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --text-muted: #a0a0a0;
    
    --nav-bg: rgba(21, 22, 25, 0.22);
    --header-blur: 8px;
    --section-bg: #121212;
    --card-bg: #1e1e1e;
    --process-bg: #1a1a1a;
    
    --border-color: #333333;
    --nav-hover-bg: rgba(255, 255, 255, 0.1);
    --nav-border: rgba(255, 255, 255, 0.08);
    --accent-color: #917c59;
    --input-bg: rgba(255, 255, 255, 0.04);
    
    --btn-bg: #f5f5f5;
    --btn-text: #121212;
    --btn-hover: #d0d0d0;
    
    /* Kolor wektorów w logo w trybie ciemnym */
    --logo-color: #ffffff; 

}

/* Zmienne - TRYB JASNY */
body.light-mode {
    --bg-color: #fcfcfc;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    
    --nav-bg: rgba(255, 255, 255, 0.34);
    --header-blur: 8px;
    --section-bg: #ffffff;
    --card-bg: #f9f9f9;
    --process-bg: #f9f9f9;
    
    --border-color: #e0e0e0;
    --nav-hover-bg: rgba(0, 0, 0, 0.05);
    --nav-border: rgba(17, 17, 17, 0.08);
    --accent-color: #7b6849;
    --input-bg: rgba(17, 17, 17, 0.035);
    
    --btn-bg: #111111;
    --btn-text: #ffffff;
    --btn-hover: #333333;

    /* Kolor wektorów w logo w trybie jasnym */
    --logo-color: #111111;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

/* Nawigacja */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* OBSŁUGA LOGO SVG 
    Kiedy wkleisz kod <svg> do HTML, te reguły zapewnią, 
    że ścieżki (<path>) zmienią kolor przy przełączaniu trybów.
*/
.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--logo-color);
    text-decoration: none;
}

.logo-link img:not(.menu-logo) {
    width: 46px;
    height: 46px;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

body.light-mode .logo-link img:not(.menu-logo) {
    filter: brightness(0);
}

.logo-link .menu-logo {
    width: clamp(180px, 18vw, 260px);
    height: auto;
    max-height: 64px;
    display: block;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s ease;
}

body.light-mode .logo-link .menu-logo {
    filter: brightness(0.2);
}

.logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-wordmark strong {
    font-size: 1.35rem;
    letter-spacing: 3px;
}

.logo-wordmark span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Wymuszamy, by SVG przyjął kolor ze zmiennej --logo-color */
.logo-container svg {
    height: 60px; /* Dopasuj wielkość logo tutaj */
    width: auto;
    fill: var(--logo-color); 
    transition: fill 0.3s ease;
}

/* Reguły dla ścieżek/poligonów, które mogą mieć własne kolory wypełnienia wewnątrz SVG */
.logo-container svg path,
.logo-container svg rect,
.logo-container svg polygon {
    fill: var(--logo-color); 
    transition: fill 0.3s ease;
}

/* Zachowanie tymczasowego tekstu (możesz usunąć po dodaniu SVG) */
.logo-container strong {
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--logo-color);
}
.logo-container span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.logo-container .logo-wordmark {
    color: var(--logo-color);
    letter-spacing: 0;
}

.logo-container .logo-wordmark span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--logo-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
    background-color: var(--nav-hover-bg);
}

.theme-btn {
    margin-left: 18px;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--nav-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(128, 128, 128, 0.25);
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: min(220px, 28%);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(18, 18, 18, 0),
        var(--section-bg) 92%
    );
}

/* Gradient zostaje nad zdjeciami, zeby tekst hero byl czytelny. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

/* Warstwa automatycznej karuzeli w tle hero. */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Sekcje wspólne */
section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Siatka Oferty (Cards) */
.services {
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

.services-grid {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(24px, 3vw, 40px);
}

.service-card {
    flex: 0 1 320px;
    min-width: min(100%, 260px);
    max-width: 320px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    padding: 32px;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

/* OBRAZKI W KARTACH OFERTY*/
.placeholder-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    margin-bottom: 24px;
}

.img-ems {
    object-position: center;
}


.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-card .read-more {
    margin-top: auto !important;
}

/* O nas / Proces */
.process {
    background-color: var(--process-bg);
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.process-text {
    max-width: 800px;
    text-align: center;
}

.process-text h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 24px;
}

.feature-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Podstrony */
.subpage-hero {
    min-height: 42vh;
    display: flex;
    align-items: center;
    background-color: var(--process-bg);
    transition: background-color 0.3s ease;
}

.subpage-container {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.subpage-hero .subpage-container {
    text-align: center;
}

.subpage-eyebrow {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.subpage-hero h1 {
    max-width: 840px;
    margin: 0 auto 20px;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.15;
}

.subpage-lead {
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.subpage-section {
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 48px;
    align-items: start;
}

.content-copy h2,
.content-copy h3 {
    margin-bottom: 18px;
    font-weight: 300;
}

.content-copy h2 {
    font-size: 2.3rem;
}

.content-copy h3 {
    margin-top: 32px;
    font-size: 1.5rem;
}

.content-copy p {
    margin-bottom: 18px;
    color: var(--text-muted);
}

.content-list {
    margin: 22px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
}

.content-list li {
    margin-bottom: 10px;
}

.image-pair {
    display: grid;
    gap: 24px;
}

.subpage-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.brand-categories {
    display: grid;
    gap: 36px;
    justify-items: center;
}

.brand-category {
    width: 100%;
    display: grid;
    gap: 24px;
    justify-items: center;
    text-align: center;
}

.brand-category + .brand-category {
    padding-top: 34px;
    border-top: 1px solid var(--border-color);
}

.brand-category h3 {
    font-size: 1.8rem;
    font-weight: 400;
}

.brand-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.brand-card {
    flex: 0 1 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
}

.brand-logo {
    min-height: 76px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-logo--image {
    background: #ffffff;
    padding: 16px;
}

.brand-logo img {
    display: block;
    width: 100%;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

.brand-card h3,
.brand-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.brand-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mount-carousel {
    display: grid;
    gap: 20px;
}

.carousel-window {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.carousel-window:hover {
    transform: translateY(-2px);
}

.carousel-window:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.project-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-slide.active {
    opacity: 1;
}

.carousel-window-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 18px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.carousel-window-hint {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(12, 12, 12, 0.55);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.carousel-caption {
    display: grid;
    gap: 10px;
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    min-height: 150px;
}

.carousel-caption-location {
    margin: 0;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.25;
}

.carousel-caption-description {
    margin: 0;
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.carousel-btn {
    padding: 12px 20px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 8, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    max-height: calc(100vh - 64px);
    display: grid;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
    overflow: auto;
}

.gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.82);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox-image {
    width: 100%;
    max-height: min(72vh, 820px);
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #0b0b0c;
}

.gallery-lightbox-copy {
    display: grid;
    gap: 10px;
}

.gallery-lightbox-location {
    margin: 0;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.gallery-lightbox-copy h3 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 400;
}

.gallery-lightbox-copy p:last-child {
    margin: 0;
    color: var(--text-muted);
}

/* Kontakt */
.contact {
    background-color: var(--section-bg);
    color: var(--text-color);
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-container h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--text-color);
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

.contact-item a[href^="tel:"],
.contact-item a[href^="mailto:"] {
    display: block;
    color: inherit;
    font: inherit;
    font-style: italic;
    text-decoration: none;
    text-align: justify;
    text-align-last: justify;
}

.contact-form {
    margin-top: 56px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 36px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        var(--card-bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    text-align: left;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .contact-form {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
        var(--card-bg);
    box-shadow: 0 24px 56px rgba(17, 17, 17, 0.09);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 28px;
    color: var(--text-color);
    text-align: center;
}

.contact-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form .form-group:nth-of-type(5) {
    grid-column: 1 / -1;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.check-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.check-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
    margin: 0;
}

.check-item span {
    color: var(--text-color);
    font-size: 0.96rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(145, 124, 89, 0.18);
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: min(260px, 100%);
    padding: 12px 24px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
}

.contact-cta {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 8px;
    background: var(--card-bg);
    text-align: center;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.contact-cta h3 {
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 400;
}

.contact-cta p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: var(--text-muted);
}

.contact-details--stacked {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 28px;
}

.contact-details--stacked .contact-item {
    text-align: left;
}

.contact-form--full {
    max-width: 100%;
    margin-top: 0;
}

/* Stopka */
footer {
    text-align: center;
    padding: 24px;
    background-color: var(--process-bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    z-index: 99;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .cookie-content {
    flex: 1;
}

.cookie-banner .cookie-content p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner .cookie-content p strong {
    font-weight: 600;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner .cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.3s, transform 0.1s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    white-space: nowrap;
}

.cookie-banner .cookie-btn:hover {
    opacity: 0.8;
}

.cookie-banner .cookie-btn:active {
    transform: scale(0.98);
}

.cookie-banner .cookie-accept {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

.cookie-banner .cookie-decline {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* =========================================
   STYLE DLA MODALI (POP-UP NA CAŁĄ STRONĘ)
   ========================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Tło modalu dziedziczy główny kolor trybu (jasny/ciemny) */
    background-color: var(--bg-color); 
    color: var(--text-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto; /* Pozwala przewijać zawartość na małych ekranach */
    
    /* Animacja pojawiania się */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    position: relative;
    /* Lekkie przesunięcie dla animacji */
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 5%;
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--text-muted);
    transform: scale(1.1);
}

.modal-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 40px;
    padding-right: 50px; /* Miejsce na krzyżyk */
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.modal-ems .modal-content {
    max-width: 1100px;
}

.modal-ems .modal-header h2 {
    text-align: center;
    padding-right: 0;
}

.modal-ems .modal-body {
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    align-items: start;
    justify-content: center;
    gap: clamp(36px, 5vw, 72px);
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.vertical-video-frame {
    width: min(100%, 390px, calc((100vh - 190px) * 9 / 16)) !important;
    max-width: 390px;
    aspect-ratio: 9 / 16 !important;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.vertical-video-frame iframe {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 9 / 16;
    display: block;
    border: 0;
}

/* Placeholdery na zdjęcia wewnątrz modala */
.modal-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-text p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.modal-text ul {
    margin-bottom: 48px;
    padding-left: 20px;
    color: var(--text-muted);
}

.modal-text ul li {
    margin-bottom: 12px;
}

.modal-more {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.modal-more h3 {
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-color);
}

.modal-more p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Responsywność Modala (Na telefony) */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-ems .modal-content {
        max-width: 720px;
    }

    .modal-ems .modal-header h2 {
        text-align: left;
        padding-right: 50px;
    }

    .modal-ems .modal-body {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 32px;
    }

    .modal-ems .modal-text {
        width: 100%;
    }
    
    .modal-header h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .close-modal {
        top: 15px;
        font-size: 3rem;
    }
    
    .modal-content {
        padding: 60px 5%;
    }
    
    .modal-img {
        height: 250px;
    }

    .vertical-video-frame {
        width: min(100%, 360px, calc((100vh - 170px) * 9 / 16));
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .service-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    .subpage-hero h1 {
        font-size: 2.25rem;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .subpage-image {
        height: 240px;
    }
    .carousel-caption {
        min-height: 0;
        padding: 18px;
    }
    .carousel-caption h3 {
        font-size: 1.15rem;
    }
    .brand-categories {
        gap: 28px;
    }
    .brand-category + .brand-category {
        padding-top: 28px;
    }
    .brand-category h3 {
        font-size: 1.45rem;
    }
    .brand-card {
        flex-basis: 100%;
    }
    .carousel-window {
        min-height: 240px;
    }
    .carousel-window-overlay {
        padding: 14px;
    }
    .carousel-window-hint {
        font-size: 0.76rem;
    }
    .gallery-lightbox {
        padding: 16px;
    }
    .gallery-lightbox-dialog {
        padding: 16px;
        max-height: calc(100vh - 32px);
    }
    .gallery-lightbox-image {
        max-height: 56vh;
    }
    .gallery-lightbox-copy h3 {
        font-size: 1.3rem;
    }
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 18px 5%;
    }
    .logo-link .menu-logo {
        width: min(200px, 72vw);
        max-height: 52px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    .nav-links a {
        margin: 0;
    }
    .theme-btn {
        margin-left: 0;
        margin-top: 0;
        width: 38px;
        height: 38px;
    }
    .contact-details {
        flex-direction: column;
        gap: 32px;
    }
    .contact-form {
        padding: 28px 20px;
    }
    .contact-form form {
        grid-template-columns: 1fr;
    }
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .contact-item a[href^="tel:"],
    .contact-item a[href^="mailto:"] {
        display: inline;
        text-align: center;
        text-align-last: auto;
    }
}
