/* ---------------------------------- */
/* 1. ZMIENNE GLOBALNE I PODSTAWOWE STYLE */
/* ---------------------------------- */
:root {
    /* -- Paleta Kolorów -- */
    --color-background: #FFFFFF;
    --color-body-bg: #F9FAFB;
    --color-text-primary: #1F2937;
    --color-text-secondary: #4B5563;
    --color-border-soft: #E5E7EB;
    --color-border-hard: #D1D5DB;

    /* -- Luksusowy Złoty Akcent -- */
    --color-gold: #B98D42;
    --color-gold-darker: #A47C38;
    --color-gold-lighter: #FDFBF5;
    --color-gold-gradient: linear-gradient(135deg, #EACD85, #B98D42);

    /* -- Nadpisanie Kolorów Bootstrapa -- */
    --bs-primary: var(--color-gold);
    --bs-primary-rgb: 185, 141, 66;
    --bs-link-color: var(--color-gold);
    --bs-link-hover-color: var(--color-gold-darker);
    --bs-body-color: var(--color-text-primary);
    --bs-body-bg: var(--color-body-bg);

    /* -- Typografia -- */
    --font-primary: 'Poppins', sans-serif;

    /* -- Cienie i Przejścia -- */
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.75rem;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition-main: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-body-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-text-primary);
}

.section {
    padding: 4rem 0;
}

/* Globalny kontener dla boxów */
.petarda-container {
    background: var(--color-background);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Ikony w tekście */
.icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--color-gold);
}

/* ---------------------------------- */
/* 2. UKŁAD (BREAKPOINTS) */
/* ---------------------------------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px; /* Usunięto !important */
    }
}

/* ---------------------------------- */
/* 3. NAGŁÓWEK I NAWIGACJA */
/* ---------------------------------- */
header {
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

header > div:first-child {
    background-color: var(--color-body-bg);
    padding: 0.25rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--color-border-soft);
}

header > div:first-child a {
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: var(--transition-main);
}

header > div:first-child a:hover {
    opacity: 1;
}

.navbar {
    background-color: var(--color-background); /* Usunięto !important */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-primary);
    transition: var(--transition-main);
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold); /* Usunięto !important */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

.navbar .dropdown a svg {
    color: var(--color-text-secondary);
    transition: var(--transition-main);
}

.navbar .dropdown a:hover svg {
    color: var(--color-gold);
}

.navbar-collapse .navbar-nav {
    margin-left: auto; /* Usunięto !important */
    margin-right: auto; /* Usunięto !important */
}

/* ---------------------------------- */
/* 3.1 MENU LOGOWANIA (HOVER) */
/* ---------------------------------- */
#login-dropdown-wrapper .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-main);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-soft);
}

#login-dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#login-dropdown-wrapper > a.nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

#login-dropdown-wrapper > a.nav-link svg {
    color: var(--color-text-primary);
}

#login-dropdown-wrapper > a.nav-link:hover svg {
    color: var(--color-gold);
}

/* ---------------------------------- */
/* 4. SEKCJA HERO (PIERWSZA SEKCJA) */
/* ---------------------------------- */
body > main > section:first-child,
body > section:first-of-type {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    color: var(--color-background);
}

body > section:first-of-type > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

body > section:first-of-type > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body > section:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6);
    z-index: -1;
}

body > section:first-of-type .container {
    position: relative;
    z-index: 1;
}

body > section:first-of-type h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-background);
}

body > section:first-of-type p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

body > section:first-of-type form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--color-border-soft);
}

body > section:first-of-type form input[type="text"] {
    border: 1px solid var(--color-border-hard);
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
    flex-basis: 200px;
    flex-grow: 1;
}

body > section:first-of-type form input[type="text"]::placeholder {
    color: #999;
}

/* ---------------------------------- */
/* 5. TYTUŁY I SEKCJE TREŚCI */
/* ---------------------------------- */
h2.text-center {
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.top-offers-section {
    background-color: var(--color-body-bg);
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
}

.top-offers-section h2.text-center {
    color: var(--color-text-primary); /* Usunięto !important */
    font-size: 2.75rem;
}

.top-offers-section h2.text-center::after {
    background: var(--color-gold-darker);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: -1rem;
    margin-bottom: 2.5rem;
}

/* ---------------------------------- */
/* 6. KARTA OFERTY (TOP OFERTY / KARUZELA) */
/* ---------------------------------- */
.swiper-slide > .d-flex.flex-column.border {
    box-shadow: var(--shadow-sm);
    transition: var(--transition-main);
    border-color: var(--color-border-soft); /* Usunięto !important */
    background: var(--color-background);
    border-radius: 12px; /* Usunięto !important */
}

.top-offers-carousel .swiper-slide > .d-flex.flex-column.border {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.top-offers-carousel .swiper-slide > .d-flex.flex-column.border:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Karta z Logiem w karuzeli */
.swiper-slide .d-flex[style*="height:120px"] {
    width: 100%; /* Usunięto !important */
    height: 100px; /* Usunięto !important */
    margin: 0 0 1rem 0; /* Usunięto !important */
    background: var(--color-body-bg); /* Usunięto !important */
    border-radius: var(--bs-border-radius); /* Usunięto !important */
    overflow: hidden; /* Usunięto !important */
    border: 1px solid var(--color-border-soft); /* Usunięto !important */
    box-shadow: none; /* Usunięto !important */
    padding: 0.5rem; /* Usunięto !important */
}

.swiper-slide .d-flex[style*="height:120px"] img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Usunięto !important */
}

.swiper-slide .d-flex.flex-column.border h3 {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    min-height: 4.8em; /* Usunięto !important */
    display: -webkit-box; /* Usunięto !important */
    -webkit-line-clamp: 4; /* Usunięto !important */
    -webkit-box-orient: vertical; /* Usunięto !important */
    overflow: hidden; /* Usunięto !important */
    text-overflow: ellipsis; /* Usunięto !important */
    text-align: left; /* Usunięto !important */
    font-weight: 600;
    margin-bottom: 0.75rem; /* Usunięto !important */
}

.swiper-slide .d-flex.flex-column.border .mt-2 {
    margin-top: 0; /* Usunięto !important */
}

.swiper-slide .d-flex.flex-column.border .mt-2 > div {
    color: var(--color-text-secondary);
    gap: 0.5rem;
    font-size: 0.9rem;
    align-items: center;
    margin-bottom: 0.25rem; /* Usunięto !important */
}

.swiper-slide .d-flex.flex-column.border .mt-2 svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.swiper-slide .d-flex.flex-column.border .mt-2 span {
    font-weight: 500;
}

.swiper-slide .d-flex.flex-column.border .mt-2 > div:first-child {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.swiper-slide .d-flex.flex-column.border .mt-2 > div:first-child span {
    color: var(--color-text-primary);
    font-weight: 600;
}

.swiper-slide .d-flex.flex-column.border .mt-2 > div:first-child svg {
    color: var(--color-gold); /* Usunięto !important */
}

/* ---------------------------------- */
/* 7. PROMOWANA KARTA OFERTY (ZŁOTA) */
/* ---------------------------------- */
.d-flex.flex-column.border.is-promoted::before {
    display: none;
}

.top-offers-carousel .d-flex.flex-column.border.is-promoted {
    border-color: var(--color-gold-darker); /* Usunięto !important */
    box-shadow: 0 5px 25px rgba(var(--bs-primary-rgb), 0.3);
}

.is-promoted .d-flex[style*="height:120px"] {
    position: relative;
}

.is-promoted .d-flex[style*="height:120px"]::after {
    content: 'WYRÓŻNIONE';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--color-gold-darker);
    color: var(--color-background);
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* ---------------------------------- */
/* 8. CENNIK */
/* ---------------------------------- */
#pricing .d-flex.flex-column.border {
    box-shadow: var(--shadow-sm);
    transition: var(--transition-main);
    border-color: var(--color-border-soft); /* Usunięto !important */
    background: var(--color-background);
    height: 100%; /* Usunięto !important */
    border-radius: 12px;
}

#pricing .d-flex.flex-column.border:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

#pricing h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
}

#pricing div > strong {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

#pricing div > span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

#pricing ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

#pricing ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

#pricing ul li::before {
    content: '✔';
    color: var(--color-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

#pricing .d-flex.flex-column.border:has(.btn-primary) {
    transform: scale(1.05);
    border: 2px solid var(--color-gold-darker); /* Usunięto !important */
    background-color: var(--color-gold-lighter);
    box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.25);
    z-index: 10;
}

#pricing .d-flex.flex-column.border:has(.btn-primary) h3 {
    color: var(--color-gold-darker);
}

#pricing .d-flex.flex-column.border:has(.btn-primary) .btn-primary {
    background: var(--color-gold-gradient);
    border: none;
    color: var(--color-background);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb), 0.3);
}

#pricing .d-flex.flex-column.border:has(.btn-primary) .btn-primary:hover {
    background: var(--color-gold-gradient);
    border: none;
    color: var(--color-background);
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(var(--bs-primary-rgb), 0.4);
}

#pricing .d-flex.flex-column.border:has(.btn-primary) ul li::before {
    color: var(--color-gold-darker);
}

/* ---------------------------------- */
/* 9. PRZYCISKI (OGÓLNE) */
/* ---------------------------------- */
.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: var(--bs-border-radius);
    transition: var(--transition-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-gold-gradient);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    color: var(--color-background);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-gold-gradient);
    border: none;
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.btn-outline-primary {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* ---------------------------------- */
/* 10. KARUZELA LOGOTYPÓW */
/* ---------------------------------- */
.client-logo-carousel .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    height: 160px;
    transition: var(--transition-main);
}

.client-logo-carousel .swiper-slide:hover {
    transform: scale(1.05);
}

.client-logo-carousel .swiper-slide img {
    max-width: 120px;
    max-height: 70px;
    width: auto;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-main);
    margin-bottom: 0; /* Usunięto !important */
}

.client-logo-carousel .swiper-slide:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo-carousel .swiper-slide div {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition-main);
}

.client-logo-carousel .swiper-slide:hover div {
    color: var(--color-text-primary);
}

/* ---------------------------------- */
/* 11. STOPKA */
/* ---------------------------------- */
footer {
    background-color: var(--color-text-primary);
    color: #adb5bd;
    padding: 4rem 0 2rem 0;
    text-align: left;
}

footer h6 {
    color: var(--color-background);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition-main);
}

footer a:hover {
    color: var(--color-background);
    text-decoration: underline;
}

footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

footer img {
    margin: 0 0.25rem;
}

footer div[style*="border-top"] {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #343a40; /* Usunięto !important */
}

/* ---------------------------------- */
/* 11.1 IKONY SOCIAL MEDIA */
/* ---------------------------------- */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #343a40;
    transition: var(--transition-main);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-background);
    stroke-width: 2;
}

.social-icons a:hover {
    background-color: var(--color-gold);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ---------------------------------- */
/* 12. STYLE KARUZELI (SWIPER) */
/* ---------------------------------- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-gold); /* Usunięto !important */
    transition: var(--transition-main);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.7;
}

.swiper-pagination-bullet {
    background: var(--color-text-secondary); /* Usunięto !important */
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-gold); /* Usunięto !important */
    opacity: 1;
}

.top-offers-carousel .swiper-button-next,
.top-offers-carousel .swiper-button-prev {
    color: var(--color-text-primary); /* Usunięto !important */
    background-color: var(--color-background);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-main);
}

.top-offers-carousel .swiper-button-next:hover,
.top-offers-carousel .swiper-button-prev:hover {
    background-color: var(--color-gold);
    color: var(--color-background); /* Usunięto !important */
    box-shadow: 0 6px 15px rgba(var(--bs-primary-rgb), 0.4);
    opacity: 1;
}

.top-offers-carousel .swiper-button-next::after,
.top-offers-carousel .swiper-button-prev::after {
    font-size: 1.5rem; /* Usunięto !important */
}

.top-offers-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-text-secondary); /* Usunięto !important */
    opacity: 0.5;
    transition: var(--transition-main);
}

.top-offers-carousel .swiper-pagination-bullet-active {
    background: var(--color-gold); /* Usunięto !important */
    opacity: 1;
    transform: scale(1.2);
}

/* ---------------------------------- */
/* 13. PRZYCISK KARTY W KARUZELI */
/* ---------------------------------- */
.swiper-slide > .d-flex.flex-column.border .btn {
    padding: 0; /* Usunięto !important */
    font-size: 0.85rem; /* Usunięto !important */
    text-transform: none; /* Usunięto !important */
    letter-spacing: 0; /* Usunięto !important */
    gap: 0; /* Usunięto !important */
    width: 44px; /* Usunięto !important */
    height: 44px; /* Usunięto !important */
    border-radius: 50%; /* Usunięto !important */
    align-self: flex-end; /* Usunięto !important */
    margin-top: 0.5rem; /* Usunięto !important */
    display: flex; /* Usunięto !important */
    align-items: center;
    justify-content: center;
}

.swiper-slide > .d-flex.flex-column.border .btn svg {
    width: 20px; /* Usunięto !important */
    height: 20px; /* Usunięto !important */
}

/* ---------------------------------- */
/* 14. KARTA COOKIES */
/* ---------------------------------- */
#cookie_card {
    background-color: var(--color-background, #FFFFFF); /* Usunięto !important */
    border-radius: var(--bs-border-radius, 0.5rem); /* Usunięto !important */
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.07)); /* Usunięto !important */
    border: 1px solid var(--color-border-soft, #E5E7EB); /* Usunięto !important */
    z-index: 1060;
    
    /* Pozycjonowanie na Desktop */
    bottom: 1rem; /* Usunięto !important */
    left: 50%; /* Usunięto !important */
    transform: translate(-50%, 150%);
    transition: transform 0.5s ease-in-out;
    width: auto; /* Usunięto !important */
    max-width: 500px;
    padding: 1.5rem;
    display: none;
}

#cookie_card.show {
    transform: translate(-50%, 0);
    display: block;
}

#cookie_card #cookieTitle {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text-primary, #1F2937);
}

#cookie_card svg {
    color: var(--color-gold, #B98D42);
    flex-shrink: 0;
}

#cookie_card #cookieDesc {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #4B5563);
}

#cookie_card #cookieDesc a {
    color: var(--color-gold, #B98D42);
    font-weight: 500;
    text-decoration: underline; /* Usunięto !important */
}

#cookie_card #close_cookie_card {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

#cookie_card .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ---------------------------------- */
/* 15. RESPONSOWNOŚĆ KARTY COOKIES */
/* ---------------------------------- */
@media (max-width: 576px) {
    #cookie_card {
        max-width: 100%;
        width: calc(100% - 2rem); /* Usunięto !important */
        left: 1rem; /* Usunięto !important */
        right: 1rem; /* Usunięto !important */
        bottom: 1rem; /* Usunięto !important */
        
        transform: translateY(150%);
    }

    #cookie_card.show {
        transform: translateY(0);
    }
    
    #cookie_buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #cookie_buttons .btn {
        width: 100%;
    }
    
    #cookie_buttons .btn:first-child {
        margin-bottom: 0.5rem;
    }
}

/* ---------------------------------- */
/* 16. KARTA OFERTY (LISTA OFERT) */
/* ---------------------------------- */
.offer-horizontal-card {
    background: var(--color-background);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-main);
    position: relative;
    border-radius: 12px; /* Usunięto !important */
    height: 100%;
    align-items: stretch;
}

.offer-horizontal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Linki w tytule */
.offer-horizontal-card h5 a {
    color: var(--color-text-primary);
    transition: var(--transition-main);
}

.offer-horizontal-card h5 a:hover {
    color: var(--color-gold);
}

.offer-horizontal-card h5.text-danger a {
    color: #dc3545;
}

.offer-horizontal-card h5.text-primary a {
    color: var(--color-gold-darker);
}

/* LEWA KOLUMNA (BADGE + LOGO) */
.offer-horizontal-card > .d-flex.flex-column {
    flex-shrink: 0;
    width: 80px;
    margin-right: 1.5rem;
    align-items: center;
}

/* Logo (w lewej kolumnie) */
.offer-horizontal-card > .d-flex.flex-column .flex-shrink-0 img,
.offer-horizontal-card > .d-flex.flex-column .flex-shrink-0 .bg-light {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--bs-border-radius);
}

.offer-horizontal-card > .d-flex.flex-column .flex-shrink-0 img {
    object-fit: cover;
}

.offer-horizontal-card > .d-flex.flex-column .flex-shrink-0 .bg-light {
    background-color: var(--color-body-bg);
}

/* Badge (w lewej kolumnie) */
.offer-horizontal-card > .d-flex.flex-column .offer-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.offer-horizontal-card .day-badge {
    background: #dc3545;
}

.offer-horizontal-card .top-badge {
    background: var(--color-gold-darker);
}

/* Pozycjonowanie plakietek NAD ramką na desktopie */
@media (min-width: 992px) {
    .offer-horizontal-card > .d-flex.flex-column .offer-badge {
        position: absolute;
        top: -1.05rem;
        left: 1.5rem;
        z-index: 2;
        margin-bottom: 0;
    }
}

/* Karta promowana (Top Oferta) */
.offer-horizontal-card:has(.top-badge) {
    border: 2px solid var(--color-gold-darker); /* Usunięto !important */
    box-shadow: 0 5px 25px rgba(var(--bs-primary-rgb), 0.3);
}

/* Badge'y (opcje, np. Nowa) */
.offer-horizontal-card .badge {
    font-weight: 600;
    padding: 0.4em 0.7em;
    font-size: 0.75rem;
}

/* ---------------------------------- */
/* 16.1 PRZYCISK KARTY (LISTA OFERT) */
/* ---------------------------------- */

/* Kontener przycisku jest wypychany na dół */
.offer-horizontal-card > .flex-shrink-0.text-end {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Na desktopie wyrównaj kontener przycisku do prawej */
@media (min-width: 992px) {
    .offer-horizontal-card > .flex-shrink-0.text-end {
        align-items: flex-end;
    }
}

/* Styl samego przycisku (GLOBALNY, bez tła/ramki/cienia) */
.offer-horizontal-card > .flex-shrink-0.text-end .btn {
    background: transparent; /* Usunięto !important */
    border: none; /* Usunięto !important */
    box-shadow: none; /* Usunięto !important */
    color: var(--color-gold); /* Usunięto !important */

    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-main);
}

/* Zmiana koloru i lekkie powiększenie ikony po najechaniu */
.offer-horizontal-card > .flex-shrink-0.text-end .btn:hover {
    background: transparent; /* Usunięto !important */
    color: var(--color-gold-darker); /* Usunięto !important */
    transform: scale(1.1);
}

.offer-horizontal-card > .flex-shrink-0.text-end .btn svg {
    width: 20px;
    height: 20px;
}


/* ---------------------------------- */
/* 17. ANIMACJE (OFERTA DNIA) */
/* ---------------------------------- */
@keyframes pulse-red {
    0%,
    100% {
        box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.15);
    }

    50% {
        box-shadow: 0 0.5rem 1.5rem rgba(220, 53, 69, 0.4);
    }
}

/* Karta Oferty Dnia */
.offer-horizontal-card:has(.day-badge) {
    border: 2px solid #dc3545; /* Usunięto !important */
    animation: pulse-red 2s infinite;
}

.offer-horizontal-card:has(.day-badge):hover {
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.25); /* Usunięto !important */
    animation: none;
}

/* ---------------------------------- */
/* 18. RESPONSYWNOŚĆ (OGÓLNA) */
/* ---------------------------------- */

/* Ukrywanie meta-danych na tabletach */
@media (max-width: 1200px) and (min-width: 992px) {
    .offer-horizontal-card .d-flex.flex-wrap.align-items\: center [style*="min-width:120px"],
    .offer-horizontal-card .d-flex.flex-wrap.align-items\: center [style*="min-width:160px"] {
        display: none;
    }
}

/* Tablety i telefony < 992px */
@media (max-width: 991.98px) {
    /* --- Style formularza filtrów (ogólne) --- */
    #offerSearchForm .col-lg-3.text-lg-end {
        text-align: left; /* Usunięto !important */
        width: 100%;
    }

    #offerSearchForm .btn {
        width: 100%;
    }

    #offerSearchForm .btn:not(:last-child) {
        margin-bottom: 0.5rem;
        margin-right: 0; /* Usunięto !important */
    }

    #offerSearchForm .btn-icon-only {
        width: 100%; /* Usunięto !important */
        border-radius: var(--bs-border-radius); /* Usunięto !important */
    }

    /* --- Style karty oferty --- */
    .offer-horizontal-card {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        align-items: stretch;
    }

    /* 1. Blok Logo/Badge */
    .offer-horizontal-card > .d-flex.flex-column {
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    .offer-horizontal-card > .d-flex.flex-column .offer-badge {
        margin-bottom: 0;
    }

    .offer-horizontal-card > .d-flex.flex-column .flex-shrink-0 {
        margin-left: auto;
    }

    /* 2. Blok Treści */
    .offer-horizontal-card > .flex-grow-1 {
        margin-left: 0;
        margin-bottom: 1rem;
        flex-grow: 1;
    }

    /* 3. Blok Przycisku (MOBILE) */
    .offer-horizontal-card > .flex-shrink-0.text-end {
        width: 100%;
        text-align: center;
        margin-left: 0;
        padding-top: 1rem;
        align-items: center;
    }

    /* 4. Ukrywanie meta-danych */
    .offer-horizontal-card .d-flex.flex-wrap.align-items\: center [style*="min-width:160px"],
    .offer-horizontal-card .d-flex.flex-wrap.align-items\: center [style*="min-width:120px"] {
        display: none;
    }

    /* 5. Pensja */
    .offer-horizontal-card .d-flex.flex-wrap.align-items\: center .text-success {
        width: 100%;
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
}

/* Tablety i telefony < 768px */
@media (max-width: 767.98px) {
    /* Hero */
    body > section:first-of-type {
        padding: 4rem 1rem;
    }
    body > section:first-of-type h1 {
        font-size: 2rem;
    }
    body > section:first-of-type p {
        font-size: 1rem;
    }
    body > section:first-of-type form {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    body > section:first-of-type form input[type="text"] {
        flex-basis: auto;
        flex-grow: 0;
        width: 100%;
    }

    /* Karuzele */
    .top-offers-carousel .swiper-slide {
        width: 80%; /* Usunięto !important */
    }
    .client-logo-carousel .swiper-slide {
        width: 50%; /* Usunięto !important */
        max-width: none;
    }

    /* Lista ofert */
    .offer-horizontal-card {
        flex-direction: column; /* Usunięto !important */
        align-items: stretch; /* Usunięto !important */
    }
    .offer-horizontal-card > div {
        width: 100%; /* Usunięto !important */
        margin-right: 0; /* Usunięto !important */
        margin-bottom: 0.75rem; /* Usunięto !important */
    }
    .offer-horizontal-card .flex-shrink-0:nth-of-type(1) {
        width: 100%; /* Usunięto !important */
        margin-right: 0; /* Usunięto !important */
    }
    .offer-horizontal-card .flex-grow-1 {
        width: 100%; /* Usunięto !important */
        margin-bottom: 1rem; /* Usunięto !important */
    }
    .offer-horizontal-card .text-end {
        width: 100%; /* Usunięto !important */
        text-align: center; /* Usunięto !important */
    }
    .offer-horizontal-card .btn {
        width: 100%; /* Usunięto !important */
    }

    /* Sidebar / sticky */
    .info-summary-box,
    .application-form-box {
        position: relative; /* Usunięto !important */
        top: auto; /* Usunięto !important */
        margin-top: 2rem;
    }

    /* Stopka */
    footer .row {
        flex-direction: column; /* Usunięto !important */
        text-align: center; /* Usunięto !important */
    }

    footer .row > [class*="col-"] {
        width: 100%; /* Usunięto !important */
        margin-bottom: 2.5rem;
    }

    footer .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    /* Układa linki "Nasze serwisy" pionowo */
    footer .d-flex.justify-content-center.flex-wrap {
        flex-direction: column;
        gap: 1.5rem; /* Usunięto !important */
    }

    /* CV generator i formularze */
    .cv-generator-page .petarda-container,
    .cv-generator-page .form-section-inner-wrapper {
        padding: 1rem; /* Usunięto !important */
    }
}

/* Tablety 768px - 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    body > section:first-of-type {
        padding: 6rem 2rem;
    }
    body > section:first-of-type h1 {
        font-size: 2.5rem;
    }
    body > section:first-of-type p {
        font-size: 1.1rem;
    }

    /* Karuzele */
    .top-offers-carousel .swiper-slide {
        width: 50%; /* Usunięto !important */
    }
    .client-logo-carousel .swiper-slide {
        width: 33%; /* Usunięto !important */
    }

    /* Lista ofert */
    .offer-horizontal-card {
        flex-direction: row; /* Usunięto !important */
        flex-wrap: wrap; /* Usunięto !important */
    }
}

/* Duże tablety / laptopy 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .top-offers-carousel .swiper-slide {
        width: 33%; /* Usunięto !important */
    }
    .client-logo-carousel .swiper-slide {
        width: 20%; /* Usunięto !important */
    }
}


/* ---------------------------------- */
/* 19. STRONA POJEDYNCZEJ OFERTY */
/* ---------------------------------- */
.offerViewPage {}

/* --- LEWA KOLUMNA (TREŚĆ OFERTY) --- */
.offer-header .offer-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 1.5rem; /* Usunięto !important */
}

.offer-meta {
    gap: 1rem 2rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-soft);
    padding-bottom: 1.5rem;
}

.offer-meta .icon-svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text-secondary);
    margin-right: 0.5rem; /* Usunięto !important */
}

.offer-section .section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.content-box {
    color: var(--color-text-primary);
    line-height: 1.7;
}

.content-box p {
    margin-bottom: 1rem;
}

.content-box ul {
    list-style: none;
    padding-left: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-box li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-box li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-gold);
    font-weight: 800;
    font-size: 1.1rem;
}

.content-box strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.offer-extra-info {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border-soft);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* --- PRAWA KOLUMNA (SIDEBAR) --- */
.info-summary-box {
    position: sticky;
    top: 100px;
}

.info-summary-title {
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
}

/* --- Formularz Aplikacyjny --- */
.application-form-box {
    position: sticky;
    top: 100px;
}

.application-form-box .form-title {
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Przycisk "Aplikuj z partnerem" */
.add-partner-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-gold);
    border: 2px solid var(--color-gold-lighter);
    background: var(--color-gold-lighter);
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
    transition: var(--transition-main);
    width: 100%;
}

.add-partner-btn:hover {
    background: var(--color-background);
    border-color: var(--color-gold);
}

.add-partner-btn .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
}

.add-partner-btn .icon-svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold);
}

.add-partner-btn .icon-minus {
    display: none;
}

.add-partner-btn.active .icon-minus {
    display: block;
}

.add-partner-btn.active .icon-plus {
    display: none;
}

.add-partner-btn.active {
    background: var(--color-background);
    border-color: var(--color-gold);
}

/* Sekcja CV Partnera (ukryta) */
.partner-cv-section {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    margin-top: 0;
    border: 1px solid var(--color-border-soft);
    border-top: none;
    border-radius: 0 0 var(--bs-border-radius-lg) var(--bs-border-radius-lg);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s;
}

.partner-cv-section.visible {
    opacity: 1;
    visibility: visible;
    padding: 1.5rem;
    margin-top: -0.5rem;
    position: relative;
}

/* Klauzula zgody */
.toggle-text {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: var(--transition-main);
}

.toggle-text:hover {
    color: var(--color-text-primary);
}

.toggle-text .toggle-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.toggle-text.open .toggle-arrow {
    transform: rotate(180deg);
}

/* ---------------------------------- */
/* 20. STYLE FORMULARZY (GLOBALNE) */
/* ---------------------------------- */

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.form-control,
.modern-input,
.application-form .form-control.modern-input,
.application-form .form-select {
    width: 100%;
    display: block;
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--color-border-hard);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-main);
    background: var(--color-background);
}

.form-control:focus,
.modern-input:focus,
.application-form .form-control.modern-input:focus,
.application-form .form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
    outline: none;
    background: var(--color-background);
}

.modern-input[type="date"] {
    position: relative;
    -webkit-appearance: none;
}

.application-form .form-check-input {
    border-color: var(--color-border-hard);
}

.application-form .form-check-input:checked {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.application-form .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

/* Strefa upuszczania pliku CV (GLOBALNA) */
.file-upload-dropzone {
    border: 2px dashed var(--color-border-hard);
    border-radius: var(--bs-border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-main);
}

.file-upload-dropzone:hover,
.file-upload-dropzone.drag-over {
    border-color: var(--color-gold);
    background-color: var(--color-gold-lighter);
}

.file-upload-dropzone.file-invalid {
    border-color: #dc3545;
    background-color: #fff6f7;
}

.file-upload-dropzone .file-upload-content {
    display: block;
}

.file-upload-dropzone .file-name-display {
    display: none;
    font-weight: 700;
    color: var(--color-gold-darker);
    margin-top: 1rem;
}

.file-upload-dropzone.file-uploaded .file-upload-icon,
.file-upload-dropzone.file-uploaded .file-upload-cta-button,
.file-upload-dropzone.file-uploaded .file-upload-drag-text {
    display: none;
}

.file-upload-dropzone.file-uploaded .file-name-display {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload-icon {
    width: 30px;
    height: 30px;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.file-upload-cta-button {
    display: inline-block;
    background: var(--color-body-bg);
    border: 1px solid var(--color-border-hard);
    padding: 0.5rem 1rem;
    border-radius: var(--bs-border-radius);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    transition: var(--transition-main);
}

.file-upload-dropzone:hover .file-upload-cta-button {
    background: #fff;
    border-color: var(--color-gold);
}

.file-upload-drag-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0.5rem 0 0 0;
}

.modern-file-input-hidden {
    display: none;
}

.text-muted-small {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.invalid-feedback.d-block {
    font-size: 0.85rem;
}

/* ---------------------------------- */
/* 21. GENERATOR CV */
/* ---------------------------------- */
.cv-generator-page .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.cv-generator-page .calculator-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.cv-generator-page .petarda-container {
    background: var(--color-body-bg);
    border: none;
    box-shadow: none;
    padding: 1rem; /* Usunięto !important */
}

@media (min-width: 768px) {
    .cv-generator-page .petarda-container {
        padding: 2.5rem; /* Usunięto !important */
    }
}

.cv-generator-page .form-section {
    border: 1px solid var(--color-border-soft);
    background: var(--color-background);
    border-radius: var(--bs-border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-main);
    overflow: hidden;
}

.cv-generator-page .form-section.is-active {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}

.cv-generator-page .form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    position: relative;
    margin: 0;
    display: block;
}

.cv-generator-page .form-section-title::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.cv-generator-page .form-section.is-active .form-section-title::after {
    transform: translateY(-50%) rotate(45deg);
}

.cv-generator-page .form-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.cv-generator-page .form-section.is-active .form-section-content {
    max-height: 3000px;
    transition: max-height 0.8s ease-in;
}

.cv-generator-page .form-section-inner-wrapper {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.dynamic-entry {
    border-bottom: 1px solid var(--color-border-soft);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.dynamic-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.remove-entry-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-main);
}

.remove-entry-btn:hover {
    background: #dc3545;
    color: #fff;
}

.dynamic-entry .d-flex.align-items-end {
    min-height: 44px;
}

.btn-modern.modern-filter-btn {
    background: var(--color-background);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--bs-border-radius);
    transition: var(--transition-main);
}

.btn-modern.modern-filter-btn:hover {
    background: var(--color-gold);
    color: #fff;
}

.btn-modern.modern-filter-btn:hover .icon-svg {
    stroke: #fff;
}

.btn-petarda-toggle {
    background: var(--color-background);
    border: 1px solid var(--color-border-hard);
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--bs-border-radius); /* Usunięto !important */
    transition: var(--transition-main);
}

.btn-check:checked + .btn-petarda-toggle {
    background: var(--color-gold-gradient);
    border-color: var(--color-gold);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-check:focus + .btn-petarda-toggle {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

.elegant-icon-text-button,
.elegant-form-text-button {
    background: var(--color-gold-gradient);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--bs-border-radius);
    transition: var(--transition-main);
    box-shadow: var(--shadow-sm);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.elegant-icon-text-button .icon-svg,
.elegant-form-text-button .icon-svg {
    stroke: #fff;
    margin-right: 0.75rem; /* Usunięto !important */
}

.elegant-icon-text-button:hover,
.elegant-form-text-button:hover {
    background: var(--color-gold-gradient);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: #FFFFFF;
    filter: brightness(1.1);
}