body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-image: url(bg1.jpg);
    color: white;
}

.hero {
    background-color: rgb(54, 66, 105);
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.onas, .gallery {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* KARTY PRZED / PO */

.compare-box {
    width: 100%;
    max-width: 450px;
    height: 300px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    cursor: pointer;
}

.before, .after {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.8s ease;
}

/* Przed jest widoczne zawsze */
.before {
    filter: grayscale(20%);
}

/* Po jest ukryte dopóki nie najedziesz */
.after {
    opacity: 0;
}

/* Efekt hover – płynne przejście zdjęcia */
.compare-box:hover .after {
    opacity: 1;
}

.label {
    position: absolute;
    bottom: 10px;
    left: 15px;
    background: rgba(0,0,0,0.5);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid white;
    white-space: nowrap;
    animation: typing 3s steps(30), blink .7s infinite step-end alternate;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}
.big-box {
    background-image: url('bg4.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 140px 20px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    color: white;
    font-family: Impact, fantasy;
    
}

.big-box h1 {
    font-size: 3.3rem;
    text-shadow: 0 0 10px black;
}

.big-box p {
    font-size: 1.5rem;
    text-shadow: 0 0 8px black;
}
.big-box {
    opacity: 0;
    transform: translateY(40px);
    animation: bigBoxIn 1.2s ease-out forwards;
}

@keyframes bigBoxIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
    z-index: 999;
}

.popup.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: rgb(255, 255, 255);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    animation: popupIn .6s ease forwards;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transform: translateY(40px);
    opacity: 0;
}

@keyframes popupIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    float: right;
    font-size: 30px;
    color: #000000;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #000000;
    transform: scale(1.15);
}

.popup-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: royalblue;
}

.popup-content p{
    color: midnightblue;
}
.popup-content ul {
    list-style: none;
    padding: 0;
}

.popup-content li {
    margin-bottom: 8px;
    font-size: 17px;
    padding-left: 15px;
    position: relative;
}

.popup-content li::before {
    content: "•";
    color: #d18800;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -1px;
}

.link {
  color: white;
  text-decoration: underline;
}