/* Efekt hover na kartach usług */
.service-card-link:hover .service-card,
.service-card-link:focus .service-card {
    box-shadow: 0 6px 24px rgba(77, 180, 200, 0.25), 0 2px 12px rgba(0,0,0,0.18);
    border: 1.5px solid #6db4c8;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    z-index: 2;
}
.service-card-link:active .service-card {
    transform: scale(0.98);
}
/* Sekcja Usługi i slider usług */
.services-section {
    width: 100vw;
    background: #181c22;
    background-image: linear-gradient(rgba(24,28,34,0.9), rgba(24,28,34,0.9)), url("../../../images/background/background.webp") ;
    background-position: right bottom;
    background-repeat: no-repeat;
    padding: 4vw 0 4vw 0;
    display: flex;
    justify-content: center;
}
.services-content {
    display: flex;
    gap: 4vw;
    max-width: 1300px;
    width: 100%;
    align-items: flex-start;
    padding: 0 2vw;
}
.services-description {
    flex: 1 1 300px;
    max-width: 340px;
    padding: 2.5rem 2rem;
    color: #e6e6e6;
}
.services-description h2 {
    color: #4a90a4;
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}
.services-description p {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #f2f2f2;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
}

.services-description ul {
    margin: 1.2rem 0 0 1.2rem;
    padding: 0;
    color: #e6e6e6;
    font-size: 1.1rem;
}
.services-slider {
    flex: 3 1 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    position: relative;
    height: 600px; /* zwiększona wysokość slidera i kart */
}
.services-product-slider {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    width: calc(3 * 250px + 2 * 2rem); /* 3 karty po 250px + 2 gapy */
    min-width: 0;
    position: relative;
    align-items: stretch;
    height: 100%;
}
@media (max-width: 1000px) {
    .services-content {
        flex-direction: column;
        gap: 2vw;
        align-items: stretch;
    }
    .services-slider {
        margin-top: -150px;
    }
    .services-description {
        max-width: 100vw;
        padding: 2rem 1rem;
        font-size: 1rem;
    }
    .services-description h2 {
        font-size: 1.5rem;
    }
    .slider-controls {
        gap: 0.7rem;
        margin-top: 0.7rem;
    }
}
@media (max-width: 700px) {
    .services-section {
        padding: 2vw 0 2vw 0;
    }
    .services-content {
        flex-direction: column;
        gap: 2vw;
        align-items: stretch;
    }
    .services-description {
        padding: 1.2rem 0.7rem;
        max-width: 98vw;
        font-size: 0.98rem;
        max-height: fit-content;
    }
    .services-description h2 {
        font-size: 1.15rem;
        margin-bottom: 0.7rem;
    }
    .services-description ul {
        font-size: 0.98rem;
    }
    .slider-controls {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .slider-controls button {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .service-details-btn {
        font-size: 0.98rem;
        gap: 2em;
    }
    .service-details-text {
        padding: 0.5em 0.7em 0.5em 1em;
        font-size: 0.98rem;
    }
    .service-details-arrow {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
     .slider-controls button {
        display: none;
    }
}
.service-card {
    background: #232a33;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 2.2rem 1.2rem; 
    min-height: 0;
    height: 600px; /* Stała wysokość jak slider */
    width: 250px;
    flex: 0 0 250px;
    max-width: 250px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s;
    color: #e6e6e6;
    justify-content: stretch;
}
.service-card img {
    width: 100%;
    max-width: 180px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.service-card h3 {
    color: #6db4c8;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 1rem;
    color: #e6e6e6;
}
.service-card ul {
    margin: 1rem 0 0 0;
    padding-left: 1rem;
    text-align: left;
    color: #e6e6e6;
    font-size: 1rem;
    list-style: disc inside;
    /* Usunięto overflow-y: auto i flex, aby nie było scrolla */
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: unset;
}
.service-card ul li {
    margin-bottom: 0.3rem;
}
.slider-controls {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
    justify-content: center;
    position: static;
    left: unset;
    bottom: unset;
    margin: 15rem 0 0 0;
    z-index: unset;
}
.slider-controls button {
    background: #232a33;
    color: #4a90a4;
    color: #fff;;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.slider-controls button:hover {
    background: #4a90a4;
    color: #fff;
}
.service-details-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 3.7em;
    background: none;
    color: #6db4c8;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}
.service-details-text {
    padding: 0.6em 1em 0.6em 1.2em;
    border-radius: 24px 0 0 24px;
    background: #232a33;
    color: #6db4c8;
    border-right: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}
.service-details-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    color: #6db4c8;
    border: 1.5px solid #6db4c8;
    font-size: 1.2em;
    transition: background 0.2s, color 0.2s;
}

.service-details-btn:hover .service-details-arrow {
    background: #4a90a4;
    color: #232a33;
}
.service-card-link {
  display: flex;
  color: inherit;
  text-decoration: none;
  height: 600px; /* Stała wysokość jak slider */
  width: 100%;
  align-items: stretch;
}
.service-card {
  cursor: pointer;
  height: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
}