.page-events,
.page-single-event {
    padding-bottom: 40px;
}

.page-single-event {
    padding-top: 44px;
}

.page-events {
    padding-top: 64px;
}

@media (max-width: 767px) {
    .page-events {
        padding-top: 40px;
    }
}

.c-events__grid {
    margin-top: 10px;
}

.c-events__col {
    margin-bottom: 30px;
}

.c-events__past-header {
    margin: 30px 0 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #857675;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.c-events__empty {
    text-align: center;
    color: #857675;
    font-size: 18px;
    padding: 40px 0;
}

.c-event-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 18px -10px rgba(0, 0, 0, .45);
    transition: transform .2s ease, box-shadow .2s ease;
    color: inherit;
    text-decoration: none;
}

.c-event-card:hover,
.c-event-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55);
    text-decoration: none;
    color: inherit;
}

.c-event-card__poster {
    position: relative;
    width: 100%;
    padding-top: 141.4%;
    background: #f7f6f2;
    overflow: hidden;
}

.c-event-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-event-card__img--placeholder {
    background: #f7f6f2 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="%23c9c2bd" stroke-width="1.5"><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg>') center no-repeat;
}

.c-event-card__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 100%;
    padding: 7px 14px;
    background: rgba(86, 77, 76, .92);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
}

.c-event-card__body {
    padding: 14px 16px 18px;
}

.c-event-card__title {
    margin: 0 0 6px;
    font-family: 'Raleway', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: #564d4c;
}

.c-event-card__meta {
    font-size: 14px;
    color: #857675;
    line-height: 1.4;
}

.c-event-card--past {
    opacity: .72;
}

.c-event-card--past .c-event-card__img {
    filter: grayscale(.35);
}

.c-event {
    max-width: 720px;
    margin: 0 auto;
}

.c-event__header {
    text-align: center;
    margin-bottom: 22px;
}

.c-event__title {
    font-family: 'Raleway', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #564d4c;
    margin: 0 0 14px;
    line-height: 1.2;
}

.c-event__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
}

.c-event__meta-item {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: #f7f6f2;
    color: #564d4c;
    font-size: 15px;
    font-weight: 600;
}

.c-event__meta-item--date {
    background: #564d4c;
    color: #fff;
}

.c-event__intro {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #313131;
    margin: 0 auto 28px;
    max-width: 620px;
}

.c-event__intro p {
    margin: 0 0 12px;
}

.c-event__poster {
    max-width: 520px;
    margin: 0 auto 32px;
}

.c-event__poster-link {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 141.4%;
    background: #f7f6f2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px -14px rgba(0, 0, 0, .6);
}

.c-event__poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-event__poster-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(86, 77, 76, .9);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity .2s ease;
}

.c-event__poster-link:hover .c-event__poster-zoom,
.c-event__poster-link:focus .c-event__poster-zoom {
    opacity: 1;
}

.c-share {
    text-align: center;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #eceae5;
}

.c-share__label {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #857675;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.c-share__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.c-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #564d4c;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}

.c-share__btn:hover,
.c-share__btn:focus {
    filter: brightness(1.08);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.c-share__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.c-share__btn--whatsapp  { background: #25D366; }
.c-share__btn--messenger { background: #0084FF; }
.c-share__btn--sms       { background: #6c7a89; }
.c-share__btn--email     { background: #564d4c; }
.c-share__btn--native    { background: #857675; }

@media (max-width: 767px) {
    .c-event__title {
        font-size: 24px;
    }

    .c-event__intro {
        font-size: 16px;
    }

    .c-event__poster {
        max-width: 420px;
    }

    .c-event-card__title {
        font-size: 17px;
    }

    .c-event-card__badge {
        font-size: 13px;
        padding: 5px 10px;
    }

    .c-share__btn-text {
        display: none;
    }

    .c-share__btn {
        padding: 12px;
    }

    .c-share__icon {
        width: 22px;
        height: 22px;
    }
}
