/* Глобально задаём шрифт Mulish для всего проекта */
html,
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, a, li, span, small, strong, em,
button, input, textarea, select,
label, blockquote, code, pre,
table, th, td, caption
{
    font-family: 'Mulish', Arial, sans-serif !important;
}

/* Гарантируем наследование для вложенных элементов */
*, *::before, *::after {
    font-family: inherit !important;
}

/* Текстовые акценты шрифтами Libertinus Sans */
.libertinus-regular {
    font-family: 'Libertinus Sans', Arial, sans-serif !important;
    font-weight: normal;
    font-style: normal;
}

.libertinus-bold {
    font-family: 'Libertinus Sans', Arial, sans-serif !important;
    font-weight: bold;
    font-style: normal;
}

p {
    margin-bottom: inherit;
}

.navbar-brand {
    font-size: 1.375em;
}

.page-navigation {
    border-bottom: 1px solid currentColor;
    margin-bottom: 45px;
}

[v-cloak] {
    display: none;
}

.calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 40px;
}

.calendar-day {
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    border-color: #000;
}

.calendar-day--active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.calendar-day--future {
    opacity: 0.4;
}

.day-card-nav {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.day-card-nav--active {
    box-shadow: 0 0 0 2px #000;
    transform: translateY(-2px);
}

.day-card-nav--future {
    opacity: 0.5;
}

/* Карточки без изображения: всегда показываем описание и фон */
.day-card-nav--no-image.card-hover-appearance .card-img-overlay,
.day-card-nav--no-image.card-hover-appearance .card-title,
.day-card-nav--no-image.card-hover-appearance .card-category {
    opacity: 1 !important;
    transform: none !important;
}

/* Карточки дней в календаре: на мобильных текст под изображением */
@media (max-width: 767.98px) {
    .day-card-nav .card-img {
        position: relative;
    }

    .day-card-nav .card-img-overlay {
        position: static;
        padding-top: 12px;
        padding-bottom: 10px;
        background: #fff;
        color: inherit;
        opacity: 1 !important;
    }

    .day-card-nav .card-title {
        display: block;
        margin-bottom: 4px;
    }

    .day-card-nav .card-category {
        display: block;
        font-size: 0.8rem;
        opacity: 0.8;
    }

    /* Отключаем hover-анимацию для карточек календаря на мобильных */
    .day-card-nav.card-hover-appearance .card-img-overlay,
    .day-card-nav.card-hover-appearance .card-title,
    .day-card-nav.card-hover-appearance .card-category {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Для карточек БЕЗ изображения на мобильных:
       текст располагаем поверх самой карточки (на градиенте), а не под ней */
    .day-card-nav--no-image .card-img-overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: transparent;
        color: #fff;
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Плавный переход между днями */
.day-fade-enter-active,
.day-fade-leave-active {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.day-fade-enter,
.day-fade-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.last-day-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.last-day-icons svg {
    width: 18px;
    height: 18px;
}

.last-day-label {
    font-size: 0.9rem;
}

/* Структура страницы: футер прижат к низу экрана */
html,
body {
    height: 100%;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
}

.footer-copyright:hover {
    opacity: 0.8;
}

@media (max-width: 619.98px) {
    .h2, h2 {
        margin-bottom: 1.1em;
        font-size: 1.5em;
    }

    .h3, h3 {
        margin-bottom: .86667em;
        font-size: 1.375em;
    }
}