.our-team-banner-container p:first-child {
    padding-bottom: 0;
}

.our-team-banner-container {
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 0;
}

.our-team-banner-container img {
    margin-top: 0;
    margin-bottom: -60px;
    margin-left: -8px;
}

.banner-card {
    z-index: 1;
    background-color: white;
}

@media screen and (min-width: 768px) {
    .our-team-banner-container {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-end;
        margin-top: -130px;
        margin-bottom: -50px;
    }

    .our-team-banner-container article {
        margin-bottom: 50px;
    }

    .our-team-banner-container img {
        left: 0px;
    }
}

@media screen and (min-width: 1024px) {
    .our-team-banner-container {
        margin-top: 0;
        margin-bottom: -20px;
    }
    
}

/* NABIZIME */

.card-nabizime .card-title {
    background-color: var(--color-gray-70);
    color: white;
    text-transform: uppercase;
    font-weight: 400;
}

.card-nabizime .card-body {
    display: flex;
    flex-direction: column;
}

.card-nabizime .card-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-gray-80);
}

.card-nabizime .card-item:last-child {
    border-bottom: none;
}

@media screen and (min-width: 768px) {
   .card-nabizime .card-body {
        flex-direction: row;
        flex-wrap: wrap;
    } 
    .card-nabizime .card-item {
        flex: 1 1 calc(33.333% - 40px);
        padding: 20px 30px;
        border-right: 1px solid var(--color-gray-80);
        border-bottom: 1px solid var(--color-gray-80);
    }

    .card-nabizime .card-item:nth-child(3n) {
        border-right: none;
    }

    .card-nabizime .card-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}


/* PRODUKTOVÁ ŘADA */
.card-grey .card-body {
    background-color: var(--color-gray-10);
    color: var(--color-gray-100);
    padding: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.card-produkty .card-text {
    color: var(--Seda-90, #262626);
    font-size: 18px;
    font-style: normal;
    line-height: 26px; /* 144.444% */
}

.card-produkty #card-produkty-text-1 {
    /* span two colums */
    grid-column: 1 / 3;
    padding-bottom: 20px;
}

.card-produkty #card-produkty-text-2 {
    /* span two colums */
    grid-column: 1 / 3;
    align-self: center;
    padding-top: 20px;
    text-align: right;
}

#card-produkty-photo-7 {
    grid-column: 2 / 3;
}

@media screen and (min-width: 768px) {
    .card-grey .card-body {
        padding: 30px;
        gap: 20px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .card-produkty #card-produkty-text-1 {
        align-self: center;
        grid-column: 1 / 2;
        padding-bottom: 0;
    }

    .card-produkty #card-produkty-text-2 {
        grid-column: 3 / 4;
        padding-top: 0;
    }
}

@media screen and (min-width: 880px) {
        .card-produkty #card-produkty-text-1 {
        padding-right: 30px;
    }

    .card-produkty #card-produkty-text-2 {
        padding-left: 40px;
    }
}


/* Služby */
.card-sluzby .card-body {
    display: flex;
    flex-direction: column;
}

.card-sluzby .card-item {
    border-bottom: 1px solid var(--color-gray-80);
    padding: 20px;
}

.card-sluzby .card-item:last-child {
    border-bottom: none;
}

.card-sluzby .card-item img {
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    .card-sluzby .card-body {
        flex-direction: row;
    }

    .card-sluzby .card-item {
        flex: 1 1 calc(33.333% - 40px);
        border-right: 1px solid var(--color-gray-80);
        border-bottom: none;
        padding: 30px;
    }

    .card-sluzby .card-item:last-child {
        border-right: none;
    }

    .card-sluzby .card-item img {
        height: 200px;
        object-fit: cover;
    }

     .card-sluzby .card-item:last-child img {
        object-fit: contain;
     }
}


/* VÝKŘIK */
.text-scream .text-scream__inner {
    color: var(--color-gray-90, #262626);
    font-size: 26px;
    font-style: normal;
    font-weight: 300;
    line-height: 36px; /* 138.462% */
    letter-spacing: 0.52px;
    margin-bottom: 20px;
}

.text-scream .bottom p {
    color: #8D8D8D;
    font-style: normal;
    margin-bottom: 20px;
}

.text-scream .more-link {
    justify-content: flex-start;
}

@media screen and (min-width: 768px) {
    .text-scream .text-scream__inner {
        color: var(--color-gray-90, #262626);
        font-size: 46px;
        font-style: normal;
        line-height: 63px; /* 136.957% */
        letter-spacing: 0.92px;
    }

    .text-scream .bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 20px;
    }

    .text-scream .more-link {
        margin-top: 0;
    }
}