/* MOSTy – sloučený bundle HP: o-nas + program + team + news + contact */
/* === mosty-o-nas.css === */
.mosty-acronym-spacer {
    margin-top: var(--mosty-spacing-2xl);
    padding-top: var(--mosty-spacing-xl);
    border-top: 2px solid var(--mosty-gray-200);
}

.mosty-acronym {
    display: flex;
    flex-direction: column;
    gap: var(--mosty-spacing-md);
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
}

@media (min-width: 768px) {
    .mosty-acronym {
        gap: var(--mosty-spacing-lg);
    }
}

.mosty-acronym__item {
    display: flex;
    align-items: center;
    gap: var(--mosty-spacing-xs);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .mosty-acronym__item {
        font-size: 1.5rem;
    }
}

.mosty-acronym__letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: var(--mosty-radius-md);
    flex-shrink: 0;
    transition: background-color 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .mosty-acronym__letter {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

.mosty-acronym__word {
    font-weight: 600;
    color: var(--mosty-gray-800);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    display: inline-block;
    transform-origin: left center;
}

/* === mosty-program.css === */
.mosty-program-vize-block {
    margin-bottom: 0;
}

#vize-program .mosty-container:last-of-type {
    margin-top: var(--mosty-spacing-2xl);
}

.mosty-program-vize-block .mosty-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mosty-program-intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--mosty-spacing-2xl);
}

.mosty-program-carousel {
    margin-top: var(--mosty-spacing-xl);
    padding: 0 var(--mosty-spacing-sm) var(--mosty-spacing-xl);
}

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

.mostyProgramSwiper {
    overflow: hidden;
    padding-bottom: var(--mosty-spacing-lg);
}

.mostyProgramSwiper .swiper-wrapper {
    align-items: stretch;
}

/* Swiper slidesPerView: auto – šířky v %: 1 vidět → 85%, 3 → 33.33%, 5 → 20% */
.mostyProgramSwiper .swiper-slide {
    height: auto;
    width: 85%;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.mostyProgramSwiper .swiper-slide.swiper-slide-active {
    opacity: 1;
    z-index: 3;
}

@media (min-width: 576px) {
    .mostyProgramSwiper .swiper-slide {
        width: 33.33333333%;
    }
    .mostyProgramSwiper .swiper-slide.swiper-slide-prev,
    .mostyProgramSwiper .swiper-slide.swiper-slide-next {
        opacity: 0.75;
        z-index: 2;
    }
}

@media (min-width: 1024px) {
    .mostyProgramSwiper .swiper-slide {
        width: 20%;
    }
    .mostyProgramSwiper .swiper-slide.swiper-slide-prev,
    .mostyProgramSwiper .swiper-slide.swiper-slide-next {
        opacity: 0.85;
    }
}

.mosty-program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--mosty-spacing-xl) var(--mosty-spacing-lg);
    background-color: var(--mosty-white);
    border-radius: var(--mosty-radius-xl);
    box-shadow: var(--mosty-shadow-md);
    transition: transform var(--mosty-transition-base), box-shadow var(--mosty-transition-base), opacity var(--mosty-transition-base);
    height: 100%;
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
}

.swiper-slide-active .mosty-program-card {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: var(--mosty-shadow-lg);
}

.mosty-program-card:hover {
    box-shadow: var(--mosty-shadow-lg);
}

.mosty-program-card__icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--mosty-radius-full);
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mosty-spacing-md);
    flex-shrink: 0;
}

.mosty-program-card__icon {
    font-size: 2rem;
}

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

.mosty-program-card__perex {
    font-size: 0.9375rem;
    color: var(--mosty-gray-700);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mosty-program-cta {
    text-align: center;
    margin-top: var(--mosty-spacing-xl);
}

.mostyProgramSwiper .swiper-button-next,
.mostyProgramSwiper .swiper-button-prev {
    color: var(--mosty-primary);
    background-color: var(--mosty-white);
    box-shadow: var(--mosty-shadow-md);
    width: 44px;
    height: 44px;
    border-radius: var(--mosty-radius-full);
    transition: all var(--mosty-transition-base);
}

.mostyProgramSwiper .swiper-button-next::after,
.mostyProgramSwiper .swiper-button-prev::after {
    font-size: 1rem;
}

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

.mosty-vize-block {
    margin-top: var(--mosty-spacing-lg);
}

.mosty-vize-block .mosty-text {
    margin-bottom: var(--mosty-spacing-md);
}

.mosty-vize-block .mosty-text:last-child {
    margin-bottom: 0;
}

.mosty-program-detail {
    padding-top: 0;
}

.mosty-program-point {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-lg);
    align-items: start;
    margin-bottom: var(--mosty-spacing-2xl);
    padding: var(--mosty-spacing-xl);
    background-color: var(--mosty-gray-50);
    border-radius: var(--mosty-radius-xl);
    scroll-margin-top: 100px;
}

.mosty-program-point:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .mosty-program-point {
        grid-template-columns: 1fr 1fr;
        gap: var(--mosty-spacing-2xl);
        padding: 0;
        margin-bottom: var(--mosty-spacing-3xl);
        background-color: transparent;
    }
    .mosty-program-point--reverse .mosty-program-point__card {
        order: 2;
    }
    .mosty-program-point--reverse .mosty-program-point__content {
        order: 1;
    }
}

.mosty-program-point__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .mosty-program-point__card {
        padding: var(--mosty-spacing-xl);
        background-color: var(--mosty-gray-50);
        border-radius: var(--mosty-radius-xl);
        position: sticky;
        top: calc(70px + var(--mosty-spacing-lg));
    }
}

.mosty-program-point__icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: var(--mosty-radius-full);
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mosty-spacing-md);
    flex-shrink: 0;
}

.mosty-program-point__icon {
    font-size: 2.25rem;
}

.mosty-program-point__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mosty-primary);
    margin: 0;
    line-height: 1.3;
}

.mosty-program-point__content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mosty-gray-800);
    padding-top: var(--mosty-spacing-md);
}

@media (min-width: 1024px) {
    .mosty-program-point__content {
        padding-top: var(--mosty-spacing-xl);
    }
}

.mosty-program-point__content p {
    margin: 0 0 var(--mosty-spacing-md);
}

.mosty-program-point__content p:last-child {
    margin-bottom: 0;
}

/* === 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);
}

/* Swiper slidesPerView: auto – šířky v %: 1 vidět → 100%, 2 → 50%, 3 → 33.33% */
.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-news.css === */
.mosty-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-xl);
    margin-top: var(--mosty-spacing-2xl);
}

@media (min-width: 768px) {
    .mosty-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.mosty-news-card {
    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);
    display: flex;
    flex-direction: column;
}

.mosty-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mosty-shadow-xl);
}

.mosty-news-cta {
    text-align: center;
    margin-top: var(--mosty-spacing-2xl);
}

.mosty-news-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mosty-news-card__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.mosty-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--mosty-transition-slow);
}

.mosty-news-card:hover .mosty-news-card__image img {
    transform: scale(1.05);
}

.mosty-news-card__date {
    position: absolute;
    top: var(--mosty-spacing-sm);
    right: var(--mosty-spacing-sm);
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    padding: var(--mosty-spacing-xs) var(--mosty-spacing-sm);
    border-radius: var(--mosty-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.mosty-news-card__link-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mosty-news-card__content {
    padding: var(--mosty-spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.mosty-news-card__perex {
    color: var(--mosty-gray-700);
    margin-bottom: var(--mosty-spacing-md);
    flex: 1;
    line-height: 1.6;
}

/* === mosty-contact.css === */
.mosty-social {
    text-align: center;
    margin-bottom: var(--mosty-spacing-2xl);
}

.mosty-social__icons {
    display: flex;
    gap: var(--mosty-spacing-lg);
    justify-content: center;
    margin-top: var(--mosty-spacing-lg);
}

.mosty-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--mosty-radius-full);
    color: var(--mosty-white);
    transition: all var(--mosty-transition-base);
}

.mosty-social__link:hover {
    background-color: var(--mosty-white);
    color: var(--mosty-primary);
    transform: translateY(-5px);
}

.mosty-contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
}

@media (min-width: 940px) {
    .mosty-contacts-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: var(--mosty-spacing-2xl);
        background: linear-gradient(
            to right,
            var(--mosty-accent) 0%,
            var(--mosty-accent) 50%,
            var(--mosty-primary) 50%,
            var(--mosty-primary) 100%
        );
    }
}

.mosty-contact-card {
    position: relative;
    overflow: hidden;
}

.mosty-contact-card--red {
    background-color: var(--mosty-accent);
}

.mosty-contact-card--blue {
    background-color: var(--mosty-primary);
}

@media (min-width: 940px) {
    .mosty-contact-card--red,
    .mosty-contact-card--blue {
        background-color: transparent;
    }
}

.mosty-contact-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 700 / 400;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 940px) {
    .mosty-contact-card__image-wrapper {
        min-height: 400px;
        aspect-ratio: auto;
    }
}

.mosty-contact-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mosty-contact-card--red .mosty-contact-card__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        rgba(227, 0, 27, 0) 0%,
        rgba(227, 0, 27, 0.3) 30%,
        rgba(227, 0, 27, 0.7) 60%,
        rgba(227, 0, 27, 1) 100%
    );
    pointer-events: none;
}

.mosty-contact-card--blue .mosty-contact-card__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        rgba(18, 35, 115, 0) 0%,
        rgba(18, 35, 115, 0.3) 30%,
        rgba(18, 35, 115, 0.7) 60%,
        rgba(18, 35, 115, 1) 100%
    );
    pointer-events: none;
}

.mosty-contact-card__content {
    position: relative;
    z-index: 2;
    padding: var(--mosty-spacing-xs);
    color: var(--mosty-white);
}

@media (min-width: 576px) {
    .mosty-contact-card__content {
        padding: var(--mosty-spacing-md);
    }
}

@media (min-width: 940px) {
    .mosty-contact-card__content {
        padding: var(--mosty-spacing-xl);
        margin-bottom: 50px;
    }
}

.mosty-contact-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--mosty-spacing-lg);
    color: var(--mosty-white);
}

.mosty-contact-card__items {
    display: flex;
    flex-direction: column;
    gap: var(--mosty-spacing-md);
}

.mosty-contact-card__items--social {
    flex-direction: column;
}

.mosty-contact-card__item {
    display: inline-flex;
    align-items: center;
    gap: var(--mosty-spacing-sm);
    padding: var(--mosty-spacing-md) var(--mosty-spacing-lg);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--mosty-radius-lg);
    color: var(--mosty-white);
    text-decoration: none;
    transition: all var(--mosty-transition-base);
}

.mosty-contact-card__item:hover {
    background-color: var(--mosty-white);
    transform: translateY(-3px);
}

.mosty-contact-card--red .mosty-contact-card__item:hover {
    color: var(--mosty-accent);
}

.mosty-contact-card--red .mosty-contact-card__item:hover .mosty-contact-card__icon {
    color: var(--mosty-accent);
}

.mosty-contact-card--blue .mosty-contact-card__item:hover {
    color: var(--mosty-primary);
}

.mosty-contact-card--blue .mosty-contact-card__item:hover .mosty-contact-card__icon {
    color: var(--mosty-primary);
}

.mosty-contact-card__icon {
    width: 28px;
    height: 28px;
    color: var(--mosty-white);
    flex-shrink: 0;
    transition: color var(--mosty-transition-base);
}

.mosty-contact-card__link {
    color: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
}

.mosty-contact-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--mosty-radius-full);
    color: var(--mosty-white);
    transition: all var(--mosty-transition-base);
}

.mosty-contact-card__social-link:hover {
    background-color: var(--mosty-white);
    transform: translateY(-5px);
}

.mosty-contact-card--red .mosty-contact-card__social-link:hover {
    color: var(--mosty-accent);
}

.mosty-contact-card--blue .mosty-contact-card__social-link:hover {
    color: var(--mosty-primary);
}
