/* ===== 3 KOLUMNY NA DESKTOPIE ===== */

/* Nadpisanie domyślnego gridu dla 3 kolumn */
.services-boxes--three-cols {
    grid-template-columns: repeat(3, 1fr) !important;
    /* Usuwamy min-width, by nie ograniczało liczby kolumn */
}

@media (max-width: 1024px) {
    .services-boxes--three-cols {
        grid-template-columns: 1fr !important;
    }
}
/* ================================================
   USŁUGI SECTION - CSS
   Kolory: Seledyn (#1fb1c1) i Szary (#3e4f60)
   ================================================ */

.services-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    margin: 40px 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.services-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
}

.services-header h2 {
    font-size: 2.5rem;
    color: #1fb1c1;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.services-intro {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SERVICE BOXES ===== */
.services-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-box {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 177, 193, 0.25);
}

/* ===== IMAGE SECTION ===== */
.service-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-box:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 177, 193, 0.85) 0%, rgba(62, 79, 96, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-box:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.service-box:hover .service-icon {
    transform: scale(1);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

/* ===== CONTENT SECTION ===== */
.service-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.service-content > p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    flex-grow: 1;
}

.service-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1fb1c1;
    font-weight: bold;
    font-size: 1.3rem;
}

.service-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1fb1c1 0%, #3e4f60 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 177, 193, 0.4);
    color: white;
}

/* ===== CTA SECTION ===== */
.services-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #1fb1c1 0%, #3e4f60 100%);
    border-radius: 16px;
    color: white;
    margin-top: 60px;
}

.services-cta h3 {
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: white;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.95;
}

.services-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #1fb1c1;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.services-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-boxes {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 40px 15px;
    }

    .services-header h2 {
        font-size: 1.8rem;
    }

    .services-intro {
        font-size: 1rem;
    }

    .service-image {
        height: 220px;
    }

    .service-content {
        padding: 25px;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .services-cta {
        padding: 35px 25px;
    }

    .services-cta h3 {
        font-size: 1.6rem;
    }

    .services-cta p {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 30px 10px;
    }

    .services-header h2 {
        font-size: 1.5rem;
    }

    .services-intro {
        font-size: 0.9rem;
    }

    .services-boxes {
        gap: 20px;
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .service-content > p {
        font-size: 0.9rem;
    }

    .service-features li {
        padding: 8px 0 8px 25px;
        font-size: 0.85rem;
    }

    .service-button {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%;
        align-self: stretch;
    }

    .services-cta {
        padding: 25px 15px;
    }

    .services-cta h3 {
        font-size: 1.3rem;
    }

    .services-cta p {
        font-size: 0.95rem;
    }

    .services-cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}
