.home-catalog__subevents-section {
    margin-top: 32px;
}

.home-catalog__subevents {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.home-catalog__subevent-card {
    display: block;
    text-align: left;
    padding: 24px 16px;
    border: 1px solid #e9e5f5;
    border-radius: 12px;
    background: #fff;
    color: #251e34;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    min-height: 260px;
}
.home-catalog__subevent-card:hover {
    transform: translateY(-2px);
}
.home-catalog__subevent-card.is-selected {
    border-color: #6f3fa7;
    box-shadow: 0 18px 36px rgba(111, 63, 167, 0.12);
}
.home-catalog__subevent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.home-catalog__subevent-radio {
    width: 18px;
    height: 18px;
    border: 1px solid #c7b9e3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.home-catalog__subevent-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6f3fa7;
    opacity: 0;
    transition: opacity .2s ease;
}
.home-catalog__subevent-card.is-selected .home-catalog__subevent-radio-inner {
    opacity: 1;
}
.home-catalog__subevent-title {
    font-weight: 600;
    font-size: 20px;
}
.home-catalog__subevent-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #7a6b8f;
}
.home-catalog__subevent-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.home-catalog__subevent-meta-item img {
    width: 14px;
    height: 14px;
}
.home-catalog__subevent-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f6f0;
    color: #2f6f48;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.home-catalog__subevent-description {
    margin: 0;
    color: #5e5276;
    line-height: 1.7;
    min-height: 74px;
}
.home-catalog__subevent-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-catalog__subevent-price {
    font-size: 18px;
    font-weight: 300;
    color: #5B5A5D;
}

/* Register button style tweak */
.home-catalog__button.home-catalog__register-button {
    background: linear-gradient(180deg,#343087,#343087);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

.home-catalog__controls{
    margin-top: 36px;
    justify-self: center;
}

.home-catalog__register-panel {
    margin-top: 32px;
}

.registration-panel {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 32px rgba(76, 39, 131, 0.08);
}

.registration-panel__title {
    margin: 0 0 20px;
    color: #4b2f79;
    font-size: 22px;
    font-weight: 700;
}

.registration-selected-subevent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f3ecff;
    border: 1px solid #e7daff;
}

.registration-selected-subevent__label {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6f5576;
}

.registration-selected-subevent__list {
    display: grid;
    gap: 8px;
}

.registration-selected-subevent__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    color: #4b2f79;
    font-size: 14px;
}

.registration-selected-subevent__row:last-child {
    border-bottom: 0;
}

.registration-selected-subevent__row span {
    flex: 1;
    min-width: 0;
}

.registration-selected-subevent__row strong {
    color: #4b2f79;
    font-weight: 700;
    white-space: nowrap;
}

.registration-selected-subevent__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 84, 149, 0.18);
    color: #4b2f79;
    font-size: 15px;
    font-weight: 700;
}

.registration-selected-subevent__total-label {
    color: #4b2f79;
}

.registration-selected-subevent__total {
    color: #4b2f79;
    font-weight: 800;
}

@media (max-width:900px) {
    .home-catalog__subevents { grid-template-columns: repeat(1, 1fr); }
    .registration-panel { padding: 18px; }

    .home-catalog__controls {
        width: calc(100% - 28px);
        box-sizing: border-box;
    }

    .home-catalog__button.home-catalog__register-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
}
