/* Страница участника Московского марафона (шаблон marafon/runner.php) */

.marafon-runner {
    --marafon-gold: #c5aa79;
    --marafon-red: #aa3f59;
    --marafon-slate: #505769;
    --marafon-bg: #fcfaf8;
    padding: 100px 0 50px;
    background: var(--marafon-bg);
    color: var(--marafon-slate);
    font-family: 'Circe', Arial, sans-serif;
    text-align: center;
}

.marafon-runner *,
.marafon-runner *::before,
.marafon-runner *::after {
    box-sizing: border-box;
}

.marafon-runner__title {
    margin: 0 0 34px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--marafon-slate);
}

.marafon-runner__back {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 28px;
    padding: 9px 16px;
    border: 1px solid var(--marafon-gold);
    border-radius: 999px;
    background: transparent;
    color: var(--marafon-slate);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.marafon-runner__back span {
    font-size: 20px;
    line-height: 1;
}

.marafon-runner__back:hover,
.marafon-runner__back:focus {
    background: var(--marafon-gold);
    color: #fff;
    text-decoration: none;
}

.marafon-runner__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 680px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    text-align: left;
}

.marafon-runner__photo {
    position: relative;
    min-height: 100%;
    background: #e6e2dc;
}

.marafon-runner__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marafon-runner__info {
    display: flex;
    flex-direction: column;
    min-height: 490px;
    padding: 34px 32px 28px;
    background: var(--marafon-red);
    color: #fff;
}

.marafon-runner__name {
    margin: 0 0 18px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}

.marafon-runner__about {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}

.marafon-runner__logos {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: auto;
    padding-top: 30px;
}

.marafon-runner__logo-fam {
    width: 130px;
    height: auto;
}

.marafon-runner__logo-mm {
    width: 128px;
    height: auto;
}

.marafon-runner__collected {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 26px 0 24px;
}

.marafon-runner__collected span {
    font-size: 15px;
    color: #a2a4a9;
}

.marafon-runner__collected b {
    font-family: 'GaramondPremrPro', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--marafon-slate);
}

.marafon-runner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.marafon-runner__btn {
    display: inline-block;
    min-width: 250px;
    padding: 16px 34px;
    border-radius: 6px;
    background: var(--marafon-gold);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease;
}

.marafon-runner__btn:hover,
.marafon-runner__btn:focus {
    background: #b3966a;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .marafon-runner {
        padding: 90px 0 36px;
    }

    .marafon-runner__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .marafon-runner__back {
        margin-bottom: 20px;
        padding: 8px 13px;
    }

    .marafon-runner__card {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
    }

    .marafon-runner__photo {
        aspect-ratio: 3 / 4;
    }

    .marafon-runner__info {
        min-height: 0;
        padding: 26px 22px 24px;
    }

    .marafon-runner__logos {
        padding-top: 26px;
    }

    .marafon-runner__btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }
}

/* Заголовок блока «Цель сбора» на странице участника */
.marafon-runner__lead-title {
    margin: 0 0 18px;
    font-family: 'GaramondPremrPro', Garamond, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.25;
    color: #505769;
}

/* Слайдер фото храма внутри текстовых блоков страницы участника */
.marafon-runner__slider {
    position: relative;
    max-width: 760px;
    margin: 28px auto 32px;
}

.marafon-runner__slider .marafon-slider__container {
    overflow: hidden;
}

.marafon-runner__slider:not(.marafon-runner-team__video) img {
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.marafon-runner__slider:not(.marafon-runner-team__video) .swiper-wrapper {
    align-items: center;
}

.marafon-runner__slider:not(.marafon-runner-team__video) .swiper-slide a {
    display: block;
    height: 100%;
}

.marafon-runner__slider .marafon-slider__btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    background: #e9e6e2;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .25s;
}

.marafon-runner__slider .marafon-slider__btn:hover {
    background: #c5aa79;
}

.marafon-runner__slider .marafon-slider__btn--prev {
    left: -70px;
}

.marafon-runner__slider .marafon-slider__btn--next {
    right: -70px;
}

.marafon-runner__slider .marafon-slider__btn::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transition: border-color .25s;
}

.marafon-runner__slider .marafon-slider__btn--prev::before {
    margin-right: 2px;
    border-right: 9px solid #505769;
}

.marafon-runner__slider .marafon-slider__btn--next::before {
    margin-left: 2px;
    border-left: 9px solid #505769;
}

.marafon-runner__slider .marafon-slider__btn--prev:hover::before {
    border-right-color: #fff;
}

.marafon-runner__slider .marafon-slider__btn--next:hover::before {
    border-left-color: #fff;
}

/* Форма Leyka: тип платежа скрыт, по умолчанию активен «Однократно». !important нужен, чтобы перебить правило Leyka div[id*="leyka-pf-"].leyka-pf-star .leyka-tpl-star-form .section с более высокой специфичностью */
.leyka-pf .section--periodicity {
    display: none !important;
}

@media (max-width: 991px) {
    .marafon-runner__slider .marafon-slider__btn--prev {
        left: 8px;
    }

    .marafon-runner__slider .marafon-slider__btn--next {
        right: 8px;
    }
}

@media (max-width: 767px) {
    .marafon-runner__lead-title {
        font-size: 24px;
    }

    .marafon-runner__slider {
        margin: 20px auto 24px;
    }

    .marafon-runner__slider .marafon-slider__btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 359px) {
    .marafon-runner__lead-title {
        font-size: 22px;
    }
}
