.opendays-right {
    --od-accent: #2563eb;
    --od-accent-soft: #eef3fe;
    --od-text: #16181d;
    --od-muted: #6b7280;
    --od-line: #e6e8ec;
    --od-bg: #ffffff;
    --od-radius: 14px;
    --od-gap: 12px;
    font-family: inherit;
    padding-top: 0;
}

.opendays-right .od {
    background: var(--od-bg);
    border: 1px solid var(--od-line);
    border-radius: calc(var(--od-radius) + 4px);
    padding: 22px 20px 18px;
}

/* ---------- Шапка ---------- */
.opendays-right .od__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--od-accent);
}

.opendays-right .od__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.opendays-right .od__title {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--od-text);
    letter-spacing: -.01em;
}

.opendays-right .od__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--od-accent-soft);
    color: var(--od-accent);
    font-size: 12px;
    font-weight: 700;
}

.opendays-right .od__subtitle {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--od-muted);
}

/* ---------- Список ---------- */
.opendays-right .od__list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--od-gap);
}

.opendays-right .od-card {
    position: relative;
    border: 1px solid var(--od-line);
    border-radius: var(--od-radius);
    background: var(--od-bg);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.opendays-right .od-card:hover {
    border-color: color-mix(in srgb, var(--od-accent) 40%, var(--od-line));
    box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.opendays-right .od-card--next {
    border-color: color-mix(in srgb, var(--od-accent) 45%, var(--od-line));
    background: linear-gradient(180deg, var(--od-accent-soft) 0%, var(--od-bg) 62%);
}

.opendays-right .od-card__link {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 14px 14px 14px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--od-radius);
    outline-offset: 3px;
}

.opendays-right .od-card__link:focus-visible {
    outline: 2px solid var(--od-accent);
}

/* ---------- Плашка с датой ---------- */
.opendays-right .od-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 4px;
    border-radius: 10px;
    background: #f4f5f7;
    color: var(--od-text);
    text-align: center;
}

.opendays-right .od-card--next .od-card__date {
    background: var(--od-accent);
    color: #fff;
}

.opendays-right .od-card__month {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .75;
}

.opendays-right .od-card__day {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.opendays-right .od-card__weekday {
    font-size: 10.5px;
    font-weight: 600;
    opacity: .65;
}

/* ---------- Тело карточки ---------- */
.opendays-right .od-card__body {
    min-width: 0;
}

.opendays-right .od-card__flag {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--od-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.opendays-right .od-card__name {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--od-text);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opendays-right .od-card__meta {
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--od-muted);
}

.opendays-right .od-card__row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.opendays-right .od-card__row svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .8;
}

.opendays-right .od-card__time {
    font-weight: 600;
    color: var(--od-text);
}

/* ---------- Теги ---------- */
.opendays-right .od-card__tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.opendays-right .od-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    background: #f4f5f7;
    color: #4b5563;
}

.opendays-right .od-tag--reg {
    background: #fff4e5;
    color: #a25b00;
}

.opendays-right .od-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

/* ---------- Футер ---------- */
.opendays-right .od__footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--od-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opendays-right .od__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--od-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease;
}

.opendays-right .od__all:hover {
    filter: brightness(1.08);
}

.opendays-right .od__all svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.opendays-right .od__note {
    font-size: 12px;
    line-height: 1.45;
    color: var(--od-muted);
    text-align: center;
    margin: 0;
}

/* ---------- Десктоп: липкая колонка ---------- */
@media (min-width: 1024px) {
    .opendays-right .od {
        position: sticky;
        top: 88px;
    }
}

/* ---------- Мобильные ---------- */
@media (max-width: 560px) {
    .opendays-right .od {
        padding: 18px 14px 14px;
    }

    .opendays-right .od-card__link {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .opendays-right .od-card__date {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px;
        padding: 6px 10px;
        align-self: flex-start;
    }

    .opendays-right .od-card__day {
        font-size: 17px;
    }
}

/* ---------- Тёмная тема ---------- */
@media (prefers-color-scheme: dark) {
    .opendays-right {
        --od-text: #eceef2;
        --od-muted: #9aa1ad;
        --od-line: #2a2e37;
        --od-bg: #14171d;
        --od-accent-soft: #1a2740;
    }

    .opendays-right .od-card__date,
    .opendays-right .od-tag {
        background: #1f232b;
    }

    .opendays-right .od-tag--reg {
        background: #3a2a10;
        color: #ffc46b;
    }

    .opendays-right .od-card--next .od-card__date {
        background: var(--od-accent);
        color: #fff;
    }
}