/* =========================
   SWITCHER
========================= */

.switcher {
    width: 100%;
    margin-top: min(74px, 7.5vw);
    margin-bottom: min(90px, 7.5vw);
}

/* hide radio */

.switcher input {
    display: none;
}

/* =========================
   TABS
========================= */

.switcherTabs {
    position: relative;
    display: flex;
    padding: 6px;
    background: #FFFBF7;
    border-radius: 7px;
    overflow: hidden;
}

/* =========================
   TAB
========================= */

.switcherTab {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(44px, 10vw);
    padding: 10px 0;
    border-radius: 7px;
    cursor: pointer;
    text-align: center;
    font-size: clamp(9px, 3vw, 17px);
    font-weight: 375;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* =========================
   ACTIVE BG
========================= */

.switcherBg {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    border-radius: 7px;
    background: #F1E5D7;
    transition: transform 0.35s ease;
    z-index: 1;
}

/* =========================
   ACTIVE TAB
========================= */

#promo:checked ~ .switcherTabs .switcherBg {
    transform: translateX(100%);
}

#events:checked ~ .switcherTabs label[for="events"],
#promo:checked ~ .switcherTabs label[for="promo"] {
    color: #000;
}

/* =========================
   CONTENT
========================= */

.switcherContent {
    display: none;

    margin-top: 32px;
}

@media (max-width: 500px) {
    .eventsContent {
        padding: 0 50px;
    }
}

@media (max-width: 410px) {
    .eventsContent {
        padding: 0 33px;
    }
}

@media (max-width: 360px) {
    .eventsContent {
        padding: 0 23px;
    }
}


#events:checked ~ .eventsContent {
    display: block;
}

#promo:checked ~ .promoContent {
    display: block;
}