/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- ZMIENNE KOLORYSTYCZNE & TYPOGRAFIA --- */
:root {
    --color-black: #000000;
    --color-black-light: #111111;
    --color-gray: #868686;
    --color-gray-light: #e0e0e0;
    --color-border: #222222;
    --color-white: #ffffff;

    --sidebar-width: 280px;
    --transition-apple: 0.5s cubic-bezier(0.32, 0.72, 0, 1);

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* --- GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-black);
    overflow: hidden;
}

a, a:visited, a:focus, a:active {
    text-decoration: none;
    color: inherit;
    outline: none;
}
.text-gray { color: var(--color-gray) !important; }
.text-white { color: var(--color-white) !important; }
.bg-black { background-color: var(--color-black) !important; }

/* Subtelna siatka inżynieryjna w tle białych sekcji */
.bg-grid {
    background-color: #fafafa;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* --- LAYOUT --- */
.app-container {
    display: flex;
    width: 100%;
    height: 100svh;
}

/* --- SIDEBAR DESKTOP --- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(155deg, #1f1f1f 0%, #000000 50%, #0a0a0a 100%);
    box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    z-index: 100;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;

    /* NOWE: Obsługa przewijania w sidebarze */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin; /* Dla Firefoxa */
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* NOWE: Elegancki, cienki scrollbar do sidebara (Chrome/Edge/Safari) */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* NOWE: Blokujemy "zgniatanie" się elementów w flexboxie.
   Jeśli brakuje miejsca, elementy zachowają swój rozmiar i aktywują scrolla. */
.brand-logo,
.main-nav,
.lang-switcher,
.contact-info-sidebar {
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    gap: 12px;
    margin: 1.5rem 0;
}
.lang-flag {
    display: block;
    width: 28px;
    height: auto;
    opacity: 0.3;
    transition: all 0.3s ease;
    border-radius: 2px;
    overflow: hidden;
}
.lang-flag:hover {
    opacity: 0.7;
}
.lang-flag.active {
    opacity: 1;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.lang-flag img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-logo {
    margin-bottom: 2.5rem;
    color: var(--color-white);
    display: block;
    text-decoration: none;
}
.brand-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}
.brand-logo p {
    font-size: 0.7rem;
    color: var(--color-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

.footer-logo {
    max-width: 220px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    display: block;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: auto;
}

.main-nav a,
.main-nav a:visited,
.main-nav a:focus,
.main-nav a:active {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    outline: none; /* Usuwa ewentualną ramkę systemową po kliknięciu */
}
.nav-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    opacity: 0.5;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a.active:visited {
    color: var(--color-white) !important;
    transform: translateX(5px);
}
.main-nav a.active .nav-num { opacity: 1; }

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contact-info-sidebar .highlight {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}
.email-link {
    color: var(--color-gray);
    font-size: 0.85rem;
    margin-top: 10px;
    transition: color 0.3s;
}
.email-link:hover { color: var(--color-white); }

@media (max-height: 850px) {
    .sidebar {
        padding: 2rem 1.5rem;
    }
    .brand-logo {
        margin-bottom: 1.5rem;
    }
    .main-nav {
        gap: 0.9rem;
    }
    .lang-switcher {
        margin: 1rem 0;
    }
}

/* Jeszcze mocniejsze zagęszczenie gdy okno jest ultra niskie / zoom > 150% */
@media (max-height: 650px) {
    .sidebar {
        padding: 1.5rem 1.2rem;
    }
    .brand-logo img {
        max-width: 80%; /* Logo nieco mniejsze */
    }
    .brand-logo p {
        font-size: 0.6rem;
    }
    .main-nav {
        gap: 0.5rem;
    }
    .main-nav a {
        font-size: 0.9rem;
    }
    .contact-info-sidebar .highlight {
        font-size: 1rem;
    }
    .contact-info-sidebar .email-link {
        font-size: 0.75rem;
        margin-top: 5px;
    }
}

/* --- CONTENT AREA & SCROLLING --- */
.content-area {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

.content-area::-webkit-scrollbar { width: 8px; }
.content-area::-webkit-scrollbar-track { background: #f1f1f1; }
.content-area::-webkit-scrollbar-thumb { background: var(--color-black); }

.content-section {
    padding: 5rem 5vw;
    position: relative;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 4rem;
}
.lead-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 300;
}

/* --- 1. HERO SECTION --- */
.section-hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}
.hero-watermark {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 30vw;
    font-weight: 700;
    color: rgba(0,0,0,0.02);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
.hero-content {
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}
.badge-modern {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-black);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 2rem;
}
.display-huge {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 450px;
    line-height: 1.7;
    margin-bottom: 3rem;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.btn-modern {
    background-color: var(--color-black);
    color: var(--color-white)!important;
    padding: 1.2rem 2.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s, transform 0.3s;
}
.btn-modern:hover {
    background-color: var(--color-gray);
    color: var(--color-white);
    transform: translateX(5px);
}
.quick-contact small {
    display: block;
    color: var(--color-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.quick-contact strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}
.hero-image {
    height: 100%;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
}

/* --- 2. O NAS --- */
.about-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-black);
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/dsc_0421.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(10%) contrast(1.1);
    z-index: 0;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
    z-index: 0;
}

.about-section .section-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.about-section .z-1 {
    z-index: 1;
}

.about-content-box {
    background: rgba(15, 15, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 33px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.accent-block {
    position: relative;
    padding: 1.5rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-left: 4px solid var(--color-white);
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);

    /* --- FIX DLA IPHONE / SAFARI (Usuwa artefakty w rogach) --- */
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background-clip: padding-box; /* Zabrania tłu wlewać się pod kąty z ramką */
    -webkit-backface-visibility: hidden; /* Wymusza akcelerację sprzętową GPU dla wygładzania */
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

.accent-block p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--color-white);
    font-weight: 300;
}

.text-light-premium {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
}

.lead-text.text-light-premium {
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    font-weight: 400;
}

.about-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 3rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.about-section .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* --- 3. USŁUGI --- */
.service-card-premium {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card-premium:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.sc-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-black-light);
}

.sc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.service-card-premium:hover .sc-img-wrap img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.sc-number {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.sc-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sc-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.sc-divider {
    width: 40px;
    height: 3px;
    background-color: var(--color-black);
    margin-bottom: 1.5rem;
    transition: width 0.3s ease;
}

.service-card-premium:hover .sc-divider {
    width: 60px;
}

.sc-desc-box {
    background-color: #f8f9fa;
    border-left: 3px solid var(--color-black);
    padding: 1rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0;
}

.sc-desc-box p {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.desc-lead {
    color: var(--color-black);
    font-weight: 600;
    display: inline;
    margin-right: 0;
}

@media (min-width: 992px) {
    .horizontal-service {
        flex-direction: row;
        align-items: stretch;
    }

    .horizontal-service.service-reverse {
        flex-direction: row-reverse;
    }

    .horizontal-service .sc-img-wrap {
        width: 45%;
        flex-shrink: 0;
        aspect-ratio: auto;
    }

    .horizontal-service .sc-content {
        width: 55%;
        padding: 3rem 4rem;
        justify-content: center;
    }

    .horizontal-service h3 {
        font-size: 2rem;
    }
}

/* --- 4. GALERIA (SWIPER) --- */
.gallery-swiper {
    width: 100%;
    padding-bottom: 3rem; /* Miejsce na paginację */
    position: relative;
}

.gallery-slide {
    background: var(--color-black-light);
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.5s, transform 0.5s;
}

.gallery-slide:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Paginacja (kropki) */
.gallery-pagination {
    bottom: 0 !important;
}
.swiper-pagination-bullet {
    background: var(--color-gray) !important;
    opacity: 0.4 !important;
    width: 8px !important;
    height: 8px !important;
    /* Animujemy tylko te dwie rzeczy, wymiary zostawiamy w spokoju dla dynamicBullets */
    transition: opacity 0.3s ease, background-color 0.3s ease !important;
}
.swiper-pagination-bullet-active {
    background: var(--color-white) !important;
    opacity: 1 !important;
}

/* Strzałki Nawigacyjne */
.swiper-nav-buttons {
    display: none; /* Domyślnie ukryte na mobile */
}

@media (min-width: 992px) {
    .gallery-swiper {
        padding-bottom: 4rem;
    }
    .swiper-nav-buttons {
        display: block;
    }
    .gallery-btn-prev,
    .gallery-btn-next {
        color: var(--color-white) !important;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        width: 50px !important;
        height: 50px !important;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.2);
        transition: background 0.3s, transform 0.3s;
        top: 40% !important;
    }

    .gallery-btn-prev:hover,
    .gallery-btn-next:hover {
        background: var(--color-black);
        transform: scale(1.1);
    }

    .gallery-btn-prev::after,
    .gallery-btn-next::after {
        font-size: 1.2rem !important;
        font-weight: bold;
    }
}

/* --- 5. FAQ --- */
.faq-accordion {
    border-top: 2px solid var(--color-black);
}
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.faq-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 2rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-black);
}
.faq-header .icon {
    font-size: 1rem;
    transition: transform 0.3s;
    color: var(--color-gray);
}
.faq-item.active .faq-header .icon {
    transform: rotate(45deg);
    color: var(--color-black);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-content p {
    padding-bottom: 2rem;
    color: var(--color-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* --- 6. FOOTER / KONTAKT --- */
.footer-premium {
    position: relative;
    background: linear-gradient(135deg, #333333 0%, #141414 40%, #000000 100%);
    padding: 5rem 0 3rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-glow {
    position: absolute;
    top: -10%;
    left: 15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.footer-glow,
.footer-premium::after {
    display: none !important;
}

.footer-premium::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.text-metallic {
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: #111111; /* Lita czerń/grafit zamiast przezroczystości */
    border: 1px solid #222222;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    overflow: hidden;
    position: relative;
    /* Usunięto backdrop-filter, co całkowicie naprawia lagi */
}

.bento-card:hover {
    border-color: #333333;
    background: #161616;
}

.bento-main-contact { grid-column: span 5; grid-row: span 2; justify-content: space-between; }
.bento-form { grid-column: span 7; grid-row: span 4; }
.bento-hq { grid-column: span 5; grid-row: span 1; }
.bento-billing { grid-column: span 5; grid-row: span 1; }
.bento-map { grid-column: span 12; grid-row: span 1; padding: 0; min-height: 350px; }

.b-icon-wrap {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.bento-card h5 {
    color: var(--color-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.phones-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 2.5rem;
}

.b-phone {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    transition: opacity 0.3s;
}

.b-phone:hover { opacity: 0.7; color:#fff!important; }

.b-email {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.b-email:hover {
    gap: 25px;
    color: var(--color-gray-light);
}

.b-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.b-text strong {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.b-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 6px 12px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.1);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

.b-nip {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.premium-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fancy-input-group {
    position: relative;
    width: 100%;
}

.fancy-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem 0.5rem 1rem;
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.fancy-textarea {
    resize: vertical;
    min-height: 120px;
}

.fancy-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255,255,255,0.05), inset 0 2px 4px rgba(0,0,0,0.1);
}

.fancy-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

textarea.fancy-input ~ .fancy-label {
    top: 1.2rem;
    transform: translateY(0);
}

.fancy-input:focus ~ .fancy-label,
.fancy-input:not(:placeholder-shown) ~ .fancy-label {
    top: 0.4rem;
    transform: translateY(0);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-top: 10px;
}

/* --- FIX WALIDACJI RODO --- */
.custom-checkbox-wrapper {
    position: relative;
}

.custom-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.custom-checkbox-wrapper input:focus-visible + .custom-checkmark {
    box-shadow: 0 0 0 2px rgba(255,255,255, 0.5); /* Dla osób korzystających z klawiatury (Tab) */
}

.custom-checkmark {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.custom-checkbox-wrapper:hover .custom-checkmark {
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-checkbox-wrapper input:checked + .custom-checkmark {
    background: var(--color-white);
    border-color: var(--color-white);
}

.custom-checkbox-wrapper input:checked + .custom-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-black);
    font-size: 12px;
}

.rodo-text {
    color: var(--color-gray);
    font-size: 0.8rem;
    line-height: 1.5;
    display: block;
}

.rodo-text a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.rodo-text a:hover {
    text-decoration-color: var(--color-white);
}

.btn-submit-premium {
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-submit-premium:hover {
    background: #e0e0e0;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.premium-map {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 24px;
}

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

.footer-logo-small {
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.copyright-text {
    color: var(--color-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* --- MOBILE HEADER & MENU --- */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    height: 60px;
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo img {
    max-height: 24px;
    width: auto;
}

/*
  PERFEKCYJNY HAMBURGER MORPH:
  Użyto zróżnicowanych `transition-delay` w dwóch fazach (0.25s).
  Zamykanie (brak .is-active): Odrotowuje się w ułamek sekundy, po czym paski rozsuwają się w pionie.
  Otwieranie (.is-active): Paski zjeżdżają na środek natychmiast, a obrót następuje po ćwierć sekundy. Środek znika od razu.
*/
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    left: 0;
    transition: transform 0.25s ease 0s, top 0.25s ease 0.25s, opacity 0s ease 0.25s;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.is-active span {
    transition: top 0.25s ease 0s, transform 0.25s ease 0.25s, opacity 0s ease 0.25s;
}

.hamburger.is-active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* CAŁOŚCIOWY FADE IN/OUT - ZERO ANIMACJI ZJEŻDŻANIA W ŚRODKU */
.mobile-nav-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100svh - 60px);

    background-color: rgba(25, 25, 25, 0.55);
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);

    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2rem;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Elementy wewnętrzne nawigacji - statyczne z odpowiednim rozmiarem */
.mobile-lang {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.mobile-lang .lang-flag {
    width: 32px;
}

.mobile-nav-list {
    list-style: none;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0;
}

.mobile-nav-list li {
    margin: 0;
    padding: 0;
}

.mobile-nav-list a {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1.35rem; /* ZMIANA: Zmniejszono font-size zgodnie z prośbą */
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 5px;
}

.mobile-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-white);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-list a:active::after,
.mobile-nav-list a:focus::after {
    width: 100%;
}

.mobile-nav-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

/* ZMIANA: Zwiększony rozmiar i bardzo jasny kolor, by napisy były wysoce czytelne na tle z glassmorphismem */
.mobile-nav-footer a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.mobile-nav-footer a strong {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.15rem; /* Powiększony numer i email */
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .section-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 0; }
    .hero-content { padding: 1.5rem 5vw; order: 2; }
    .hero-image { order: 1; min-height: 400px; clip-path: none; }
    .bento-main-contact { grid-column: span 12; grid-row: span 1; }
    .bento-form { grid-column: span 12; grid-row: auto; }
    .bento-hq { grid-column: span 6; }
    .bento-billing { grid-column: span 6; }
    .bento-map { grid-column: span 12; min-height: 300px; }
}

@media (max-width: 991px) {
    .sidebar { display: none; }
    .mobile-header { display: flex; }

    body { padding-top: 60px; }
    .app-container { flex-direction: column; height: calc(100svh - 60px); }

    .about-bg { background-attachment: scroll; background-position: center; }
    .about-content-box { padding: 2.5rem 1.5rem; border-radius: 24px; }
    .about-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%); }

    .horizontal-service.service-reverse { flex-direction: column; }

    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .modern-gallery .g-large { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
    .sc-content { padding: 1.5rem; }
    .bento-grid { gap: 1rem; }
    .bento-hq { grid-column: span 12; }
    .bento-billing { grid-column: span 12; }
    .bento-card { padding: 1.8rem; border-radius: 20px; }
    .bento-map { min-height: 250px; padding: 0;}
    .btn-submit-premium { padding: 1rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}

.rodo-toggle {
    color: var(--color-white) !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-left: 6px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.rodo-toggle:hover { color: #b0b0b0 !important; }

#cc-main{
    --cc-font-family: 'Inter', sans-serif;
    --cc-btn-primary-bg:#868686;
    --cc-btn-primary-border-color:#868686;
    --cc-btn-border-radius:33px;
    --cc-toggle-on-bg:#868686
}

#cc-main,
#cc-main .pm {
    --cc-modal-transition-duration: 0!important;
}

#cc-main .cm{
    background:rgba(255,255,255,.7)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    backdrop-filter:blur(8px)!important;
    --cc-modal-transition-duration:0.7s!important
}
button[data-cc=show-preferencesModal]:focus,button[data-cc=show-preferencesModal]:hover{
    background-color:transparent!important;
    border-color:#f8f9fa!important;
    color:#fff!important;
    outline:0!important;
    box-shadow:none!important
}

/* --- 1. HERO MOBILE FIX (Zapobieganie łamaniu numeru tel) --- */
@media (max-width: 768px) {
    .hero-actions {
        gap: 1.2rem;
        flex-wrap: nowrap; /* Wymusza bycie w jednym rzędzie */
    }
    .btn-modern {
        padding: 1rem 1.5rem;
        flex: 0 0 auto;
    }
    .quick-contact {
        flex: 1 1 auto;
        white-space: nowrap; /* Zapobiega przechodzeniu numeru do nowej linii */
        overflow: hidden;
    }
    .quick-contact strong {
        font-size: clamp(1.1rem, 4vw, 1.3rem); /* Responsywny rozmiar na ekstremalnie małych ekranach */
    }
}

/* --- 2. GALERIA GRADIENT BACKGROUND --- */
#galeria.bg-black,
#gallery.bg-black {
    /* Elegancki grafit z delikatnym srebrnym przejściem */
    background: linear-gradient(
        145deg,
        #4a4a4a 0%,
        #3b3b3b 25%,
        #242424 55%,
        #323232 80%,
        #4d4d4d 100%
    ) !important;

    /* Delikatna głębia i satynowy połysk */
    box-shadow:
        inset 0 20px 35px rgba(255,255,255,0.08),
        inset 0 -20px 35px rgba(255,255,255,0.05),
        inset 0 8px 25px rgba(0,0,0,0.35),
        inset 0 -8px 25px rgba(0,0,0,0.35);
}

/* --- 3. FAQ ACCORDION LOGIC & UI --- */
.faq-accordion {
    border-top: none; /* Usunięto sztywny czarny border nad całością */
}
.faq-item {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-top: -1px; /* Sklejenie pojedynczych cienkich borderów */
    transition: border-color 0.3s ease;
}
.faq-item.active {
    border-top: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
    position: relative;
    z-index: 10;
}

/* --- 4. POLITYKA PRYWATNOŚCI W STOPCE --- */
.footer-legal-links {
    margin: 1rem 0;
}
.privacy-link {
    color: var(--color-gray);
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.2);
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.privacy-link:hover {
    color: var(--color-white) !important;
    text-decoration-color: var(--color-white);
}

@media (max-width: 768px) {
    .footer-legal-links {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 1rem !important;
    }
}

/* --- 1. FAQ ACTIVE BORDER (Tylko górny pogrubiony) --- */
.faq-item {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-top: -1px; /* Zapobiega podwójnej grubości linii dla sąsiadujących elementów */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.active {
    border-top: 1px solid var(--color-black); /* Fix: 1px, aby nie wywoływać lagów i skoków layoutu */
    box-shadow: inset 0 1px 0 0 var(--color-black); /* Fix: Wewnętrzny cień symuluje drugi piksel grubości */
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Zostawiamy standardowy dolny */
    position: relative;
    z-index: 10;
}

/* --- 2. NOWY LINK POLITYKI PRYWATNOŚCI W BENTO GRIDZIE --- */
.bento-privacy-row {
    grid-column: span 12;
    display: flex;
    justify-content: center; /* Wyrównanie do prawej krawędzi mapy */
    align-items: center;
    padding: 0;
}
.privacy-link-premium {
    color: rgba(255, 255, 255, 0.4)!important;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.privacy-link-premium:hover {
    color: var(--color-white)!important;
}

/* --- 3. GEOMETRYCZNE ODCIĘCIE FOOTERA (Zamiast prostej linii) --- */
.footer-premium {
    position: relative;
    background: linear-gradient(135deg, #333333 0%, #141414 40%, #000000 100%);

    /* Zwiększamy górny padding, aby zawartość nie chowała się pod ścięciem */
    padding: calc(6rem + 5vw) 0 3rem 0;
    overflow: hidden;

    /* Usunięcie starego, prostego bordera */
    border-top: none;

    /* Nachodzimy delikatnie na sekcję wyżej by ukryć białą przerwę */
    margin-top: -2vw;

    /* Definicja asymetrycznego kształtu z załączonego obrazka */
    /* Punkty: Lewo(0, y), Dół-szpic(22%, max-y), Prawo-góra(100%, 0), Prawy-dół(100%, 100%), Lewy-dół(0, 100%) */
    clip-path: polygon(0 4vw, 22% 8.5vw, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 4vw, 22% 8.5vw, 100% 0, 100% 100%, 0 100%);

    /* FIX: Wymuszenie akceleracji sprzętowej GPU zapobiega znikaniu clip-path podczas animacji elementów wyżej */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* --- OBRAZEK DEKORACYJNY W STOPCE (Zacznijmy projekt) --- */
.footer-decor-img {
    position: absolute;
    top: 10%;
    right: -150px;
    transform: translateY(-50%);
    width: clamp(250px, 35vw, 504px);
    max-width: none;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    /* Bardzo tani w renderowaniu cień w oparciu o sprzęt */
    -webkit-filter: drop-shadow(-5px 5px 5px rgba(0,0,0,0.8));
    filter: drop-shadow(-5px 5px 5px rgba(0,0,0,0.8));
}

/* Korekty dla Mobile / Tabletów */
@media (max-width: 991px) {
    .footer-decor-img {
        right: -120px; /* Na małych ekranach schowaj go trochę mocniej... */
        /* opacity: 0.4; */
    }
}

/* --- POPRAWA WYGLĄDU 'POWERED BY WEB-SPEC' --- */
.footer-premium > .container-fluid > .row:last-child {
    margin-top: 0.5rem !important; /* Redukcja wielkiej, pustej luki na desktopie */
    padding-bottom: 1rem !important;
}

/* DESKTOP: Wyrównanie idealnie do prawej krawędzi (pod tekstem copyright) */
.footer-premium > .container-fluid > .row:last-child .col-12 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right !important;
}

/* Efekt "Premium" - napis delikatnie wtopiony w tło, zapala się przy najechaniu */
.footer-premium > .container-fluid > .row:last-child p {
    opacity: 0.85;
}

/* MOBILE / TABLET: Wyrównanie do lewej krawędzi (zgodnie z resztą elementów stopki) */
@media (max-width: 768px) {
    .footer-premium > .container-fluid > .row:last-child .col-12 {
        justify-content: flex-start;
        text-align: left !important;
    }

    /* Na urządzeniach mobilnych dodajemy odrobinę więcej oddechu od copyrightu */
    .footer-premium > .container-fluid > .row:last-child {
        margin-top: 1rem !important;
    }
}

.swal2-container {
  z-index: 9999999999!important;
}
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
	background: #000000 !important;
}

.swal-configuration-window {
	width: 1440px!important;
	/* height: 90svh!important; */
}

@media only screen and (max-width: 767px) {
	.swal-configuration-window {
		font-size: .85em !important
	}
}

@media only screen and (min-width: 768px) {
	.swal-configuration-window {
		font-size: 1em !important
	}
}

.swal-configuration-window button {
	border-radius: 33px !important
}

:disabled {
	cursor: not-allowed !important
}

.swal2-select:focus {
	outline: none !important;
	box-shadow: none !important
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.8)
	}

	to {
		opacity: 1;
		transform: scale(1)
	}
}

@-webkit-keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.8)
	}

	to {
		opacity: 1;
		transform: scale(1)
	}
}

@keyframes scaleOut {
	from {
		opacity: 1;
		transform: scale(1)
	}

	to {
		opacity: 0;
		transform: scale(0.8)
	}
}

@-webkit-keyframes scaleOut {
	from {
		opacity: 1;
		transform: scale(1)
	}

	to {
		opacity: 0;
		transform: scale(0.8)
	}
}

.custom-swal-show {
	animation: scaleIn .3s ease-out;
	-webkit-animation: scaleIn .3s ease-out
}

.custom-swal-hide {
	animation: scaleOut .3s ease-in;
	-webkit-animation: scaleOut .3s ease-in
}

.swal2-confirm:focus {
  /* Zastępujemy domyślny niebieski/zielony cień własnym, czarnym */
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.4) !important;
}

/* === POPRAWIONE STYLE DLA SWEETALERT2 === */

/* Główny kontener pop-upu */
.swal-configuration-window.swal2-popup {
  display: flex !important;
  flex-direction: column !important;
  max-width: 1440px !important;
  width: 95vw !important; /* Szerokość na 95% ekranu */
  height: 95svh !important; /* Wysokość na 95% ekranu */
  padding: 1.5em 1em 1.5em !important; /* Mniejszy padding boczny dla lepszego wykorzystania przestrzeni */
}

/* Kontener na treść HTML (nasza polityka/regulamin) */
.swal-configuration-window .swal2-html-container {
  flex-grow: 1; /* Kluczowe: pozwala temu elementowi rozciągnąć się i wypełnić wolne miejsce */
  overflow: hidden; /* Ukrywa przepełnienie, bo scrollowanie będzie wewnątrz */
  margin: 0 !important;
  padding: 1em 0 !important;
}

/* Tytuł i przyciski - zapobiegamy ich rozciąganiu */
.swal-configuration-window .swal2-title,
.swal-configuration-window .swal2-actions {
  flex-shrink: 0;
}

/* Przycisk potwierdzenia */
.swal-configuration-window .swal2-confirm {
	border-radius: 33px !important;
  min-width: 120px;
}

.swal-configuration-window .swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.4) !important;
}


/* Styl dla przewijanego diva wewnątrz .swal2-html-container */
.swal-scrollable-content {
  padding-right: 15px; /* Dodaje odstęp, aby tekst nie przylegał do paska przewijania */
}

/* Niestandardowy pasek przewijania dla pop-upów */
.swal-scrollable-content::-webkit-scrollbar {
  width: 8px;
}
.swal-scrollable-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.swal-scrollable-content::-webkit-scrollbar-thumb {
  background: #222222; /* Zmieniono z zielonego na ciemny grafit */
  border-radius: 10px;
}
.swal-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #444444; /* Zmieniono z jasnego zielonego */
}

@media only screen and (max-width: 767px) {
	.swal-configuration-window.swal2-popup {
    width: 95vw !important;
    padding: 1em 0.5em !important;
  }
  .swal-configuration-window .swal2-title {
    font-size: 1.25em !important;
  }
  .swal-scrollable-content {
    padding-right: 10px;
  }
	.swal2-html-container h4 {
		font-size:15px!important;
	}
}

@media only screen and (max-width: 1399px) {
	.swal-configuration-window table {
		table-layout: fixed;
		width: 100%;
	}
	.swal-configuration-window table th[scope="row"] {
		width: 40%; /* Możesz eksperymentować z wartością 30%-40% */
		word-break: break-word;
		white-space: normal;
		vertical-align: middle;
		padding-right: 10px; /* Dodaje trochę oddechu */
	}
	.swal-configuration-window table td {
		width: 60%;
		word-break: break-word; /* Również pozwalamy na łamanie długich słów tutaj */
		white-space: normal;
	}
}

/* --- FIX NA WYDAJNOŚĆ (LAGI) W STOPCE --- */
.bento-card {
    -webkit-transform: translateZ(0); /* Wymuszenie akceleracji sprzętowej */
    transform: translateZ(0);
    will-change: transform, backdrop-filter; /* Przeglądarka wie, że ma rezerwować zasoby GPU */
}

.footer-decor-img {
    -webkit-transform: translateY(-50%) translateZ(0);
    transform: translateY(-50%) translateZ(0);
    will-change: transform, filter;
}

/* --- WYŁĄCZENIE CIĘŻKICH EFEKTÓW PODCZAS OTWARTEGO POP-UPA (ELIMINACJA LAGÓW) --- */
body.swal2-shown .bento-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #181818 !important; /* Jednolity ciemny kolor w zastępstwie */
}

body.swal2-shown .footer-decor-img {
    filter: none !important; /* Wyłączenie cienia na czas otwartego pop-upa */
}

/* Izolacja renderowania całego footera dla płynniejszego scrolla */
.footer-premium {
    contain: paint;
}

@media (max-width: 991px) {
    .hero-image {
        display: none !important;
    }
    .section-hero {
        /* 100svh to cała wysokość ekranu, odejmujemy 60px wysokości headera */
        min-height: calc(100svh - 60px) !important;
    }
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.text-fade-in {
    opacity: 0; /* ukryte przed startem animacji */
    animation: heroFadeInUp 1s ease-out forwards;
    animation-delay: 0.2s; /* minimalne opóźnienie dla lepszego efektu */
}

.grecaptcha-badge {
    visibility: hidden!important;
}
