.events-page {
    --events-navy: #133056;
    --events-pale: #f3f7ff;
    --events-border: #dcebff;
    background: #fff;
    color: var(--dark-color);
}

.events-page .events-shell {
    min-width: 0;
    max-width: 1486px;
}

.events-hero,
.events-stories {
    background: var(--events-pale);
}

.events-hero {
    position: relative;
}

.events-hero::before {
    position: absolute;
    inset: auto 0 100%;
    height: 100vh;
    background: inherit;
    pointer-events: none;
    content: "";
}

.events-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 686fr) minmax(0, 658fr);
    align-items: center;
    gap: clamp(24px, 3.8vw, 52px);
    padding-block: 64px;
}

.events-hero__copy {
    display: grid;
    justify-items: start;
    gap: 23px;
    min-width: 0;
}

.events-hero__eyebrow {
    margin: 0;
    color: var(--events-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.events-hero h1 {
    margin: 0;
    color: var(--events-navy);
    font-size: clamp(34px, 4.4vw, 63px);
    font-weight: 700;
    line-height: 1.285;
}

.events-hero__description {
    max-width: 608px;
    margin: 0;
    font-size: clamp(17px, 1.55vw, 22px);
    line-height: 1.28;
}

.events-hero__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 658 / 397;
    border-radius: 36px;
    background: var(--events-border);
    object-fit: cover;
}

.events-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 15px;
    background: var(--events-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.events-cta img,
.events-story__action img {
    flex: none;
}

.events-cta--hero {
    width: 320px;
}

.events-cta:hover,
.events-invitation__phone:hover {
    text-decoration: underline;
}

.events-page :is(a, button):focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.events-heading {
    margin: 0;
    color: var(--events-navy);
    font-size: clamp(29px, 3.1vw, 44px);
    font-weight: 700;
    line-height: 1.27;
}

.events-gallery {
    padding-block: 66px 70px;
}

.events-gallery__grid {
    display: grid;
    grid-template-columns: minmax(0, 264fr) minmax(0, 264fr) minmax(0, 438fr) minmax(0, 370fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
    aspect-ratio: 1396 / 468;
    margin-top: 28px;
}

.events-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: var(--events-border);
    text-decoration: none;
}

.events-gallery__item:nth-child(-n+2) {
    grid-row: span 2;
}

.events-gallery__item--climbing {
    grid-area: 2 / 3;
}

.events-gallery__item--sailing {
    grid-area: 2 / 4;
}

.events-gallery__item picture,
.events-gallery__item img,
.events-story__cover > img {
    display: block;
    width: 100%;
    height: 100%;
}

.events-gallery__item img {
    object-fit: cover;
}

.events-gallery__label {
    position: absolute;
    inset-block-end: 17px;
    inset-inline-start: 17px;
    display: flex;
    align-items: center;
    min-height: 40px;
    max-width: calc(100% - 34px);
    padding: 6px 18px;
    border-radius: 24px;
    background: #fff;
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.events-stories {
    padding-block: 58px;
}

.events-stories__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 30px;
}

.events-stories__header .events-heading {
    font-size: clamp(29px, 3.2vw, 46px);
}

.events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.events-filters[hidden],
.events-story[hidden] {
    display: none;
}

.events-filters button {
    min-height: 44px;
    padding: 8px 17px;
    border: 1px solid var(--events-border);
    border-radius: 22px;
    background: #fff;
    color: var(--events-navy);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.events-filters button:hover,
.events-filters button[aria-pressed="true"] {
    border-color: var(--primary-color);
    background: var(--events-border);
}

.events-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 22px 20px;
}

.events-story {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 17px 17px 21px;
    border: 1px solid var(--events-border);
    border-radius: 20px;
    background: #fff;
    color: var(--dark-color);
    text-decoration: none;
}

.events-story__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: var(--events-navy);
}

.events-story__cover > img {
    object-fit: contain;
}

.events-story__play {
    position: absolute;
    inset-block-end: 10px;
    inset-inline-end: 10px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--events-border);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgb(8 18 31 / 36%);
}

.events-story__meta,
.events-story__title,
.events-story__description {
    margin: 0;
}

.events-story__meta {
    color: #4d4d4d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.33;
}

.events-story__title {
    color: var(--events-navy);
    font-size: clamp(21px, 1.9vw, 26px);
    font-weight: 700;
    line-height: 1.3;
}

.events-story__description {
    font-size: 17px;
    line-height: 1.3;
}

.events-story__action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 5px;
    color: var(--events-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.events-story:hover .events-story__action {
    text-decoration: underline;
}

.events-invitation {
    padding-block: 55px;
}

.events-invitation__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    align-items: center;
    gap: clamp(24px, 7vw, 135px);
    padding: 44px 54px;
    border-radius: 26px;
    background: var(--events-navy);
    color: #fff;
}

.events-invitation__panel h2 {
    margin: 0 0 16px;
    font-size: clamp(27px, 3vw, 43px);
    font-weight: 700;
    line-height: 1.28;
}

.events-invitation__panel p {
    max-width: 740px;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.events-invitation__contacts {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.events-cta--light {
    width: 270px;
    background: #fff;
    color: var(--events-navy);
}

.events-invitation__phone {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

@media (max-width: 1023px) {
    .events-hero__layout,
    .events-gallery,
    .events-stories,
    .events-invitation {
        padding-block: 42px;
    }

    .events-gallery__grid {
        gap: 12px;
    }

    .events-gallery__label {
        inset-block-end: 10px;
        inset-inline-start: 10px;
        min-height: 32px;
        max-width: calc(100% - 20px);
        padding-inline: 11px;
        font-size: 14px;
    }

    .events-stories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .events-invitation__panel {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    .events-page .events-shell {
        padding-inline: 20px;
    }

    .events-hero__layout,
    .events-invitation__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .events-hero__layout {
        gap: 22px;
        padding-block: 24px 26px;
    }

    .events-hero__copy {
        gap: 15px;
    }

    .events-hero__eyebrow {
        font-size: 12px;
        line-height: 15px;
    }

    .events-hero h1 {
        font-size: clamp(30px, 9.24vw, 36px);
        line-height: 1.2778;
    }

    .events-hero__description {
        font-size: 16px;
        line-height: 20px;
    }

    .events-cta--hero {
        width: 302px;
    }

    .events-hero__photo {
        aspect-ratio: 350 / 188;
        border-radius: 24px;
    }

    .events-gallery {
        padding-block: 36px 38px;
    }

    .events-gallery .events-heading {
        font-size: 27px;
        line-height: 35px;
    }

    .events-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 12px 16px;
        aspect-ratio: auto;
        margin-top: 19px;
    }

    .events-gallery__item {
        grid-area: auto;
        aspect-ratio: 167 / 142;
        border-radius: 20px;
    }

    .events-gallery__item:nth-child(-n+2) {
        grid-row: auto;
        aspect-ratio: 167 / 235;
    }

    .events-gallery__item--tourism,
    .events-gallery__item--climbing {
        grid-column: 1 / -1;
    }

    .events-gallery__item--tourism {
        aspect-ratio: 350 / 228;
    }

    .events-gallery__item--climbing {
        aspect-ratio: 350 / 190;
    }

    .events-gallery__label {
        inset-block-end: 9px;
        inset-inline-start: 9px;
        justify-content: center;
        min-height: 30px;
        max-width: calc(100% - 18px);
        padding-inline: clamp(10px, calc(10vw - 22px), 17px);
        font-size: 12px;
        line-height: 15px;
        text-align: center;
    }

    .events-stories {
        padding-block: 30px 24px;
    }

    .events-stories__header {
        display: grid;
        gap: 14px;
        margin-bottom: 14px;
    }

    .events-stories__header .events-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .events-filters {
        max-width: 350px;
    }

    .events-filters button {
        padding-inline: 8px;
    }

    .events-filters button[data-events-filter="all"] { width: 65px; }
    .events-filters button[data-events-filter="karting"] { width: 93px; }
    .events-filters button[data-events-filter="diving"] { width: 92px; }
    .events-filters button[data-events-filter="tourism"] { width: 87px; }
    .events-filters button[data-events-filter="climbing"] { width: 140px; }

    .events-story {
        gap: 8px;
        padding: 14px 14px 18px;
        border: 0;
        box-shadow: inset 0 0 0 1px var(--events-border);
    }

    .events-story__meta {
        font-size: 13px;
        line-height: 17px;
    }

    .events-story__title {
        font-size: 22px;
        line-height: 29px;
    }

    .events-story__description {
        font-size: 16px;
        line-height: 21px;
    }

    .events-story__action {
        font-size: 15px;
        line-height: 19px;
    }

    .events-invitation {
        padding-block: 28px;
    }

    .events-invitation__panel {
        gap: 24px;
        padding: 27px 22px;
        border-radius: 24px;
    }

    .events-invitation__panel h2 {
        margin-bottom: 12px;
        font-size: 26px;
        line-height: 33px;
    }

    .events-invitation__panel p {
        font-size: 16px;
        line-height: 20px;
    }

    .events-cta--light {
        width: 246px;
    }

    .events-invitation__phone {
        margin-block: -11px;
        font-size: 17px;
        line-height: 22px;
    }
}

@media (max-width: 599px) {
    .events-stories__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
