/* Start custom CSS */.wn {
    background: var(--c1);
    padding: 2vw;
    border-radius: var(--br12);
    font-size: 1vw;
    font-weight: 500;
    color: #fff;//var(--c1);
    line-height: 1.4em;
    border: 1px solid var(--c2);
    box-shadow: inset 5px 5px 15px #f4a90220;
    display: none;
    margin: 2vw 0 0 0;
    position: relative;
}
.wn b {
    display: block;
    width: 100%;
    margin: 1vw 0 0 0;
    font-size: 1.4vw;
    font-weight: 700;
    color: var(--c2);
}

.renten-kalkulator {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

/* ===== GÓRA ===== */

.top-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2vw;
}

/* LABEL + SLIDER BLOCK */
.lba {
    display: block;
    font-size: 1vw;
    color: var(--c1);
    font-weight: 500;
    margin: 0 0 .6vw 0;
}

/* SLIDER */
#salary-slider {
    width: 100%;
    height: 0.6vw;
    appearance: none;
    border-radius: 999px;
    outline: none;
    cursor: pointer;

    background: linear-gradient(90deg, var(--c2), var(--c3));
    background-size: 200% 200%;
    animation: sliderGradient 4s ease infinite;
}
@keyframes sliderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* thumb */
#salary-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.4vw;
    height: 1.4vw;
    border-radius: 50%;
    background: var(--c2); /* pomarańcz */
    border: 0.2vw solid #fff;
    box-shadow: 0 0 0.8vw rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
}

#salary-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#salary-slider::-moz-range-thumb {
    width: 1.4vw;
    height: 1.4vw;
    border-radius: 50%;
    background: var(--c2);
    border: 0.2vw solid #fff;
}

/* VALUE */
#salary-value {
    font-size: 1.8vw;
    font-weight: 600;
    color: var(--c1);
    white-space: nowrap;
    min-width: 7ch;
    text-align: right;
}

/* ===== DÓŁ ===== */

.bottom-row {
    display: flex;
    flex-direction: column;
    gap: 0.6vw;
}

.bottom-row label {
    font-size: 1vw;
    color: var(--c1);
    font-weight: 500;
}

/* SELECT */
#years-select, #birth-year {
    width: 100%;
    padding: 1vw 1.2vw;
    border-radius: 5px;
    border: 1px solid var(--c1-3);
    font-size: 1.2vw;
    color: var(--c1);
    background: #fff;
    outline: none;
}

/* focus UX */
#years-select:focus {
    border-color: var(--c2);
    box-shadow: 0 0 0 0.2vw rgba(0,0,0,0.08);
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .renten-kalkulator {
        gap: 5vw;
    }

    .top-row {
        grid-template-columns: 1fr;
        gap: 3vw;
    }

    .lba,
    .bottom-row label {
        font-size: 3.5vw;
        margin-bottom: 2vw;
    }

    #salary-slider {
        height: 2vw;
    }

    #salary-slider::-webkit-slider-thumb {
        width: 5vw;
        height: 5vw;
        border-width: .4vw;
    }

    #salary-slider::-moz-range-thumb {
        width: 5vw;
        height: 5vw;
        border-width: .4vw;
    }

    #salary-value {
        font-size: 4.5vw;
        text-align: left;
        margin-top: 1vw;
    }

    #years-select,
    #birth-year {
        font-size: 4vw;
        padding: 3vw;
        border-radius: 2vw;
    }

    .wn {
        padding: 4vw;
        margin-top: 4vw;
        border-radius: 3vw;
        font-size: 3.6vw;
        line-height: 1.5;
    }

    .wn b {
        margin-top: 2vw;
        font-size: 5vw;
        line-height: 1.25;
    }

}/* End custom CSS */