.section-calendar {
    text-align: -webkit-center;
    justify-items: center;
    place-items: center;

    /* padding-top: 40px !important; */
}

.inner-frame-calendar {
    width: 95vw;
    max-width: 650px;
    height: 95vw;
    max-height: 650px;
    background: #fffef7;
    border-radius: 50%;          /* именно 50% делает фигуру кругом */
    box-shadow: 0 0 45px -12px #4A5D23;
    place-content: center;
    /* border: 1px solid #f5e2d2; */


    position: relative;
    z-index: 5;
}

/* ИДЕАЛЬНО КРУГЛАЯ КАРТОЧКА — настоящий круг, а не скруглённый прямоугольник */
.calendar-card {
    width: 88vw;
    max-width: 600px;
    height: 88vw;
    max-height: 600px;
    background: #fffef7;
    border-radius: 50%;          /* именно 50% делает фигуру кругом */
    box-shadow: 0 0 45px -12px #4A5D23;
    /* padding: 1.5rem; */
    /* border: 1px solid #f5e2d2; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: none;
    text-align: center;


    position: relative;
    z-index: 10;
}

/* Заголовок — русский */
.calendar-title {
    font-size: clamp(8vh, 8vw, 10vw);
    /* margin-bottom: clamp(0.2rem, 2vh, 0.5rem); */
    letter-spacing: 1px;
    color: #4A5D23;
    text-align: center;
    font-family: 'Aurora-Script', serif;
    background: linear-gradient(135deg, #3b2a21, #7a5a48);
    background-clip: text;
    -webkit-background-clip: text;    
    margin-top: -30px;

}

.month-sub {
    text-align: center;
    font-size: clamp(0.7rem, 3vw, 1.2rem);
    font-weight: 500;
    color: #b47c5e;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #eedbcb;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 6px;
    letter-spacing: 1px;
}

.block-calendar {
    width: 100%;
    justify-items: center;
    text-align: -webkit-center;
}

/* Чтобы таблица внутри круга не вылезала и не ломала форму */
.calendar-table {
    width: 80%;
    table-layout: fixed;        /* фиксированная ширина колонок */
    border-collapse: collapse;  /* убираем лишние промежутки */
    border-spacing: 0;
    margin-bottom: 1rem;
}

/* Заголовок: только нижняя граница (отделяем от тела) */
.calendar-table th {
    font-weight: 700;
    text-align: center;
    color: #5e3a2c;
    margin-bottom: 1vw;
    padding-bottom: 0 !important;
}

/* Ячейки — абсолютно без границ */
.calendar-table td {
    text-align: center;
    font-weight: 500;
    color: #3c2a21;
    position: relative;
    border: none;
}

.calendar-table th,
.calendar-table td {
    padding: 0 0 0 0 ;
    font-size: clamp(0.7rem, 4vw, 1.2rem);
    width: 14%;
    font-family: 'kazakh', serif;
}

/* Убираем hover-эффекты */
.calendar-table td:hover {
    transform: none;
    box-shadow: none;
}

/* Пустые ячейки — без границ и без лишнего фона */
.calendar-table td.empty-cell {
    color: #d9c2ae;
    border: none;
}

/* ----- КОНТУР СЕРДЦА ВОКРУГ ЧИСЛА 12 (мерцающий) ----- */
.heart-outline-cell {
    position: relative;
    background: #fffaf5 !important;
    overflow: visible;
}

/* Псевдоэлемент — контур сердца позади числа */
.heart-outline-cell::before {
    content: "♡";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8vw;
    color: #4A5D23;
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    animation: heartGlowOutline 0.9s ease-in-out infinite;
}

/* Число 12 внутри ячейки – поверх контура */
.heart-outline-cell .date-number {
    position: relative;
    z-index: 2;
    font-size: clamp(0.8rem, 3.5vw, 1.3rem);
    background: transparent;
    display: inline-block;
    /* color: #a14127; */
    text-shadow: 0 0 2px white;
}

/* Анимация мерцания для контура сердца */
@keyframes heartGlowOutline {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Анимация для нижнего сердца (мерцающее) */
.beating-heart {
    display: inline-block;
    /* animation: heartPulse 0.9s ease-in-out infinite; */
    transform-origin: center;
    /* filter: drop-shadow(0 2px 5px rgba(236, 72, 72, 0.4)); */
}

/* Нижний блок: большое сердце + CAFAT 17:00 */
.footer-love {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem; */
    padding-top: 2vw;
}

.big-heart {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    display: inline-block;
    cursor: default;
    color: #4A5D23;
}

.cafat-text {
    font-family: 'kazakh', serif;
    font-size: clamp(0.7rem, 5vw, 2rem);
    letter-spacing: 2px;
    border-radius: 60px;
    color: #4A5D23;
    display: inline-block;
}

/* Контейнер-заголовок — flex, чтобы элементы растягивались равномерно */
.custom-thead {
    display: flex;
    /* background-color: #fef3e8; */
    /* border-bottom: 2px solid #e6cfbb; */
    border-radius: 30px;
    text-align: center;
    width: 80%;
    border: 1px solid;
    margin-bottom: 18px;
}

/* Каждый элемент заголовка — одинаковой ширины */
.custom-thead > div {
    flex: 1;                    /* все занимают равное пространство */
    padding: 5px 0;
    font-size: clamp(0.7rem, 3vw, 1.2rem);
    text-align: center;
    font-family: 'kazakh', serif;
}


.big-heart-wrap {
    margin-top: 30px;
}


.corner-flower-vetka {
    position: absolute;
    bottom: -10%;
    right: -1%;
    width: 40vh;
    max-width: 540px;
    transform: rotate(-34deg);
    pointer-events: none;
    opacity: 0.95;
    z-index: 11;
}

.corner-sky-calendar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80vh;
    max-width: 540px;
    transform: rotate(42deg);
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
}


@media (max-width: 768px) {
    .corner-flower-vetka {
        width: 40vw;
        bottom: 0;
        right: -3%;
    }

    .corner-sky-calendar {
        width: 60vw;
        bottom: 0;
        left: -20%;
    }
}