/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --scroll-progress: 0;
    --dark-bg: #0a0a0a;
    --light-bg: #fff;
    --dark-text: #0a0a0a;
    --light-text: #fff;
    --transition-point: 50%;
    --teal: #F1BD37;
    --teal-light: #F4C959;
    --teal-dark: #D4A42E;
    --card-bg-dark: #171717;
    --card-border-dark: #262626;
    --card-bg-light: #ffffff;
    --card-border-light: #e5e5e5;
    --button-bg-dark: #F1BD37;
    --button-bg-light: #D4A42E;
    --text-gray-dark: #a3a3a3;
    --text-gray-light: #4b5563;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, 
        #000000 calc(var(--scroll-progress) * 15%), 
        #ffffff calc(var(--scroll-progress) * 75%)
    );
    transition: background 0.2s ease-out;
    min-height: 100vh;
}

/* POPRAWIONY SYSTEM - Bardzo ostre przejście */
.container {
    min-height: 100vh;
    position: relative;
    padding: 0;
    transition: background-color 0.3s ease-out;
    background-color: rgb(
        calc(0 + 255 * clamp(0, (var(--scroll-progress) - 0.2) * 2.5, 1)),
        calc(0 + 255 * clamp(0, (var(--scroll-progress) - 0.2) * 2.5, 1)),
        calc(0 + 255 * clamp(0, (var(--scroll-progress) - 0.2) * 2.5, 1))
    );
}

.content {
    max-width: 1152px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Animation overlay */
.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Cleaner animation - uproszczenie CSS, główna logika w JS */
.cleaner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease, top 0.2s ease;
}

.cleaner-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 70px;
    background-color: #888;
    border-radius: 5px;
}

.cleaner-mop {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 30px;
    background-color: #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: mop-sway 1.5s ease-in-out infinite alternate;
}

.cleaner-mop::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 150px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0 0 10px 10px;
    filter: blur(5px);
}

@keyframes mop-sway {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

/* Typography z bardzo ostrym przejściem - tekst zmienia się WCZEŚNIEJ niż tło dla kontrastu */
.title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: color 0.1s ease;
    /* Tekst zmienia się na 45% (2% przed tłem) - biały do 45%, czarny od 45% */
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
}

.subtitle {
    font-size: 1.125rem;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    transition: color 0.1s ease;
    /* Tekst pomocniczy również zmienia się na 45% */
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 75 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 85 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 99 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
}

/* Kolory dla ikon SVG */
.icon-orange {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-orange img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(57%) sepia(96%) saturate(1228%) hue-rotate(11deg) brightness(104%) contrast(98%);
}

.icon-yellow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-yellow img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(85%) sepia(95%) saturate(1352%) hue-rotate(4deg) brightness(102%) contrast(95%);
}

/* Price highlight w subtitle */
.price-highlight {
    font-weight: 700;
    color: var(--teal) !important;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    transition: color 0.1s ease;
    /* Tytuły sekcji zmieniają się na 45% */
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
    opacity: 0.8;
    transition: color 0.1s ease;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
}

/* Cards w hero section - karty zmieniają się razem z tłem */
.hero-section .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hero-section .card {
    background-color: rgba(
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.9
    );
    border: 1px solid rgba(
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        1
    );
    border-radius: 0.5rem;
    transition: background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.3s ease;
}

.hero-section .card-content {
    padding: 1.5rem;
}

.hero-section .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    );
    transition: color 0.1s ease;
}

.hero-section .card-text {
    font-size: 0.875rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 75 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 85 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 99 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    );
    transition: color 0.1s ease;
}

/* Services section cards - z ostrym przejściem */
.services-section {
    padding: 2rem 2rem;
    background: transparent !important;
    margin-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: rgba(
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.9
    );
    border: 1px solid rgba(
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        1
    );
    border-radius: 0.75rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.1s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--teal);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(
        calc(241 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 212 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(189 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 142 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(55 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 46 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    );
    transition: color 0.1s ease;
}

.service-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 75 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 85 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 99 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    );
    transition: color 0.1s ease;
}

/* SEKCJA PRICING - TERAZ TEŻ Z INTERPOLACJĄ KOLORÓW */
.pricing-section {
    background: transparent !important;
    margin: 0;
    padding-top: 2rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Tytuły w sekcji pricing z ostrym przejściem */
.packages-title,
.calculator-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    transition: color 0.1s ease;
}

/* WSZYSTKIE KARTY TERAZ MAJĄ INTERPOLACJĘ KOLORÓW - jak pozostałe sekcje */
.package-card,
.result-card,
.addon-item,
.service-type-option,
.frequency-control,
.package-selection-option {
    background-color: rgba(
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.9
    ) !important;
    border: 1px solid rgba(
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        1
    ) !important;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.1s ease, border-color 0.1s ease;
}

.package-card {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(241, 189, 55, 0.04) !important;
    border-color: rgba(241, 189, 55, 0.3) !important;
}

.package-card.selected {
    background-color: #fef9e7 !important; /* Solidny jasny żółty zamiast rgba(241, 189, 55, 0.1) */
    border: 2px solid #F1BD37 !important;
    box-shadow: 0 0 20px rgba(241, 189, 55, 0.3);
}

.package-card.selected:hover {
    background-color: rgba(241, 189, 55, 0.12) !important;
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F1BD37 0%, #E6A82A 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(241, 189, 55, 0.3);
    white-space: nowrap;
}

.package-header {
    margin-bottom: 1rem;
}

/* TEKSTY W KARTACH PRICING - również z interpolacją */
.package-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    margin-bottom: 0.5rem;
    transition: color 0.1s ease;
}

.package-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal) !important;
}

.price-unit {
    font-size: 0.875rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 107 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 114 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 128 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    transition: color 0.1s ease;
}

.package-description {
    font-size: 0.875rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 107 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 114 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 128 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    margin-bottom: 1rem;
    transition: color 0.1s ease;
}

.package-includes h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    margin-bottom: 0.5rem;
    transition: color 0.1s ease;
}

.package-includes ul {
    list-style: none;
    padding: 0;
}

.package-includes li {
    font-size: 0.875rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 75 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 85 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 99 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
    transition: color 0.1s ease;
}

.package-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

/* Pakiety */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-top: 20px; /* DODANE - dodatkowy padding u góry */
}

/* PIERWSZE SPRZĄTANIE - JEDYNA DEFINICJA! */
.first-clean-section {
    margin-bottom: 4rem;
}

.first-clean-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    transition: color 0.1s ease;
}

.first-clean-grid {
    width: 100%;
    margin-bottom: 3rem;
    /* USUŃ display: grid - to powoduje problemy */
}

.first-clean-card,
.special-offer-card {
    width: 100% !important;
    max-width: none !important;
    background-color: rgba(
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.9
    ) !important;
    border: 2px solid rgba(
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.3
    ) !important;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    margin: 0;
    display: block !important; /* WYMUSZENIE WIDOCZNOŚCI */
}

.special-offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #F1BD37 !important;
}

.special-offer-card.selected {
    background: linear-gradient(135deg, #fef9e7, #fefbf0) !important; /* Solidny gradient zamiast rgba */
    border-color: #F1BD37 !important;
    border-width: 3px;
    box-shadow: 0 8px 30px rgba(241, 189, 55, 0.2);
}

.special-offer-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(241, 189, 55, 0.3);
}

.special-offer-content {
    margin-top: 0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.special-offer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    margin-bottom: 1rem;
    transition: color 0.1s ease;
    text-align: center;
}

.special-offer-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.special-offer-price .price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--teal) !important;
    text-shadow: 0 2px 4px rgba(241, 189, 55, 0.2);
}

.special-offer-price .price-unit {
    font-size: 1rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 107 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 114 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 128 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    transition: color 0.1s ease;
}

.special-offer-description {
    font-size: 1rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 75 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 85 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 99 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.1s ease;
    text-align: center;
}

.special-offer-description strong {
    color: var(--teal) !important;
    font-weight: 700;
}

.special-offer-benefits {
    display: grid;
    gap: 0.75rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.benefit-item {
    font-size: 0.9rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 75 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 85 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 99 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.1s ease;
}

.benefit-item::before {
    content: '✓';
    color: var(--teal) !important;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Calculator */
.calculator-section {
    margin-bottom: 3rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Tytuły w kalkulatorze - z interpolacją */
.service-type-title,
.addons-title,
.frequency-title,
.package-selection-title {
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.1s ease;
}

/* Package selection */
.package-selection-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/* Package selection w kalkulatorze */
.package-selection-option {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    position: relative;
}

/* Efekt gdy radio button jest zaznaczony */
.package-selection-option:has(input[type="radio"]:checked) {
    background-color: #fef9e7 !important; /* Solidny kolor zamiast rgba(241, 189, 55, 0.08) */
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 2px rgba(241, 189, 55, 0.15);
}

.package-selection-option:hover {
    background-color: rgba(241, 189, 55, 0.04) !important;
    border-color: rgba(241, 189, 55, 0.3) !important;
}

/* Fallback dla starszych przeglądarek które nie obsługują :has() */
.package-selection-option.selected {
    background-color: #fef9e7 !important; /* Solidny kolor zamiast rgba(241, 189, 55, 0.08) */
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 2px rgba(241, 189, 55, 0.15);
}

.package-selection-option input[type="radio"] {
    margin: 0;
    accent-color: var(--teal);
}

.option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    transition: color 0.1s ease;
}

.option-name {
    font-weight: 600;
}

.option-price {
    color: var(--teal) !important;
    font-weight: 600;
}

/* Service type options */
.service-type-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

/* Service type options - lepszy wizualny feedback */
.service-type-option {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    transition: all 0.3s ease;
}

/* Efekt gdy radio button jest zaznaczony - POPRAWIONY */
.service-type-option:has(input[type="radio"]:checked),
.service-type-option.selected {
    background-color: #fef9e7 !important; /* Solidny kolor zamiast rgba(241, 189, 55, 0.08) */
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 2px rgba(241, 189, 55, 0.15);
}

.service-type-option:hover {
    background-color: rgba(241, 189, 55, 0.04) !important;
    border-color: rgba(241, 189, 55, 0.3) !important;
}

.service-type-option input[type="radio"] {
    margin: 0;
    accent-color: var(--teal);
}

.service-type-option .option-label {
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    font-weight: 600;
    transition: color 0.1s ease;
}

/* Radio button styling for better cross-browser support */
input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--teal);
    cursor: pointer;
}

/* Custom radio button styling for browsers that don't support accent-color */
@supports not (accent-color: var(--teal)) {
    input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid #d1d5db;
        border-radius: 50%;
        background-color: white;
        position: relative;
        cursor: pointer;
        transition: border-color 0.3s ease, background-color 0.3s ease;
    }

    input[type="radio"]:checked {
        border-color: var(--teal);
        background-color: white;
    }

    input[type="radio"]:checked::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        background-color: var(--teal);
    }

    input[type="radio"]:hover {
        border-color: var(--teal);
    }
}

/* Input groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label,
label[for="surface-area"] {
    color: #1f2937 !important;
    font-weight: 600;
}

#surface-area {
    background: white !important;
    border: 2px solid #e5e7eb !important;
    color: #1f2937 !important;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

#surface-area::-webkit-outer-spin-button,
#surface-area::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#surface-area:focus {
    outline: none;
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1) !important;
}

/* Frequency controls - POPRAWIONY SLIDER */
.frequency-control {
    text-align: center;
}

.frequency-control label {
    display: block;
    margin-bottom: 1rem;
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    ) !important;
    font-weight: 600;
    transition: color 0.1s ease;
}

.frequency-slider {
    width: 100%;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(
        to right,
        var(--teal) 0%,
        var(--teal) var(--slider-progress, 0%),
        #e5e7eb var(--slider-progress, 0%),
        #e5e7eb 100%
    );
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.frequency-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 2;
}

.frequency-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(241, 189, 55, 0.4), 0 0 0 4px rgba(241, 189, 55, 0.1);
}

.frequency-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(241, 189, 55, 0.6), 0 0 0 6px rgba(241, 189, 55, 0.15);
}

/* Firefox */
.frequency-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 2;
}

.frequency-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(241, 189, 55, 0.4), 0 0 0 4px rgba(241, 189, 55, 0.1);
}

.frequency-slider::-moz-range-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(241, 189, 55, 0.6), 0 0 0 6px rgba(241, 189, 55, 0.15);
}

/* Track styling for Firefox */
.frequency-slider::-moz-range-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    border: none;
}

/* Progress fill for Firefox */
.frequency-slider::-moz-range-progress {
    background-color: var(--teal);
    height: 8px;
    border-radius: 4px;
}

.frequency-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgb(
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 107 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 114 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)),
        calc(212 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)) + 128 * clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))
    ) !important;
    transition: color 0.1s ease;
}

/* Dodatki */
.addons-section {
    background: transparent !important;
    padding: 0;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    text-align: left;
}

.addon-info {
    flex: 1;
}

.addon-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937 !important;
}

.addon-description {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: #6b7280 !important;
}

.addon-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal) !important;
}

.addon-control {
    margin-left: 1rem;
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--teal);
    background-color: transparent;
    color: var(--teal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.counter-value {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    color: #1f2937 !important;
}

/* Wyniki kalkulatora */
.result-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    min-width: 280px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
}

.result-item:last-child {
    border-bottom: none;
}

.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid var(--teal);
    margin-top: 1rem;
    font-weight: 600;
    gap: 1rem;
}

.result-label {
    font-size: 0.875rem;
    color: #1f2937 !important;
}

.result-value {
    font-weight: 600;
    color: var(--teal) !important;
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}

.result-total .result-value {
    font-size: 1.125rem;
    min-width: 140px;
}

.pricing-disclaimer {
    color: #6b7280 !important;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Icons */
.icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.sparkles {
    background-color: var(--teal-light);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M3 5h4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M3 5h4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E") no-repeat center;
}

.check-circle {
    background-color: #fb923c;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") no-repeat center;
}

/* Button */
.cta {
    margin-top: 3rem;
    text-align: center;
}

.button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background-color: var(--button-bg-dark);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--teal-light);
}

.button-primary {
    background-color: var(--teal);
    margin-right: 1rem;
}

.button-secondary {
    background-color: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
}

.button-secondary:hover {
    background-color: var(--teal);
    color: white;
}

/* Sections */
section {
    padding: 3rem 1.5rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 1rem;
    margin-bottom: 0;
}

/* Contact section */
.contact-section {
    padding-top: 3rem;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: #1f2937 !important;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--teal);
    transition: background-color 0.3s ease;
}

.contact-text {
    color: #1f2937 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-icon.phone {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center;
}

.contact-icon.email {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background-color: white !important;
    border: 2px solid #e5e7eb !important;
    color: #1f2937 !important;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(241, 189, 55, 0.1) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Footer z ostrym przejściem */
.footer {
    padding: 4rem 1.5rem;
    margin-top: 3rem;
    background: rgba(
        calc(0 + 255 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(0 + 255 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(0 + 255 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.9
    );
    border-top: 1px solid rgba(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        0.1
    );
    color: rgb(
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1))),
        calc(255 * (1 - clamp(0, (var(--scroll-progress) - 0.45) * 100, 1)))
    );
    transition: all 0.1s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    transition: color 0.3s ease;
}

/* Responsive */
@media (min-width: 768px) {
    .title {
        font-size: 3.75rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .hero-section .cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .addon-item {
        flex-direction: row;
        align-items: center;
    }
    
    .pricing-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .special-offer-benefits {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .special-offer-benefits {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 767px) {
    .addon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .addon-control {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .pricing-cta .button {
        width: 100%;
    }

    .package-selection-options,
    .service-type-options {
        flex-direction: column;
    }
    
    .package-selection-option,
    .service-type-option {
        flex: none;
    }
} 

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalBackdropFadeIn 0.3s ease;
}

.success-modal.modal-closing {
    animation: modalBackdropFadeOut 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalContentSlideIn 0.3s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.modal-content-closing {
    animation: modalContentSlideOut 0.3s ease;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header h3.success {
    color: var(--teal);
}

.modal-header h3.error {
    color: #ef4444;
}

.modal-body p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-footer .button {
    background-color: var(--teal);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.modal-footer .button:hover {
    background-color: var(--teal-dark);
}

/* Modal Animations */
@keyframes modalBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalBackdropFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalContentSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* Modal Illustration */
.modal-illustration {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.bucket,
.mop-handle,
.mop-head,
.bottle {
    position: absolute;
    border-radius: 4px;
}

.bucket {
    bottom: 0;
    left: 20px;
    width: 30px;
    height: 25px;
    background-color: #cbd5e0;
    border-radius: 4px 4px 8px 8px;
} 

.mop-handle {
    bottom: 15px;
    left: 25px;
    width: 3px;
    height: 40px;
    background-color: #8b5cf6;
}

.mop-head {
    bottom: 50px;
    left: 20px;
    width: 13px;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 50%;
}

.bottle {
    bottom: 0;
    right: 20px;
    width: 12px;
    height: 30px;
    background-color: var(--teal);
    border-radius: 2px 2px 6px 6px;
}

.sparkle,
.sparkle-small {
    position: absolute;
    background-color: var(--teal-light);
    animation: sparkleFloat 2s ease-in-out infinite alternate;
}

.sparkle {
    top: 10px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sparkle-small {
    top: 25px;
    left: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation-delay: 0.5s;
}

@keyframes sparkleFloat {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    100% { transform: translateY(-8px) rotate(180deg); opacity: 1; }
} 

/* Privacy Modal Styles */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.privacy-modal-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalContentSlideIn 0.3s ease;
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.privacy-modal-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.privacy-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.privacy-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.privacy-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.privacy-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.privacy-section strong {
    color: #1f2937;
    font-weight: 600;
}

.privacy-section a {
    color: var(--teal);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

.privacy-modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 1.5rem;
}
    
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-accept {
    background-color: var(--teal);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cookie-accept:hover {
    background-color: var(--teal-dark);
}

.cookie-decline {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-decline:hover {
    background-color: #f9fafb;
    color: #1f2937;
}

.cookie-link {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-accept,
    .cookie-decline {
        width: 100%;
    }
}

/* Alert Modal Styles - do komunikatów błędów */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalBackdropFadeIn 0.3s ease;
}

.alert-modal.modal-closing {
    animation: modalBackdropFadeOut 0.3s ease;
}

.alert-modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalContentSlideIn 0.3s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.alert-modal-content.modal-content-closing {
    animation: modalContentSlideOut 0.3s ease;
}

.alert-modal-header {
    margin-bottom: 1.5rem;
}

.alert-modal-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background-color: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.alert-modal-body p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.alert-modal-footer .button {
    background-color: var(--teal);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.alert-modal-footer .button:hover {
    background-color: var(--teal-dark);
}

/* Pakiety - DODAJ STYLE DLA ZAZNACZONYCH KART */
.package-card {
    background-color: rgba(
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(23 + 232 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.9
    ) !important;
    border: 2px solid rgba(
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        calc(64 + 165 * clamp(0, (var(--scroll-progress) - 0.47) * 100, 1)),
        0.3
    ) !important;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 20px; /* DODANE - miejsce na badge */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible; /* ZMIENIONE z hidden na visible */
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.package-card.selected {
    background-color: #fef9e7 !important; /* Solidny jasny żółty zamiast rgba(241, 189, 55, 0.1) */
    border: 2px solid #F1BD37 !important;
    box-shadow: 0 0 20px rgba(241, 189, 55, 0.3);
}

.package-card.package-recommended {
    border: 2px solid #F1BD37 !important;
}

.package-card.package-recommended.selected {
    background-color: #fef7e0 !important; /* Solidny krem zamiast rgba(241, 189, 55, 0.15) */
    box-shadow: 0 0 25px rgba(241, 189, 55, 0.4);
}

/* Checkbox styling - DODANE STYLE DLA ŁADNEGO CHECKBOXA */
.checkbox-control {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.checkbox-control input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    width: 1.5rem;
    height: 1.5rem;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-control:hover .checkmark {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(241, 189, 55, 0.1);
}

.checkbox-control input[type="checkbox"]:checked + .checkmark {
    background-color: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(241, 189, 55, 0.15);
}

.checkbox-control input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.checkbox-control input[type="checkbox"]:focus + .checkmark {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 189, 55, 0.2);
}

/* Addon item z checkbox - lepsze rozmieszczenie */
.addon-item:has(.checkbox-control) {
    cursor: pointer;
}

.addon-item:has(.checkbox-control):hover {
    background-color: rgba(241, 189, 55, 0.02) !important;
    border-color: rgba(241, 189, 55, 0.2) !important;
}

.addon-item:has(.checkbox-control input[type="checkbox"]:checked) {
    background-color: rgba(241, 189, 55, 0.05) !important;
    border-color: var(--teal) !important;
}

/* Frequency Settings - NOWE STYLE DLA DROPDOWNÓW */
.frequency-settings {
    position: relative;
    margin-left: 0.5rem;
    z-index: 1; /* DODANE - zapewnia że przycisk jest nad innymi elementami */
}

.frequency-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    position: relative; /* DODANE - zapewnia właściwe pozycjonowanie */
    z-index: 2; /* DODANE - przycisk nad dropdownem */
}

/* Settings icon styling - POPRAWIONE */
.settings-icon {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(1019%) hue-rotate(202deg) brightness(94%) contrast(86%);
    pointer-events: none; /* Pozwala kliknięciom przechodzić przez ikonę */
    display: block; /* DODANE - zapewnia właściwe wyświetlanie */
}

.frequency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff !important; /* ZMIENIONE - używamy hex zamiast white */
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000; /* ZWIĘKSZONE z 100 do 1000 */
    min-width: 200px;
    margin-top: 0.25rem;
    opacity: 1 !important;
    visibility: visible !important;
    /* DODANE - wyłącza dziedziczenie kolorów z elementów nadrzędnych */
    color: inherit !important;
    /* DODANE - zapewnia że nie będzie żadnej interpolacji kolorów */
    background-color: #ffffff !important;
    background-image: none !important;
}

.frequency-dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb !important; /* ZMIENIONE - używamy hex */
    background-color: #f9fafb !important;
    background-image: none !important; /* DODANE */
    border-radius: 0.5rem 0.5rem 0 0;
}

.frequency-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1f2937 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff !important; /* ZMIENIONE - używamy hex */
    background-color: #ffffff !important;
    background-image: none !important; /* DODANE */
}

.frequency-option:last-child {
    border-bottom: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.frequency-option:hover {
    background: rgba(241, 189, 55, 0.1) !important; /* ZMIENIONE */
    background-color: rgba(241, 189, 55, 0.1) !important;
    background-image: none !important; /* DODANE */
    color: var(--teal) !important;
}

.frequency-option:active {
    background: rgba(241, 189, 55, 0.2) !important; /* ZMIENIONE */
    background-color: rgba(241, 189, 55, 0.2) !important;
    background-image: none !important; /* DODANE */
}

/* Counter control - POPRAWIONE ROZMIESZCZENIE */
.addon-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    position: relative; /* DODANE */
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative; /* DODANE */
    z-index: 1; /* DODANE */
}

/* Responsywność dla dropdownów */
@media (max-width: 767px) {
    .frequency-dropdown {
        right: auto;
        left: 0;
        min-width: 180px;
    }
    
    .addon-control {
        flex-direction: column;
        align-items: flex-end;
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .counter-control {
        order: 1;
    }
    
    .frequency-settings {
        order: 2;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* CAŁKOWICIE NOWE - Bardzo specyficzne selektory dla dropdown */
.addon-item .frequency-settings .frequency-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    z-index: 9999 !important;
    min-width: 200px !important;
    margin-top: 0.25rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* WYŁĄCZ WSZYSTKIE DZIEDZICZONE STYLE */
    color: #1f2937 !important;
    /* Wyłącz interpolację kolorów */
    transition: none !important;
}

.addon-item .frequency-settings .frequency-dropdown-header {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    /* Wyłącz interpolację kolorów */
    transition: none !important;
}

.addon-item .frequency-settings .frequency-option {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    /* Wyłącz interpolację kolorów */
    transition: background-color 0.2s ease !important;
}

.addon-item .frequency-settings .frequency-option:last-child {
    border-bottom: none !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
}

.addon-item .frequency-settings .frequency-option:hover {
    background: #fef3c7 !important;
    background-color: #fef3c7 !important;
    background-image: none !important;
    color: #92400e !important;
}

.addon-item .frequency-settings .frequency-option:active {
    background: #fde68a !important;
    background-color: #fde68a !important;
    background-image: none !important;
}

/* DODATKOWE - Wyłącz interpolację kolorów dla frequency-settings */
.addon-item .frequency-settings {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
}

.addon-item .frequency-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    transition: border-color 0.3s ease !important;
}

/* NOWE - Style dla dropdown portal (poza addon-item) */
.frequency-dropdown-portal {
    position: absolute;
    z-index: 10000;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    min-width: 200px;
    /* WYŁĄCZENIE WSZYSTKICH MOŻLIWYCH DZIEDZICZONYCH STYLÓW */
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    /* Wyłącz interpolację kolorów */
    background-color: #ffffff !important;
    background-image: none !important;
    transition: none !important;
}

.frequency-dropdown-content {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.frequency-dropdown-portal .frequency-dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    margin: 0;
}

.frequency-dropdown-portal .frequency-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1f2937;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    margin: 0;
    transition: background-color 0.2s ease;
}

.frequency-dropdown-portal .frequency-option:last-child {
    border-bottom: none;
}

.frequency-dropdown-portal .frequency-option:hover {
    background: #fef3c7;
    color: #92400e;
}

.frequency-dropdown-portal .frequency-option:active {
    background: #fde68a;
}

/* USUŃ WSZYSTKIE STARE STYLE DROPDOWN - POZOSTAW TYLKO PORTAL */
/* .frequency-dropdown, .addon-item .frequency-settings .frequency-dropdown, etc. można usunąć */

/* Addon frequency display - WZMOCNIONE STYLE */
.addon-frequency-display {
    margin-top: 0.5rem;
}

.frequency-text {
    color: var(--teal) !important;
    font-weight: 500;
    font-size: 0.8rem;
    /* DODANE - wyłącz interpolację kolorów */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
}

/* BARDZO SPECYFICZNY SELEKTOR - nadpisuje interpolację */
.addon-item .addon-info .addon-frequency-display .frequency-text {
    color: #F1BD37 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
    /* Wyłącz wszystkie możliwe dziedziczenia kolorów */
    text-shadow: none !important;
    filter: none !important;
}

/* JESZCZE MOCNIEJSZY SELEKTOR dla pewności */
.addon-item .addon-frequency-display small.frequency-text {
    color: #F1BD37 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
    font-weight: 600 !important;
}

/* Frequency Settings - NOWY ŁADNY DESIGN */
.frequency-settings {
    position: relative;
    margin-left: 0.5rem;
    z-index: 1;
}

.frequency-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

.frequency-btn:hover {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    border-color: var(--teal);
    box-shadow: 
        0 4px 12px rgba(241, 189, 55, 0.3),
        0 2px 4px rgba(241, 189, 55, 0.2);
    transform: translateY(-1px);
}

.frequency-btn:hover .settings-icon {
    filter: brightness(0) invert(1); /* Biała ikona na hover */
}

/* Settings icon styling - POPRAWIONE */
.settings-icon {
    width: 1.125rem;
    height: 1.125rem;
    filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(1019%) hue-rotate(202deg) brightness(94%) contrast(86%);
    pointer-events: none;
    display: block;
    transition: filter 0.3s ease;
}

/* NOWY ŁADNY DROPDOWN */
.frequency-dropdown-portal {
    position: absolute;
    z-index: 10000;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(241, 189, 55, 0.2);
    border-radius: 0.75rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(241, 189, 55, 0.05);
    min-width: 220px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.frequency-dropdown-content {
    background: transparent;
    border-radius: 0.75rem;
    overflow: hidden;
}

.frequency-dropdown-portal .frequency-dropdown-header {
    padding: 1rem 1.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(241, 189, 55, 0.1) 0%, rgba(241, 189, 55, 0.05) 100%);
    margin: 0;
    border-bottom: 1px solid rgba(241, 189, 55, 0.15);
    position: relative;
}

.frequency-dropdown-portal .frequency-dropdown-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0.3;
}

.frequency-dropdown-portal .frequency-option {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    background: transparent;
    margin: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.frequency-dropdown-portal .frequency-option:hover {
    background: linear-gradient(90deg, rgba(241, 189, 55, 0.1) 0%, rgba(241, 189, 55, 0.05) 100%);
    color: var(--teal-dark);
    border-left-color: var(--teal);
    transform: translateX(2px);
    font-weight: 600;
}

.frequency-dropdown-portal .frequency-option:active {
    background: linear-gradient(90deg, rgba(241, 189, 55, 0.15) 0%, rgba(241, 189, 55, 0.08) 100%);
    transform: translateX(1px);
}

/* Ładny wskaźnik przy opcjach */
.frequency-dropdown-portal .frequency-option::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.frequency-dropdown-portal .frequency-option:hover::before {
    opacity: 1;
}

/* Separator between options */
.frequency-dropdown-portal .frequency-option:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* Frequency text display - POPRAWIONY DESIGN */
.addon-frequency-display {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(241, 189, 55, 0.1) 0%, rgba(241, 189, 55, 0.05) 100%);
    border: 1px solid rgba(241, 189, 55, 0.2);
    border-radius: 0.5rem;
    display: inline-block;
}

.frequency-text {
    color: var(--teal-dark) !important;
    font-weight: 600;
    font-size: 0.8rem;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.frequency-text::before {
    content: '⚡';
    font-size: 0.875rem;
    opacity: 0.8;
}

/* BARDZO SPECYFICZNY SELEKTOR - nadpisuje interpolację */
.addon-item .addon-info .addon-frequency-display .frequency-text {
    color: var(--teal-dark) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
}

/* JESZCZE MOCNIEJSZY SELEKTOR dla pewności */
.addon-item .addon-frequency-display small.frequency-text {
    color: var(--teal-dark) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: none !important;
    font-weight: 600 !important;
}

/* Responsywność dla dropdownów */
@media (max-width: 767px) {
    .frequency-dropdown-portal {
        right: auto;
        left: 0;
        min-width: 200px;
        transform-origin: top left;
    }
    
    .frequency-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .settings-icon {
        width: 1rem;
        height: 1rem;
    }
}

/* Dodatkowo - smooth closing animation */
.frequency-dropdown-portal.closing {
    animation: dropdownSlideOut 0.15s cubic-bezier(0.4, 0, 1, 1);
}

@keyframes dropdownSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}

.calculator-results {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
    z-index: 100;
}

@media (max-width: 1023px) {
    .calculator-results {
        position: static;
        top: auto;
        align-self: auto;
    }
}

@media (min-width: 1024px) {
    .calculator-grid {
        align-items: flex-start;
    }
}

/* Stałe kolory tekstów dla zaznaczonych pakietów */
.package-card.selected .package-name,
.package-card.selected .package-description,
.package-card.selected .package-includes h5 {
    color: #1f2937 !important; /* Stały czarny kolor */
}

.package-card.selected .price-unit,
.package-card.selected .package-includes li {
    color: #6b7280 !important; /* Stały ciemno szary */
}

/* Stałe kolory dla zaznaczonych opcji w kalkulatorze */
.package-selection-option.selected .option-label,
.package-selection-option:has(input[type="radio"]:checked) .option-label {
    color: #1f2937 !important; /* Stały czarny kolor */
}

.service-type-option.selected .option-label,
.service-type-option:has(input[type="radio"]:checked) .option-label {
    color: #1f2937 !important; /* Stały czarny kolor */
}

/* Stałe kolory dla special offer card */
.special-offer-card.selected .special-offer-title {
    color: #1f2937 !important; /* Stały czarny kolor */
}

.special-offer-card.selected .special-offer-description,
.special-offer-card.selected .special-offer-price .price-unit {
    color: #6b7280 !important; /* Stały ciemno szary */
}

/* Upewnij się że cena pozostaje w kolorze akcentowym */
.package-card.selected .price-amount,
.special-offer-card.selected .special-offer-price .price-amount {
    color: var(--teal) !important; /* Zachowaj kolor akcentowy dla cen */
}