.calendar-page {
    display: grid;
    gap: 1rem;
}

.calendar-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid #c5cec9;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7faf8 0%, #e7efeb 100%);
}

.calendar-hero__icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #07523d;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.calendar-hero p,
.calendar-hero h1,
.calendar-hero span {
    margin: 0;
}

.calendar-hero p {
    color: #8a6416;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.calendar-hero h1 {
    margin-top: .2rem;
    color: #073f31;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.calendar-hero div > span {
    display: block;
    margin-top: .35rem;
    color: #58645f;
}

.calendar-content {
    overflow-x: auto;
    padding: .85rem 1rem 1rem;
    border: 1px solid #c9cfcc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22, 49, 40, .08);
    scrollbar-gutter: stable;
}

.calendar-content > :first-child {
    margin-top: 0;
}

.calendar-content > :last-child {
    margin-bottom: 0;
}

.calendar-content p,
.calendar-content li {
    line-height: 1.55;
}

.calendar-content img {
    max-width: 100%;
    height: auto;
}

.calendar-content table {
    width: 100%;
    min-width: 760px;
    margin: .8rem 0 1rem;
    border-collapse: collapse;
    background: #fff;
    font-size: .92rem;
    line-height: 1.35;
}

.calendar-content table + br + table,
.calendar-content table + table {
    margin-top: 1.6rem;
}

.calendar-content th,
.calendar-content td {
    padding: .65rem .75rem;
    border: 1px solid #aebdb7;
    text-align: left;
    vertical-align: middle;
}

.calendar-content th,
.calendar-content tr:first-child td {
    background: #07523d;
    color: #fff;
    font-weight: 700;
}

.calendar-content tr:nth-child(even) td {
    background: #f2f6f4;
}

.calendar-content tr:hover td {
    background: #e8f0ec;
}

.calendar-content hr {
    height: 1px;
    margin: 1.25rem 0 .7rem;
    border: 0;
    background: #9eaaa5;
}

.calendar-content a {
    color: #006c50;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.calendar-footer,
.calendar-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.1rem;
    border: 1px solid #c7d0cc;
    border-radius: 8px;
    background: #eef4f1;
}

.calendar-footer p,
.calendar-error p,
.calendar-error h2 {
    margin: 0;
}

.calendar-footer a,
.calendar-error a {
    flex: 0 0 auto;
    padding: .6rem .85rem;
    border-radius: 5px;
    background: #07523d;
    color: #fff;
    text-decoration: none;
}

.calendar-error {
    align-items: flex-start;
    flex-direction: column;
    border-color: #dfb9b9;
    background: #fff3f3;
}

@media (max-width: 700px) {
    .calendar-hero {
        align-items: flex-start;
        padding: 1rem;
    }

    .calendar-content {
        padding: .55rem;
    }

    .calendar-content table {
        min-width: 680px;
        font-size: .88rem;
    }

    .calendar-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-footer a,
    .calendar-error a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}