/* MOSTy – sloučený bundle: tým (přehled /nas-tym) = team + footer-extended */
/* === mosty-team.css === */
.mosty-team-carousel {
    margin: var(--mosty-spacing-2xl) 0;
    padding: 0 var(--mosty-spacing-sm);
}

@media (min-width: 768px) {
    .mosty-team-carousel {
        padding: 0 var(--mosty-spacing-lg);
    }
}

.mostyTeamSwiper {
    padding-bottom: var(--mosty-spacing-2xl);
}

.mostyTeamSwiper .swiper-slide {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1 !important;
}

.mostyTeamSwiper .swiper-slide.swiper-slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 3 !important;
}

@media (min-width: 576px) {
    .mostyTeamSwiper .swiper-slide {
        width: 50%;
    }
    .mostyTeamSwiper .swiper-slide.swiper-slide-next {
        opacity: 1;
        visibility: visible;
        z-index: 2 !important;
    }
}

@media (min-width: 768px) {
    .mostyTeamSwiper .swiper-slide {
        width: 33.33333333%;
    }
    .mostyTeamSwiper .swiper-slide.swiper-slide-prev {
        opacity: 1;
        visibility: visible;
        z-index: 2 !important;
    }
}

.mosty-team-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform var(--mosty-transition-base),
                opacity var(--mosty-transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0.5;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.swiper-slide-active .mosty-team-card {
    transform: scale(1.05);
    opacity: 1;
}

.mosty-team-card__image {
    width: 100%;
    aspect-ratio: 347 / 450;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--mosty-radius-xl) var(--mosty-radius-xl) 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mosty-team-card__image picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mosty-team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.mosty-team-card__content {
    padding: var(--mosty-spacing-lg);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    background-color: var(--mosty-white);
    border-radius: 0 0 var(--mosty-radius-xl) var(--mosty-radius-xl);
    box-shadow: var(--mosty-shadow-lg);
}

.mosty-team-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mosty-primary);
    margin-bottom: var(--mosty-spacing-sm);
    line-height: 1.3;
}

.mosty-team-card__age,
.mosty-team-card__location {
    font-size: 0.875rem;
    color: var(--mosty-gray-600);
    margin-bottom: var(--mosty-spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mosty-team-card__description {
    font-size: 0.9375rem;
    color: var(--mosty-gray-700);
    line-height: 1.4;
    min-height: 2.8em;
    max-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mosty-team-card--placeholder .mosty-team-card__name {
    color: var(--mosty-gray-500);
}

.mosty-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-xl);
}

@media (min-width: 768px) {
    .mosty-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mosty-spacing-2xl);
    }
}

@media (min-width: 1024px) {
    .mosty-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mosty-team-grid .mosty-team-card {
    opacity: 1;
    transform: none;
    background-color: var(--mosty-white);
    border-radius: var(--mosty-radius-xl);
    overflow: hidden;
    box-shadow: var(--mosty-shadow-md);
    transition: transform var(--mosty-transition-base), box-shadow var(--mosty-transition-base);
}

.mosty-team-grid .mosty-team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mosty-shadow-lg);
}

.mostyTeamSwiper .swiper-button-next,
.mostyTeamSwiper .swiper-button-prev {
    color: var(--mosty-white);
    background-color: rgba(18, 35, 115, 0.8);
    width: 50px;
    height: 50px;
    border-radius: var(--mosty-radius-full);
    transition: all var(--mosty-transition-base);
}

.mostyTeamSwiper .swiper-button-next::after,
.mostyTeamSwiper .swiper-button-prev::after {
    font-size: 1.25rem;
}

.mostyTeamSwiper .swiper-button-next:hover,
.mostyTeamSwiper .swiper-button-prev:hover {
    background-color: var(--mosty-accent);
}

.mostyTeamSwiper .swiper-pagination-bullet {
    background-color: var(--mosty-white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.mostyTeamSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--mosty-white);
}

/* === mosty-footer-extended.css === */
.mosty-footer--extended {
    background-color: var(--mosty-gray-50);
    border-top: 3px solid var(--mosty-primary);
    padding: var(--mosty-spacing-2xl) 0 var(--mosty-spacing-lg);
}

.mosty-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-xl);
    margin-bottom: var(--mosty-spacing-xl);
}

@media (min-width: 768px) {
    .mosty-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--mosty-spacing-2xl);
    }
}

@media (min-width: 1024px) {
    .mosty-footer__grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}

.mosty-footer__column {
    display: flex;
    flex-direction: column;
}

.mosty-footer__column--spacer {
    display: none;
}

@media (min-width: 1024px) {
    .mosty-footer__column--spacer {
        display: block;
    }
}

.mosty-footer--extended .mosty-footer__motto {
    color: var(--mosty-gray-600);
    font-size: 0.9375rem;
    font-style: italic;
}

.mosty-footer__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mosty-primary);
    margin-bottom: var(--mosty-spacing-md);
}

.mosty-footer__contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--mosty-spacing-sm);
}

.mosty-footer__link {
    display: inline-flex;
    align-items: center;
    gap: var(--mosty-spacing-xs);
    color: var(--mosty-primary);
    text-decoration: none;
    transition: all var(--mosty-transition-base);
    padding: var(--mosty-spacing-xs) 0;
}

.mosty-footer__link:hover {
    color: var(--mosty-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mosty-footer__link i {
    font-size: 1.125rem;
}

.mosty-footer__social-icons {
    display: flex;
    gap: var(--mosty-spacing-md);
    flex-wrap: wrap;
}

.mosty-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--mosty-primary);
    border-radius: var(--mosty-radius-full);
    color: var(--mosty-white);
    text-decoration: none;
    transition: all var(--mosty-transition-base);
}

.mosty-footer__social-link:hover {
    background-color: var(--mosty-accent);
    transform: translateY(-3px);
    box-shadow: var(--mosty-shadow-md);
}

.mosty-footer__social-link i {
    font-size: 1.25rem;
}

.mosty-footer__bottom {
    text-align: center;
    padding-top: var(--mosty-spacing-lg);
    border-top: 1px solid var(--mosty-gray-300);
}

.mosty-footer__bottom p {
    color: var(--mosty-gray-600);
    font-size: 0.875rem;
    margin: 0;
}
