

/* Start:/local/templates/template1/components/bitrix/news.list/mairi-events-index/style.css?178844458910261*/
.page--events .section__subtitle {
    padding-bottom: 0;
}

.page--events:not(.page--detail) .header--inner {
    display: flow-root;
}

.page--events:not(.page--detail) .page__inner {
    margin-top: 40px;
    padding-top: 0;
}

.page--events .container__subtitle {
    margin-top: 0;
    margin-bottom: 24px;
}

.page--events .page__inner-index--indent {
    padding-bottom: 100px;
}

.mairi-events {
    color: #081908;
}

.mairi-events__intro {
    padding: 24px 0 42px;
    border-top: 1px solid rgba(21, 59, 25, 0.28);
}

.mairi-events__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 430px);
    min-height: 62px;
    padding: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(21, 59, 25, 0.2);
    border-radius: 34px;
    box-shadow: 0 10px 34px rgba(21, 59, 25, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mairi-events__tab {
    min-width: 0;
    padding: 12px 24px;
    color: #153b19;
    background: transparent;
    border: 0;
    border-radius: 28px;
    cursor: pointer;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    transition: color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.mairi-events__tab:hover {
    background: rgba(21, 59, 25, 0.08);
}

.mairi-events__tab.is-active {
    color: #fff;
    background: rgba(21, 59, 25, 0.94);
    box-shadow: 0 8px 22px rgba(21, 59, 25, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mairi-events__tab:focus-visible {
    outline: 2px solid #153b19;
    outline-offset: 2px;
}

.mairi-events__panel[hidden] {
    display: none;
}

.mairi-events__empty {
    margin: 0;
    padding: 60px 24px;
    color: #6f8471;
    border: 1px solid rgba(21, 59, 25, 0.2);
    border-radius: 16px;
    font-family: Raleway, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.mairi-events__grid {
    width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    grid-template-columns: none;
    gap: 16px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.mairi-events__grid.is-slider-ready {
    width: var(--mairi-events-grid-width);
    max-width: none;
    grid-auto-columns: var(--mairi-events-card-width);
    padding-right: var(--mairi-events-end-space);
}

.mairi-events__grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.mairi-events__grid::-webkit-scrollbar {
    display: none;
}

.mairi-events__card {
    position: relative;
    aspect-ratio: 5 / 7;
    min-width: 0;
    overflow: hidden;
    background: #153b19;
    border-radius: 16px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.mairi-events__card-link {
    position: absolute;
    inset: 0;
    display: block;
    scroll-margin-top: clamp(120px, 16vh, 220px);
    color: #fff;
    text-decoration: none;
}

.mairi-events__picture,
.mairi-events__picture picture,
.mairi-events__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.mairi-events__image {
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.mairi-events__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 15, 6, 0.2) 0%, rgba(4, 15, 6, 0.05) 34%, rgba(4, 15, 6, 0.86) 100%),
        linear-gradient(90deg, rgba(4, 15, 6, 0.3) 0%, transparent 60%);
    transition: background-color 300ms ease;
}

.mairi-events__card-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
}

.mairi-events__date {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.13);
    border: 0;
    border-radius: 18px;
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.mairi-events__date time {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.mairi-events__card-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: auto;
}

.mairi-events__heading {
    min-width: 0;
}

.mairi-events__title {
    max-width: 540px;
    margin: 0;
    color: #fff;
    font-family: Jost, Arial, sans-serif;
    font-size: clamp(24px, 1.85vw, 27px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.mairi-events__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.mairi-events__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

.mairi-events__more span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.mairi-events__more svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mairi-events__card-link:hover .mairi-events__image,
.mairi-events__card-link:focus-visible .mairi-events__image {
    transform: scale(1.035);
}

.mairi-events__card-link:hover .mairi-events__more,
.mairi-events__card-link:focus-visible .mairi-events__more {
    color: #153b19;
    background: #fff;
    border-color: #fff;
}

.mairi-events__card-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}

.mairi-events__arrows {
    width: 136px;
    height: 56px;
    margin: 42px auto 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(21, 59, 25, 0.4);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.48);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mairi-events__arrows[hidden] {
    display: none;
}

.mairi-events__arrows button {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0;
    color: #153b19;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.mairi-events__arrows button + button {
    border-left: 1px solid rgba(21, 59, 25, 0.2);
}

.mairi-events__arrows button:hover:not(:disabled),
.mairi-events__arrows button:focus-visible:not(:disabled) {
    color: #fff;
    border-color: #153b19;
    background: #153b19;
}

.mairi-events__arrows button:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(21, 59, 25, 0.35);
}

.mairi-events__arrows button:active:not(:disabled) {
    transform: scale(0.94);
}

.mairi-events__arrows button:disabled {
    cursor: default;
    color: #aeb9af;
    border-color: rgba(21, 59, 25, 0.14);
}

.mairi-events__arrows svg {
    width: 26px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1023px) {
    .page--events .page__inner-index--indent {
        padding-bottom: 70px;
    }

    .mairi-events__intro {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 32px;
    }

    .mairi-events__tabs {
        width: min(100%, 430px);
    }

    .mairi-events__grid {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .mairi-events__card-content {
        padding: 24px;
    }

    .mairi-events__card-bottom {
        grid-template-columns: 1fr;
    }

    .mairi-events__more {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767px) {
    .page--events .container__subtitle {
        margin-bottom: 18px;
    }

    .page--events .page__inner-index--indent {
        padding-bottom: 48px;
    }

    .mairi-events__intro {
        gap: 22px;
        padding: 18px 0 26px;
    }

    .mairi-events__tabs {
        gap: 4px;
        width: 100%;
        min-height: 52px;
        padding: 4px;
    }

    .mairi-events__tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .mairi-events__grid {
        grid-auto-columns: clamp(248px, 76vw, 320px);
        gap: 12px;
        padding: 0 18px 10px 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-inline-start: 0;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mairi-events__grid::-webkit-scrollbar {
        display: none;
    }

    .mairi-events__card {
        aspect-ratio: 5 / 7;
        border-radius: 12px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .mairi-events__card-content {
        padding: 16px;
    }

    .mairi-events__date {
        padding: 7px 10px;
        font-size: 17px;
    }

    .mairi-events__card-bottom {
        gap: 12px;
    }

    .mairi-events__title {
        font-size: clamp(20px, 6.4vw, 26px);
    }

    .mairi-events__more {
        width: 40px;
        height: 40px;
    }

    .mairi-events__arrows {
        width: 116px;
        height: 48px;
        margin-top: 24px;
        border-radius: 24px;
    }

    .mairi-events__card-description {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mairi-events__image,
    .mairi-events__more,
    .mairi-events__arrows button,
    .mairi-events__tab {
        transition: none;
    }
}

/* End */
/* /local/templates/template1/components/bitrix/news.list/mairi-events-index/style.css?178844458910261 */
