.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services-section .description {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 50px;
    max-width: 800px;
    margin-inline: auto;
    opacity: 0.5;
}

/* --- NEW GRID SYSTEM --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 80px;
    justify-content: center;
}

/* --- SERVICE CARD --- */
.service-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(7.5px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    position: relative;
    overflow: visible;
    text-align: start;
    border-radius: 8px;
}

/* --- CORNERS --- */
.corner {
    position: absolute;
    width: 10px;
    height: 10px;
    background-image: url('https://5.berezovskyi.space/wp-content/uploads/2025/08/Rectangle-12.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
}

.top-left {
    top: -10px;
    left: -10px;
}
.top-right {
    top: -10px;
    right: -10px;
    transform: rotate(90deg);
}
.bottom-left {
    bottom: -10px;
    left: -10px;
    transform: rotate(-90deg);
}
.bottom-right {
    bottom: -10px;
    right: -10px;
    transform: rotate(180deg);
}

/* --- CONTENT --- */
/*.card-image {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    border-radius: 20px;*/
/*}*/

/*.service-card h3 {*/
/*    font-size: 20px;*/
/*    margin: 0;*/
/*}*/

/*.service-card p {*/
/*    font-size: 14px;*/
/*    color: #fffdfd;*/
/*    margin: 0;*/
/*    text-align: start;*/
/*    opacity: 0.5;*/
/*}*/

/* --- BUTTON --- */
/*.details-button {*/
/*    display: flex;*/
/*    height: 50px;*/
/*    padding: 8px 54px;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*    align-self: stretch;*/
/*    border-radius: 0 16px;*/
/*    background: #E47600 !important;*/
/*    box-shadow: 0 4px 20px 0 #E47600 !important;*/
/*    color: #000;*/
/*    font-family: Gilroy;*/
/*    font-size: 20px;*/
/*    font-weight: 600;*/
/*    border: none;*/
/*}*/
.card-image {
    height: 250px;
    max-width: 250px;
    border-radius: 20px;
    display: block;
    margin: auto; /* нове: центрування картинки */
}

.card-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* прибиває до низу */
}

.service-card h3 {
    font-size: 20px;
    margin: 0;
}

.service-card p {
    font-size: 14px;
    color: white;
    margin: 0;
    text-align: start;
   opacity: 0.9;
}

/* --- BUTTON --- */
.details-button {
    display: flex;
    height: 50px;
    padding: 8px 54px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 0 16px;
    background: #E47600 !important;
    box-shadow: 0 4px 20px 0 #E47600 !important;
    color: #000;
    font-family: Gilroy;
    font-size: 20px;
    font-weight: 600;
    border: none;
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .cards-container {
        gap: 40px;
    }

    .service-card {
        align-items: start;
        text-align: start;
    }

    .service-card p {
        text-align: start;
    }

    .details-button {
        align-self: start;
    }
    .service-card {
   
    width: 100% !important;
}
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    text-align: center;
    margin: 0px !important;
    padding-left: 20px;
    padding-right: 20px;
}
}
